joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4054e0
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1034
call fcn.00410c00
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x436c48], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x405524
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [0x42c508]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42c50c]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004054d9
mov eax, dword [0x42c510]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42c514]
add ebx, 0x23f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x436c48], 0xc
mov dword [ebp - 4], eax
jne 0x4055c2
lea eax, [ebp - 0x834]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1034]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x436c48]
cmp eax, 0xfa9
jne 0x4055de
mov dword [0x4361e4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4055eb
mov dword [0x435b90], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x4361e0], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x436c48], 0x213
mov dword [ebp - 0x14], edx
jne 0x405625
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.004054d3
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x2c]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x405560
cmp dword [0x436c48], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x40568e
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x405a02
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x436c48], 0x400
push edi
jne 0x405a69
push esi
push esi
call fcn.00405f35
push esi
push esi
call fcn.00405f35
push esi
push esi
call fcn.00406198
push esi
push esi
push esi
call fcn.004065b9
add esp, 0x20
mov dword [esp], esi
call fcn.00405457
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00405434
fstp st(0)
push esi
call fcn.0040666f
pop ecx
push esi
push esi
call fcn.00405e29
pop ecx
pop ecx
mov eax, dword [0x42cb94]
mov dword [0x436c48], eax
mov eax, dword [0x42cb6c]
mov dword [0x436c4c], eax
call fcn.0040572c
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x405ad0
cmp dword [esp + 0x18], 0x785074d5
jne 0x405ade
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x405a8b
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x4051bc
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x405b0f
cmp dword [esp + 0x18], 0x785074d5
jne 0x405b18
inc edi
cmp edi, 0x11915
jl 0x405ae0
mov eax, dword [0x435b98]
mov dword [0x4361dc], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406fe0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b118]
jne 0x406fea
repz ret
jmp fcn.0040b622
Function at 0x40b345
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004090ad
and dword [ebp - 4], 0
cmp dword [0x42d440], 0
mov ebx, eax
jne 0x40b3f6
push 0x4025c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b4a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4025b4
push edi
call esi
test eax, eax
je 0x40b4a7
push eax
call fcn.0040903b
mov dword [esp], 0x4025a4
push edi
mov dword [0x42d440], eax
call esi
push eax
call fcn.0040903b
mov dword [esp], 0x402590
push edi
mov dword [0x42d444], eax
call esi
push eax
call fcn.0040903b
mov dword [esp], 0x402574
push edi
mov dword [0x42d448], eax
call esi
push eax
call fcn.0040903b
pop ecx
mov dword [0x42d450], eax
test eax, eax
je 0x40b3f6
push 0x40255c
push edi
call esi
push eax
call fcn.0040903b
pop ecx
mov dword [0x42d44c], eax
mov eax, dword [0x42d44c]
cmp eax, ebx
je 0x40b44e
cmp dword [0x42d450], ebx
je 0x40b44e
push eax
call fcn.004090b6
push dword [0x42d450]
mov esi, eax
call fcn.004090b6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b44e
test edi, edi
je 0x40b44e
call esi
test eax, eax
je 0x40b445
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b445
test byte [ebp - 0xc], 1
jne 0x40b44e
or dword [ebp + 0x10], 0x200000
jmp 0x40b487
mov eax, dword [0x42d444]
cmp eax, ebx
je 0x40b487
push eax
call fcn.004090b6
pop ecx
test eax, eax
je 0x40b487
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b487
mov eax, dword [0x42d448]
cmp eax, ebx
je 0x40b487
push eax
call fcn.004090b6
pop ecx
test eax, eax
je 0x40b487
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42d440]
call fcn.004090b6
pop ecx
test eax, eax
je 0x40b4a7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b4a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e3c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e95
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402cd8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402cd8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e7f
inc ebx
jmp 0x402e68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e9c
lea eax, [ebp - 8]
call fcn.004045e8
ret

Function at 0x402ea4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045e8
test esi, esi
jne 0x402edb
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004046d8
jmp 0x402efc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cd8
mov dword [esp], eax
test esi, esi
je 0x402efc
cmp dword [ebx], 0
je 0x402efc
dec esi
jmp 0x402ee3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4035d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48f020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403670
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403650
xor eax, eax
push ebp
push 0x403649
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40368c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403650
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x48f020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48f020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4043c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49204c], 0
je 0x404421
cmp word [0x492220], 0xd7b2
jne 0x4043e9
cmp dword [0x492228], 0
jbe 0x4043e9
mov eax, 0x49221c
call dword [0x492238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48f06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404448
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48f030], 0
jne 0x40443d
push 0
push 0x48f064
push 0x48f06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40459c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a78
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404564
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4067e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40684a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404858
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040316c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406834
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406851
lea eax, [ebp - 0x10]
call fcn.004045e8
ret

Function at 0x4099c8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x4099f9
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x409a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x409a31
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x409b18
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404aa8
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40cfdc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40d024
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.004046d8
jmp 0x40d02f
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.0040463c
mov esp, ebp
pop ebp
ret 4

Function at 0x40d038
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d066
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40d06c
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret
Function at 0x40d7f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040d63c
mov eax, dword [0x4914f4]
cmp byte [eax], 0
je 0x40d887
mov eax, dword [0x4911f4]
call fcn.00402f9c
call fcn.00402c04
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.00409d44
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40d8cc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d8bd
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x49117c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x492668]
call fcn.00405c50
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov esp, ebp
pop ebp
ret

Function at 0x40e2e8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40e3c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404680
lea eax, [ebp - 0xc]
call fcn.00404af8
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404aa8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40e3b0
mov eax, dword [ebp - 0x10]
call fcn.00402a78
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40e3a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404aa8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e393
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x40e3d4
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e393
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3b0
mov eax, dword [ebp - 0x18]
call fcn.00402aa8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3cd
lea eax, [ebp - 0xc]
call fcn.004045e8
ret
Function at 0x40eaac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40eb16
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.00404858
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409654
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb1d
lea eax, [ebp - 0x14]
call fcn.004045e8
ret

Function at 0x419e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.004048a8
test eax, eax
jle 0x419e9d
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
shl eax, 2
mov edx, dword [ebp - 0xc]
shr edx, 0x1e
or eax, edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx - 1]
xor eax, edx
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x419e77
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x420084
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x4200ba
push ebp
call fcn.00420014
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x4200e0
push ebp
call fcn.00420014
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.0041fa10
mov esp, ebp
pop ebp
ret 4

Function at 0x4265ec
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setge dl
mov eax, dword [ebp - 4]
call fcn.004263f4
cmp dword [ebp - 8], 1
jne 0x426620
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 0
pop ecx
pop ecx
pop ebp
ret
Function at 0x428270
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x49288c], 0
jne 0x42832d
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x492888]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x48f4a4
mov ecx, 2
call fcn.00402c98
mov edx, 0x428220
mov eax, dword [ebp - 8]
add eax, 5
call fcn.00428240
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.00428240
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [0x49288c]
mov dword [eax + 5], edx
mov eax, dword [ebp - 0xc]
mov dword [0x49288c], eax
add dword [ebp - 0xc], 0xd
jno 0x428311
call fcn.004036b0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
jno 0x42831e
call fcn.004036b0
cmp eax, 0xffc
jl 0x4282d8
mov eax, dword [ebp - 8]
mov dword [0x492888], eax
mov eax, dword [0x49288c]
mov dword [ebp - 4], eax
mov eax, dword [0x49288c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x49288c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x429590
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x429596
ret

Function at 0x42c26c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x42c2bd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42c2a4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42c294
jmp 0x42c2bd
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42c2a5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435684
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
cmp byte [0x48fa0c], 0
jne 0x43575f
mov byte [0x48fa0c], 1
xor eax, eax
mov dword [0x48fa04], eax
mov dword [ebp - 0xac], 0x94
lea eax, [ebp - 0xac]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0xa8], 3
ja 0x4356d9
cmp dword [ebp - 0xa8], 3
jne 0x435735
cmp dword [ebp - 0xa4], 0x33
jbe 0x435735
mov dword [ebp - 8], 9
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x435764
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43575f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x11]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x435794
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43575f
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp byte [ebp - 0x11], 0x31
jne 0x43575f
cmp byte [ebp - 0x10], 0
jne 0x43575f
jmp 0x43574a
push 0
push 0x435794
push 0x43579c
call sub.kernel32.dll_GetProfileIntA
test eax, eax
je 0x43575f
mov eax, dword [0x48fa00]
call fcn.00404aa8
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x48fa04], eax
mov esp, ebp
pop ebp
ret

Function at 0x4373ac
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0xd], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
push eax
push 0x4372e0
call sub.user32.dll_EnumWindows
pop ecx
pop ebp
ret

Function at 0x437524
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4375ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00436ea8
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 8], eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 8]
cmp eax, 0x3e8
jbe 0x437550
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00436a18
cmp dword [ebp - 0xc], 0
je 0x437597
push 0
push 9
mov eax, dword [ebp - 0xc]
call fcn.00404aa8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4375b4
lea eax, [ebp - 0xc]
call fcn.004045e8
ret

Function at 0x439914
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov al, byte [0x43996c]
mov byte [ebp - 3], al
test byte [ebp - 2], 4
je 0x43992e
or byte [ebp - 3], 1
test byte [ebp - 2], 8
je 0x439938
or byte [ebp - 3], 4
test byte [ebp - 2], 1
je 0x439942
or byte [ebp - 3], 8
test byte [ebp - 2], 2
je 0x43994c
or byte [ebp - 3], 0x10
test byte [ebp - 2], 0x10
je 0x439956
or byte [ebp - 3], 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x439966
or byte [ebp - 3], 2
mov al, byte [ebp - 3]
pop ecx
pop ebp
ret