joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eb09
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041c027
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40eb42
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040e75a
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40eba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40ebc4
cmp dword [edi + 0x54], 0
jne 0x40ebc4
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041c027
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040eb61
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41681d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x416864
call fcn.0041c027
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x416864
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x416880
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00416397
mov esi, eax
test edi, edi
je 0x41687e
test ebx, ebx
je 0x41687e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4177cf
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44d27a
call fcn.0043445b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4177f4
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41783a
lea ecx, [ebp - 0x10]
call fcn.004018b0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c814
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401000
mov eax, esi
call fcn.00434533
ret 8
Function at 0x42a7f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42a83d
call fcn.0041c027
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42a83d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42a880
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42a869
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42a869
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42a87d
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x430e9b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x465d3c]
jne 0x430ea5
repz ret
jmp fcn.00438ddf
Function at 0x445218
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.0043ab7d
and dword [ebp - 4], 0
cmp dword [0x46a1b0], 0
mov ebx, eax
jne 0x4452c9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44537a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4593bc
push edi
call esi
test eax, eax
je 0x44537a
push eax
call fcn.0043ab0b
mov dword [esp], 0x4593ac
push edi
mov dword [0x46a1b0], eax
call esi
push eax
call fcn.0043ab0b
mov dword [esp], 0x459398
push edi
mov dword [0x46a1b4], eax
call esi
push eax
call fcn.0043ab0b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46a1b8], eax
call esi
push eax
call fcn.0043ab0b
pop ecx
mov dword [0x46a1c0], eax
test eax, eax
je 0x4452c9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043ab0b
pop ecx
mov dword [0x46a1bc], eax
mov eax, dword [0x46a1bc]
cmp eax, ebx
je 0x445321
cmp dword [0x46a1c0], ebx
je 0x445321
push eax
call fcn.0043ab86
push dword [0x46a1c0]
mov esi, eax
call fcn.0043ab86
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x445321
test edi, edi
je 0x445321
call esi
test eax, eax
je 0x445318
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x445318
test byte [ebp - 0xc], 1
jne 0x445321
or dword [ebp + 0x10], 0x200000
jmp 0x44535a
mov eax, dword [0x46a1b4]
cmp eax, ebx
je 0x44535a
push eax
call fcn.0043ab86
pop ecx
test eax, eax
je 0x44535a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44535a
mov eax, dword [0x46a1b8]
cmp eax, ebx
je 0x44535a
push eax
call fcn.0043ab86
pop ecx
test eax, eax
je 0x44535a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46a1b0]
call fcn.0043ab86
pop ecx
test eax, eax
je 0x44537a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44537c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x103aee6c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103aee76
pushal
call 0x103aee7c
pop ebp
sub ebp, 0x10
sub ebp, 0x3aee6c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103aeea0
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103aeea9
mov eax, 0x3aee6c
add eax, ebp
add eax, 0x63
mov ecx, 0x5ff
mov edx, 0xefc1ff9f
xor byte [eax], dl
inc eax
dec ecx
jne 0x103aeec0
jmp 0x103aeed3
adc al, 0x52
adc al, 0x16
mov dword [0x1e9f9f9f], eax
pop esi
lahf
lahf
lahf
pushfd
push edx
daa
pushfd
lahf
lahf
lahf
and eax, 0x9f9f9fb7
push 0x14579c7d
push ds
xchg ebx, eax
lahf
lahf
lahf
pushfd
pop edx
iretd
Function at 0x44f769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x453190
cmp edx, dword [eax]
je 0x44f78b
add eax, 8
inc ecx
cmp eax, 0x453220
jl 0x44f77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x453190]
jne 0x44f8b9
mov eax, dword [0x453bb0]
cmp eax, 1
je 0x44f893
test eax, eax
jne 0x44f7bc
cmp dword [0x4530e4], 1
je 0x44f893
cmp edx, 0xfc
je 0x44f8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44f7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00450670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00450490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44f836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00450490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45245c
push edi
call fcn.00450f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00450670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00450680
lea eax, [ebp - 0xa0]
push 0x45243c
push eax
call fcn.00450680
push dword [esi + 0x453194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00450680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00450e75
add esp, 0x2c
pop edi
jmp 0x44f8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x453194]
push 0
push eax
push dword [esi]
call fcn.00450490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0xc3d528
Capabilities:
Encode data using xor

Disassembly:
jmp 0xc3d532
pushal
call 0xc3d538
pop ebp
sub ebp, 0x10
sub ebp, 0x83d528
jmp 0xc3d54e
mov eax, 0x83d528
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bc
mov edx, 0x8eb6857b
xor byte [eax], dl
inc eax
dec ecx
jne 0xc3d565
jmp 0xc3d578
invalid
Function at 0x6032e4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x691008], 0x8088405
inc edx
mov dword [ebx + 0x691008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x603edc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x691024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x603f74
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x603f54
xor eax, eax
push ebp
push 0x603f4d
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 0x603fac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x603f54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x691024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x691024], ax
mov esp, ebp
pop ebp
ret

Function at 0x605074
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x698050], 0
je 0x6050d5
cmp word [0x69832c], 0xd7b2
jne 0x60509d
cmp dword [0x698334], 0
jbe 0x60509d
mov eax, 0x698328
call dword [0x698344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x605100
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x691030], 0
jne 0x6050f1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x605254
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x691038], 0
je 0x60527a
mov edx, esi
mov eax, ebx
call dword [0x691038]
jmp 0x605289
mov eax, 8
call fcn.00602ff8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x698051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x60521c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x6092a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x69ab2c
push 0xa
push 0x609334
mov eax, dword [0x69ab1c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x6092c4
call fcn.00611584
push ebx
mov eax, dword [0x69ab1c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x6092db
call fcn.00611584
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x6092ed
call fcn.00611584
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x69ab30], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x69ab34], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x69ab38], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x69ab3c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x69ab40], ecx
add edx, dword [eax + 0x14]
mov dword [0x69ab44], edx
pop esi
pop ebx
ret

Function at 0x60ab24
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x60abcd
test eax, edx
je 0x60abd0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x60ab4d
push edx
mov edx, eax
mov eax, esp
call fcn.00605cf8
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x60ab63
push eax
lea eax, [esp + 8]
call fcn.00605cf8
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x60ab72
movzx eax, word [eax]
sub eax, ecx
jmp 0x60ab99
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x60abb3
add ecx, 4
js 0x60ab8a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x60abb0
push eax
mov eax, ecx
mov edx, 2
call fcn.006052f4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x60ab97
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x60ab99
xor eax, eax
ret
test eax, eax
je 0x60abe0
test edx, edx
jne 0x60ab34
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x60eef4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x60ef2d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00605c48
jmp 0x60ef36
mov eax, ebx
mov edx, esi
call fcn.00605b0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x60ef40
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x60ef62
movzx eax, word [esp]
jmp 0x60ef64
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x60f6c8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0060f500
mov eax, dword [0x6976c0]
cmp byte [eax], 0
je 0x60f75a
mov eax, dword [0x697450]
call fcn.006036a0
call fcn.00603160
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0060bdc8
push eax
lea eax, [esp + 0x890]
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 0x60f7a8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x60f793
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x6973ec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x69ab1c]
call fcn.00606c54
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret

Function at 0x610370
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 0x610446
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00605b60
lea eax, [ebp - 4]
call fcn.006063f4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00605b98
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x610430
mov eax, ebx
call fcn.00602ff8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x610429
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.00605b98
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x610413
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x610458
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x610413
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 0x610430
mov eax, dword [ebp - 0x10]
call fcn.00603014
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61044d
lea eax, [ebp - 4]
call fcn.00605afc
ret
Function at 0x6113b3
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00605608
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x6113d6
mov eax, edi
add eax, eax
call fcn.00602ff8
mov esi, eax
jmp 0x6113d8
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x611411
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x6113fb
mov eax, esp
cmp esi, eax
je 0x61141e
mov eax, esi
call fcn.00603014
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x611458
cmp bl, 0
je 0x611454
cmp bl, 0x41
jl 0x61144f
cmp bl, 0x5a
jg 0x61144f
or bl, 0x20
xor al, bl
inc esi
jmp 0x611433
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x611398

Function at 0x621978
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.0062167c
dec esi
jne 0x62199a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x622b44
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x69ce60
cmp dword [edi], 0
jne 0x622bc0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x69ce5c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x691c5c
mov ecx, 2
call fcn.006031bc
mov edx, 0x622b1c
lea eax, [esi + 5]
call fcn.00622b3c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00622b3c
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 0x622b95
mov dword [0x69ce5c], 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 0x625ba0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.006255cc
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00605b98
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x625bff
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6975bc]
mov dl, 1
mov eax, dword [0x625444]
call fcn.0060f8a4
call fcn.00604af8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x625c08
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.00605b98
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x625c60
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x697814]
mov dl, 1
mov eax, dword [0x625444]
call fcn.0060f8a4
call fcn.00604af8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.006255fc
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 0x626efc
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 0x626f02
ret
Function at 0x651d18
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00605b0c
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x651d5f
push 0x100
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.00605cdc
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x657178
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6572b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x6254b8]
call fcn.00625624
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x657287
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.006256c4
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00605cdc
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x6572cc
call fcn.00605eb0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00625850
test al, al
je 0x657271
lea ecx, [ebp - 4]
mov edx, 0x657340
mov eax, dword [ebp - 0xc]
call fcn.00625b28
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00611c00
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x65726a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x657358
mov eax, dword [ebp - 8]
push eax
call fcn.00608004
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x696050]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x657271
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65728e
mov eax, dword [ebp - 0xc]
call fcn.00604104
ret

Function at 0x6573bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x657403
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6573e6
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6573f7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x657403
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret