joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001406
Capabilities:
Contain obfuscated stackstrings
Get number of processors

Disassembly:
jmp 0x1000f830
push 0xffffffffffffffff
push 0x10020608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov al, 0x65
push ebx
push ebp
mov byte [esp + 0x15], al
mov byte [esp + 0x1c], al
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x14]
push edi
mov cl, 0x69
xor ebx, ebx
push eax
push 0x10006550
mov byte [esp + 0x20], 0x4d
mov byte [esp + 0x21], 0x61
mov byte [esp + 0x22], 0x70
mov byte [esp + 0x23], 0x56
mov byte [esp + 0x24], cl
mov byte [esp + 0x26], 0x77
mov byte [esp + 0x27], 0x4f
mov byte [esp + 0x28], 0x66
mov byte [esp + 0x29], 0x46
mov byte [esp + 0x2a], cl
mov byte [esp + 0x2b], 0x6c
mov byte [esp + 0x2d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x100066ec
push 0x10006550
mov ebp, eax
call esi
push eax
call edi
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x3c]
mov edi, 0x10023068
mov dword [esp + 0x34], ecx
push edx
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0xc
mov dword [esp + 0x3c], ebx
call fcn.10001267
mov dword [esp + 0x2c], eax
neg eax
lea edx, [esp + 0x10]
lea ecx, [esp + 0x30]
sbb eax, eax
push edx
push 0x594
and eax, ecx
push ebx
push 4
push eax
push 0xffffffffffffffff
mov dword [esp + 0x70], ebx
mov byte [esp + 0x28], 0x73
mov byte [esp + 0x29], 0x66
mov byte [esp + 0x2a], 0x74
mov byte [esp + 0x2b], 0x68
mov byte [esp + 0x2c], 0x23
mov byte [esp + 0x2d], 0x64
mov byte [esp + 0x2e], bl
call esi
cmp eax, ebx
mov dword [0x10021ea0], eax
jne 0x1000f949
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], edi
jmp 0x1000f962
push ebx
push ebx
push ebx
push 6
push eax
call ebp
mov dword [0x10021e9c], eax
cmp eax, ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], edi
jne 0x1000f98a
cmp eax, ebx
je 0x1000f975
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
cmp eax, ebx
je 0x1000f99d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x2a650a3
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x62e43f69
nop
nop
nop
nop
test eax, eax
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x99768c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9976b3
call fcn.00939c18
mov dword [eax], esi
call fcn.00939c05
push 0x16
pop esi
mov dword [eax], esi
call fcn.0093a85a
mov eax, esi
jmp 0x997708
test dword [ebp + 0xc], 0xfffffff9
jne 0x997699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9976e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00939c2b
pop ecx
call fcn.00939c05
mov eax, dword [eax]
jmp 0x997708
test al, 0x10
jne 0x997706
test al, 1
je 0x997706
test byte [ebp + 0xc], 2
je 0x997706
call fcn.00939c18
mov dword [eax], 5
call fcn.00939c05
mov dword [eax], 0xd
jmp 0x9976d7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x30e41f84
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x719922dc
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x10004cd0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x10004d02
lea esp, [esp]
test cl, 3
je 0x10004d02
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x11e1a460]
add ecx, 1
sub esi, 1
jne 0x10004ce0
cmp esi, 0x20
push ebx
push edi
jb 0x10004eec
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x11e1a860]
xor edx, dword [ebx*4 + 0x11e1ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x11e1a460]
add ecx, 4
xor edx, dword [eax*4 + 0x11e1b060]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x11e1a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x11e1ac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x11e1a460]
add ecx, 4
xor eax, dword [edx*4 + 0x11e1b060]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x11e1a860]
xor edx, dword [ebx*4 + 0x11e1ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x11e1a460]
xor edx, dword [eax*4 + 0x11e1b060]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x11e1a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x11e1ac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x11e1a460]
xor eax, dword [edx*4 + 0x11e1b060]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x11e1a860]
xor edx, dword [ebx*4 + 0x11e1ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x11e1a460]
xor edx, dword [eax*4 + 0x11e1b060]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x11e1a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x11e1ac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x11e1a460]
and edx, 0xff
xor eax, dword [edx*4 + 0x11e1b060]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x11e1a860]
xor edx, dword [ebx*4 + 0x11e1ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x11e1a460]
add ecx, 4
xor edx, dword [eax*4 + 0x11e1b060]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x11e1a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x11e1ac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x11e1a460]
and edx, 0xff
xor eax, dword [edx*4 + 0x11e1b060]
sub edi, 1
jne 0x10004d12
cmp esi, 4
jb 0x10004f39
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x11e1a860]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x11e1ac60]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x11e1a460]
and eax, 0xff
xor edi, dword [eax*4 + 0x11e1b060]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x10004ef6
test esi, esi
pop edi
pop ebx
je 0x10004f5d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x11e1a460]
add ecx, 1
sub esi, 1
jne 0x10004f40
not eax
pop esi
ret
Function at 0x4056f0
Capabilities:
Encode data using xor

Disassembly:
movsd dword es:[edi], dword [esi]
xor dword [eax - 0x1374aa70], edx
push ebp
mov ebp, esp
push ebp
mov ebp, esp
add eax, 0x8b08758b
push es
test eax, eax
je 0x4056ec
mov ecx, dword [eax]
mov dword [esi], ecx
retf
Function at 0x4017c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x404004]
jne 0x4017ce
repz ret
jmp fcn.00401b99

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x59e2361
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x20d0704a
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401160
Capabilities:
Terminate process

Disassembly:
push str.ERROR:
push 0x4358d0
call fcn.004126f5
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
push 0x4358d0
call fcn.004126ba
push 0x423570
push 0x4358d0
call fcn.004126f5
add esp, 0x1c
push 1
call fcn.00412999
nop
nop
nop
nop

Function at 0x401210
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x423440
mov dword [0x439130], 0x4358b0
mov ecx, dword [esi]
mov edx, dword [edi]
push str.so:::h:j:u:p:P:r:t:_V
push ecx
push edx
mov dword [esp + 0x20], 0
call fcn.00407600
add esp, 0x14
cmp eax, 0xffffffff
je 0x40139a
mov ebx, 1
lea esp, [esp]
add eax, 0xffffffb0
cmp eax, 0x25
ja case.0x401274.90
xor ecx, ecx
mov cl, byte [eax + 0x401400]
jmp dword [ecx*4 + 0x4013d4]
mov dword [0x439180], ebx
jmp 0x401374
mov edx, dword [0x441684]
push 0xa
push 0
push edx
call fcn.00407380
add esp, 0xc
mov dword [0x439188], eax
mov dword [0x43918c], edx
jmp 0x401374
mov eax, dword [0x441684]
push 0xa
push 0
push eax
call fcn.00407380
add esp, 0xc
mov dword [0x439190], eax
mov dword [0x439194], edx
jmp 0x401374
mov ecx, dword [0x441684]
push 0
push ecx
mov dword [0x439198], ebx
call fcn.00403c70
mov dword [str.localhost], eax
jmp 0x401371
mov edx, dword [0x441684]
push edx
mov dword [0x439198], ebx
call fcn.00412bd0
add esp, 4
mov dword [0x4234f4], eax
jmp 0x401374
mov eax, dword [0x441684]
push 0
push eax
mov dword [0x439198], ebx
call fcn.00403c70
mov dword [0x4234fc], eax
jmp 0x401371
mov ecx, dword [0x441684]
push 0x10
push 0x8001
push ecx
call fcn.00406980
add esp, 0xc
test eax, eax
mov dword [0x439130], eax
jne 0x401374
push ebx
call fcn.00412999
mov edx, dword [0x441684]
push 0
push edx
mov dword [0x439198], ebx
call fcn.00403c70
mov dword [str.test], eax
jmp 0x401371
mov eax, dword [0x441684]
push 0
push eax
call fcn.00403c70
mov dword [0x4391a4], eax
add esp, 8
mov edx, dword [esi]
mov eax, dword [edi]
lea ecx, [esp + 0xc]
push ecx
push 0x423440
push str.so:::h:j:u:p:P:r:t:_V
push edx
push eax
call fcn.00407600
add esp, 0x14
cmp eax, 0xffffffff
jne 0x401260
mov ecx, dword [0x424810]
sub dword [edi], ecx
mov edx, dword [0x424810]
mov ecx, dword [esi]
lea eax, [edx*4]
add ecx, eax
pop edi
mov dword [esi], ecx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call fcn.004011f0
push 0
call fcn.00412999
call fcn.004011a0
push 0
call fcn.00412999
jmp 0xbc4053eb
Function at 0x403b80
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x403b8f
mov edi, 1
push edi
call fcn.00413423
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x403be3
push esi
call fcn.00413411
mov esi, eax
call fcn.00408390
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov esi, eax
and esi, 8
je 0x403bc6
mov edx, dword [0x4247f0]
mov dword [0x4247ec], edx
test al, 0x18
je 0x403bd7
push edi
push 0x24
push 5
call fcn.004048d0
add esp, 0xc
test esi, esi
pop esi
je 0x403bfe
push 1
call fcn.00412999
test byte [esp + 0x10], 0x20
je 0x403bfe
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov eax, ebx
pop ebx
ret

Function at 0x403e00
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x30], 3
push 0
jne 0x403e32
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403e2d
or eax, 0xffffffff
ret
mov eax, dword [esp + 0xc]
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push edx
push eax
call sub.WSOCK32.dll_recv
ret

Function at 0x403e50
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x30], 3
push 0
jne 0x403e82
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403e7d
or eax, 0xffffffff
ret
mov eax, dword [esp + 0xc]
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
ret

Function at 0x403ec0
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov edx, dword [ecx + 0x30]
xor eax, eax
cmp edx, 3
mov dword [esp], eax
je 0x403ef7
cmp byte [esp + 0xc], al
je 0x403ee1
mov dword [esp], 1
mov ecx, dword [ecx]
push 4
lea eax, [esp + 4]
push eax
push 8
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
pop ecx
ret
Function at 0x4042a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
push edi
je 0x404395
cmp byte [eax], 0
je 0x404395
mov esi, dword [ebp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
mov edi, esi
call fcn.00404230
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.00404230
mov al, byte [ebp + 0x14]
mov edx, dword [esp + 0x20]
add esp, 0x10
test al, al
je 0x404300
xor edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004043b0
add esp, 8
jmp 0x40431d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
xor ecx, eax
push ecx
xor edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004041a0
add esp, 0xc
cmp byte [ebx], 0
je 0x404356
lea ecx, [esp + 0x20]
inc ebx
push ecx
mov dword [ebp + 0xc], ebx
call fcn.004041e0
fmul qword [0x420228]
push ecx
fstp qword [esp]
call fcn.00413696
fadd qword [0x420220]
add esp, 8
call fcn.00413768
mov byte [esi], al
mov al, byte [ebx]
inc esi
test al, al
jne 0x404322
mov al, byte [ebp + 0x14]
test al, al
jne 0x404398
lea edx, [esp + 0x20]
push edx
call fcn.004041e0
fmul qword [0x420228]
push ecx
fstp qword [esp]
call fcn.00413696
add esp, 8
call fcn.00413768
cmp edi, esi
je 0x404398
xor byte [edi], al
inc edi
cmp edi, esi
jne 0x404382
mov byte [esi], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
pop edi
mov byte [esi], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404460
Capabilities:
Allocate thread local storage
Initialize winsock library

Disassembly:
mov al, byte [0x4391a9]
test al, al
jne 0x4044fd
mov byte [0x4391a9], 1
call fcn.00408280
mov eax, dword [0x4391c8]
test eax, eax
jne 0x4044f8
call fcn.00404590
push str.HOME
call fcn.0041261c
add esp, 4
test eax, eax
mov dword [0x4391c8], eax
je 0x4044b0
push eax
push 0x4393d0
call fcn.00408920
add esp, 8
mov dword [0x4391c8], eax
push str.UMASK
call fcn.0041261c
add esp, 4
test eax, eax
je 0x4044d4
push eax
call fcn.00404500
add esp, 4
or eax, 0x180
mov dword [0x4247cc], eax
push str.UMASK_DIR
call fcn.0041261c
add esp, 4
test eax, eax
je 0x4044f8
push eax
call fcn.00404500
add esp, 4
or eax, 0x1c0
mov dword [0x4247d0], eax
jmp 0x4046a0
ret
sub esp, 0x190
call fcn.00404700
test al, al
je 0x4046ef
lea eax, [esp]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4046cb
call sub.WSOCK32.dll_WSACleanup
lea ecx, [esp]
push ecx
jmp 0x4046dd
cmp word [esp], 2
je 0x4046e8
call sub.WSOCK32.dll_WSACleanup
lea edx, [esp]
push edx
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4046ef
mov byte [0x4391a8], 1
xor al, al
add esp, 0x190
ret
Function at 0x404590
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa04
push 0x439128
push 2
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x10], 0x400
call fcn.00413804
add esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMySQL
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404691
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push edx
mov esi, 1
call edi
cmp eax, 0x103
je 0x404684
nop
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x51c]
push edx
call fcn.00404570
lea eax, [esp + 0x520]
push eax
call fcn.0041d7ae
lea ecx, [esp + 0x524]
push ecx
call fcn.0041e74e
add esp, 0x14
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x118]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
mov eax, esi
push ecx
push eax
push edx
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 0x400
inc esi
call edi
cmp eax, 0x103
jne 0x404610
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xa04
ret

Function at 0x405000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov al, byte [0x4391bc]
test al, al
jne 0x4050a1
mov byte [0x4391bc], 1
call fcn.00404460
call fcn.00401000
mov eax, dword [0x4391c0]
test eax, eax
jne 0x405077
push 0x42479c
push str.mysql
mov dword [0x4391c0], 0xcea
call sub.WSOCK32.dll_getservbyname
test eax, eax
je 0x405058
movzx eax, word [eax + 8]
push eax
call sub.WSOCK32.dll_ntohs
and eax, 0xffff
mov dword [0x4391c0], eax
push str.MYSQL_TCP_PORT
call fcn.0041261c
add esp, 4
test eax, eax
je 0x405077
push eax
call fcn.00412bd0
add esp, 4
mov dword [0x4391c0], eax
mov eax, dword [0x4391c4]
test eax, eax
jne 0x4050a0
push str.MYSQL_UNIX_PORT
mov dword [0x4391c4], 0x423060
call fcn.0041261c
add esp, 4
test eax, eax
je 0x4050a0
mov dword [0x4391c4], eax
ret
jmp fcn.00408310
Function at 0x4059e0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call sub.WSOCK32.dll_connect
ret

Function at 0x408280
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value
Terminate process

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x441a84], eax
jne 0x4082b1
call fcn.00413411
mov eax, dword [eax]
push eax
push str.Cant_initialize_threads:_error__d_n
push 0x4358d0
call fcn.004126f5
add esp, 0xc
push 1
call fcn.00412999
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x441b80
call esi
push 0x441b20
call esi
push 0x441ba0
call esi
push 0x441b40
call esi
push 0x441ae0
call esi
push 0x441b00
call esi
push 0x441ac0
call esi
push 0x441aa0
call esi
push 0x441b60
call esi
call fcn.0040c980
pop esi
jmp fcn.00408310

Function at 0x408310
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push 0x441b40
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x441a84]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x408381
push 0x3c
push 1
call fcn.004148b1
mov esi, eax
add esp, 8
test esi, esi
jne 0x40834d
push 0x441b40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop esi
ret
mov ecx, dword [0x441a84]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x441688]
inc eax
lea edx, [esi + 0xc]
mov dword [0x441688], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
add esi, 4
push esi
call fcn.0040c990
add esp, 8
push 0x441b40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop esi
ret