joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4084e0
Capabilities:
Create pipe
Create thread
Read file on windows

Disassembly:
mov eax, 0x1060
call fcn.0042b980
mov eax, dword [0x4a1b58]
xor eax, esp
mov dword [esp + 0x105c], eax
push ebp
mov ebp, dword [esp + 0x1068]
push 0
push 0
push ebp
push 0x4083c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40856d
push eax
push eax
push str.Error_on_CreatePipe___
call fcn.0041002b
xor al, al
pop ebp
mov ecx, dword [esp + 0x105c]
xor ecx, esp
call fcn.0042a4d9
add esp, 0x1060
ret 4
push ebx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x10]
xor ecx, ecx
push eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
mov word [esp + 0x54], cx
mov dword [esp + 0x50], 0x101
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1000
lea edx, [esp + 0x68]
push 0
push edx
call fcn.0042a5d0
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push 0
lea eax, [esp + 0x10]
push eax
push 0xfff
lea ecx, [esp + 0x70]
push ecx
push edx
call ebx
test eax, eax
je 0x408628
push esi
push edi
jmp 0x4085e0
lea eax, [esp + 0x6c]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4085e6
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4085f4
mov edx, dword [esp + 0x10]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
push eax
rep movsb byte es:[edi], byte [esi]
push 0xfff
lea ecx, [esp + 0x78]
push ecx
push edx
call ebx
test eax, eax
jne 0x4085e0
pop edi
pop esi
mov ecx, dword [esp + 0x1064]
pop ebx
pop ebp
xor ecx, esp
mov al, 1
call fcn.0042a4d9
add esp, 0x1060
ret 4
Function at 0x408650
Capabilities:
Check os version
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x48098b
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x4a1b58]
xor eax, esp
mov dword [esp + 0xc4], eax
push esi
push edi
mov eax, dword [0x4a1b58]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov edi, dword [esp + 0xe4]
lea eax, [esp + 0x10]
xor esi, esi
push eax
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40884d
call fcn.0040db6a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4086d6
push 0x80004005
call fcn.00401af0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
sub eax, 4
mov dword [esp + 0xdc], esi
je 0x4087cf
mov ecx, 1
sub eax, ecx
je 0x408771
sub eax, ecx
je 0x408711
push 0x4a3210
jmp 0x408809
mov eax, dword [esp + 0x3c]
sub eax, esi
je 0x408750
sub eax, ecx
je 0x40872f
sub eax, ecx
jne 0x408812
push 0x4a320c
jmp 0x408809
cmp byte [esp + 0xce], cl
lea ecx, [esp + 0xc]
jne 0x408746
push 0x4a3204
jmp 0x40880d
push 0x4a3208
jmp 0x40880d
cmp byte [esp + 0xce], cl
lea ecx, [esp + 0xc]
jne 0x408767
push 0x4a31fc
jmp 0x40880d
push 0x4a3200
jmp 0x40880d
mov eax, dword [esp + 0x3c]
sub eax, esi
je 0x4087c8
sub eax, ecx
je 0x4087c1
sub eax, ecx
jne 0x408812
cmp byte [esp + 0xce], cl
jne 0x40879d
cmp word [esp + 0x10], 9
jne 0x40879d
push 0x4a31f0
jmp 0x408809
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
jne 0x4087b2
push 0x4a31f4
jmp 0x408809
push 0x59
call esi
test eax, eax
je 0x408812
push 0x4a31f8
jmp 0x408809
push 0x4a31ec
jmp 0x408809
push 0x4a31e8
jmp 0x408809
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x4087ef
cmp eax, 0xa
je 0x4087e8
cmp eax, 0x5a
jne 0x408812
push 0x4a31e4
jmp 0x408809
push 0x4a31e0
jmp 0x408809
mov eax, dword [esp + 0x44]
cmp eax, 2
jne 0x4087ff
push 0x4a31d8
jmp 0x408809
cmp eax, 1
jne 0x408812
push 0x4a31dc
lea ecx, [esp + 0x10]
call fcn.00406a50
mov esi, dword [esp + 0xc]
add esi, 0xfffffff0
push esi
call fcn.004026b0
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [esp + 0xdc], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408859
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x408859
push 0x484b12
mov ecx, edi
call fcn.00405ff0
mov eax, edi
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0042a4d9
add esp, 0xd4
ret 4
Function at 0x409870
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40987b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x409959
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x486920]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x486920]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x486920]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x486920]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x486920]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x486920]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x486920]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x486920]
inc ecx
sub edx, 8
sub esi, 1
jne 0x409895
pop edi
test edx, edx
je 0x40997b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x486920]
inc ecx
sub edx, 1
jne 0x409960
not eax
pop esi
ret

Function at 0x409980
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movsx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x486920]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x486920]
mov dword [edx + 8], ecx
ret

Function at 0x409ec0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x409f02
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409ef6
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x409f13
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.0042ba70
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret
Function at 0x40aed0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4a1b58]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x40af0d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40af0d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x40afc6
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x40af28
cmp al, 0x5c
jne 0x40af2a
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40af20
cmp esi, ebp
je 0x40af60
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.0042ba70
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.0040aed0
add esp, 0x14
mov byte [esp + 0xc], 0
test edi, edi
je 0x40af7b
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40af71
mov eax, ebp
mov edx, ebp
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40af80
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40af90
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x40afc6
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.0042a4d9
add esp, 0x20c
ret
Function at 0x40c780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x40c79a
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
je 0x40c78f
cmp dword [edi + 0x7c], ebx
je 0x40c7ad
push edi
call fcn.0040a7f0
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.0040a610
add esp, 0x10
test eax, eax
je 0x40c7d4
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.0042bf61
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40c815
push 0x4000
call fcn.0042bf61
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x40c821
push esi
call fcn.0042aafa
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x40c86d
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00409be0
add esp, 4
test eax, eax
jne 0x40c86d
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x40c897
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x40c8a0
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
movzx ecx, byte [esi + 0x6c]
neg ecx
sbb ecx, ecx
push ebp
mov ebp, dword [esp + 0x20]
and ecx, 0xc
lea ebx, [esi + 0x70]
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebp, ebp
je 0x40c8e7
mov edi, edi
movzx eax, byte [ebp]
test al, al
je 0x40c8e7
push eax
push ebx
call fcn.00409980
add esp, 8
add ebp, 1
jne 0x40c8d0
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x40cb70
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x40cc3d
cmp dword [ebx + 4], 0xffffffff
jne 0x40cc3d
push edi
lea edi, [ebx + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cba0
sub eax, edx
mov al, byte [eax + ebx + 0x13f]
cmp al, 0x5c
je 0x40cbd1
cmp al, 0x2f
je 0x40cbd1
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40cbc0
mov ax, word [0x486e44]
mov word [edi], ax
mov edi, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
cmp edi, 1
jne 0x40cbfc
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40cbfc
pop esi
pop edi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push esi
call fcn.00409c90
add esp, 0x10
test eax, eax
jne 0x40cc1e
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
push eax
call fcn.0040c5b0
add esp, 4
mov dword [ebx], eax
neg eax
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop edi
add eax, 0x200
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x410b06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x410b2a
cmp dword [edi + 0x54], 0
jne 0x410b2a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00418602
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 [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00410ac7
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41121a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x411262
call fcn.00418602
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x411262
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4112a5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x41128e
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 0x41128e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4112a2
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 0x4170c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41710f
call fcn.00418602
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41710f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41712b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00416c42
mov esi, eax
test edi, edi
je 0x417129
test ebx, ebx
je 0x417129
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4178a2
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x480f2e
call fcn.0042c34b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4178c7
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41790d
lea ecx, [ebp - 0x10]
call fcn.004029d0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d38d
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401ca0
mov eax, esi
call fcn.0042c423
ret 8

Function at 0x42a4d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a1b58]
jne 0x42a4e3
repz ret
jmp fcn.0043230c

Function at 0x43f41a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00430f93
and dword [ebp - 4], 0
cmp dword [0x4a5b1c], 0
mov ebx, eax
jne 0x43f4cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43f57c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48bfdc
push edi
call esi
test eax, eax
je 0x43f57c
push eax
call fcn.00430f21
mov dword [esp], 0x48bfcc
push edi
mov dword [0x4a5b1c], eax
call esi
push eax
call fcn.00430f21
mov dword [esp], 0x48bfb8
push edi
mov dword [0x4a5b20], eax
call esi
push eax
call fcn.00430f21
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a5b24], eax
call esi
push eax
call fcn.00430f21
pop ecx
mov dword [0x4a5b2c], eax
test eax, eax
je 0x43f4cb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00430f21
pop ecx
mov dword [0x4a5b28], eax
mov eax, dword [0x4a5b28]
cmp eax, ebx
je 0x43f523
cmp dword [0x4a5b2c], ebx
je 0x43f523
push eax
call fcn.00430f9c
push dword [0x4a5b2c]
mov esi, eax
call fcn.00430f9c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43f523
test edi, edi
je 0x43f523
call esi
test eax, eax
je 0x43f51a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43f51a
test byte [ebp - 0xc], 1
jne 0x43f523
or dword [ebp + 0x10], 0x200000
jmp 0x43f55c
mov eax, dword [0x4a5b20]
cmp eax, ebx
je 0x43f55c
push eax
call fcn.00430f9c
pop ecx
test eax, eax
je 0x43f55c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43f55c
mov eax, dword [0x4a5b24]
cmp eax, ebx
je 0x43f55c
push eax
call fcn.00430f9c
pop ecx
test eax, eax
je 0x43f55c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a5b1c]
call fcn.00430f9c
pop ecx
test eax, eax
je 0x43f57c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43f57e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4440d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4a1b58]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x444123
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x44411d
shr eax, 8
cmp al, 2
jne 0x44411d
call fcn.004444e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a4d9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.0042a4d9
mov esp, ebp
pop ebp
ret
Function at 0x450e40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x450e73
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x450fc0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x450fdb
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
js 0x45100f
cmp eax, 2
jg 0x45100f
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x48d8d0]
push 2
push edx
call fcn.00429dc5
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.00429dc5
add esp, 0x20
xor eax, eax
ret

Function at 0x451570
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [eax + ecx*4 + 0x190]
mov edx, ecx
add edx, edx
push esi
lea esi, [eax + edx*8 + 0x1b8]
mov edx, dword [eax + 0x440]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x3c], 3
je 0x451610
cmp dword [eax + ecx*4 + 0x1a8], 0x451300
jne 0x451610
cmp dword [esi], 0
je 0x4515ad
test edi, edi
je 0x451610
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004447f0
add esp, 0x14
cmp eax, 0xffffffff
je 0x451610
test al, 1
je 0x451610
cmp dword [esi], 0
jne 0x4515f2
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x4a2f74]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x45160d
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x451610
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebx
ret

Function at 0x451620
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + ecx*4 + 0x190]
mov eax, esi
call fcn.00451570
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4516a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x451678
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.004572f0
mov edx, dword [esi]
push eax
push str.Send_failure:__s
push edx
call fcn.00451180
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x473c], ecx
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x453630
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a1b58]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x538], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x453683
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00451100
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a4d9
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x53c]
push edx
mov dword [ebp - 0x10], 1
call fcn.00454f60
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x540]
push eax
call fcn.00454f60
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4536f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00451100
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a4d9
mov esp, ebp
pop ebp
ret