joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bd10
Capabilities:
Create process on windows
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x4ce6a8]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.cmd__c_mklink__J__]
mov eax, dword [0x474bf8]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x424], eax
mov ax, word [0x474bfc]
movups xmmword [ebp - 0x444], xmm0
push 0x418
movups xmm0, xmmword [0x474be8]
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push 0
push eax
mov dword [ebp - 0x448], esi
movups xmmword [ebp - 0x434], xmm0
call fcn.0044a900
push 0x40
lea eax, [ebp - 0x498]
mov dword [ebp - 0x49c], 0x44
push 0
push eax
call fcn.0044a900
add esp, 0x18
xorps xmm0, xmm0
cmp word [ebx], 0
movups xmmword [ebp - 0x458], xmm0
je 0x41bec4
cmp word [esi], 0
je 0x41bec4
mov edx, esi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41bdb5
push edi
lea edi, [ebp - 0x444]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41bdd0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x444]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x41bdf3
mov eax, dword [0x474c00]
mov esi, ebx
mov dword [ecx], eax
mov eax, dword [0x474c04]
mov dword [ecx + 4], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x41be10
lea edi, [ebp - 0x444]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41be26
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x444]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x41be50
mov eax, dword [0x471af8]
push dword [ebp - 0x448]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x49c]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea eax, [ebp - 0x444]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x41bec4
push 0xffffffffffffffff
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x458]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x454]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00447cbd
mov esp, ebp
pop ebp
ret 8
Function at 0x41bef0
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x4ce6a8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xc8
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0044a900
add esp, 0xc
mov dword [ebp - 0xd4], 0xc8
cmp word [0x554370], 0
jne 0x41c04f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xd0]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREWOW6432NodeMicrosoftEdgeUpdateClients56EB18F8_B008_4CBD_B6D2_8C97FE7E9062
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41bf80
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xcc]
push eax
push 0
push 0
push 0x474cbc
push dword [ebp - 0xd0]
call edi
test eax, eax
je 0x41bfc5
lea eax, [ebp - 0xd0]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftEdgeUpdateClients56EB18F8_B008_4CBD_B6D2_8C97FE7E9062
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x41c03a
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xcc]
push eax
push 0
push 0
push 0x474cbc
push dword [ebp - 0xd0]
call edi
test eax, eax
jne 0x41c03a
push 0
push 0x2a
push 0x554370
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 0x554370
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41bfe0
mov ecx, 0xe
lea edx, [ebp - 0xcc]
mov esi, str.MicrosoftEdgeApplication_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41c002
mov edi, 0x554370
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41c020
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, 0x554370
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447cbd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x554370
xor ecx, ebp
call fcn.00447cbd
mov esp, ebp
pop ebp
ret
Function at 0x42d110
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d57d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ce6a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x200
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 0x200
call fcn.0044dcef
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x42d1b3
push esi
push 0x4797ac
push 1
push dword [0x50c768]
call fcn.00444090
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d1a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
jmp 0x42d1cf
push 0x4797d0
push 1
push dword [0x50c768]
call fcn.00444090
add esp, 0xc
push 0
push 0x470a68
lea ecx, [ebp - 0x28]
call fcn.0040a4c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push esi
mov dword [edi], eax
call fcn.0044dcd4
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x42d22a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d220
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d249
push edx
push ecx
call fcn.00447cee
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447cbd
mov esp, ebp
pop ebp
ret 8
call fcn.00452900
int3
Function at 0x42d250
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d57d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ce6a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x200
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 0x200
call fcn.0044dcef
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x42d2f3
push esi
push 0x4797f4
push 1
push dword [0x50c768]
call fcn.00444090
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d2e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
jmp 0x42d30f
push 0x479818
push 1
push dword [0x50c768]
call fcn.00444090
add esp, 0xc
push 0
push 0x470a68
lea ecx, [ebp - 0x28]
call fcn.0040a4c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push esi
mov dword [edi], eax
call fcn.0044dcd4
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x42d36a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d360
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d389
push edx
push ecx
call fcn.00447cee
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447cbd
mov esp, ebp
pop ebp
ret 8
call fcn.00452900
int3

Function at 0x42e500
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4ce6a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov ecx, 0x51eff8
call fcn.004167b0
test eax, eax
je 0x42e55e
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
shrd ecx, eax, 0x14
push ecx
push 0x479858
push 1
push dword [0x50c768]
call fcn.00444090
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
shrd ecx, eax, 0x14
mov dword [esi], ecx
jmp 0x42e590
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
shr eax, 0x14
push eax
push 0x479858
push 1
push dword [0x50c768]
call fcn.00444090
mov eax, dword [ebp - 0x1c]
shr eax, 0x14
mov dword [esi], eax
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00447cbd
mov esp, ebp
pop ebp
ret 8
Function at 0x42f3a0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4ce6a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x51eff8
push esi
push dword [eax]
call fcn.004131e0
cmp dword [0x518fd0], 0
mov esi, eax
je 0x42f3f0
push 0x550e74
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x550e74
mov ecx, 0x51eff8
call fcn.00413ca0
push esi
push 0x550e74
jmp 0x42f45d
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x42f46b
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0044db48
push 0x479e34
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0044dba2
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x108]
mov ecx, 0x51eff8
push eax
call fcn.00413ca0
push esi
lea eax, [ebp - 0x108]
push eax
push dword [0x50c768]
call fcn.004440c0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00447cbd
mov esp, ebp
pop ebp
ret 8
Function at 0x442060
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 0x442091
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x442080
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x442880
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x1505
push esi
movsx esi, byte [edx]
test esi, esi
je 0x4428a6
mov ecx, eax
lea edx, [edx + 1]
shl eax, 5
add eax, esi
movsx esi, byte [edx]
add eax, ecx
test esi, esi
jne 0x442893
pop esi
pop ebp
ret

Function at 0x442930
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
test ebx, ebx
je 0x442987
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x442987
movsx edx, byte [edi]
mov eax, 0x1505
push esi
mov esi, edi
test edx, edx
je 0x442965
mov ecx, eax
lea esi, [esi + 1]
shl eax, 5
add eax, edx
movsx edx, byte [esi]
add eax, ecx
test edx, edx
jne 0x442952
xor edx, edx
div dword [ebx]
mov eax, dword [ebx + 4]
push edi
lea eax, [eax + edx*8]
push eax
call fcn.00442830
add esp, 8
pop esi
test eax, eax
je 0x442987
pop edi
mov eax, 1
pop ebx
pop ebp
ret
pop edi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x442990
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x442a45
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x442a45
movsx edx, byte [edi]
mov esi, edi
mov eax, 0x1505
test edx, edx
je 0x4429d3
nop word [eax + eax]
mov ecx, eax
lea esi, [esi + 1]
shl eax, 5
add eax, edx
movsx edx, byte [esi]
add eax, ecx
test edx, edx
jne 0x4429c0
xor edx, edx
div dword [ebx]
mov eax, dword [ebx + 4]
push edi
lea eax, [eax + edx*8]
push eax
call fcn.00442830
add esp, 8
test eax, eax
je 0x442a45
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x442a11
cmp dword [ebp + 0x14], edx
jne 0x442a45
mov ecx, dword [eax + 4]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442a00
sub ecx, edx
pop edi
pop esi
pop ebx
lea eax, [ecx + 1]
pop ebp
ret
mov esi, dword [eax + 4]
mov ecx, esi
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442a20
mov eax, dword [ebp + 0x14]
sub ecx, edi
cmp ecx, eax
jae 0x442a45
push esi
push eax
push edx
call fcn.0044db48
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4021ac
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
lea eax, [ebp - 4]
push edi
push eax
call fcn.00404ab2
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
jne 0x4021d7
push 5
call fcn.0040694c
push eax
call fcn.00406bc1
pop ecx
pop ecx
push esi
call fcn.00405711
push eax
push 0x5c
call fcn.0040536c
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea eax, [ebp - 0x44c]
push 0x414478
push eax
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
push 0x414480
push eax
call esi
lea eax, [ebp - 0x4c]
xor esi, esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44c]
push eax
push esi
mov dword [ebp - 0x2c], str.JavaWSSplashScreen
mov dword [ebp - 0x28], str._splash
mov dword [ebp - 0x18], esi
call fcn.004052e6
xor eax, eax
lea edi, [ebp - 0x1a]
mov word [ebp - 0x1c], si
add esp, 0x2c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x10
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40227b
push 6
call fcn.0040694c
push eax
call fcn.00406bc1
pop ecx
pop ecx
push esi
lea eax, [ebp - 0xc]
push 6
push eax
push edi
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 6
je 0x40229d
push 7
call fcn.0040694c
push eax
call fcn.00406bc1
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
cmp eax, esi
mov dword [0x414010], eax
pop esi
jg 0x4022c1
push 8
call fcn.0040694c
push eax
call fcn.00406bc1
pop ecx
pop ecx
push edi
call fcn.004052c1
push ebx
call fcn.004052c1
pop ecx
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x4022ed
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push str.PATH
call dword [sym.imp.MSVCRT.dll_getenv]
pop ecx
mov ebx, eax
call fcn.0040536c
mov esi, eax
test ebx, ebx
mov edi, esi
je 0x402341
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
push esi
mov edi, eax
push ebx
push str.PATH_s___s_
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x402366
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 9
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
push esi
push str.PATH__s_
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push edi
call dword [sym.imp.MSVCRT.dll__putenv]
pop ecx
pop edi
pop esi
pop ebx
ret
Function at 0x4024c5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 0x414568
push 0x5c
call fcn.00405c1d
push eax
lea eax, [ebp - 0x400]
push 0x414580
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
push dword [0x41d060]
lea eax, [ebp - 0x400]
push eax
call fcn.004041fa
push str.JAVAWS_TRACE_NATIVE
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 0x20
test eax, eax
je 0x40251d
push dword [0x41d060]
call fcn.0040470b
pop ecx
leave
ret

Function at 0x4041fa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411cd0
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__strdup]
mov esi, eax
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0xc
test eax, eax
je 0x40423d
cmp eax, esi
jbe 0x404232
cmp byte [eax - 1], 0x3a
je 0x404232
and byte [eax], 0
jmp 0x404236
and byte [eax + 1], 0
push esi
call fcn.00405066
pop ecx
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov dword [esp], 0x414980
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
je 0x40435f
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x404354
push edi
push dword [ebx]
call fcn.0040418f
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x404298
push esi
call fcn.00402bdb
test eax, eax
pop ecx
je 0x404298
push esi
call fcn.00402c07
cmp eax, 1
pop ecx
jne 0x404348
mov ecx, dword [ebx]
test ecx, ecx
je 0x404348
cmp dword [ebx + 4], 0
je 0x404348
xor eax, eax
mov dl, byte [ecx]
test dl, dl
je 0x4042ce
cmp dl, 0x5c
jne 0x4042c1
mov byte [ebp + eax - 0x1000], dl
inc eax
mov dl, byte [ecx]
mov byte [ebp + eax - 0x1000], dl
inc eax
inc ecx
jmp 0x4042ae
mov byte [ebp + eax - 0x1000], 0x3d
mov ecx, dword [ebx + 4]
inc eax
mov dl, byte [ecx]
test dl, dl
je 0x4042fa
cmp dl, 0x5c
jne 0x4042ed
mov byte [ebp + eax - 0x1000], dl
inc eax
mov dl, byte [ecx]
mov byte [ebp + eax - 0x1000], dl
inc eax
inc ecx
jmp 0x4042da
and byte [ebp + eax - 0x1000], 0
lea edi, [ebp - 0x1000]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
lea eax, [ebp - 0x1000]
dec edi
mov esi, 0x414984
push eax
movsw word es:[edi], word [esi]
call fcn.004057db
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
push dword [ebp + 8]
not ecx
dec ecx
push ecx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x18
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40426e
pop edi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop ebx
pop esi
leave
ret
Function at 0x404ab2
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and word [ebp - 0x14], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x12]
mov dword [ebp - 4], 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00405232
push 0x414dbc
mov word [ebp - 0x14], 2
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x404b39
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, edi
je 0x404b32
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, edi
je 0x404b32
push bind
push esi
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, edi
jne 0x404b3d
push esi
call fcn.004052c1
pop ecx
mov eax, edi
jmp 0x404b50
push dword [ebp - 0x12]
call dword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, dword [ebp + 8]
movzx eax, ax
mov dword [ecx], eax
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x404bd8
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and word [ebp - 0x10], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00405232
push dword [ebp + 8]
mov word [ebp - 0x10], 2
call dword [sym.imp.WSOCK32.dll_htons]
push 0x414dd4
mov word [ebp - 0xe], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x404c42
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, edi
jne 0x404c46
push esi
call fcn.004052c1
pop ecx
mov eax, edi
jmp 0x404c48
mov eax, esi
pop edi
pop esi
leave
ret

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

Disassembly:
cmp dword [esp + 8], 0
push esi
push edi
je 0x404d17
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
inc ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
jne 0x404d1b
xor eax, eax
jmp 0x404d5c
push dword [esp + 0x10]
push str._s_r_n
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
push esi
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push esi
mov edi, ecx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, edi
pop edi
pop esi
ret
Function at 0x404f23
Capabilities:
Delete file
Terminate process

Disassembly:
cmp dword [esp + 4], 0
je 0x404f41
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x404f41
push eax
call dword [sym.imp.MSVCRT.dll_remove]
pop ecx
push 0
call dword [sym.imp.MSVCRT.dll_exit]

Function at 0x405191
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x21010
push 0x415afc
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xb
call fcn.0040694c
mov esi, dword [sym.imp.MSVCRT.dll_fprintf]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call esi
add esp, 0xc
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 0
push edi
je 0x4051db
call dword [sym.imp.MSVCRT.dll_perror]
pop ecx
jmp 0x4051ee
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0x415b18
add eax, 0x40
push eax
call esi
add esp, 0xc
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0xc
call fcn.0040694c
pop ecx
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push 0x415b20
push eax
call esi
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi

Function at 0x405232
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
cmp dword [0x4200c4], 0
jne 0x4052ba
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 1
pop ebx
push str.ws2_32.dll
call edi
mov esi, eax
test esi, esi
jne 0x405278
push str.wsock32.dll
call edi
mov esi, eax
xor ebx, ebx
test esi, esi
jne 0x405278
push 0xd
call fcn.0040694c
push eax
call fcn.00405191
pop ecx
pop ecx
lea eax, [esp + 0xc]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x405298
push 0xe
call fcn.0040694c
push eax
call fcn.00405191
pop ecx
pop ecx
test ebx, ebx
je 0x4052ad
push str.WSASendDisconnect
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4200c0], eax
pop edi
pop esi
mov dword [0x4200c4], 1
pop ebx
add esp, 0x190
ret

Function at 0x4052e6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, edi
mov eax, dword [edi]
test eax, eax
je 0x405307
push eax
call fcn.00404dc5
mov dword [esi], eax
mov eax, dword [esi + 4]
add esi, 4
pop ecx
jmp 0x4052f2
cmp dword [ebp + 8], 1
jne 0x405324
push edi
push dword [ebp + 0xc]
push 1
call dword [sym.imp.MSVCRT.dll__spawnv]
add esp, 0xc
push 0
call dword [sym.imp.MSVCRT.dll_exit]
cmp dword [ebp + 8], 0
jne 0x405341
push edi
push dword [ebp + 0xc]
push 1
call dword [sym.imp.MSVCRT.dll__spawnv]
add esp, 0xc
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
ret
push edi
xor esi, esi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.MSVCRT.dll__spawnv]
add esp, 0xc
test eax, eax
je 0x40533b
or eax, 0xffffffff
jmp 0x40533d