joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019233
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push str.client_hall.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1001926e
push 6
call fcn.100377d0
add esp, 4
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x1007485f]
fstp qword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
push 1
push 0xa3c
push 1
push 4
push 1
push 0x2868
push 3
fld qword [ebp - 0x20]
call fcn.10001a79
push eax
call fcn.100186fa
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.1001808b
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1001932d
push ebx
call fcn.100377ca
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_getpeername
push 0
lea eax, [ebp - 8]
push eax
push 1
mov ebx, 0xc
mov eax, 0x10055120
call fcn.10037b70
add esp, 0x10
mov dword [ebp - 0xc], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10019369
mov eax, 0x100742da
push eax
push 1
mov ebx, 0x194
call fcn.10037d60
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 0
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_send]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x100193ac
push 6
call fcn.100377d0
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x10019437
push reloc.WS2_32.dll_getpeername
push 0
lea eax, [ebp - 8]
push eax
push 1
mov ebx, 0xc
mov eax, 0x10055120
call fcn.10037b70
add esp, 0x10
mov dword [ebp - 0xc], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x100193f1
mov eax, 0x100742da
push eax
push 1
mov ebx, 0x194
call fcn.10037d60
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 0
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [0x10076bd0]
call dword [sym.imp.WS2_32.dll_send]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10019437
push 6
call fcn.100377d0
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10019447
push ebx
call fcn.100377ca
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x10020867
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push edx
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x100208a0
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x1002088e
mov al, 1
jmp 0x100208e8
cmp dword [ebx + 0x54], ecx
jne 0x10020897
mov al, 2
jmp 0x100208e8
cmp dword [ebx + 0x7c], ecx
jmp 0x100208e8
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x100208b5
mov al, 4
jmp 0x100208e8
cmp ecx, 5
jne 0x100208d5
cmp ebx, 0
jne 0x100208c3
mov al, 5
jmp 0x100208e8
cmp ebx, 1
jne 0x100208cc
mov al, 6
jmp 0x100208e8
cmp ebx, 2
jne 0x100208d5
mov al, 7
jmp 0x100208e8
cmp ecx, 6
jne 0x100208e8
cmp ebx, 0
jne 0x100208e1
mov al, 8
cmp ebx, 1
jne 0x100208e8
mov al, 9
pop ebx
pop edx
leave
ret
Function at 0x10025873
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.10038620
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100258b8
push ebx
call fcn.100377ca
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x100258e3
push 6
call fcn.100377d0
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100258f6
mov eax, 0x1007445f
push eax
push 1
mov ebx, 0x170
call fcn.10038ca0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x10025914
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10025925
push ebx
call fcn.100377ca
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x10026eec
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
and eax, 1
leave
ret
Function at 0x10029719
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10029754
push 6
call fcn.100377d0
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.10038db0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100297b7
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.10038970
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x100297db
push 6
call fcn.100377d0
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.10038db0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1002983e
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.10038970
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10029862
push 6
call fcn.100377d0
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.10038db0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100298c5
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.10038970
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x100298cd
mov esp, ebp
pop ebp
ret
Function at 0x1002dd66
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1002ddac
push 6
call fcn.100377d0
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x100745df]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.10001a79
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.10038620
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1002ddff
push ebx
call fcn.100377ca
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1002de38
push 6
call fcn.100377d0
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x1002de54
push eax
mov ebx, eax
call fcn.10002038
inc eax
push eax
call fcn.100377c4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1002de59
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1002de6a
push ebx
call fcn.100377ca
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10037d40
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x10037d5e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10037d53
pop esi
ret

Function at 0x10038990
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x100389f9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.10037a00
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x10038df0
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x11c
test eax, eax
jne 0x10038e14
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x10038e72
jmp 0x10038e36
mov edx, dword [esp + 0x124]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x10038e72
mov cl, byte [edx]
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x18], cl
lea edx, [esp + 8]
lea eax, [esp]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x2a], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x10038e72
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov ecx, 0xa
call fcn.10056500
add esp, 0x11c
ret
or eax, 0xffffffff
add esp, 0x11c
ret
Function at 0x10038f30
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
push edi
ja 0x10038fb0
je 0x10038fa1
cmp eax, 0x80000101
ja 0x10038f9a
je 0x10038fa1
cmp eax, reloc.WS2_32.dll_connect
je 0x10038f7d
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x10038fc5
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 3
test eax, eax
je 0x1003900b
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x1003900b
mov ebp, dword [esp + 0x44]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 1
mov ebx, ecx
inc ebx
jmp 0x1003900b
cmp eax, 0x80000201
jne 0x10038fc5
mov ebx, 4
lea ebp, [esp + 0x44]
mov dword [esp + 0xc], ebx
jmp 0x1003900b
cmp eax, 0x80000401
je 0x10038ff6
cmp eax, 0x80000501
je 0x10038fe2
cmp eax, 0x80000601
je 0x10038fce
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.100561e4
jmp 0x10039003
fld dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.100561e4
jmp 0x10039003
mov eax, dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
lea ebp, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.1003ace0
mov edi, dword [esp + 0x3c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x20], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
test edx, edx
je 0x100390e6
test ecx, ecx
je 0x100390e6
inc ecx
push esi
push ecx
call fcn.10066747
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10056520
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10039088
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100390dc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100390d1
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.10066770
add esp, 4
pop esi
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x1003c4e0
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.WS2_32.dll_connect
ret
Function at 0x100413d0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x100413e0
mov esi, 1
push esi
call fcn.10056b85
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10041432
call fcn.10057b82
mov edi, eax
call fcn.10043f30
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x10041416
mov edx, dword [0x100799b0]
mov dword [0x100799ac], edx
test al, 0x18
je 0x10041427
push esi
push 0x24
push 5
call fcn.10044780
add esp, 0xc
test edi, edi
je 0x1004144d
push 1
call fcn.10057614
test byte [esp + 0x14], 0x20
je 0x1004144d
mov ecx, esi
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
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x10042550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x10042644
cmp byte [edx], 0
je 0x10042637
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.100424d0
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.100424d0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.10042440
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x10042601
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.10042480
fmul qword [0x1006d6c0]
push ecx
fstp qword [esp]
call fcn.1005642e
fadd qword [0x1006d6b8]
add esp, 8
call fcn.100561e4
mov byte [ebx], al
inc ebx
dec edi
jne 0x100425d4
lea ecx, [esp + 0x20]
push ecx
call fcn.10042480
fmul qword [0x1006d6c0]
push ecx
fstp qword [esp]
call fcn.1005642e
add esp, 8
call fcn.100561e4
cmp esi, ebx
je 0x1004262d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x10042626
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10042730
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push edi
lea edi, [eax + ecx]
cmp eax, edi
jae 0x10042758
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
mov dl, byte [eax]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
inc eax
cmp eax, edi
jb 0x10042749
pop esi
pop edi
ret
Function at 0x10042a10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x10042a40
mov byte [edi + esi], 2
jmp 0x10042a77
test al, 4
je 0x10042a4a
mov byte [edi + esi], 0xd
jmp 0x10042a77
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x10042a63
mov byte [edi + esi], 2
jmp 0x10042a77
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x10042a73
mov byte [edi + esi], 0x19
jmp 0x10042a77
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x10042a27
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x10042aeb
cmp dl, 0xd
je 0x10042aeb
xor edx, edx
jmp 0x10042af0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x10042adb
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x10042b10
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.100413d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10042b31
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.10044170
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x10042b56
push esi
call fcn.10041460
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.10062270
push ebx
push edi
mov ebp, eax
call fcn.100441e0
push 0x10042b90
push ebp
push esi
call fcn.10045510
push esi
call fcn.10041460
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x10043a70
Capabilities:
Allocate thread local storage

Disassembly:
mov al, byte [0x10134ed9]
test al, al
jne 0x10043b14
mov byte [0x10134ed9], 1
call fcn.10043da0
test al, al
je 0x10043a90
mov al, 1
ret
mov eax, dword [0x10134ef0]
test eax, eax
jne 0x10043b0f
call fcn.10043ba0
push str.HOME
call fcn.100578b2
add esp, 4
test eax, eax
mov dword [0x10134ef0], eax
je 0x10043ac7
push eax
push 0x101350f8
call fcn.10047610
add esp, 8
mov dword [0x10134ef0], eax
push str.UMASK
call fcn.100578b2
add esp, 4
test eax, eax
je 0x10043aeb
push eax
call fcn.10043b20
add esp, 4
or eax, 0x180
mov dword [0x10079984], eax
push str.UMASK_DIR
call fcn.100578b2
add esp, 4
test eax, eax
je 0x10043b0f
push eax
call fcn.10043b20
add esp, 4
or eax, 0x1c0
mov dword [0x10079988], eax
call fcn.10043cb0
xor al, al
ret

Function at 0x10043ba0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa04
push 0x10134eb8
push 2
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x10], 0x400
call fcn.100584e8
push 0x100781e8
call fcn.10058433
add esp, 0xc
call fcn.10058196
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 0x10043ca8
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 0x10043c9b
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x51c]
push edx
call fcn.10043b80
lea eax, [esp + 0x520]
push eax
call fcn.100596cb
push eax
call fcn.10058433
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
mov eax, esi
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 0x400
inc esi
call edi
cmp eax, 0x103
jne 0x10043c2e
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xa04
ret

Function at 0x10043cb0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
call fcn.10043d10
test al, al
je 0x10043cff
lea eax, [esp]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x10043cdb
call sub.WS2_32.dll_WSACleanup
lea ecx, [esp]
push ecx
jmp 0x10043ced
cmp word [esp], 2
je 0x10043cf8
call sub.WS2_32.dll_WSACleanup
lea edx, [esp]
push edx
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x10043cff
mov byte [0x10134ed8], 1
xor al, al
add esp, 0x190
ret
Function at 0x10043da0
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x101429c4], eax
jne 0x10043dcd
call fcn.10057b82
mov eax, dword [eax]
push eax
push str.Cant_initialize_threads:_error__d_n
push 0x10124f50
call fcn.10057716
add esp, 0xc
mov al, 1
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10142b00
call esi
push 0x10142a80
call esi
push 0x10142aa0
call esi
push 0x10142a40
call esi
push 0x10142a60
call esi
push 0x10142a00
call esi
push 0x101429e0
call esi
push 0x10142ac0
call esi
call fcn.10047920
push 0x10142ae0
call esi
push 0x10142a20
call esi
call fcn.10043ea0
test al, al
pop esi
je 0x10043e31
call fcn.10043e40
mov al, 1
ret
xor al, al
ret

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

Disassembly:
push ebx
push esi
push 0x10142aa0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x101429c4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x10043f1b
push 0x4c
push 1
call fcn.100573ca
mov esi, eax
add esp, 8
test esi, esi
jne 0x10043ee3
push 0x10142aa0
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x101429c4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x10134edc]
inc eax
lea edx, [esi + 0xc]
mov dword [0x10134edc], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.10047930
add esp, 8
mov byte [esi + 0x3c], 1
push 0x10142aa0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
Function at 0x100443a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.10057b82
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.10062270
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x1004449a
call fcn.10057b82
cmp dword [eax], 0
je 0x100443e7
call fcn.10057b82
mov ebp, dword [eax]
jmp 0x100443ea
or ebp, 0xffffffff
call fcn.10043f30
test esi, esi
mov dword [eax], ebp
jne 0x100443ff
call fcn.10057b82
cmp dword [eax], 4
je 0x1004444f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x10044432
cmp esi, 0xffffffff
je 0x10044474
test al, 6
je 0x10044432
call fcn.10043f30
mov ecx, dword [eax]
push ecx
push ebx
call fcn.10047960
add esp, 4
push eax
push 0x24
push 9
call fcn.10044780
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x10044492
test al, 6
je 0x10044440
test ah, 2
je 0x10044492
test esi, esi
jbe 0x1004449e
test ah, 2
je 0x1004449e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.10057b82
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.10062270
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x1004449a
jmp 0x100443d4
call fcn.10043f30
mov eax, dword [eax]
push eax
push ebx
call fcn.10047960
add esp, 4
push eax
push 0x24
push 2
call fcn.10044780
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x100444ab
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x100444b4
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret