joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452132
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x45216f
cmp dword [ebp + 0x14], edi
je 0x45216f
cmp ecx, edi
jne 0x452176
call fcn.0045507c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0045501d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x45218a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4521ab
cmp ebx, 0xffffffff
je 0x45219a
push ebx
push edi
push ecx
call fcn.00451260
add esp, 0xc
cmp esi, edi
je 0x452157
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x452157
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4521c7
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4521ce
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4522bf
test word [esi + 0xc], 0x10c
je 0x452222
mov eax, dword [esi + 4]
test eax, eax
je 0x452222
jl 0x452320
cmp ebx, eax
mov edi, ebx
jb 0x4521f3
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4522c7
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045b058
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4522b7
cmp ebx, dword [ebp - 0xc]
jb 0x45228f
cmp dword [ebp - 0xc], 0
je 0x45224c
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x452241
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x452248
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x452257
mov eax, bind
cmp ebx, eax
ja 0x452257
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4522f3
push eax
push dword [ebp - 8]
push esi
call fcn.00452a09
pop ecx
push eax
call fcn.0045af5b
add esp, 0xc
test eax, eax
je 0x452332
cmp eax, 0xffffffff
je 0x452320
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4522b7
push esi
call fcn.0045a87a
cmp eax, 0xffffffff
pop ecx
je 0x452324
cmp dword [ebp - 4], 0
je 0x4522f3
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4521d6
mov eax, dword [ebp + 0x14]
jmp 0x452171
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4522de
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00451260
add esp, 0xc
call fcn.0045507c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x452167
cmp dword [ebp + 0xc], 0xffffffff
je 0x452309
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00451260
add esp, 0xc
call fcn.0045507c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x452167
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x452171
or dword [esi + 0xc], 0x10
jmp 0x452324
Function at 0x4551e3
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x476b50]
je 0x4551fe
inc edi
cmp edi, 0x17
jb 0x4551ef
cmp edi, 0x17
jae 0x45537e
push ebp
push 3
call fcn.00460825
cmp eax, 1
pop ecx
je 0x45534a
push 3
call fcn.00460825
test eax, eax
pop ecx
jne 0x455232
cmp dword [0x476388], 1
je 0x45534a
cmp ebx, 0xfc
je 0x45537d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x478a90
push ebp
call fcn.00460549
add esp, 0xc
test eax, eax
je 0x455268
push esi
push esi
push esi
push esi
push esi
call fcn.00454f21
add esp, 0x14
push 0x104
mov esi, 0x478aa9
push esi
push 0
mov byte [0x478bad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4552ac
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00460549
add esp, 0xc
test eax, eax
je 0x4552ac
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00454f21
add esp, 0x14
push esi
call fcn.00450bb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4552f1
push esi
call fcn.00450bb0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x478da4
push 0x4696d4
sub ecx, eax
push ecx
push eax
call fcn.00460496
add esp, 0x14
test eax, eax
je 0x4552f1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00454f21
add esp, 0x14
jmp 0x4552f3
xor esi, esi
push 0x4696d0
push ebx
push ebp
call fcn.004603d5
add esp, 0xc
test eax, eax
je 0x455313
push esi
push esi
push esi
push esi
push esi
call fcn.00454f21
add esp, 0x14
push dword [edi*8 + 0x476b54]
push ebx
push ebp
call fcn.004603d5
add esp, 0xc
test eax, eax
je 0x455335
push esi
push esi
push esi
push esi
push esi
call fcn.00454f21
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00460668
add esp, 0xc
jmp 0x45537d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x45537d
cmp ebp, 0xffffffff
je 0x45537d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x476b54]
push dword [esi]
call fcn.00450bb0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x460147
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x476dec]
jne 0x460151
repz ret
jmp fcn.00463919

Function at 0x460668
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00454998
xor ebx, ebx
cmp dword [0x479228], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x46073e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x46081e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46b49c
push edi
call esi
cmp eax, ebx
je 0x46081e
push eax
call fcn.0045492a
mov dword [esp], 0x46b48c
push edi
mov dword [0x479228], eax
call esi
push eax
call fcn.0045492a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47922c], eax
call esi
push eax
call fcn.0045492a
mov dword [0x479230], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044eb00
test eax, eax
pop ecx
pop ecx
je 0x46070c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00454f21
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x46073e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045492a
cmp eax, ebx
pop ecx
mov dword [0x479238], eax
je 0x46073e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045492a
pop ecx
mov dword [0x479234], eax
mov eax, dword [0x479234]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4607c3
cmp dword [0x479238], ecx
je 0x4607c3
push eax
call fcn.004549a1
push dword [0x479238]
mov esi, eax
call fcn.004549a1
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4607c3
cmp edi, ebx
je 0x4607c3
call esi
cmp eax, ebx
je 0x460790
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x460790
test byte [ebp - 0x18], 1
jne 0x4607c3
lea eax, [ebp - 0x10]
push eax
call fcn.0044eb37
test eax, eax
pop ecx
je 0x4607ab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00454f21
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4607ba
or dword [ebp + 0x10], 0x200000
jmp 0x4607fe
or dword [ebp + 0x10], 0x40000
jmp 0x4607fe
mov eax, dword [0x47922c]
cmp eax, dword [ebp - 8]
je 0x4607fe
push eax
call fcn.004549a1
cmp eax, ebx
pop ecx
je 0x4607fe
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4607fe
mov eax, dword [0x479230]
cmp eax, dword [ebp - 8]
je 0x4607fe
push eax
call fcn.004549a1
cmp eax, ebx
pop ecx
je 0x4607fe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x479228]
call fcn.004549a1
cmp eax, ebx
pop ecx
je 0x46081e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x460820
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402106
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
push 0x404075
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
sub esp, 0xe
mov byte [esp], 0x6d
mov byte [esp + 1], 0x63
mov byte [esp + 2], 0x69
mov byte [esp + 3], 0x53
mov byte [esp + 4], 0x65
mov byte [esp + 5], 0x6e
mov byte [esp + 6], 0x64
mov byte [esp + 7], 0x53
mov byte [esp + 8], 0x74
mov byte [esp + 9], 0x72
mov byte [esp + 0xa], 0x69
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0x67
mov byte [esp + 0xd], 0x41
mov byte [esp + 0xe], 0
lea eax, [esp]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x4060ec], eax
leave
ret

Function at 0x403570
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
ret
Function at 0x403304
Capabilities:
Query or enumerate registry value

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

Function at 0x404120
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x466044], 0
je 0x404181
cmp word [0x466218], 0xd7b2
jne 0x404149
cmp dword [0x466220], 0
jbe 0x404149
mov eax, 0x466214
call dword [0x466230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46406c
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 0x4041a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x464030], 0
jne 0x40419d
push 0
push 0x464064
push 0x46406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ef8
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 0x405f5e
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.00404514
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ec8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405f48
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f65
lea eax, [ebp - 0x10]
call fcn.004042a4
ret

Function at 0x40b06c
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 0x40b0a5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404394
jmp 0x40b0ae
mov eax, ebx
mov edx, esi
call fcn.004042f8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b0b8
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 0x40b0d9
mov al, byte [esp]
jmp 0x40b0db
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b770
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b5d8
mov eax, dword [0x465b60]
cmp byte [eax], 0
je 0x40b7ec
mov eax, dword [0x465978]
call fcn.00402d34
call fcn.00402bb4
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.0040885c
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 0x40b834
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b822
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x465928]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x466660]
call fcn.00405364
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 0x40c090
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 0x40c166
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040433c
lea eax, [ebp - 8]
call fcn.004047b4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404764
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c150
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c149
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.00404764
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c133
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c178
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c133
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 0x40c150
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c16d
lea eax, [ebp - 8]
call fcn.004042a4
ret

Function at 0x40c6cc
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 0x40c730
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.00404514
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408390
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c737
lea eax, [ebp - 0xc]
call fcn.004042a4
ret
Function at 0x41a9e4
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, 0x466884
cmp dword [esi], 0
jne 0x41aa8a
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 [0x466880]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4643f8
mov ecx, 2
call fcn.00402c48
mov edx, 0x41a9bc
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041a9dc
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.0041a9dc
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 0x41aa51
mov eax, dword [ebp - 8]
mov dword [0x466880], 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 0x41ce08
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 0x41ce0e
ret

Function at 0x41f28c
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 0x41f2dd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41f2c4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41f2b4
jmp 0x41f2dd
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 0x41f2c5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429a30
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 0x42997c
call sub.user32.dll_EnumWindows
ret

Function at 0x429b50
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 0x429bcd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004295b0
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 0x429b75
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.004291b0
cmp dword [ebp - 4], 0
je 0x429bb7
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404764
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 0x429bd4
lea eax, [ebp - 4]
call fcn.004042a4
ret

Function at 0x42d0c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42d110]
test si, 4
je 0x42d0d4
or bl, 1
test si, 8
je 0x42d0de
or bl, 4
test si, 1
je 0x42d0e8
or bl, 8
test si, 2
je 0x42d0f2
or bl, 0x10
test si, 0x10
je 0x42d0fc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42d10b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x42d114
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42d14c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42d12d
or bl, 1
push 0x11
Function at 0x433810
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x433822
add esp, 0xfffffff0
call fcn.004037c8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041993c
mov eax, dword [0x465930]
mov dword [eax + 4], ebx
mov dword [eax], 0x433bb4
mov eax, dword [0x46593c]
mov dword [eax + 4], ebx
mov dword [eax], 0x433bc0
mov eax, ebx
call fcn.00433bcc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411b54]
call fcn.00403460
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411b54]
call fcn.00403460
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411b54]
call fcn.00403460
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411b54]
call fcn.00403460
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411b54]
call fcn.00403460
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, 0x42ffe4
push eax
push 0
push 0
mov eax, dword [0x465a84]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c2b4]
call fcn.0041d974
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c2b4]
call fcn.0041d974
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c2b4]
call fcn.0041d974
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0043401c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x433ee4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x433ee4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x433ee4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43395f
call fcn.00403820
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x433cc8
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 0x433e73
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x433e54
mov dl, 1
mov eax, dword [0x411f70]
call fcn.00403460
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004042a4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x433e43
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.0044f2c4
test al, al
je 0x433e36
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, 0x433e84
lea eax, [ebp - 0x254]
call fcn.00408ed0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x433e36
xor eax, eax
push ebp
push 0x433e2f
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 0x433ebc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x433e18
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404514
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 0x433e18
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404514
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433e36
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x433d39
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415ad4
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 0x433e7a
lea eax, [ebp - 0x260]
call fcn.004042a4
ret

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

Disassembly:
push ecx
mov eax, dword [0x466cb0]
cmp byte [eax + 0xa5], 0
jne 0x43482d
cmp dword [0x466cc8], 0
jne 0x4347ee
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x434778
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x466cc8], eax
cmp dword [0x466cc4], 0
jne 0x434809
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x466cc4], eax
cmp dword [0x466ccc], 0
jne 0x43482d
push esp
push 0
push 0
push 0x43471c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x466ccc], eax
pop edx
ret