joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f816927
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x5f816942
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x5f81693d
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne fcn.5f816927
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x5f81692f
cmp edx, ebx
jne 0x5f816a7d
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x5f8168fe
add eax, dword [eax + 4]
jmp 0x5f8168eb
mov dword [ebp + 0xc], ebx
jmp 0x5f81694d
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x5f816965
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x5f816983
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x5f8169e1
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x5f8169c8
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x5f8169d1
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x5f8169db
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x5f8169bd
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x5f816947
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x5f816a2e
dec eax
je 0x5f816a25
sub eax, 3
je 0x5f816a1c
mov dword [ebp - 4], 0x40
jmp 0x5f816a4b
mov dword [ebp - 4], 4
jmp 0x5f816a31
mov dword [ebp - 4], 0x20
jmp 0x5f816a31
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x5f816a7d
invalid
invalid
Function at 0x5f81821b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
outsd dx, dword [esi]
loopne 0x5f81821d
invalid
dec dword [eax - 0xd38f27]
mov ch, 0x60
cld
invalid

Function at 0x5f818ddc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov eax, ecx
mov ebx, edx
mov ecx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ecx], edi
mov ecx, dword [ebp + 0x10]
push ebx
push eax
mov dword [ecx], edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x5f818e39
call fcn.5f817a62
mov esi, eax
mov ecx, dword [0x5f836150]
cmp ecx, 0x5f836150
je 0x5f818e32
test byte [ecx + 0x1c], 1
je 0x5f818e32
push esi
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x13
mov edx, 0x5f8091cc
pop ecx
call fcn.5f80c086
mov eax, esi
jmp 0x5f818f4d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x5f818e6c
call fcn.5f817a62
mov esi, eax
mov ecx, dword [0x5f836150]
cmp ecx, 0x5f836150
je 0x5f818e32
test byte [ecx + 0x1c], 1
je 0x5f818e32
push esi
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x14
jmp 0x5f818e27
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x5f818ea0
call fcn.5f817a62
mov esi, eax
mov ecx, dword [0x5f836150]
cmp ecx, 0x5f836150
je 0x5f818e32
test byte [ecx + 0x1c], 1
je 0x5f818e32
push esi
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x15
jmp 0x5f818e27
lea ecx, [eax + esi]
cmp esi, ecx
jbe 0x5f818eca
mov eax, dword [0x5f836150]
cmp eax, 0x5f836150
je 0x5f818f37
test byte [eax + 0x1c], 1
je 0x5f818f37
push dword [ebp + 8]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
jmp 0x5f818f2c
mov edx, dword [ebp + 8]
and edx, 0xf
jbe 0x5f818ee4
cmp esi, ecx
jae 0x5f818ee8
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
inc edi
cmp edi, edx
jb 0x5f818ed2
cmp esi, ecx
jb 0x5f818f07
mov eax, dword [0x5f836150]
cmp eax, 0x5f836150
je 0x5f818f37
test byte [eax + 0x1c], 1
je 0x5f818f37
push dword [ebp + 8]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x17
jmp 0x5f818f2c
movzx eax, word [esi]
test ax, ax
jne 0x5f818f3e
mov eax, dword [0x5f836150]
cmp eax, 0x5f836150
je 0x5f818f37
test byte [eax + 0x1c], 2
je 0x5f818f37
push dword [ebp + 8]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x18
mov edx, 0x5f8091cc
pop ecx
call fcn.5f80c086
mov eax, 0x80070714
jmp 0x5f818f4d
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea eax, [esi + 2]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x5f8215bb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5f8215fa
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5f8215fa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5f8215fa
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5f8215fa
cmp dword [ecx + 0x74], 0xe
jbe 0x5f8215fa
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x5f825c48
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x5f825c85
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x5f825c7e
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x5f825c8a
add edx, 0x28
cmp edx, esi
jne 0x5f825c6f
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x5f825c87
Function at 0x5f82dcf0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x5f82dd8d
push ebx
push esi
call fcn.5f82dcb9
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.5f822ef9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5f82dd3a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5f82dd8c
push edi
push eax
call fcn.5f821352
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5f82dd5a
call fcn.5f81fd74
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5f82dd8b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.5f822ef9
add esp, 0x20
test eax, eax
jne 0x5f82dd79
push edi
call fcn.5f81fd74
jmp 0x5f82dd81
push ebx
call fcn.5f81fd74
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x5f832c50
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x5f832c8e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x5f832c86
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x5f832c90
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x5f832c76
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5f832d60
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5f832d8f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5f832d8f
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1001bd34
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret

Function at 0x10037b8f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10037b9e
pop dword [ebp - 0x34]
mov eax, 0x56405f0d
sub eax, 0x463ce36f
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x8b15a373
add dword [ebp - 0x44], 0xc33ca1d8
mov dword [ebp - 0x40], 0x9f8b986b
sub dword [ebp - 0x40], 0x6d584c26
mov dword [ebp - 0x3c], 0xfbf9f96c
add dword [ebp - 0x3c], 0x50524ac2
mov dword [ebp - 0x38], 0x4a69832e
add dword [ebp - 0x38], 0xb5967cd2
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x5b8682f2
sub dword [ebp - 0x44], 0xe714199c
mov dword [ebp - 0x40], 0x7bdd36cd
sub dword [ebp - 0x40], 0x3a70d558
mov dword [ebp - 0x3c], 0xdf0d2385
sub dword [ebp - 0x3c], 0x7b9db719
mov dword [ebp - 0x38], 0xe99e7c11
add dword [ebp - 0x38], 0x166183ef
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x4c26b
push 0
call eax
mov ecx, 0x8f2d43c7
sub ecx, 0x8f2cf4c3
mov edi, eax
mov esi, 0x10075000
add esi, dword [ebp - 0x34]
mov ebx, 0x54ff04a0
add dword [ebp - 8], eax
mov edx, dword [esi]
xor edx, ebx
add dword [ebp - 0x18], 0x41ff00f2
mov dword [edi], edx
xor dword [ebp - 0xc], 0xb5bfbdec
add edi, 0xc927941
sub edi, 0xc92793d
add esi, 4
loop 0x10037caa
add eax, 0xf1606e1c
add eax, 0xea0c0c7
mov ebx, eax
add eax, 0x44ca27a4
sub eax, 0x44ca279f
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x403015
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x403024
pop dword [ebp - 8]
mov eax, 0x4cc7552e
sub eax, 0x4c87250a
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x78cbd3aa
sub dword [ebp - 0x18], 0x2a798e5f
mov dword [ebp - 0x14], 0x112f05c
add dword [ebp - 0x14], 0x31205be9
mov dword [ebp - 0x10], 0x3ba5bba6
add dword [ebp - 0x10], 0x10a68888
mov dword [ebp - 0xc], 0xfc7d7b2e
add dword [ebp - 0xc], 0x38284d2
lea eax, [ebp - 0x18]
push eax
mov eax, 0xe542efe6
sub eax, 0xe5026f6e
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xead0ac6d
sub dword [ebp - 0x18], 0x765e4317
mov dword [ebp - 0x14], 0xfb7114ca
add dword [ebp - 0x14], 0x45fb4cab
mov dword [ebp - 0x10], 0x70b6b3c
sub dword [ebp - 0x10], 0xa39bfed0
mov dword [ebp - 0xc], 0x70e4ba8f
add dword [ebp - 0xc], 0x8f1b4571
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xeefe22a8
sub eax, 0xeebda22c
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x37c98
push 0
call eax
mov ecx, 0x300438bb
add ecx, 0xcffc1244
xor esi, esi
add esi, eax
mov edi, 0x451400
add edi, dword [ebp - 8]
mov edx, 0x4f35a57e
sub edx, 0x63770773
mov dword [ebp - 4], 0x2b7c64bc
mov ebx, dword [edi]
add dword [ebp - 4], edx
xor ebx, edx
mov dword [esi], ebx
add dword [ebp - 4], 0x71e0d5cf
add esi, 0x2918c05c
add esi, 0xd6e73fa8
add edi, 0x47391d3d
sub edi, 0x47391d39
loop 0x403142
add eax, 0x82c21e5c
add eax, 0x7d3f0073
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x130fa5ee
sub ecx, 0x12cfa5ee
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x4013d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
nop
mov eax, dword [eax + 0xc]
nop
nop
mov eax, dword [eax + 0x14]
nop
nop
nop
mov eax, dword [eax]
nop
mov eax, dword [eax]
nop
nop
mov eax, dword [eax + 0x10]
nop
nop
nop
ret
Function at 0x414383
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x4143a3
cmp dword [edi + 0x54], 0
jne 0x4143a3
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041d191
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041434a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x4196dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x419720
call fcn.0041d191
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x419720
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41973b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00419294
test ebx, ebx
mov esi, eax
je 0x419739
test edi, edi
je 0x419739
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41f706
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41f74c
call fcn.0041d191
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41f74c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41f78f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41f778
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41f778
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41f78c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x420e83
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x420eb1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x420ecf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00420ded
jmp 0x420ecf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x420ecf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00420ded
test edi, edi
mov eax, edi
jne 0x420eb9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x462928]
test ecx, ecx
je 0x420f92
jmp 0x420e82
ret 8

Function at 0x42fbea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45e770]
jne 0x42fbf4
repz ret
jmp fcn.004354f2

Function at 0x433016
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x433043
call fcn.0043371a
mov dword [eax], esi
call fcn.00433707
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00430751
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x43301f
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x433072
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043372d
pop ecx
call fcn.00433707
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x433099
test al, 1
je 0x433099
test byte [esp + 0xc], 2
je 0x433099
call fcn.0043371a
mov dword [eax], 5
call fcn.00433707
mov dword [eax], 0xd
jmp 0x433069
xor eax, eax
pop esi
ret
Function at 0x441c40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004362e3
xor ebx, ebx
cmp dword [0x463680], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x441d15
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x441c80
xor eax, eax
jmp 0x441dd9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4517f4
push edi
call esi
cmp eax, ebx
je 0x441c79
push eax
call fcn.00436280
mov dword [esp], 0x4517e4
push edi
mov dword [0x463680], eax
call esi
push eax
call fcn.00436280
mov dword [esp], 0x4517d0
push edi
mov dword [0x463684], eax
call esi
push eax
call fcn.00436280
mov dword [0x463688], eax
lea eax, [ebp - 8]
push eax
call fcn.00433d0c
test eax, eax
pop ecx
pop ecx
je 0x441ce3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430655
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x441d15
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00436280
cmp eax, ebx
pop ecx
mov dword [0x463690], eax
je 0x441d15
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00436280
pop ecx
mov dword [0x46368c], eax
mov eax, dword [0x46368c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x441d8e
cmp dword [0x463690], esi
je 0x441d8e
push eax
call fcn.004362ec
pop ecx
call eax
cmp eax, ebx
je 0x441d5b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x463690]
call fcn.004362ec
pop ecx
call eax
test eax, eax
je 0x441d5b
test byte [ebp - 0x18], 1
jne 0x441d8e
lea eax, [ebp - 0xc]
push eax
call fcn.00433d43
test eax, eax
pop ecx
je 0x441d76
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430655
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x441d85
or dword [ebp + 0x10], 0x200000
jmp 0x441dbf
or dword [ebp + 0x10], 0x40000
jmp 0x441dbf
mov eax, dword [0x463684]
cmp eax, esi
je 0x441dbf
push eax
call fcn.004362ec
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x441dbf
mov eax, dword [0x463688]
cmp eax, esi
je 0x441dbf
push dword [ebp - 4]
push eax
call fcn.004362ec
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x463680]
call fcn.004362ec
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x445e33
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45e770]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00445dc8
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042fb70
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x445e82
cmp dword [ebp - 0x1c], 5
jb 0x445e9a
jmp 0x445e96
cmp dword [ebp - 0x10], 1
jne 0x445e9a
cmp dword [ebp - 0x1c], 4
ja 0x445e96
jne 0x445e9a
cmp dword [ebp - 0x18], 0
jbe 0x445e9a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4520ac
call fcn.00445cb9
test eax, eax
jge 0x445ebb
mov byte [0x460cb0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042fbea
add ebp, 0x78
leave
ret
Function at 0x4287df
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
cmp dword [0x45aa24], 0
je 0x428816
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call main
add esp, 4
jmp 0x42882f
call main
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call main
add esp, 4
jmp 0x42882f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432f0c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x432f1b
pop dword [ebp - 0x28]
mov eax, 0x432f1b
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x51cb5
push 0
mov eax, 0x3aa15deb
sub eax, 0x3a5af613
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x72e63940
add ecx, 0x8d1a1f0f
xor edx, edx
add edx, eax
mov edi, 0x9627d866
sub edi, 0x95def866
add edi, dword [ebp - 0x28]
mov esi, 0x207cad7
sub esi, 0xe21ba78b
sub dword [ebp - 0x20], ecx
mov ebx, dword [edi]
add dword [ebp - 0x1c], ecx
xor ebx, esi
mov dword [ebp - 0x10], 0x2c140fbb
mov dword [edx], ebx
sub dword [ebp - 0xc], esi
add edx, 4
add edi, 4
loop 0x432f77
add eax, 0x1540f
mov ebx, eax
add eax, 0x31d8349b
sub eax, 0x31d83496
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x44c8c0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.kernel32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x44c8df
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x44c8f2
push eax
call fcn.0044d700
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x101a9d9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x104e48c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x74]
push eax
mov ebx, ecx
call fcn.0101c268
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 8
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0101c320
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
cmp word [esi], 0
je 0x101aa4b
push edi
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101aa25
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 2]
push edi
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.0101c320
add esi, edi
cmp word [esi], 0
jne 0x101aa20
pop edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0101c420
push 0x14
pop eax
jmp 0x101aa97
test eax, eax
jne 0x101aa89
lea eax, [ebp - 0x74]
push eax
call fcn.0101c268
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0101c320
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0101c420
push 0x14
pop eax
lea ecx, [ebp - 4]
sub ecx, eax
mov cl, byte [ecx]
mov byte [ebx], cl
inc ebx
dec dword [ebp + 8]
dec eax
cmp dword [ebp + 8], 0
jne 0x101aa5d
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0101e3e2
leave
ret 4