joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e8e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x44e92c
mov eax, esi
call fcn.0043653c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44e92c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x44e92c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x44ea6b
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x44e96c
cmp eax, 0x108
ja 0x44e96c
mov eax, esi
call fcn.0043653c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44ea62
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x44ea6b
jmp 0x44ea62
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x44ea4b
cmp eax, 0x20a
ja 0x44ea4b
test byte [esi + 0x50], 0x80
jne 0x44e99e
sub eax, 0x203
je 0x44e99b
sub eax, 3
je 0x44e99b
sub eax, 3
jne 0x44e99e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x44e9b2
dec eax
je 0x44e9c7
dec eax
je 0x44e9e4
dec eax
je 0x44e9c7
jmp 0x44e9eb
mov ecx, ebx
mov eax, dword [0x461328]
mov eax, dword [eax]
mov edx, esi
call fcn.0043fc0c
jmp 0x44ea62
cmp byte [esi + 0x5d], 1
jne 0x44e9dd
mov eax, esi
mov si, 0xffed
call fcn.004033d8
jmp 0x44ea6b
or word [esi + 0x54], 1
jmp 0x44ea62
and word [esi + 0x54], 0xfffe
jmp 0x44ea62
mov eax, dword [0x462b5c]
cmp byte [eax + 0x20], 0
je 0x44ea62
mov eax, dword [0x462b5c]
cmp dword [eax + 0x1c], 0
je 0x44ea62
mov eax, dword [ebx]
mov edx, dword [0x462b5c]
cmp eax, dword [edx + 0x1c]
jne 0x44ea62
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00436480
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004033d8
jmp 0x44ea6b
cmp eax, 0xb00b
jne 0x44ea62
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0044d20c
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451fd8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x451ff4
cmp dword [esi + 4], 0
je 0x452021
test byte [ebx + 0x55], 1
jne 0x452013
mov eax, ebx
call fcn.00450b78
test eax, eax
jne 0x452013
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x452131
mov edx, esi
mov eax, ebx
call fcn.00451afc
jmp 0x452131
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45212a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00453e48
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0044e814
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00451fd8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00453e48
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452131
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458804
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4614c0]
cmp byte [eax + 0xc], 0
je 0x458971
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45896a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x462bb0], 0
jne 0x458858
push 0x458978
call sub.kernel32.dll_GetModuleHandleA
mov ebx, eax
push 0x458980
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x462bb0], eax
cmp dword [0x460eb0], 0
jne 0x458953
push 0x458990
call sub.kernel32.dll_LoadLibraryA
mov dword [0x460eb0], eax
cmp dword [0x460eb0], 0
je 0x458953
push 0x45899c
mov eax, dword [0x460eb0]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x462bb4], eax
push 0x4589ac
mov eax, dword [0x460eb0]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x462bb8], eax
push 0x4589c0
mov eax, dword [0x460eb0]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x462bbc], eax
push 0x4589d8
mov eax, dword [0x460eb0]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x462bc0], eax
push 0x4589f0
mov eax, dword [0x460eb0]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x462bc4], eax
push 0x458a04
mov eax, dword [0x460eb0]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x462bc8], eax
push 0x458a1c
mov eax, dword [0x460eb0]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x462bcc], eax
push 0x458a34
mov eax, dword [0x460eb0]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x462bd0], eax
push 0x458a50
mov eax, dword [0x460eb0]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x462bd4], eax
push 0x458a5c
mov eax, dword [0x460eb0]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x462bd8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458971
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x505008], 0x8088405
inc edx
mov dword [ebx + 0x505008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d330
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d361
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d349
add dl, dl
jne 0x41d36c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d3bd
xor eax, eax
add dl, dl
jne 0x41d379
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d45a
add dl, dl
jne 0x41d388
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d393
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d39e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3a9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d3b3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d358
mov eax, 1
add dl, dl
jne 0x41d3cb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3d6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3c2
sub eax, ebx
mov ebx, 1
jne 0x41d409
mov ecx, 1
add dl, dl
jne 0x41d3ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3e6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d358
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d420
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d42b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d417
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d358
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d47b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d358
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4e8a8e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f5ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f60e
mov ecx, edx
add ecx, ebx
jmp 0x41f60e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f60e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f680
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f669
test esi, esi
jbe 0x41f680
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f65b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f680
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f638
jmp 0x41f680
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f680
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8a95
ret
Function at 0x4207ec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4e9e07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420827
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420840
lea eax, [ebp - 0x10]
mov edx, dword [0x50777c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420853
lea eax, [ebp - 0x10]
mov edx, dword [0x50777c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42085f
adc edx, 0
mov edx, dword [edx*4 + 0x506568]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4209d9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4209cc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4209cc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4209cc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4209cc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42096a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42096a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42096a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42096a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4209cc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4209cc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4209cc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4209cc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4209cc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4209f1
inc ebx
cmp ebx, 0x19
jne 0x420819
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9e0e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor

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

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax]
sub esp, 0x30
push edi
mov dword [0x45047c], ecx
call fcn.0041c9f0
push 0x4591a0
call fcn.00403a50
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x40]
push eax
mov byte [0x45923a], 1
mov byte [0x459239], 0
call fcn.004011f0
mov eax, dword [esp + 0x44]
mov ecx, dword [0x450444]
add esp, 0xc
xor edi, edi
dec eax
mov dword [0x4394f8], ecx
mov dword [esp + 0x38], eax
js 0x401151
push esi
lea ecx, [ecx]
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
push ecx
add eax, 4
push 0x4591a0
mov dword [esp + 0x48], eax
call fcn.00401880
push 0x44ccd8
mov esi, eax
call fcn.00427201
push 0x44ccf8
call fcn.00427201
mov edx, dword [0x459218]
mov eax, dword [0x45921c]
mov cl, byte [0x459234]
add esp, 0x10
or edx, eax
je 0x401113
test cl, cl
jns 0x401113
mov eax, dword [0x459234]
test eax, 0xb020
jne 0x401113
test cl, 0x20
mov esi, eax
jne 0x4010d2
or eax, 0x8000
and eax, 0xfffffff7
mov dword [0x459234], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 4]
push ecx
push 0x4591a0
call fcn.00401880
push 0x44ccd8
or edi, eax
mov dword [0x459234], esi
call fcn.00427201
push 0x44ccf8
call fcn.00427201
mov cl, byte [0x459234]
add esp, 0x10
jmp 0x401115
or edi, esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x401144
test cl, 2
je 0x401127
test cl, 0x10
je 0x401144
push str._n__________n
call fcn.00427189
push 0x44ccd8
call fcn.00427201
mov cl, byte [0x459234]
add esp, 8
dec dword [esp + 0x3c]
jns 0x401070
pop esi
jmp 0x401157
mov cl, byte [0x459234]
cmp dword [0x45922c], 1
jbe 0x4011b7
test cl, 2
je 0x40116a
test cl, 0x10
je 0x401177
push str._n__________n
call fcn.00427189
add esp, 4
mov eax, dword [0x4591f4]
lea edx, [esp + 4]
push edx
push 0
push eax
call fcn.00423a10
mov edx, dword [0x4591f0]
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push edx
call fcn.00423a10
add esp, 0xc
push eax
mov eax, dword [0x45922c]
push eax
push str._nTotal_of_all__d_ISAM_files:_nData_records:__9s___Deleted_blocks:__9s_n
call fcn.00427148
add esp, 0x10
mov ecx, dword [0x450440]
push ecx
call fcn.0041d170
call fcn.00403a20
mov edx, dword [0x459234]
and edx, 0x10
or edx, 8
shr edx, 3
push edx
call fcn.0041cb00
add esp, 8
push edi
call fcn.00427055
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x41c9f0
Capabilities:
Initialize winsock library

Disassembly:
mov al, byte [0x450471]
test al, al
jne 0x41ca8d
mov byte [0x450471], 1
call fcn.00420520
mov eax, dword [0x450478]
test eax, eax
jne 0x41ca88
call fcn.0041cba0
push str.HOME
call fcn.004281aa
add esp, 4
test eax, eax
mov dword [0x450478], eax
je 0x41ca40
push eax
push 0x450680
call fcn.00421e40
add esp, 8
mov dword [0x450478], eax
push str.UMASK
call fcn.004281aa
add esp, 4
test eax, eax
je 0x41ca64
push eax
call fcn.0041ca90
add esp, 4
or eax, 0x180
mov dword [0x43c920], eax
push str.UMASK_DIR
call fcn.004281aa
add esp, 4
test eax, eax
je 0x41ca88
push eax
call fcn.0041ca90
add esp, 4
or eax, 0x1c0
mov dword [0x43c924], eax
jmp 0x41ccb0
ret
sub esp, 0x190
call fcn.0041cd10
test al, al
je 0x41ccff
lea eax, [esp]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x41ccdb
call sub.WSOCK32.dll_WSACleanup
lea ecx, [esp]
push ecx
jmp 0x41cced
cmp word [esp], 2
je 0x41ccf8
call sub.WSOCK32.dll_WSACleanup
lea edx, [esp]
push edx
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x41ccff
mov byte [0x450470], 1
xor al, al
add esp, 0x190
ret

Function at 0x41cba0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa04
push 0x450448
push 2
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x10], 0x400
call fcn.00428248
add esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMySQL
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41cca1
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 0x41cc94
nop
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x51c]
push edx
call fcn.0041cb80
lea eax, [esp + 0x520]
push eax
call fcn.00430173
lea ecx, [esp + 0x524]
push ecx
call fcn.00432d8a
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 0x41cc20
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xa04
ret
Function at 0x41d6a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x200
push esi
mov esi, dword [esp + 0x208]
push edi
push esi
call fcn.00423180
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
setne cl
push str._nDefault_options_are_read_from_the_following_files_in_the_given_order:
mov edi, ecx
call fcn.00427189
push esi
call fcn.00422ba0
add esp, 0xc
test eax, eax
je 0x41d6ea
push 0x44ccd8
push esi
call fcn.0042785d
add esp, 8
jmp 0x41d7d6
push 0x200
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test edi, edi
mov eax, 0x450448
jne 0x41d708
mov eax, str..ini
push ebp
push eax
push esi
lea eax, [esp + 0x14]
push eax
push str._s_s_s
call fcn.00427148
mov eax, dword [0x43c5fc]
add esp, 0x10
test eax, eax
mov ebp, 0x43c5fc
je 0x41d7c8
mov ecx, dword [0x450474]
mov eax, dword [ebp]
cmp byte [eax], 0
je 0x41d745
push eax
lea ecx, [esp + 0x10]
push ecx
jmp 0x41d74f
test ecx, ecx
je 0x41d7ba
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.004242e6
lea eax, [esp + 0x14]
add esp, 8
push eax
call fcn.00422c20
mov al, byte [esp + 0x10]
add esp, 4
cmp al, 0x7e
jne 0x41d782
or ecx, 0xffffffff
lea edi, [esp + 0xc]
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x43c760]
mov word [edi - 1], cx
push 0
push 0x43c8c8
push str..cnf
lea edx, [esp + 0x18]
push esi
push edx
call fcn.0042417e
add esp, 4
push eax
call fcn.00424790
lea eax, [esp + 0x20]
push 0x44ccd8
push eax
call fcn.0042785d
mov ecx, dword [0x450474]
add esp, 0x1c
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
jne 0x41d735
push 0x450448
call fcn.00427189
add esp, 4
pop ebp
push 0x44ccd8
push str.The_following_groups_are_read:
call fcn.0042785d
mov esi, dword [esp + 0x218]
mov eax, dword [esi]
add esp, 8
test eax, eax
je 0x41d81b
push 0x44ccd8
push 0x20
call fcn.004279bf
mov ecx, dword [esi]
push 0x44ccd8
push ecx
call fcn.0042785d
mov eax, dword [esi + 4]
add esi, 4
add esp, 0x10
test eax, eax
jne 0x41d7f5
push str._nThe_following_options_may_be_given_as_the_first_argument:_n__print_defaults_tPrint_the_program_argument_list_and_exit_n__no_defaults_t_tDont_read_default_options_from_any_options_file_n__defaults_file_tOnly_read_default_options_from_the_given_file__n__defaults_extra_file_Read_this_file_after_the_global_files_are_read
call fcn.00427189
add esp, 4
pop edi
pop esi
add esp, 0x200
ret