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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d5ea8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x496bcc
cmp byte [ebx], 0xa
jne 0x496bcc
or byte [eax + edi + 0x28], 4
jmp 0x496bd1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x496ccf
mov al, byte [edx]
cmp al, 0x1a
je 0x496cb1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x496c00
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x496c25
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x496c2f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x496be2
jmp 0x496ccf
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496cac
cmp dword [ebp - 0xc], 0
je 0x496cac
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d5ea8]
test byte [eax + edi + 0x28], 0x48
je 0x496c86
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x496c71
mov byte [esi], dl
jmp 0x496c82
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d5ea8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x496ccf
cmp byte [ebp - 1], 0xa
jne 0x496c95
cmp esi, ebx
jne 0x496c95
mov byte [esi], 0xa
jmp 0x496cce
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x496ccf
mov byte [esi], 0xd
jmp 0x496cce
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d5ea8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x496ccb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x496ccf
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x496d2b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4d5ea8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x496d6e
cmp word [esi], dx
jne 0x496d6e
or byte [edi + eax + 0x28], 4
jmp 0x496d73
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x496ec6
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x496ea6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x496db5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x496deb
cmp eax, edx
jae 0x496df7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x496d8d
jmp 0x496ec6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496ea2
cmp dword [ebp - 0x14], 0
je 0x496ea2
mov eax, dword [ebx*4 + 0x4d5ea8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x496e7a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x496e43
mov word [esi], cx
jmp 0x496e76
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d5ea8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d5ea8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d5ea8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x496ec6
pop ebx
cmp word [ebp - 4], bx
jne 0x496e8b
cmp esi, dword [ebp + 0xc]
jne 0x496e8b
mov word [esi], bx
jmp 0x496ec3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x496ec6
push 0xd
jmp 0x496ebf
mov ecx, dword [ebx*4 + 0x4d5ea8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x496ebd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x496ec6
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49cd71
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d2034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49cdbc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049d233
test al, al
jne 0x49cdb6
sub edx, 2
cmp edx, edi
jne 0x49cd9c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49cdde
lea eax, [edi + 2]
cmp edx, eax
je 0x49cdde
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049c96a
add esp, 0x10
jmp 0x49ced8
push esi
lea ecx, [ebp - 0x255]
call fcn.0049d233
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49ce21
push dword [ebp - 0x25c]
jmp 0x49cdce
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49ce5e
cmp word [ebp - 0x226], 0
je 0x49ce7f
cmp word [ebp - 0x226], ax
jne 0x49ce5e
cmp word [ebp - 0x224], 0
je 0x49ce7f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049c96a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49cecb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49ce38
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49ceb3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49ced8
push 0x49c352
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056a0
add esp, 0x10
jmp 0x49cea8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030f3
leave
ret
Function at 0x44c93d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x4643e8
sub esp, 0x24
mov eax, dword [0x512154]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0xc], eax
push edi
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x464456
mov eax, dword [edi]
lea ecx, [esp + 0x18]
add eax, esi
push eax
call fcn.0044d0a4
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.0044f17e
pop ecx
pop ecx
test al, al
jne 0x46446d
lea ecx, [esp + 0x18]
add edi, 4
call fcn.0044f101
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x464421
xor esi, esi
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e549
add esp, 0x24
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + esi]
lea ecx, [esp + 0x18]
call fcn.0044f101
jmp 0x464458

Function at 0x44f336
Capabilities:
Encode data using xor

Disassembly:
jmp 0x464de3
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x464ed7
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, 0x515508
mov bl, byte [esi + edi]
push str.ugAyuisyx
push ebp
call fcn.0044e210
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
pop ecx
pop ecx
push 0x451e88
push str.Bicycle_water
mov bh, byte [edx + section..LN3]
push 0x5155f0
xor bh, bl
call fcn.0044e210
pop ecx
pop ecx
mov ecx, eax
call fcn.00451262
mov bl, byte [esi + edi]
push 0x451e88
push str.dijovhyuGSYYSyus
push ebp
call fcn.0044e210
pop ecx
pop ecx
mov ecx, eax
call fcn.00451262
add byte [esi + edi], bh
push 0x451e88
push str.fdiogiuAsdoiHYUAUAY87234
push ebp
call fcn.0044e210
pop ecx
pop ecx
mov ecx, eax
call fcn.00451262
dec byte [esi + edi]
push str.suih89Ah3
push ebp
call fcn.0044e210
add byte [esi + edi], 0xfe
push str.XScdyhjkujktyyt
push ebp
call fcn.0044e210
sub byte [esi + edi], bl
push str.sJBCsKJ2BJN
push ebp
call fcn.0044e210
inc byte [esi + edi]
push str.sDGTFsE
push ebp
call fcn.0044e210
inc byte [esi + edi]
push str.ZASwe23
push ebp
call fcn.0044e210
inc byte [esi + edi]
push str.uhgiyGAuyisua
push ebp
call fcn.0044e210
add esp, 0x30
inc esi
cmp esi, dword [esp + 0x18]
jb 0x464dfc
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x451357
Capabilities:
Parse pe header

Disassembly:
jmp 0x48cfb0
push 0
call dword [section..idata]
test eax, eax
je 0x48cfef
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48cfef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48cfef
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48cfef
cmp dword [ecx + 0x74], 0xe
jbe 0x48cfef
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x451672
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x4644b3
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x58c598], eax
pop edi
pop esi
ret
Function at 0x403cf0
Capabilities:
Query or enumerate registry value

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

Function at 0x404b84
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45a048], 0
je 0x404be5
cmp word [0x45a21c], 0xd7b2
jne 0x404bad
cmp dword [0x45a224], 0
jbe 0x404bad
mov eax, 0x45a218
call dword [0x45a234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404c0c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45802c], 0
jne 0x404c01
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4060a0
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 0x4062d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406123
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406123
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4061ac
xor eax, eax
push ebp
push 0x4061a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405edc
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 0x40618a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40630c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40618a
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 0x4061ac
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 0x4062c6
cmp byte [ebp - 0xd], 0
jne 0x4061f3
cmp byte [ebp - 0x12], 0
je 0x4062c6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40620c
dec ebx
cmp byte [ebx], 0x2e
je 0x40621b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40620b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4062c6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406258
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 0x4062c6
cmp byte [ebp - 0xd], 0
je 0x4062c6
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 0x4062c6
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 0x408788
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4087da
test eax, edx
je 0x4087dd
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40879d
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 0x4087c3
add ecx, 4
js 0x4087b3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4087c0
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 0x4087e9
test edx, edx
jne 0x408790
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40bb80
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 0x40bbb9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404df4
jmp 0x40bbc2
mov eax, ebx
mov edx, esi
call fcn.00404d58
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c280
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c0f8
mov eax, dword [0x459ae8]
cmp byte [eax], 0
je 0x40c2fc
mov eax, dword [0x4598e8]
call fcn.00403550
call fcn.00402fec
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.00409130
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 0x40c344
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c332
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45988c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45c7f4]
call fcn.00405e84
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 0x40cba8
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 0x40cc7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404d9c
lea eax, [ebp - 4]
call fcn.004051ec
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405194
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cc68
mov eax, ebx
call fcn.00402e90
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cc61
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.00405194
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cc4b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cc90
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cc4b
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 0x40cc68
mov eax, dword [ebp - 0x10]
call fcn.00402eac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc85
lea eax, [ebp - 4]
call fcn.00404d04
ret

Function at 0x41b864
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45e9e8
cmp dword [edi], 0
jne 0x41b8e0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45e9e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x458b58
mov ecx, 2
call fcn.00403080
mov edx, 0x41b83c
lea eax, [esi + 5]
call fcn.0041b85c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b85c
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 0x41b8b5
mov dword [0x45e9e4], 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 0x41efb0
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.00405194
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41f008
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x459c10]
mov dl, 1
mov eax, dword [0x41eabc]
call fcn.0040c440
call fcn.0040474c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041ebc4
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 0x41fe64
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 0x41fe6a
ret
Function at 0x429ffc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404d04
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42a04a
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404f74
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e0d0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42e203
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41eb1c]
call fcn.0041ebec
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42e1d9
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041ec8c
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404f74
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42e218
call fcn.0040501c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041ecf0
lea ecx, [ebp - 4]
mov edx, 0x42e254
mov eax, dword [ebp - 0xc]
call fcn.0041ef38
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040ddc8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42e1bc
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x42e260
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x459448]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e1c3
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

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