joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4867f0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbebe
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ec1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x14
push edi
mov dword [ebp - 0x14], 1
call ebx
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, ecx
ja 0x48687e
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x486876
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x48688a
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.004640d0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x486894
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
push 0x14
push edi
call ebx
mov edi, dword [esi + 0x10]
test edi, edi
je 0x48698e
mov ebx, dword [esi + 0x14]
cmp ebx, 8
jb 0x4868bb
mov eax, dword [esi]
mov ecx, eax
jmp 0x4868bf
mov eax, esi
mov ecx, esi
lea edx, [edi + edi]
add eax, edx
cmp word [ecx], 0
jne 0x486934
add ecx, 2
cmp ecx, eax
je 0x4868de
cmp word [ecx], 0
jne 0x486907
add ecx, 2
cmp ecx, eax
jne 0x4868d1
mov dword [esi + 0x10], 0
mov eax, esi
cmp ebx, 8
jb 0x4868ee
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub eax, 2
cmp word [eax], 0
je 0x486907
sub eax, ecx
add eax, 2
sar eax, 1
push eax
push ecx
mov ecx, esi
call fcn.004040a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub eax, 2
cmp word [eax], 0
jne 0x48698e
nop dword [eax]
mov ecx, eax
sub eax, 2
cmp word [eax], 0
je 0x486940
sub edx, ecx
mov eax, edi
cmp ebx, 8
mov ebx, ecx
jb 0x48695e
sub ebx, dword [esi]
add edx, dword [esi]
mov ecx, dword [esi]
jmp 0x486964
sub ebx, esi
mov ecx, esi
add edx, esi
sar ebx, 1
sub eax, ebx
sar edx, 1
cmp eax, edx
cmovb edx, eax
lea ecx, [ecx + ebx*2]
sub edi, edx
mov dword [esi + 0x10], edi
sub edi, ebx
lea eax, [edi*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.0048e820
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4869b0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbef5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4ec1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebx]
add edi, 0x2c
mov dword [ebp - 0x38], eax
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
push edi
call fcn.00436670
push 0
lea eax, [ebp - 0x2c]
mov dword [esi + 4], esi
push eax
push 0
push 0
mov dword [esi], esi
mov dword [esi + 8], esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [edi + 4], 0
mov edi, dword [ebp - 0x30]
push 0x13
push edi
mov dword [ebp - 0x2c], 0
call esi
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x486a5b
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [ebp + eax*2 - 0x28], cx
jmp 0x486a66
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.004640d0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push 0
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0x13
push edi
call esi
call fcn.004967cc
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov dword [ebp - 0x34], eax
cmovae esi, dword [ebp - 0x28]
mov dword [eax], 0
lea eax, [ebp - 0x30]
push 0xa
push eax
push esi
call fcn.0049eeaf
add esp, 0xc
mov ecx, eax
cmp esi, dword [ebp - 0x30]
je 0x486bc0
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0x22
je 0x486bb6
mov edx, dword [ebp - 0x14]
movzx esi, cx
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x486b02
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x486af8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x486bca
push edx
push ecx
call fcn.0048c9bc
add esp, 8
mov eax, dword [ebx]
push edi
mov word [eax + 0x44], si
lea eax, [ebp - 0x28]
push eax
call fcn.004867f0
add esp, 8
mov ecx, dword [ebx]
add ecx, 0x48
mov dword [ebp - 4], 1
cmp ecx, eax
je 0x486b38
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x486b2f
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004040a0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x486b75
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x486b6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x486bcf
push edx
push ecx
call fcn.0048c9bc
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebx]
add eax, 0x2c
mov dword [ebp - 0x14], 7
push eax
push dword [ebp - 0x38]
call fcn.00473e10
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048c98b
mov esp, ebp
pop ebp
ret
push str.stoi_argument_out_of_range
call fcn.0048a0c3
push str.invalid_stoi_argument
call fcn.0048a083
call fcn.0049166f
call fcn.0049166f
int3
Function at 0x4a3426
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4caad0
push 0x4caac8
push str.FlsAlloc
push 0x1e
call fcn.004a3293
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a345a
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c1288]
call esi
jmp 0x4a3460
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4a34a4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4caae0
push 0x4caad8
push str.FlsGetValue
push 0x20
call fcn.004a3293
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a34db
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c1288]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4ac39b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ec1e4]
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 0x4ac3e6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ac53a
test al, al
jne 0x4ac3e0
sub edx, 2
cmp edx, edi
jne 0x4ac3c6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4ac408
lea eax, [edi + 2]
cmp edx, eax
je 0x4ac408
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004ac2e7
add esp, 0x10
jmp 0x4ac502
push esi
lea ecx, [ebp - 0x255]
call fcn.004ac53a
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 0x4ac44b
push dword [ebp - 0x25c]
jmp 0x4ac3f8
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 0x4ac488
cmp word [ebp - 0x226], 0
je 0x4ac4a9
cmp word [ebp - 0x226], ax
jne 0x4ac488
cmp word [ebp - 0x224], 0
je 0x4ac4a9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004ac2e7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ac4f5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ac462
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ac4dd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ac502
push 0x4ac117
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004afac0
add esp, 0x10
jmp 0x4ac4d2
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.0048c98b
leave
ret

Function at 0x4ac627
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ac638
pop esi
ret
push ebx
push edi
push esi
call fcn.004ac5f0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004a3af5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ac660
push ebx
push esi
push edi
call fcn.0048e820
add esp, 0xc
push 0
call fcn.004a2fb8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4aca24
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ac675
Function at 0x403850
Capabilities:
Query or enumerate registry value

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

Function at 0x4046ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46c048], 0
je 0x40474d
cmp word [0x46c21c], 0xd7b2
jne 0x404715
cmp dword [0x46c224], 0
jbe 0x404715
mov eax, 0x46c218
call dword [0x46c234]
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 0x404774
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46902c], 0
jne 0x404769
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405bec
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 0x405e1c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c6f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e1c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c6f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e38
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405cf8
xor eax, eax
push ebp
push 0x405cf1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405a28
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 0x405cd6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405e58
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405cd6
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 0x405cf8
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 0x405e12
cmp byte [ebp - 0xd], 0
jne 0x405d3f
cmp byte [ebp - 0x12], 0
je 0x405e12
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405d58
dec ebx
cmp byte [ebx], 0x2e
je 0x405d67
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405d57
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e12
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405da4
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 0x405e12
cmp byte [ebp - 0xd], 0
je 0x405e12
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 0x405e12
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 0x40836c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4083be
test eax, edx
je 0x4083c1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408381
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 0x4083a7
add ecx, 4
js 0x408397
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4083a4
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 0x4083cd
test edx, edx
jne 0x408374
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40be7c
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 0x40beb5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040495c
jmp 0x40bebe
mov eax, ebx
mov edx, esi
call fcn.004048c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c57c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c3f4
mov eax, dword [0x46b8b0]
cmp byte [eax], 0
je 0x40c5f8
mov eax, dword [0x46b630]
call fcn.004031c8
call fcn.00402fac
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.00408e8c
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 0x40c640
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c62e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46b5c8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46e7f4]
call fcn.004059d0
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 0x40cea4
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 0x40cf7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404904
lea eax, [ebp - 4]
call fcn.00404d54
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404cfc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cf64
mov eax, ebx
call fcn.00402e50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cf5d
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.00404cfc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cf47
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cf8c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cf47
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 0x40cf64
mov eax, dword [ebp - 0x10]
call fcn.00402e6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf81
lea eax, [ebp - 4]
call fcn.0040486c
ret

Function at 0x41bb94
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4709e8
cmp dword [edi], 0
jne 0x41bc10
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4709e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x469ad4
mov ecx, 2
call fcn.00403040
mov edx, 0x41bb6c
lea eax, [esi + 5]
call fcn.0041bb8c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041bb8c
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 0x41bbe5
mov dword [0x4709e4], 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 0x41e164
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.00404cfc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41e1bc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46ba24]
mov dl, 1
mov eax, dword [0x41dc70]
call fcn.0040c73c
call fcn.004042b4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041dd78
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 0x41f018
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 0x41f01e
ret
Function at 0x42cd74
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.0040486c
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42cdc2
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.00404adc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430e48
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 0x430f7b
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 [0x41dcd0]
call fcn.0041dda0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x430f51
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041de40
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404adc
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x430f90
call fcn.00404b84
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041dea4
lea ecx, [ebp - 4]
mov edx, 0x430fcc
mov eax, dword [ebp - 0xc]
call fcn.0041e0ec
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040e158
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x430f34
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x430fd8
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 [0x46a434]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430f3b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

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