joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a218
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46a3c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46a3a4
mov dl, 1
mov eax, dword [0x41cdd0]
call fcn.00404878
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004057e8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46a393
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0045b37c
test al, al
je 0x46a386
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x46a3d4
lea eax, [ebp - 0x254]
call fcn.0040ba64
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46a386
xor eax, eax
push ebp
push 0x46a37f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46a40c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46a368
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405a58
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46a368
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405a58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a386
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46a289
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.004219e0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a3ca
lea eax, [ebp - 0x260]
call fcn.004057e8
ret

Function at 0x46ad3c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x575ca0]
cmp byte [eax + 0xad], 0
jne 0x46adad
cmp dword [0x575cbc], 0
jne 0x46ad6e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46acf8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x575cbc], eax
cmp dword [0x575cb8], 0
jne 0x46ad89
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x575cb8], eax
cmp dword [0x575cc0], 0
jne 0x46adad
push esp
push 0
push 0
push 0x46ac9c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x575cc0], eax
pop edx
ret
Function at 0x46afb0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46afc7
add esp, 0xfffffff0
call fcn.00404c0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004285f8
mov eax, dword [0x56fdc4]
cmp word [eax + 2], 0
jne 0x46afef
mov eax, dword [0x56fdc4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046ccb8
mov eax, dword [0x570130]
cmp word [eax + 2], 0
jne 0x46b009
mov eax, dword [0x570130]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046cec4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41c764]
call fcn.00404878
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41c764]
call fcn.00404878
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41c764]
call fcn.00404878
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42d044]
call fcn.004347d0
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x46b1c0
mov eax, dword [0x56f920]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00434ba4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46d598
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x56f920]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ffc4
test eax, eax
je 0x46b110
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040b3ac
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040fff8
test eax, eax
je 0x46b124
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405a58
mov byte [ebx + 0xd4], 0
push ebx
push 0x46c72c
call fcn.00429774
mov dword [ebx + 0xc8], eax
mov eax, dword [0x56f348]
cmp byte [eax], 0
jne 0x46b175
mov eax, ebx
call fcn.0046b304
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0046d7ac
mov eax, ebx
call fcn.0046e310
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46b1b5
call fcn.00404c64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b584
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x46b623
cmp dword [ebx + 0x94], 0
jne 0x46b61d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46b50c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46b61d
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46b5e3
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46b61d
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041f0e4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46b5f2
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46b83c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x575ca0]
cmp dword [eax + 0x30], 0
je 0x46b999
test bl, bl
jne 0x46b8ea
cmp dword [esi + 0x9c], 0
jne 0x46b8df
mov eax, esi
call fcn.0046e18c
push eax
push 0x46b768
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x46b8b0
mov eax, dword [0x575ca0]
call fcn.0046e86c
test al, al
je 0x46b8b0
mov eax, dword [0x575cc4]
call fcn.00406f44
mov edi, eax
cmp edi, 0
jl 0x46b8b0
push 0
mov eax, dword [0x575cc4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46b89a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46b8df
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041f0e4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46b8bf
inc dword [esi + 0x9c]
jmp 0x46b999
cmp dword [esi + 0x9c], 0
jle 0x46b999
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x46b999
cmp dword [esi + 0x44], 0
je 0x46b945
mov eax, dword [0x575ca0]
call fcn.0046e86c
test al, al
je 0x46b945
mov eax, dword [0x575cc4]
call fcn.00406f44
mov edi, eax
cmp edi, 0
jl 0x46b945
push 5
mov eax, dword [0x575cc4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46b92f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46b974
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041f0e4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46b954
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x575cc4
mov ecx, 1
mov edx, dword [0x46b748]
call fcn.004070f8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x46c480
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x46c4ea
mov eax, ebx
call fcn.0046e86c
test al, al
jne 0x46c4ea
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004058d8
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x46c4d7
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46c4f7
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040583c
jmp 0x46c4f7
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040583c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x46d990
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46d9fe
mov eax, esi
call fcn.00455f68
test al, al
je 0x46d9fe
mov eax, dword [ebx + 0x84]
call fcn.00455bc8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46d9fe
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x46d9f2
push 0
mov eax, dword [ebx + 0x84]
call fcn.00455bc8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0044da38
jmp 0x46d9fe
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0046d7cc
pop esi
pop ebx
ret
Function at 0x46e95c
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x46e9f6
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push edx
pop edx
mov byte [ebp + edi + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push edx
pop edx
mov byte [ebp + edi + 2], dl
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x46e97b
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x46ea0c
dec edx
je 0x46ea41
jmp 0x46ea92
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x46ea92
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi + 1], al
movzx eax, byte [esi + ebx + 1]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46eb04
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x46eb23
add edx, 3
sar edx, 2
test edx, edx
jle 0x46ec31
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x46eb58
je 0x46eb9b
sub ecx, 0x2b
je 0x46eb91
sub ecx, 4
je 0x46eb96
dec ecx
sub ecx, 0xa
jb 0x46eb83
jmp 0x46eb9e
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x46eb6a
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x46eb75
jmp 0x46eb9e
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x46eb9e
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x46eb9e
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x46eb9e
mov byte [eax], 0x3e
jmp 0x46eb9e
mov byte [eax], 0x3f
jmp 0x46eb9e
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x46eb3b
movzx eax, byte [esp + 4]
add eax, eax
add eax, eax
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x46ebef
cmp byte [esp + 7], 0xff
jne 0x46ebef
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x46ec26
cmp dl, 0xff
je 0x46ec26
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x46eb32
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x4892f4
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
test dl, dl
je 0x48930d
add esp, 0xfffffff0
call fcn.00404c0c
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x489382
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.0041fa98
xor edx, edx
mov eax, esi
call fcn.004894f4
xor edx, edx
mov eax, esi
call fcn.00489518
xor eax, eax
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 0x28], eax
xor eax, eax
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0x10]
call fcn.0041a058
lea edx, [ebp - 0x10]
lea eax, [esi + 0x18]
call fcn.00413008
mov byte [esi + 0x39], 0
mov byte [esi + 0x30], 1
lea eax, [esi + 0x10]
call fcn.004057e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489389
lea eax, [ebp - 0x10]
call fcn.00412cf4
ret
Function at 0x4d51d8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x4d51ed
add esp, 0xfffffff0
call fcn.00404c0c
mov dword [ebp - 4], ecx
mov byte [ebp - 5], dl
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00407970
mov eax, dword [ebp + 0xc]
call fcn.00407970
mov eax, dword [ebp + 8]
call fcn.00407970
xor eax, eax
push ebp
push 0x4d52a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, edi
call fcn.004a9f98
lea eax, [edi + 0x34]
mov edx, dword [ebp - 4]
call fcn.00407914
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x30], eax
xor eax, eax
mov dword [edi + 0x38], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0xc]
mov esi, eax
test esi, esi
jle 0x4d527b
mov ebx, 1
mov edx, ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x10]
test al, al
je 0x4d5277
mov edx, ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x48]
add al, 0xfe
sub al, 4
jae 0x4d5277
mov dword [edi + 0x38], ebx
jmp 0x4d527b
inc ebx
dec esi
jne 0x4d5254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d52a8
lea eax, [ebp - 4]
call fcn.004078fc
lea eax, [ebp + 8]
call fcn.004078fc
lea eax, [ebp + 0xc]
call fcn.004078fc
ret

Function at 0x4fa818
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4fa907
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 3
mov edx, 7
mov eax, ebx
call fcn.004fa534
test al, al
je 0x4fa857
lea eax, [ebp - 4]
mov edx, 0x4fa920
call fcn.00405880
jmp 0x4fa864
lea eax, [ebp - 4]
mov edx, 0x4fa9bc
call fcn.00405880
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x238]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0xc]
test al, al
jne 0x4fa8b7
lea edx, [ebp - 0x14]
mov eax, dword [0x570650]
call fcn.00407e6c
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x409250]
call fcn.0040f0c4
call fcn.0040515c
mov edx, 0x4fa9f8
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov ebx, eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa90e
lea eax, [ebp - 0x14]
call fcn.004057e8
lea eax, [ebp - 0x10]
call fcn.004078fc
lea eax, [ebp - 0xc]
call fcn.004078fc
lea eax, [ebp - 8]
call fcn.004078fc
lea eax, [ebp - 4]
call fcn.004057e8
ret
Function at 0x50b9dc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x50b9f1
add esp, 0xfffffff0
call fcn.00404c0c
mov dword [ebp - 4], ecx
mov byte [ebp - 5], dl
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00407970
mov eax, dword [ebp + 0xc]
call fcn.00407970
mov eax, dword [ebp + 8]
call fcn.00407970
xor eax, eax
push ebp
push 0x50baa5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, edi
call fcn.004a9f98
lea eax, [edi + 0x34]
mov edx, dword [ebp - 4]
call fcn.00407914
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x30], eax
xor eax, eax
mov dword [edi + 0x38], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0xc]
mov esi, eax
test esi, esi
jle 0x50ba7f
mov ebx, 1
mov edx, ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x10]
test al, al
je 0x50ba7b
mov edx, ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x48]
add al, 0xfe
sub al, 4
jae 0x50ba7b
mov dword [edi + 0x38], ebx
jmp 0x50ba7f
inc ebx
dec esi
jne 0x50ba58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50baac
lea eax, [ebp - 4]
call fcn.004078fc
lea eax, [ebp + 8]
call fcn.004078fc
lea eax, [ebp + 0xc]
call fcn.004078fc
ret

Function at 0x522914
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
test dl, dl
je 0x52292e
add esp, 0xfffffff0
call fcn.00404c0c
mov dword [ebp - 4], ecx
mov byte [ebp - 5], dl
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00407970
mov eax, dword [ebp + 0xc]
call fcn.00407970
mov eax, dword [ebp + 8]
call fcn.00407970
xor eax, eax
push ebp
push 0x522a26
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, edi
call fcn.004a9f98
lea edx, [ebp - 0xc]
mov eax, dword [0x51fbdc]
call fcn.0051fcf0
mov edx, dword [ebp - 0xc]
lea eax, [edi + 0x30]
call fcn.00407914
mov eax, dword [ebp - 4]
push eax
mov eax, dword [edi + 0x30]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
call fcn.00407a80
push 0x522a54
mov eax, dword [edi + 0x30]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.00407a80
push 1
mov eax, dword [edi + 0x30]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
call fcn.00407a80
xor eax, eax
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0xc]
mov esi, eax
test esi, esi
jle 0x5229f8
mov ebx, 1
mov edx, ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x10]
test al, al
je 0x5229f4
mov edx, ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x48]
add al, 0xfe
sub al, 4
jae 0x5229f4
mov dword [edi + 0x34], ebx
jmp 0x5229f8
inc ebx
dec esi
jne 0x5229d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x522a2d
lea eax, [ebp - 0xc]
call fcn.004078fc
lea eax, [ebp - 4]
call fcn.004078fc
lea eax, [ebp + 8]
call fcn.004078fc
lea eax, [ebp + 0xc]
call fcn.004078fc
ret
Function at 0x53efb8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x53f041
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x576df0
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x53f02b
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040e88c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x53f058
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x570374]
mov dl, 1
mov eax, dword [0x53e31c]
call fcn.0040f1bc
call fcn.0040515c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53f048
lea eax, [ebp - 0x1c]
call fcn.004057e8
ret

Function at 0x53f634
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x53f690]
cmp al, byte [ebx + 0x28]
je 0x53f658
mov esi, 0x401
mov eax, ebx
call fcn.0053f780
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x53f690]
cmp al, byte [ebx + 0x28]
jne 0x53f688
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x53f714
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0053f634
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00404aa4
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x53f778
call fcn.0053ef00
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x53f76a
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00404aa4
pop esi
pop ebx
ret

Function at 0x53f844
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00405c78
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403ca0
test ebx, ebx
je 0x53f893
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [esp + 4], cl
movzx ecx, byte [edx + 1]
mov byte [esp + 5], cl
movzx ecx, byte [edx + 2]
mov byte [esp + 6], cl
movzx eax, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret