joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53d338
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [0x581500], eax
push 0
call dword [sym.imp.USER32.DLL_GetDC]
mov dword [0x581508], eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [0x58150c], eax
mov eax, 0x11c
xchg edx, eax
mov eax, dword [0x58151c]
mov dword [eax], edx
push dword [0x58151c]
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
mov eax, dword [0x58151c]
mov eax, dword [eax + 4]
cmp eax, 5
jne 0x53d3a6
mov eax, dword [0x58151c]
mov eax, dword [eax + 8]
cmp eax, 1
jge 0x53d3a6
jmp 0x53d3aa
xor eax, eax
jmp 0x53d3ad
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
je 0x53d3bb
call fcn.0053d0f1
call fcn.0053e058
mov dword [0x58165c], eax
mov eax, dword [0x58151c]
mov eax, dword [eax + 4]
cmp eax, 0xa
setge al
xor ah, ah
cwde
mov dword [0x581650], eax
mov eax, dword [0x58151c]
mov eax, dword [eax + 4]
cmp eax, 0xa
jge 0x53d42a
mov eax, dword [0x58151c]
mov eax, dword [eax + 4]
cmp eax, 6
jl 0x53d418
mov eax, dword [0x58151c]
mov eax, dword [eax + 8]
cmp eax, 2
jl 0x53d418
jmp 0x53d41c
xor eax, eax
jmp 0x53d41f
xor eax, eax
inc eax
cmp eax, 0
jne 0x53d42a
xor eax, eax
jmp 0x53d42d
xor eax, eax
inc eax
mov dword [0x581654], eax
mov eax, dword [0x58151c]
mov eax, dword [eax + 4]
cmp eax, 6
setl al
xor ah, ah
cwde
mov dword [0x581658], eax
push 0x19
push dword [0x5802a0]
call fcn.0044faf9
mov dword [ebp - 0xc], eax
mov eax, 3
shl eax, 0x13
mov edx, eax
mov eax, 0x27
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [0x58151c]
mov eax, dword [eax + 8]
shl eax, 8
xchg edx, eax
mov eax, dword [0x58151c]
mov eax, dword [eax + 4]
or eax, edx
and eax, 0xffff
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], edx
call fcn.0053d13e
mov eax, dword [0x581658]
xor al, 1
cmp eax, 0
je 0x53d4b9
call fcn.00525357
push 0
call fcn.0053cee4
push dword [0x58150c]
call fcn.00527dbf
push 0x1a
push dword [0x5802a0]
call fcn.0044faf9
mov dword [ebp - 0x10], eax
mov eax, 0xb
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [0x58151c]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov eax, dword [0x58151c]
mov eax, dword [eax + 0xc]
cmp eax, 0x55f0
setge al
xor ah, ah
cwde
mov dword [0x58164c], eax
push 0x1b
push dword [0x5802a0]
call fcn.0044faf9
mov dword [ebp - 0x10], eax
mov eax, 0xb
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [0x58151c]
mov al, byte [eax + 0x11a]
and eax, 0xff
mov edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
call fcn.0053d227
mov eax, dword [0x581650]
cmp eax, 0
je 0x53d593
push 0x5842a4
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0
je 0x53d593
push 0x84
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x5816ac], eax
call fcn.0053d5aa
mov dword [0x5816a8], eax
push 0x53d31e
call fcn.004a1303
push dword [0x5814bc]
call fcn.0052520a
leave
ret
Function at 0x53db86
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x10
push dword [ebp + 8]
call fcn.0053c00a
mov dword [ebp - 0x14], eax
mov eax, 0
mov edx, dword [ebp - 0x14]
cmp eax, edx
jne 0x53dbac
jmp 0x53dc99
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x53dbc8
push 0
push dword [ebp + 0xc]
push 0xe
push dword [ebp - 0x14]
call dword [sym.imp.USER32.DLL_SendMessageW]
jmp 0x53dbdb
push 0
push dword [ebp + 0xc]
push 0x149
push dword [ebp - 0x14]
call dword [sym.imp.USER32.DLL_SendMessageW]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0
jl 0x53dc99
push dword [ebp + 8]
call fcn.00455f1d
add eax, 0x30
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 7
je 0x53dc1a
push 2
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.0044792c
mov eax, dword [ebp - 0x18]
cmp eax, 0
jne 0x53dc31
push dword [ebp - 0xc]
call fcn.00445daa
jmp 0x53dc99
mov eax, dword [ebp - 0x18]
inc eax
shl eax, 2
push eax
push dword [ebp - 0xc]
call fcn.004331b4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x53dc63
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
inc eax
push eax
push 0xd
push dword [ebp - 0x14]
call dword [sym.imp.USER32.DLL_SendMessageW]
jmp 0x53dc77
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push 0x148
push dword [ebp - 0x14]
call dword [sym.imp.USER32.DLL_SendMessageW]
xor eax, eax
inc eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0
call fcn.004328ed
push dword [0x580d48]
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.00439212
leave
ret 8
Function at 0x53dc9d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x10
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x53dcc6
push 0
push dword [ebp + 0xc]
push 0xe
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.DLL_SendMessageW]
jmp 0x53dcdc
push 0
push dword [ebp + 0xc]
push 0x149
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.DLL_SendMessageW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0
jl 0x53ddc3
push 3
push dword [ebp + 8]
call fcn.0053beaa
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 7
je 0x53dd18
push 2
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.0044792c
mov eax, dword [ebp - 0xc]
cmp eax, 0
jne 0x53dd2f
push dword [ebp - 0x10]
call fcn.00445daa
jmp 0x53ddc3
mov eax, dword [ebp - 0xc]
inc eax
shl eax, 2
push eax
push dword [ebp - 0x10]
call fcn.004331b4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x53dd64
push dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
inc eax
push eax
push 0xd
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.DLL_SendMessageW]
jmp 0x53dd7b
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push 0x148
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.DLL_SendMessageW]
xor eax, eax
inc eax
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 0
call fcn.004328ed
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call fcn.005281a5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0x20
jne 0x53ddbc
push dword [0x580d48]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00439212
push 1
call fcn.0048ad35
leave
ret 8

Function at 0x53e540
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 4
mov eax, dword [0x581518]
cmp eax, 0
je 0x53e55c
call dword [sym.imp.USER32.DLL_ReleaseCapture]
call fcn.0053b70f
push 0xa
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_UpdateWindow]
mov eax, dword [0x581654]
xor al, 1
cmp eax, 0
je 0x53e593
push 0xffffffffffffffff
push 0
push 0
push 0
push dword [ebp + 8]
call fcn.0052f526
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_SetForegroundWindow]
push dword [ebp + 8]
call fcn.0053d9e2
leave
ret 4
Function at 0x540532
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 4
mov eax, dword [ebp + 0x14]
mov edx, dword [0x580a48]
cmp eax, edx
jne 0x54056f
mov eax, dword [0x581648]
sub eax, 0xc
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_GetWindowLongW]
mov edx, eax
mov eax, 2
and eax, edx
cmp eax, 0
je 0x54056f
jmp 0x540573
xor eax, eax
jmp 0x540576
xor eax, eax
inc eax
cmp eax, 0
je 0x54059a
mov eax, dword [ebp + 0x10]
cmp eax, 0
je 0x540594
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0053ca55
jmp 0x54059a
call dword [sym.imp.USER32.DLL_DestroyCaret]
mov eax, dword [ebp + 0x10]
cmp eax, 0
je 0x5405bf
mov eax, dword [ebp + 0x14]
mov edx, dword [0x580a48]
cmp eax, edx
jne 0x5405b8
mov eax, 8
jmp 0x5405bd
mov eax, 5
jmp 0x5405c4
mov eax, 0
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, dword [0x581654]
xor al, 1
cmp eax, 0
je 0x5405f1
push 0xffffffffffffffff
push 0
push 0
push 0
push dword [ebp + 8]
call fcn.0052f526
mov eax, dword [ebp + 0x14]
mov edx, dword [0x580a74]
cmp eax, edx
jne 0x540621
mov eax, dword [0x581648]
sub eax, 4
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_GetWindowLongW]
mov dword [ebp + 8], eax
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, dword [ebp + 0x14]
mov edx, dword [0x580a64]
cmp eax, edx
jne 0x540638
push 9
push dword [ebp + 8]
call fcn.005316f0
leave
ret 0x10
Function at 0x100dcf0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1010004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002858
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100ddc5
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100ddb4
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x100dd9e
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x100ddb4
push eax
push edi
push dword [ebp - 0x110]
call fcn.0100dc88
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x100ddc7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01009dc4
leave
ret 4
Function at 0x4d955b
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004d970b
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4d9659
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4d95fc
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4d963f
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4d9613
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4d962e
test al, 0x40
je 0x4d9625
mov ecx, dword [edi + 0x20]
jmp 0x4d962c
test al, 0x80
je 0x4d963f
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4d963f
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4d95cb
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4186ca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041853b

Function at 0x418ac4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407f70
mov eax, dword [0x431040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004167d8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418b06
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418c62
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423790
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47e350]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419abb
mov ecx, dword [esi*4 + 0x47e350]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x418c5b
cmp eax, dword [edi + ecx + 0x24]
jne 0x418c5b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418c5b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419abb
add esp, 0x14
test edx, edx
jl 0x418c5b
jg 0x418bd1
test eax, eax
jb 0x418c5b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418c5b
jl 0x418beb
cmp dword [ebp - 0x1008], eax
ja 0x418c5b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418c09
test ebx, ebx
je 0x418c42
cmp ecx, edi
jae 0x418c42
mov al, byte [ecx]
cmp al, 0xd
jne 0x418c23
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418c2f
cmp byte [ecx + 1], 0xa
jne 0x418c2f
inc ecx
jmp 0x418c2f
movzx eax, al
movsx eax, byte [eax + 0x431310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418c09
cmp edx, ebx
jne 0x418c09
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418c60
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407402
leave
ret
Function at 0x418f59
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 + 0x47e350]
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 0x418f99
cmp byte [ebx], 0xa
jne 0x418f99
or byte [eax + edi + 0x28], 4
jmp 0x418f9e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41909c
mov al, byte [edx]
cmp al, 0x1a
je 0x41907e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x418fcd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x418ff2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x418ffc
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 0x418faf
jmp 0x41909c
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 0x419079
cmp dword [ebp - 0xc], 0
je 0x419079
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47e350]
test byte [eax + edi + 0x28], 0x48
je 0x419053
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41903e
mov byte [esi], dl
jmp 0x41904f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47e350]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41909c
cmp byte [ebp - 1], 0xa
jne 0x419062
cmp esi, ebx
jne 0x419062
mov byte [esi], 0xa
jmp 0x41909b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419ad9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41909c
mov byte [esi], 0xd
jmp 0x41909b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47e350]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419098
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41909c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4190a5
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 + 0x47e350]
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 0x4190e8
cmp word [esi], dx
jne 0x4190e8
or byte [edi + eax + 0x28], 4
jmp 0x4190ed
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 0x419240
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 0x419220
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41912f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419165
cmp eax, edx
jae 0x419171
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 0x419107
jmp 0x419240
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 0x41921c
cmp dword [ebp - 0x14], 0
je 0x41921c
mov eax, dword [ebx*4 + 0x47e350]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4191f4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4191bd
mov word [esi], cx
jmp 0x4191f0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47e350]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47e350]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47e350]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419240
pop ebx
cmp word [ebp - 4], bx
jne 0x419205
cmp esi, dword [ebp + 0xc]
jne 0x419205
mov word [esi], bx
jmp 0x41923d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419ad9
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419240
push 0xd
jmp 0x419239
mov ecx, dword [ebx*4 + 0x47e350]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419237
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419240
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 0x425570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edx, str.sioABcuhcuAUIs
mov ecx, 0x47d838
call fcn.00403800
mov edi, eax
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edi + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [esp + 0x10], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [esp + 0xc]
push eax
call fcn.00403660
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0xc], al
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
test eax, eax
je 0x4255d8
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0xc]
mov ecx, edi
call fcn.004047b0
mov ecx, edi
call fcn.00403430
push 4
call fcn.00407415
add esp, 4
lea ecx, [esp + 0x18]
mov dword [eax], 0x425440
push ecx
push 0
push eax
push 0x404e30
push 0
push 0
call fcn.0040bc1c
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
je 0x4256e8
cmp dword [esp + 0x18], 0
je 0x4256f7
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x4256fe
push 0
push ecx
push dword [esp + 0x1c]
call fcn.00406cd2
add esp, 0xc
test eax, eax
jne 0x425705
xorps xmm0, xmm0
mov dword [esp + 0x1c], eax
xor ecx, ecx
movlpd qword [esp + 0x14], xmm0
mov dword [esp + 0x20], ecx
lea edi, [eax + 0x64]
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], eax
mov esi, 2
cmp ecx, eax
je 0x425688
mov dword [ecx], 0
add ecx, 4
mov dword [esp + 0x20], ecx
jmp 0x42569f
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00404960
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
sub esi, 1
jne 0x425675
sub edi, 1
jne 0x425670
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4256d9
sub eax, edx
mov ecx, edx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x4256cf
mov edx, dword [ecx - 4]
add eax, 0x23
sub ecx, edx
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x42570c
push eax
push edx
call fcn.00407445
add esp, 8
cmp dword [esp + 0x18], 0
jne 0x425711
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [esp + 0x1c], 0
call fcn.0040501f
push 1
call fcn.0040501f
push 5
call fcn.0040501f
push 2
call fcn.0040501f
call fcn.0040f26f
call fcn.0040e59b
int3
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x44f2ef]
shl eax, 2
mov dword [0x44f2f3], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00443904
pop edx
call fcn.00443868
call fcn.00443944
push 0
call fcn.00444b68
pop ecx
push 0x44f298
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x44f2f7], eax
push 0
jmp fcn.00449ee8

Function at 0x407cc8
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
mov al, byte [ebp + 8]
call fcn.00407a44
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.00441aec
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x407d26
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4536d0]
mov dl, 1
mov eax, dword [0x407968]
call fcn.0043cb80
call fcn.00441370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x408cfc
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.004416a8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x408d4b
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.004418d8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ed14
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 0x40ed1a
ret

Function at 0x411078
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4110c9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4110b0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4110a0
jmp 0x4110c9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4110b1
pop ebx
mov esp, ebp
pop ebp
ret