joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5048a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x2c]
lea ebx, [ebx]
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [esi + 0x74]
add eax, edi
sub edx, dword [esi + 0x6c]
mov dword [esp + 0x10], edx
cmp dword [esi + 0x6c], eax
jb 0x50492d
mov ecx, dword [esi + 0x38]
push edi
lea eax, [ecx + edi]
push eax
push ecx
call fcn.0050bdb0
mov edx, dword [esi + 0x4c]
add esp, 0xc
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, edi
jb 0x5048ff
sub eax, edi
jmp 0x504901
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x5048f0
mov eax, dword [esi + 0x40]
mov edx, edi
lea ecx, [eax + edi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, edi
jb 0x50491f
sub eax, edi
jmp 0x504921
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x504910
mov edx, dword [esp + 0x10]
add edx, edi
mov ebx, dword [esi]
cmp dword [ebx + 4], 0
je 0x504a56
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
add eax, dword [esi + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
mov ebp, eax
cmp ebp, edx
jbe 0x504951
mov ebp, edx
test ebp, ebp
je 0x5049a4
sub eax, ebp
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x504972
mov edx, dword [ebx]
mov ecx, dword [ebx + 0x30]
push ebp
call fcn.004e9990
jmp 0x50498a
cmp eax, 2
jne 0x504990
mov edx, dword [ebx]
test edx, edx
jne 0x504981
xor eax, eax
jmp 0x50498d
mov ecx, dword [ebx + 0x30]
push ebp
call fcn.004ea040
add esp, 4
mov dword [ebx + 0x30], eax
push ebp
push dword [ebx]
push dword [esp + 0x18]
call fcn.0050bdb0
add dword [ebx], ebp
add esp, 0xc
add dword [ebx + 8], ebp
add dword [esi + 0x74], ebp
mov ebp, dword [esi + 0x74]
cmp ebp, 3
jb 0x5049cc
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
movzx edx, byte [eax]
mov dword [esi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [esi + 0x54]
mov dword [esi + 0x48], edx
cmp ebp, 0x106
jae 0x5049e0
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x5048b0
mov ecx, dword [esi + 0x16c0]
mov ebx, dword [esi + 0x3c]
cmp ecx, ebx
jae 0x504a56
mov edi, dword [esi + 0x6c]
add edi, ebp
cmp ecx, edi
jae 0x504a25
sub ebx, edi
cmp ebx, 0x102
jbe 0x504a05
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.0050c510
add esp, 0xc
lea eax, [ebx + edi]
mov dword [esi + 0x16c0], eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea eax, [edi + 0x102]
cmp ecx, eax
jae 0x504a56
sub edi, ecx
sub ebx, ecx
add edi, 0x102
cmp edi, ebx
jbe 0x504a3f
mov edi, ebx
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call fcn.0050c510
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x506f80
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x54dd78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x596c60]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push 1
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x25
push eax
call fcn.0047c5f0
cmp eax, 0xffffffff
je 0x507028
cmp dword [esi + 0x14], 8
jb 0x506fcd
mov eax, dword [esi]
jmp 0x506fcf
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x507028
push ebx
lea ecx, [esp + 0x18]
call fcn.00497360
mov dword [esp + 0x28], 0
cmp dword [esi + 0x14], 8
jb 0x506ffc
mov eax, dword [esi]
jmp 0x506ffe
mov eax, esi
mov edi, dword [esp + 0x14]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x50701b
cmp eax, ebx
ja 0x50701b
push edi
mov ecx, esi
call fcn.0047c5b0
test edi, edi
je 0x507028
push edi
call fcn.00507b54
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x50ffdd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.0050fd8b
sub al, 0x30
xor eax, 0x478b6624
push es
cmp ax, bx
jbe 0x50ffe5
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x50ffdf
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x50ffd0
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0050fd8b
add dword [eax - 0x57ba72b8], edi
push eax
call fcn.0050fd9b
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0050fd50
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x510079
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0050fd8b
inc esi
jecxz 0x5100c0
mov dl, 0x8d
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x5100f1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x88e8458d
pop ebp
call 0xe9ae894c
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0050fd9b
push eax
push esi
push dword [ebp + 8]
call fcn.0050fd50
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0050fd9b
push eax
push esi
push dword [ebp + 8]
call fcn.0050fd50
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0050fd9b
push eax
push esi
push dword [ebp + 8]
call fcn.0050fd50
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0050fd8b
xchg dword [edi], eax
or ch, byte [ecx - 0x78]
popfd
jl 0x510210
invalid
invalid
Function at 0x521e2c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x596c60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0051c193
mov dword [ebp - 0x14], eax
cmp dword [0x59f100], esi
jne 0x521f1f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x521eac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x521fff
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x521fff
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x521fff
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x59f100], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x59f104], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x59f108], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x59f110], eax
test eax, eax
je 0x521f1c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x59f10c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x521f44
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x521f37
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x521f59
push 4
pop eax
jmp 0x522001
cmp dword [ebp - 0x14], esi
je 0x521f59
push dword [0x59f100]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x521f3e
mov eax, dword [0x59f10c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x521fb7
cmp dword [0x59f110], edi
je 0x521fb7
push eax
call ebx
push dword [0x59f110]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x521fb7
test eax, eax
je 0x521fb7
call ecx
test eax, eax
je 0x521fac
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x521fac
test byte [ebp - 8], 1
jne 0x521fb7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x521fe7
mov eax, dword [0x59f104]
cmp eax, edi
je 0x521fe4
push eax
call ebx
test eax, eax
je 0x521fe4
call eax
mov esi, eax
test esi, esi
je 0x521fe4
mov eax, dword [0x59f108]
cmp eax, edi
je 0x521fe4
push eax
call ebx
test eax, eax
je 0x521fe4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x59f100]
call ebx
test eax, eax
je 0x521fff
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x522001
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005072fd
mov esp, ebp
pop ebp
ret
Function at 0x4045a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f870
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43f014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
nop dword [eax]
test eax, eax
je 0x40467e
jmp 0x404608
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x404666
mov eax, dword [esi + 0x10]
lea ebx, [esi + 0x10]
lea eax, [eax*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x404666
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
je 0x404666
cmp dword ds:[esi + 0x14], 8
jb 0x404644
mov esi, dword [esi]
mov eax, dword [ebx]
push 0xffffffffffffffff
push esi
inc eax
push eax
push ecx
call fcn.0041a80d
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Failed_to_open_clipboard
lea ecx, [ebp - 0x20]
call fcn.00402410
push 0x43d554
lea eax, [ebp - 0x20]
push eax
call fcn.00415c7b
int3

Function at 0x408740
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x408771
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x408760
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x41274d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x41276e
jl 0x412765
test edi, edi
jne 0x41276e
xor eax, eax
xor edx, edx
jmp 0x41282f
cmp dword [ebx + 0x38], 0
je 0x412783
push eax
push edi
push dword [ebp + 8]
call fcn.00412835
jmp 0x41282f
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4127ca
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4127ca
cmp eax, edi
jb 0x4127a4
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00415cf0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4127d0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x412824
mov ecx, ebx
call fcn.00411fa6
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x41280f
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041bb7f
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x412824
jmp 0x4127e2
test edx, edx
je 0x412824
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041bb7f
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x412924
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x412946
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00412a09
jmp 0x412a04
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x41296c
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x412971
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x4129d1
jg 0x412986
test esi, esi
je 0x4129d1
test ecx, ecx
jl 0x4129cc
jg 0x412990
test eax, eax
je 0x4129cc
cmp edi, ecx
jg 0x4129a2
jl 0x41299a
cmp esi, eax
jae 0x4129a2
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.00415cf0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4129d4
mov ecx, dword [ebp + 8]
jmp 0x4129de
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x4129f8
jg 0x4129de
test esi, esi
je 0x4129f8
cmp dword [ebx + 0x4c], 0
je 0x4129f8
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041c1eb
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41332e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x43f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x413353
xor eax, eax
jmp 0x4133af
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x413380
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x413380
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x413436
cmp dword [edi + 0x4c], 0
je 0x4133a9
mov ecx, edi
call fcn.00412fd7
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4133bf
push dword [edi + 0x4c]
push ebx
call fcn.00412b1b
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x4133ae
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041460c
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x4311a0]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x413409
sub eax, 1
je 0x413409
dec eax
sub eax, 1
jne 0x4133a9
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x41339b
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x413426
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0041c1eb
add esp, 0x10
cmp esi, eax
jne 0x4133a9
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x4133a9
mov ax, bx
jmp 0x4133ae

Function at 0x4152f2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x415331
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x415331
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415331
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x415331
cmp dword [ecx + 0x74], 0xe
jbe 0x415331
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x424fce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424c7f

Function at 0x424fd9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424e09

Function at 0x42ecb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42ecdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42ecdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x623275
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x6232b4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x6232b4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x6232b4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x6232b4
cmp dword [ecx + 0x74], 0xe
jbe 0x6232b4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x408c70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
pop esp
mov ebx, dword [ebp + 0xc]
push esi
sbb dh, byte [ebp + 8]
push edi
mov edi, ebp
adc byte [ebx + 0x75c73bc3], cl
sub dword [ecx], esi
loop 0x408ca8
mov eax, dword [esi + 0x24]
or ecx, eax
je 0x80417f9d
invalid
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x408db0
Capabilities:
Set socket configuration

Disassembly:
dec esi
add al, 0xdb
inc ebp
or byte [0x5100e100], dh
call 0xff878bd0
add esp, 4
test eax, eax
mov edx, 0x4468b3d
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, sym.imp.WSOCK32.dll_setsockopt
lea edx, [ebp + 0x51]
push 4
push edx
push 0x1006
push 0x3ffff
push eax
call edi
mov ebp, dword [edx - 0x2eb272fc]
cmc
add al, 0x51
push 0x1005
push 0xea9693
push edx
cmp bh, dl
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x20], ebx
sub bh, byte [esi + 0x24]
xor eax, eax
pop edi
pop esi
pop ebx
jecxz 0x408d6c
or al, 0
nop
or ah, bl
adc dword [ebp - 0x75], edx
push ebp
mov ebp, esp
push ebp
mov ebp, esp
push ecx
mov ebx, 0xc9331045
test eax, eax
loop 0x408d52
sar dword [ecx + 0x4d], 0xfc
mov ecx, dword [ebp + 0xc]
lodsb al, byte [esi]
stc
inc eax
push esi
jg 0xcf0703
je 0x40906a
dec ecx
add dword [ecx + 0xf], 0xf
push ecx
call esi
test eax, eax
jne 0x409078
pop esi
mov esp, ebp
pop ebp
insb byte es:[edi], dx
retf
call esi
add eax, 0xb53ffc80
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411070
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push edi
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jge 0x4110af
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x4110aa
call esi
test eax, eax
je 0x4110b3
call esi
test eax, eax
jne 0x4110b3
pop esi
xor eax, eax
pop edi
ret
mov eax, edi
pop edi
ret
pop esi
mov eax, edi
pop edi
ret
Function at 0x411e80
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x436090]
push edi
push 0x11
push 2
push 2
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
setne al
test eax, eax
je 0x411ef7
mov cx, word [0x42df00]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push esi
push eax
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
mov word [esp + 0xe], cx
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
lea edx, [esp + 0xc]
push edx
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_bind]
mov esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x14]
pop edi
call fcn.0042373b
add esp, 0x14
ret
Function at 0x412c70
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
inc ebp
or al, 0x66
cmp eax, dword [edi + 6]
inc ebp
or al, 0x66
cmp eax, dword [edi + 6]
jne 0x412c87
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x412ca5
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x412d03
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x412cea
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x412cf3
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x412cfd
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x412cdf
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x412c69
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x412d50
dec eax
je 0x412d47
sub eax, 3
je 0x412d3e
mov dword [ebp - 4], 0x40
jmp 0x412d6d
mov dword [ebp - 4], 4
jmp 0x412d53
mov dword [ebp - 4], 0x20
jmp 0x412d53
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x412d9f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x412d1f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004125b0
enter 0xffffffffffffcd8a, 0x77
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x412dab
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret