joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406bcc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406dfc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406c4f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406dfc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406c4f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e18
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406cd8
xor eax, eax
push ebp
push 0x406cd1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406a08
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406cb6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406e38
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406cb6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cd8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406df2
cmp byte [ebp - 0xd], 0
jne 0x406d1f
cmp byte [ebp - 0x12], 0
je 0x406df2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406d38
dec ebx
cmp byte [ebx], 0x2e
je 0x406d47
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406d37
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406df2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406d84
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406df2
cmp byte [ebp - 0xd], 0
je 0x406df2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406df2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4096c2
test eax, edx
je 0x4096c5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409685
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4096ab
add ecx, 4
js 0x40969b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4096a8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4096d1
test edx, edx
jne 0x409678
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405858
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409f8e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x409faf
cmp ebx, 3
je 0x409faf
cmp ebx, 0x7b
je 0x409faf
mov eax, esi
call fcn.00409f30
test al, al
jne 0x409fb3
xor eax, eax
jmp 0x409fb5
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405858
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409fd1
test al, 0x10
jne 0x409fd5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40cd34
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 0x40cd6d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004054b8
jmp 0x40cd76
mov eax, ebx
mov edx, esi
call fcn.0040541c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cd80
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 0x40cda2
movzx eax, byte [esp]
jmp 0x40cda4
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d434
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d2ac
mov eax, dword [0x634ef4]
cmp byte [eax], 0
je 0x40d4b0
mov eax, dword [0x634b48]
call fcn.00403850
call fcn.00403024
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.0040a3a8
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 0x40d4f8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d4e6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x634abc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x6387f8]
call fcn.004069b0
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 0x40ddb8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40de8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405460
lea eax, [ebp - 4]
call fcn.004058b0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405858
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40de78
mov eax, ebx
call fcn.00402ec8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40de71
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 - 4]
call fcn.00405858
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40de5b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dea0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40de5b
mov eax, dword [ebp - 0x14]
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 0x40de78
mov eax, dword [ebp - 0x10]
call fcn.00402ee4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de95
lea eax, [ebp - 4]
call fcn.004053c8
ret
Function at 0x41fd38
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x63a9ec
cmp dword [edi], 0
jne 0x41fdb4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x63a9e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48db0c
mov ecx, 2
call fcn.00403168
mov edx, 0x41fd10
lea eax, [esi + 5]
call fcn.0041fd30
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fd30
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41fd89
mov dword [0x63a9e8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41ff90
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4201c1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
cmp byte [ebp + eax - 0x109], 0x5c
je 0x41ffea
mov byte [ebp + eax - 0x108], 0x5c
mov byte [ebp + eax - 0x107], 0
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00405638
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 4]
mov ecx, 0x4201d8
call fcn.004056e0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405858
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov ebx, eax
test ebx, ebx
je 0x42003b
push 0x4201e8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x63a9f0], eax
push 0
push 0
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00405638
lea eax, [ebp - 0x110]
mov edx, 0x42020c
call fcn.00405694
mov eax, dword [ebp - 0x110]
call fcn.00405858
push eax
call sub.kernel32.dll_LoadLibraryExA_1
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00405638
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 4]
mov ecx, 0x420220
call fcn.004056e0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405858
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov ebx, eax
test ebx, ebx
je 0x42019b
push 0x42022c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x63a9f4], eax
push 0x420240
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x63a9f8], eax
push 0x420250
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x63aa24], eax
push 0x420260
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x63aa28], eax
push 0x420274
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x63a9fc], eax
push 0x420288
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x63aa00], eax
push 0x42029c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x63aa04], eax
push 0x4202ac
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x63aa08], eax
push 0x4202c0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x63aa0c], eax
push 0x4202d4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x63aa10], eax
push 0x4202e8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x63aa14], eax
push 0x4202fc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x63aa18], eax
push 0x420314
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x63aa1c], eax
push 0x420330
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x63aa20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4201c8
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.004053ec
lea eax, [ebp - 4]
call fcn.004053c8
ret
Function at 0x420534
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x37], 0
jne 0x420547
cmp dword [esi + 0x2b], 0
je 0x420555
mov dword [esi + 8], 0x1002
xor esi, esi
jmp 0x4205db
mov dword [esi + 8], 0
push 0xa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x420578
mov dword [esi + 8], 0x3001
xor esi, esi
jmp 0x4205db
push eax
push eax
push dword [ebp + 0xc]
call sub.kernel32.dll_LoadResource
pop ecx
or eax, eax
jne 0x420592
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x4205db
mov dword [esi + 0x13], eax
mov dword [esi + 0x1b], eax
push ecx
push dword [ebp + 0xc]
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x4205b0
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x4205db
mov dword [esi + 0x17], eax
mov dword [esi + 0x2b], 2
push esi
call fcn.00421e24
or eax, eax
jne 0x4205cf
mov dword [esi + 0x2b], 0
xor esi, esi
jmp 0x4205db
mov dword [esi + 0x37], 1
mov esi, 1
mov eax, esi
pop esi
leave
ret 0xc

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

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42307f
test al, 0x10
jne 0x423082
xor eax, eax
ret
mov al, 1
ret

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

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4230b3
test al, 0x10
je 0x4230b6
xor eax, eax
ret
mov al, 1
ret

Function at 0x4231c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push esp
push 0x40
push 0x12
push ebx
call sub.kernel32.dll_VirtualProtect
mov dword [ebx], 0x5024048b
mov byte [ebx + 4], 0xb8
lea eax, [ebx + 9]
mov dword [eax], 0x4244489
mov byte [ebx + 0xd], 0xe9
lea eax, [ebx + 5]
mov dword [eax], esi
sub edi, ebx
sub edi, 0x12
lea eax, [ebx + 0xe]
mov dword [eax], edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4235b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x423622
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004055c0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004235a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423629
lea eax, [ebp - 0x10c]
call fcn.004053c8
ret
Function at 0x423630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42369a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004055c0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004235a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4236a1
lea eax, [ebp - 0x10c]
call fcn.004053c8
ret

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

Disassembly:
push ebx
push esi
add esp, 0xffffffe4
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 1
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4236d8
push esp
call sub.user32.dll_TranslateMessage
push esp
call sub.user32.dll_DispatchMessageA
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, esi
jb 0x4236b6
add esp, 0x1c
pop esi
pop ebx
ret

Function at 0x4236f4
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4237d2
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00425870
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4237b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004230a4
test al, al
je 0x423749
push 0x20
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
push eax
mov ecx, edi
mov edx, dword [0x6387f8]
mov eax, dword [ebp - 8]
call fcn.00425968
mov eax, dword [ebp - 8]
call fcn.004254d8
test eax, eax
jbe 0x423789
mov eax, dword [ebp - 8]
call fcn.004254d8
push eax
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.004055c0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
xor ecx, ecx
call fcn.004254fc
test esi, esi
je 0x42379f
mov eax, ebx
call fcn.004230a4
test al, al
je 0x42379f
push esi
push ebx
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4237bc
mov eax, dword [ebp - 8]
call fcn.00423fe8
ret
Function at 0x4238fc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push ebp
push 0x423985
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0x423994
push 0
push edx
push eax
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x42396f
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.004055c0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x423955
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push ebx
push 1
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42398c
lea eax, [ebp - 0xc]
call fcn.004053c8
ret

Function at 0x423b7c
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 0x423bb5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004054b8
jmp 0x423bbe
mov eax, ebx
mov edx, esi
call fcn.0040541c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x423bc8
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 0x423bea
movzx eax, byte [esp]
jmp 0x423bec
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x424ad8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x424b62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edx
mov edx, 0x80000301
call fcn.00425650
mov esi, eax
cmp esi, 0xffffffff
setne bl
test bl, bl
je 0x424b4c
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
lea eax, [ebp - 4]
mov ecx, edi
xor edx, edx
call fcn.004054b8
lea eax, [ebp - 4]
call fcn.004058b8
mov edx, eax
mov ecx, edi
mov eax, esi
call fcn.00423088
mov eax, esi
call fcn.00425698
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004247c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424b69
lea eax, [ebp - 4]
call fcn.004053c8
ret

Function at 0x4252b4
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x1d], 1
pop ebx
ret

Function at 0x4252c8
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x1c], 0
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x4252e3
mov byte [ebx + 0x1c], 1
pop ebx
ret
cmp word [ebx + 0x3a], 0
je 0x4252f2
mov edx, ebx
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
pop ebx
ret
Function at 0x4280e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405858
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42813c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x635154]
mov dl, 1
mov eax, dword [0x427bf0]
call fcn.0040d5f4
call fcn.00404d34
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00427cf8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x428f98
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 0x428f9e
ret
Function at 0x4379e4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
test bl, bl
je 0x437a05
test edi, 0x40000
je 0x437a1f
test bl, bl
jne 0x437aa0
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x437aa0
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x437a52
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x437a67
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x437a76
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x437a87
cmp byte [esp + 2], 0
je 0x437aa0
cmp byte [esp + 2], 0
je 0x437a98
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x437aa0
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x437d44
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 0x437d6a
mov eax, esp
push eax
push 0x437d0c
call sub.user32.dll_EnumWindows
jmp 0x437d7d
mov eax, esp
push eax
push 0x437cec
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 0x437e08
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x437e5c]
test si, 4
je 0x437e1d
or bl, 1
test si, 8
je 0x437e27
or bl, 4
test si, 1
je 0x437e31
or bl, 8
test si, 2
je 0x437e3b
or bl, 0x10
test si, 0x10
je 0x437e45
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x437e54
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x437e60
Capabilities:
Log keystrokes via polling

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