joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x47c018]
mov eax, esi
mov dword [esp + 0xc], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x445ea8
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x14], edi
mov edx, edi
cmp edi, ecx
jb 0x445ee8
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0xc]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x445ec5
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x445f62
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x445f5c
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x445f24
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x445f54
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x445f10
test ecx, ecx
je 0x445fd3
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x445f54
cmp ecx, 1
jbe 0x445fd3
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x445f54
cmp ecx, 2
jbe 0x445fd3
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x445fd3
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x445f00
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.0042e3c0
add esp, 8
mov ecx, dword [esp + 0x10]
or byte [eax + 5], 0x20
lea edx, [ecx + 1]
inc ecx
mov byte [eax + 6], dl
mov dword [esp + 0x10], ecx
cmp ecx, 0x1f
jl 0x445e94
mov ecx, dword [0x47c0f0]
test ecx, ecx
je 0x445fcc
mov esi, 0x47c0f0
mov bl, 0x2d
mov edi, edi
mov eax, ecx
add esi, 4
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x445fa8
sub eax, edi
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.0042e490
or byte [eax + 5], 0x20
mov byte [eax + 6], bl
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
jne 0x445fa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x445f71
xor cl, 3
mov byte [eax + 5], cl
jmp 0x445f71
Function at 0x4476a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, eax
mov eax, dword [ebx]
push edi
push esi
push eax
mov eax, ebx
call fcn.00446cb0
mov eax, dword [esi]
mov ecx, dword [ebx + 0x34]
add eax, 0x10
call fcn.0041b950
mov esi, eax
push 0x47fb48
push esi
call fcn.004552c5
mov edi, eax
add esp, 0x10
mov dword [ebp - 8], edi
test edi, edi
jne 0x447735
mov ecx, dword [ebx + 0x34]
push esi
push str.Include_file_open_failed_n___s__n
push ecx
call fcn.0042ec40
mov esi, dword [ebx + 0x34]
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
lea ecx, [eax - 0x10]
add esp, 0xc
cmp ecx, eax
jae 0x44771f
lea edx, [ecx - 0x10]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [edx + 0x18]
mov dword [edx + 8], eax
add ecx, 0x10
add edx, 0x10
cmp ecx, dword [esi + 8]
jb 0x447704
mov ecx, dword [ebp - 4]
add dword [esi + 8], 0xfffffff0
push 0x131
push ecx
push ebx
call fcn.00446230
add esp, 0xc
mov eax, dword [ebx + 0x34]
add dword [eax + 8], 0xfffffff0
mov edx, dword [ebx + 0x3c]
mov dword [edx + 4], 0
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [ebx + 0x34]
push 0x400
push ecx
push edx
push eax
call fcn.004490d0
mov ecx, dword [ebx + 0x3c]
mov dword [ecx], eax
mov edx, dword [ebx + 0x3c]
mov dword [edx + 8], 0x400
mov esi, dword [ebx + 0x3c]
mov eax, dword [esi]
add eax, dword [esi + 4]
push edi
push 0x400
push 1
push eax
call fcn.0045b446
add esp, 0x20
test eax, eax
je 0x44780a
mov edi, edi
add dword [esi + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
add ecx, 0x400
cmp ecx, eax
jbe 0x4477f0
lea edi, [eax + eax]
cmp edi, 0x7ffffffe
jb 0x4477be
push 0
push str.lexical_element_too_long
push ebx
call fcn.00446230
add esp, 0xc
lea ecx, [edi + 1]
cmp ecx, 0xfffffffd
ja 0x4477dc
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [ebx + 0x34]
push edi
push edx
push eax
push ecx
call fcn.004490d0
add esp, 0x10
jmp 0x4477e8
mov edx, dword [ebx + 0x34]
push edx
call fcn.004490b0
add esp, 4
mov dword [esi + 8], edi
mov edi, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [esi]
add eax, dword [esi + 4]
push edi
push 0x400
push 1
push eax
call fcn.0045b446
add esp, 0x10
test eax, eax
jne 0x447790
push edi
call fcn.004555c3
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
add esp, 4
call fcn.00446330
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 0x131
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x4495cb
push 0x496900
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, esi
call fcn.00449220
mov edi, eax
test edi, edi
je 0x4495cb
inc dword [edi + 0x14]
push 0x496900
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4495ef
test esi, esi
je 0x4495e7
push 0x496900
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x449604
test esi, esi
jmp 0x4496fa
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x449639
mov ecx, dword [ebx + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
je 0x4496f6
push 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.00465a50
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.00449260
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x4496bd
push eax
mov eax, esi
call fcn.004493e0
add esp, 4
push esi
call fcn.00449470
add esp, 4
test eax, eax
je 0x4496ef
push esi
call fcn.00449310
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
mov ebx, 1
test eax, eax
je 0x449713
add eax, edi
je 0x4496ef
push 0
push ebx
push edi
call eax
test eax, eax
jne 0x449710
mov eax, esi
call fcn.00449860
cmp dword [ebp + 0xc], 0
je 0x449707
push 0x496900
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], ebx
test eax, eax
je 0x449744
push eax
call fcn.0045c4ba
add esp, 4
mov edi, esi
mov dword [esi + 0x18], eax
call fcn.00449120
push 0x496900
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], ebx
pop ebx
pop edi
mov dword [esi + 0x18], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x454563
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4924c4]
jne 0x45456d
repz ret
jmp fcn.0045c50c
Function at 0x45afa9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x45afd0
call fcn.0045629b
mov dword [eax], esi
call fcn.00456288
push 0x16
pop esi
mov dword [eax], esi
call fcn.0045ec6b
mov eax, esi
jmp 0x45b025
test dword [ebp + 0xc], 0xfffffff9
jne 0x45afb6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45affd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004562ae
pop ecx
call fcn.00456288
mov eax, dword [eax]
jmp 0x45b025
test al, 0x10
jne 0x45b023
test al, 1
je 0x45b023
test byte [ebp + 0xc], 2
je 0x45b023
call fcn.0045629b
mov dword [eax], 5
call fcn.00456288
mov dword [eax], 0xd
jmp 0x45aff4
xor eax, eax
pop esi
pop ebp
ret

Function at 0x46b26d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4924c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0045d072
and dword [ebp - 0x14], 0
cmp dword [0x49518c], 0
mov dword [ebp - 0x18], eax
jne 0x46b320
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46b3c8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x46b3c8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x47aa5c
push ebx
mov dword [0x49518c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x495190], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x495194], eax
call edi
push eax
call esi
mov dword [0x49519c], eax
test eax, eax
je 0x46b320
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x495198], eax
mov eax, dword [0x495198]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46b379
cmp dword [0x49519c], ecx
je 0x46b379
push eax
call esi
push dword [0x49519c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46b379
test ebx, ebx
je 0x46b379
call edi
test eax, eax
je 0x46b370
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46b370
test byte [ebp - 8], 1
jne 0x46b379
or dword [ebp + 0x10], 0x200000
jmp 0x46b3ac
mov eax, dword [0x495190]
cmp eax, dword [ebp - 0x18]
je 0x46b3ac
push eax
call esi
test eax, eax
je 0x46b3ac
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46b3ac
mov eax, dword [0x495194]
cmp eax, dword [ebp - 0x18]
je 0x46b3ac
push eax
call esi
test eax, eax
je 0x46b3ac
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49518c]
call esi
test eax, eax
je 0x46b3c8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x46b3ca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00454563
leave
ret
Function at 0x402e38
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040453c
test esi, esi
jne 0x402e6f
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.0040462c
jmp 0x402e90
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cd4
mov dword [esp], eax
test esi, esi
je 0x402e90
cmp dword [ebx], 0
je 0x402e90
dec esi
jmp 0x402e77
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x493020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403628
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403608
xor eax, eax
push ebp
push 0x403601
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 0x403644
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 0x403608
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x493020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x493020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404314
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x499048], 0
je 0x404375
cmp word [0x49921c], 0xd7b2
jne 0x40433d
cmp dword [0x499224], 0
jbe 0x40433d
mov eax, 0x499218
call dword [0x499234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49306c
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 0x40439c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x493030], 0
jne 0x404391
push 0
push 0x493064
push 0x49306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4044f0
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.00402a74
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x499049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044b8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4064f0
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 0x406556
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.004047ac
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403124
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406540
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40655d
lea eax, [ebp - 0x10]
call fcn.0040453c
ret

Function at 0x40c390
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c3c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040462c
jmp 0x40c3d2
mov eax, ebx
mov edx, esi
call fcn.00404590
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c3dc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c3fd
mov al, byte [esp]
jmp 0x40c3ff
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ca94
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c8fc
mov eax, dword [0x497f8c]
cmp byte [eax], 0
je 0x40cb10
mov eax, dword [0x497bf8]
call fcn.00402f54
call fcn.00402c00
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409328
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cb58
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cb46
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x497b6c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x499664]
call fcn.0040595c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d3d8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d4ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004045d4
lea eax, [ebp - 8]
call fcn.00404a4c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004049fc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d498
mov eax, ebx
call fcn.00402a74
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d491
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004049fc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d47b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d4c0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d47b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d498
mov eax, dword [ebp - 0x10]
call fcn.00402aa4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d4b5
lea eax, [ebp - 8]
call fcn.0040453c
ret

Function at 0x40d9fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40da60
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004047ac
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408e2c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da67
lea eax, [ebp - 0xc]
call fcn.0040453c
ret

Function at 0x41c384
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041c1dc
dec esi
jne 0x41c3a6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41d500
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x499888
cmp dword [esi], 0
jne 0x41d5a6
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 [0x499884]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4933ec
mov ecx, 2
call fcn.00402c94
mov edx, 0x41d4d8
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041d4f8
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041d4f8
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41d56d
mov eax, dword [ebp - 8]
mov dword [0x499884], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
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]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41e77c
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 0x41e782
ret

Function at 0x420c30
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 0x420c81
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420c68
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420c58
jmp 0x420c81
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 0x420c69
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42de00
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x42dd4c
call sub.user32.dll_EnumWindows
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42df9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042d980
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42df45
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042d580
cmp dword [ebp - 4], 0
je 0x42df87
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004049fc
push eax
mov eax, dword [esi + 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 0x42dfa4
lea eax, [ebp - 4]
call fcn.0040453c
ret

Function at 0x430f70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x499aec], 0
je 0x4310bf
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x497ed8]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4310bf
mov eax, dword [0x499af0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x499aec]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43108e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x499aec]
call fcn.004156a0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x431086
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x431086
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x431086
mov eax, dword [ebp - 0x14]
call fcn.00439c58
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x431086
push ebp
call fcn.00430f2c
pop ecx
test al, al
jne 0x431086
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x431042
mov eax, dword [ebp - 0x14]
call fcn.00438788
dec eax
jle 0x431086
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0040392c
cmp byte [ebp - 1], 0
je 0x431086
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x431086
mov edx, dword [ebp - 0x14]
mov eax, dword [0x499af0]
call fcn.004306f8
inc edi
dec ebx
jne 0x430fd5
mov eax, dword [0x499af0]
cmp dword [eax + 8], 0
jle 0x4310a6
mov eax, dword [0x499af0]
call fcn.00430788
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4310bf
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00430d94
pop ecx
test al, al
jne 0x4310bf
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret