joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c5d4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x44c5fa
mov eax, esp
push eax
push 0x44c59c
call sub.user32.dll_EnumWindows
jmp 0x44c60d
mov eax, esp
push eax
push 0x44c57c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x44c698
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44c6ec]
test si, 4
je 0x44c6ad
or bl, 1
test si, 8
je 0x44c6b7
or bl, 4
test si, 1
je 0x44c6c1
or bl, 8
test si, 2
je 0x44c6cb
or bl, 0x10
test si, 0x10
je 0x44c6d5
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c6e4
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44c6f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44c72c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c70a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c719
or bl, 4
test esi, 0x20000000
je 0x44c724
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x454798
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4547aa
add esp, 0xfffffff0
call fcn.00403d1c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ab90
mov eax, dword [0x45c84c]
mov dword [eax + 4], ebx
mov dword [eax], 0x454b3c
mov eax, dword [0x45c858]
mov dword [eax + 4], ebx
mov dword [eax], 0x454b48
mov eax, ebx
call fcn.00454b54
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44fffc
push eax
push 0
push 0
mov eax, dword [0x45c9a0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e734]
call fcn.0041fc54
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e734]
call fcn.0041fc54
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e734]
call fcn.0041fc54
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00454fcc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454e9c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454e9c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454e9c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4548e7
call fcn.00403d74
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x454c80
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 0x454e2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454e0c
mov dl, 1
mov eax, dword [0x4126d8]
call fcn.004039e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004048d8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x454dfb
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.004463f0
test al, al
je 0x454dee
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, 0x454e3c
lea eax, [ebp - 0x254]
call fcn.00409738
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x454dee
xor eax, eax
push ebp
push 0x454de7
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 0x454e74
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x454dd0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b48
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 0x454dd0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454dee
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454cf1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041640c
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 0x454e32
lea eax, [ebp - 0x260]
call fcn.004048d8
ret

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

Disassembly:
push ecx
mov eax, dword [0x461c98]
cmp byte [eax + 0xad], 0
jne 0x455815
cmp dword [0x461cb4], 0
jne 0x4557d6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x455760
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x461cb4], eax
cmp dword [0x461cb0], 0
jne 0x4557f1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x461cb0], eax
cmp dword [0x461cb8], 0
jne 0x455815
push esp
push 0
push 0
push 0x455704
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x461cb8], eax
pop edx
ret
Function at 0x455a18
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x455a2f
add esp, 0xfffffff0
call fcn.00403d1c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ab90
mov eax, dword [0x45c98c]
cmp word [eax + 2], 0
jne 0x455a57
mov eax, dword [0x45c98c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457708
mov eax, dword [0x45ca30]
cmp word [eax + 2], 0
jne 0x455a71
mov eax, dword [0x45ca30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457914
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
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 [0x41ef10]
call fcn.00424ddc
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x455c28
mov eax, dword [0x45c8b0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004251b0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457fd8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45c8b0]
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.0040ce74
test eax, eax
je 0x455b78
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004090f0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cea8
test eax, eax
je 0x455b8c
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.00404b48
mov byte [ebx + 0xd4], 0
push ebx
push 0x457194
call fcn.0041bd0c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x45c7bc]
cmp byte [eax], 0
jne 0x455bdd
mov eax, ebx
call fcn.00455d6c
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.004581ec
mov eax, ebx
call fcn.00458d50
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455c1d
call fcn.00403d74
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455fec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45608b
cmp dword [ebx + 0x94], 0
jne 0x456085
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455f74
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456085
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 0x45604b
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456085
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.004146b4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45605a
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x461c98]
cmp dword [eax + 0x30], 0
je 0x456401
test bl, bl
jne 0x456352
cmp dword [esi + 0x9c], 0
jne 0x456347
mov eax, esi
call fcn.00458bcc
push eax
push 0x4561d0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x456318
mov eax, dword [0x461c98]
call fcn.004592ac
test al, al
je 0x456318
mov eax, dword [0x461cbc]
call fcn.00405794
mov edi, eax
cmp edi, 0
jl 0x456318
push 0
mov eax, dword [0x461cbc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x456302
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x456347
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004146b4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x456327
inc dword [esi + 0x9c]
jmp 0x456401
cmp dword [esi + 0x9c], 0
jle 0x456401
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x456401
cmp dword [esi + 0x44], 0
je 0x4563ad
mov eax, dword [0x461c98]
call fcn.004592ac
test al, al
je 0x4563ad
mov eax, dword [0x461cbc]
call fcn.00405794
mov edi, eax
cmp edi, 0
jl 0x4563ad
push 5
mov eax, dword [0x461cbc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x456397
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4563dc
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004146b4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4563bc
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x461cbc
mov ecx, 1
mov edx, dword [0x4561b0]
call fcn.00405948
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x456ee8
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 0x456f52
mov eax, ebx
call fcn.004592ac
test al, al
jne 0x456f52
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.004049c8
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x456f3f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x456f5f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040492c
jmp 0x456f5f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040492c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x4583d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45843e
mov eax, esi
call fcn.00441194
test al, al
je 0x45843e
mov eax, dword [ebx + 0x84]
call fcn.00440df4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45843e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x458432
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440df4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00438ca4
jmp 0x45843e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045820c
pop esi
pop ebx
ret
Function at 0x4014ea
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x406447
call fcn.00405f80
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
cmp byte [esi + 0x14], al
mov dword [ebp - 4], eax
jne 0x40150f
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x401530
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
and byte [esi + 0x14], 0
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::operator
push esi
push 0
push 0x40155b
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [esi + 4], eax
pop esi
ret 4

Function at 0x4034cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x77352abb
xor ecx, ebp
loop 0x4034d3
pop ebp
ret
Function at 0x403b0b
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, 0x4067c7
call fcn.00405f80
sub esp, 0x518
and dword [ebp - 0x1c], 0
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x13c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [ebp - 0x13c]
and byte [ebp - 0x524], 0
mov byte [ebp - 0x28], al
mov ecx, 0xf9
xor eax, eax
lea edi, [ebp - 0x523]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
stosb byte es:[edi], al
pop ebx
lea eax, [ebp - 0x524]
push eax
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0x14
lea esi, [ebp - 0x524]
pop edi
mov al, byte [esi]
test al, al
je 0x403bab
cmp al, byte [ebp - 0x13c]
je 0x403bab
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x403bab
push esi
call fcn.00403ca2
pop ecx
mov cl, byte [esi]
movsx edx, cl
mov dword [edx*4 + 0x41421c], eax
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov byte [ebp + eax - 0x28], cl
add esi, 4
dec edi
jne 0x403b74
push 0x403c83
push ebx
push dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.MSVCRT.dll_qsort]
mov esi, 0x40a2e0
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x10
lea ecx, [ebp - 0x18]
movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [ebp - 0x10]
xor esi, esi
test edi, edi
mov dword [ebp - 4], ebx
jle 0x403c25
mov al, byte [ebp + esi - 0x28]
push str.king.ini
mov byte [ebp - 0x38], al
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_operator
push dword [eax]
mov byte [ebp - 4], 2
call fcn.00403d38
pop ecx
mov byte [ebp - 0x11], al
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
cmp byte [ebp - 0x11], 0
jne 0x403c72
inc esi
cmp esi, edi
jl 0x403be7
xor esi, esi
test edi, edi
jle 0x403c45
mov al, byte [ebp + esi - 0x28]
mov byte [ebp - 0x38], al
lea eax, [ebp - 0x38]
push eax
call fcn.00403ccd
test al, al
pop ecx
jne 0x403c45
inc esi
cmp esi, edi
jl 0x403c2b
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x1c], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.00405bf6
mov dword [ebp - 0x1c], ebx
jmp 0x403c54
Function at 0x403ccd
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call esi
inc eax
push 0x5c
push eax
call esi
add esp, 0x18
mov edi, eax
test edi, edi
je 0x403d26
and byte [edi], 0
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [edi], 0x5c
inc edi
push 0x5c
push edi
call esi
pop ecx
pop ecx
jmp 0x403d01
push dword [ebp + 8]
call fcn.00403d38
pop ecx
pop edi
test al, al
setne al
pop esi
leave
ret

Function at 0x403d38
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x404063
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
push esi
push edi
push 0x40a300
push dword [esp + 0x18]
call ebp
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4040ce
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
push esi
mov edi, eax
push 1
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
call esi
push 0x40a304
push dword [esp + 0x50]
call ebp
mov ebp, eax
add esp, 0x3c
test ebp, ebp
jne 0x4040d2
xor al, al
jmp 0x4040ec
push ebp
push 1
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call esi
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x18
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x6b83700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.06b8378f
jae 0x6b8370e
xor ecx, ecx
call fcn.06b8378f
jae 0x6b8373d
xor eax, eax
call fcn.06b8378f
jae 0x6b8374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.06b8378f
adc al, al
jae 0x6b8372f
jne 0x6b83779
stosb byte es:[edi], al
jmp 0x6b83711
call fcn.06b8379b
sub ecx, ebx
jne 0x6b83756
call fcn.06b83799
jmp 0x6b83775
lodsb al, byte [esi]
shr eax, 1
je 0x6b83783
adc ecx, ecx
jmp 0x6b83772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.06b83799
cmp eax, 0x7d00
jae 0x6b83772
cmp ah, 5
jae 0x6b83773
cmp eax, 0x7f
ja 0x6b83774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6b83711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x403e59
pop dword [ebp - 0x34]
mov eax, 0x674b1976
sub eax, 0x670adb1d
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x96a3448e
add dword [ebp - 0x44], 0xb7af00bd
mov dword [ebp - 0x40], 0x375bc766
add dword [ebp - 0x40], 0xfad784df
mov dword [ebp - 0x3c], 0x64a3a418
sub dword [ebp - 0x3c], 0x18575fea
mov dword [ebp - 0x38], 0x5f4832ba
add dword [ebp - 0x38], 0xa0b7cd46
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x419d49b9
sub dword [ebp - 0x44], 0xcd2ae063
mov dword [ebp - 0x40], 0xac0e6dfe
add dword [ebp - 0x40], 0x955df377
mov dword [ebp - 0x3c], 0x9d4828e2
add dword [ebp - 0x3c], 0xc627438a
mov dword [ebp - 0x38], 0x1b21295c
add dword [ebp - 0x38], 0xe4ded6a4
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xe902bb15
add eax, 0x173db593
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x33069
push 0
call eax
mov ecx, 0xcc6c4e6a
add ecx, 0x3393eab3
mov edi, eax
mov edx, 0x71aae791
add edx, 0x8e96186f
add edx, dword [ebp - 0x34]
mov esi, 0x4a81f70f
xor dword [ebp - 0x1c], 0xef05b147
mov ebx, dword [edx]
add dword [ebp - 8], eax
sub ebx, esi
add dword [ebp - 0x10], 0x89a8277f
mov dword [edi], ebx
add edi, 0x260861be
add edi, 0xd9f79e46
add edx, 0xd5fc269f
add edx, 0x2a03d965
loop 0x403f70
add eax, 0xd747
xor ebx, ebx
add ebx, eax
add eax, 0x52d02ae5
sub eax, 0x52d02ae0
mov ecx, 0x8badcd30
sub ecx, 0x8b6dcd30
add ecx, dword [ebp - 0x34]
call ebx
leave
ret