joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e401b
Capabilities:
Check for software breakpoints

Disassembly:
popal
push eax
invalid
or dword [esi + 0x6536ea6d], edi
pushfd
out 0xde, eax
adc bh, ah
mov gs, word [ecx + ebx*2]
fcmovu st(0), st(6)
inc ecx
push eax
fcmovb st(0), st(2)
stc
and bh, ah
and dword [0x24964c92], ebp
ficomp dword [edx - 0x1accaade]
xchg dword [esp + edi*8], ebp
fsub qword [edi + 0x76]
les edi, [ebp + 0x5ef654c0]
mov dl, cl
mov al, byte [0xd6e62cf8]
adc edi, dword [ecx]
and byte [eax - 0x3e564f84], dh
cmp eax, 0x11dc242a
push eax
inc esi
cli
push cs
loopne 0x4e4004
stc
pop esi
add dword [ebp - 0x9a3d34f], edi
pop es
invalid

Function at 0x5769bb
Capabilities:
Encode data using xor

Disassembly:
sal ebp, 1
mov edi, 0xd8b17ba4
dec eax
fmul qword [ecx + 0x47]
cmp dword [ebx + 7], edx
xor eax, 0xe9fed1b6
stosb byte es:[edi], al
or byte [ebp - 0x59d2e46a], bl
rol dword [esi - 0x7753d53d], 0xb8
sub eax, 0x27d9fd41
inc ecx
std
fldenv [edi]
sub ch, dl
lodsd eax, dword [esi]
js 0x57698e
imul edx, dword [edx], 0xeab2a057
mov byte [ebx - 0x38bae07c], 0xd1
shr dword [esi], 1
jl 0x576964
shr dword [esi], 1
jl 0x576964
stc
mov dl, 0x61
in eax, dx
lodsd eax, dword [esi]
jnp 0x5769a5
pop ecx
popfd
xchg cl, dl
js 0x576970
sbb byte [edx + 0x259d94b4], al
jmp 0x576a44
adc al, 0x94
pop edx
invalid

Function at 0x57cbe1
Capabilities:
Encode data using xor

Disassembly:
add ebp, dword [ebx + 0x65]
pop esp
sbb dword [edx - 0x5a], ebx
fisub dword [ecx + 0x73]
add byte [edx - 0x1d], dh
invalid

Function at 0x64e56d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x659368
cmp edx, dword [eax]
je 0x64e58f
add eax, 8
inc ecx
cmp eax, 0x6593f8
jl 0x64e580
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x659368]
jne 0x64e6bd
mov eax, dword [0xa5ccc0]
cmp eax, 1
je 0x64e697
test eax, eax
jne 0x64e5c0
cmp dword [0x659294], 1
je 0x64e697
cmp edx, 0xfc
je 0x64e6bd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64e5f7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064ef50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0064f3e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64e63a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0064f3e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x6540f4
push edi
call fcn.006512b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0064ef50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0064ef60
lea eax, [ebp - 0xa0]
push 0x6540d4
push eax
call fcn.0064ef60
push dword [esi + 0x65936c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0064ef60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00651224
add esp, 0x2c
pop edi
jmp 0x64e6bd
lea eax, [ebp + 8]
lea esi, [esi + 0x65936c]
push 0
push eax
push dword [esi]
call fcn.0064f3e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x403e59
pop dword [ebp - 0x18]
mov eax, 0x3aeab469
sub eax, 0x3aaa7610
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x9b94ae30
sub dword [ebp - 0x28], 0x4d4268e5
mov dword [ebp - 0x24], 0xcd3b2087
add dword [ebp - 0x24], 0x64f82bbe
mov dword [ebp - 0x20], 0x92366d47
add dword [ebp - 0x20], 0xba15d6e7
mov dword [ebp - 0x1c], 0x6c54bf4e
sub dword [ebp - 0x1c], 0x6c54bf4e
lea eax, [ebp - 0x28]
push eax
mov eax, 0x49aa61bb
add eax, 0xb6961ed1
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x3776b8ab
sub dword [ebp - 0x28], 0xc3044f55
mov dword [ebp - 0x24], 0x6ba39ae9
add dword [ebp - 0x24], 0xd5c8c68c
mov dword [ebp - 0x20], 0x9eaa42af
add dword [ebp - 0x20], 0xc4c529bd
mov dword [ebp - 0x1c], 0xa81644ec
add dword [ebp - 0x1c], 0x57e9bb14
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xc59f72b3
sub eax, 0xc55ef1df
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x38455
push 0
call eax
mov ecx, 0x4e18
xor edi, edi
add edi, eax
mov ebx, 0xeb9bbc00
add ebx, 0x14a55400
add ebx, dword [ebp - 0x18]
mov edx, 0xb507cb5d
mov dword [ebp - 0x10], 0x8319f2ea
mov esi, dword [ebx]
add dword [ebp - 0xc], 0xb05e7d28
xor esi, edx
sub dword [ebp - 4], 0x40412220
mov dword [edi], esi
mov dword [ebp - 0x10], 0xa1fbac22
add edi, 4
add ebx, 0x209f9764
sub ebx, 0x209f9760
loop 0x403f71
add eax, 0xb910ccb2
sub eax, 0xb90fa17f
xor ebx, ebx
add ebx, eax
add eax, 0xad6540a1
add eax, 0x529abf64
mov ecx, 0x4be5848e
sub ecx, 0x4ba5848e
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x4487c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x42000]
push edi
or ebp, 0xffffffff
jmp 0x4487e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4487e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4487d8
mov eax, 1
add ebx, ebx
jne 0x4487fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44880c
jne 0x44882b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44882b
dec eax
add ebx, ebx
jne 0x448818
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4487f0
add ebx, ebx
jne 0x448827
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x44887d
xor ecx, ecx
sub eax, 3
jb 0x448843
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4488b2
sar eax, 1
mov ebp, eax
jmp 0x44884e
add ebx, ebx
jne 0x44884e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44881c
inc ecx
add ebx, ebx
jne 0x44885c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44881c
add ebx, ebx
jne 0x448869
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44885e
jne 0x44887a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44885e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44889c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44888e
jmp 0x4487de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44889c
add edi, ecx
jmp 0x4487de
pop esi
mov edi, esi
mov ecx, 0x35
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4488ba
cmp byte [edi], 2
jne 0x4488ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4488bf
lea edi, [esi + 0x46000]
mov eax, dword [edi]
or eax, eax
je 0x448937
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x491b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x491ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4488ec
mov ecx, edi
jns 0x44891b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x491f0]
or eax, eax
je 0x448931
mov dword [ebx], eax
add ebx, 4
jmp 0x448909
call dword [esi + 0x49200]
mov ebp, dword [esi + 0x491f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x44896b
sub esp, 0xffffff80
jmp 0x40146c
Function at 0x10f50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x18]
push esi
xor esi, esi
cmp eax, esi
jne 0x10f64
push esi
push esi
jmp 0x10f6f
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push esi
mov dword [ebp - 4], esi
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, esi
jl 0x10f9a
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x10f95
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
push 1
pop eax
jmp 0x10f9c
xor eax, eax
pop esi
leave
ret 0x14
Function at 0x113ec
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [0x1473c], 0
cmp byte [section..data], 0x30
jne 0x1140c
call fcn.000106bb
mov dword [0x14c48], eax
push ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push esi
push edi
lea eax, [ebp - 0xc]
push 0x113a4
push eax
call ebx
mov esi, dword [ebp + 8]
push 0x1b
pop ecx
mov eax, 0x10d16
lea edi, [esi + 0x38]
rep stosd dword es:[edi], eax
call fcn.000102ce
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push 0x22
push eax
push 0x10
push esi
mov dword [esi + 0x70], 0x10d28
mov dword [esi + 0x34], fcn.00011252
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, edi
jl 0x114a0
lea eax, [ebp - 0x14]
push 0x113c4
push eax
call ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
cmp byte [section..data], 0x30
mov dword [0x14c50], edi
mov dword [0x14c5c], edi
je 0x1149e
call fcn.00010fa7
push esi
call fcn.00011252
mov eax, 0xc0000001
jmp 0x114a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4010d4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov eax, str._ccav_
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401224
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401108
push ebx
call fcn.0040fae3
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [0x41bef1]
test ebx, ebx
je 0x40111f
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [0x41bef1], eax
push 0x41b216
push dword [0x41bef1]
call fcn.00401037
add esp, 8
cmp eax, 0
jne 0x401165
mov dword [ebp - 8], esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401448
call fcn.00403124
call main
call fcn.004033f7
call fcn.0040d441
mov eax, str._a90770213ac485d0_
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401194
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40119d
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4011ad
push ebx
call fcn.0040fae3
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x402c00
pop dword [ebp - 0x4c]
mov eax, 0x402c00
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x4fd7842a
add dword [ebp - 0x5c], 0xfe7ac121
mov dword [ebp - 0x58], 0x9730e4a2
add dword [ebp - 0x58], 0x9b0267a3
mov dword [ebp - 0x54], 0x377fb978
sub dword [ebp - 0x54], 0xeb33754a
mov dword [ebp - 0x50], 0xd13db123
add dword [ebp - 0x50], 0x2ec24edd
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x1d7c5072
add eax, 0xe2c4301a
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x330e03f7
add dword [ebp - 0x5c], 0x4164655f
mov dword [ebp - 0x58], 0x2f50faa5
add dword [ebp - 0x58], 0x121b66d0
mov dword [ebp - 0x54], 0xcc6d86ec
add dword [ebp - 0x54], 0x9701e580
mov dword [ebp - 0x50], 0xe2fcf7e3
add dword [ebp - 0x50], 0x1d03081d
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x2391f34c
sub eax, 0x23517278
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x36762
push 0
call eax
mov ecx, 0x6b10859c
sub ecx, 0x6b103e85
xor edx, edx
add edx, eax
mov ebx, 0x411000
add ebx, dword [ebp - 0x4c]
mov edi, 0xeb02a499
sub edi, 0xf730d690
mov esi, dword [ebx]
sub dword [ebp - 0x30], edx
add esi, edi
sub dword [ebp - 0x18], esi
mov dword [edx], esi
xor dword [ebp - 0x1c], 0x3686dc7d
add edx, 4
add ebx, 4
loop 0x402d19
add eax, 0xf8ac95ec
add eax, 0x7547943
mov ebx, eax
add eax, 0x99ed382c
add eax, 0x6612c7d9
mov ecx, 0xa2f0815
add ecx, 0xf610f7eb
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10069b90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
invalid
invalid
pushfd
cld

Function at 0x100790e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x811c9dc5
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
je 0x10079112
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x1000193
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
xor ecx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x100790eb
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10085a10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101151ad
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1015d2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x11], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x12], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.10004190
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10004190
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x100a28b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10116d24
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1015d2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x44]
movzx ecx, byte [eax + 9]
test ecx, ecx
jne 0x100a28ec
jmp 0x100a2934
xor edx, edx
mov byte [ebp - 0x11], dl
push 0x1012a310
push 0x8a
push 0x1012a2dc
push 3
lea ecx, [ebp - 0x3c]
call fcn.100a1b10
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x40]
or ecx, 1
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x4c]
call fcn.100a1850
push eax
lea ecx, [ebp - 0x11]
call fcn.100a1c20
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x40]
and edx, 1
je 0x100a294f
and dword [ebp - 0x40], 0xfffffffe
lea ecx, [ebp - 0x3c]
call fcn.100a1b50
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 4]
push eax
call fcn.10101ff5
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x100a2979
call fcn.100f7654
cmp dword [eax], 4
je 0x100a294f
cmp dword [ebp - 0x10], 0
jge 0x100a298c
call fcn.100f7654
mov ecx, dword [ebp - 0x44]
mov edx, dword [eax]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x100f30a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1015d2f0]
jne 0x100f30b0
repz ret
jmp fcn.100fcb62

Function at 0x1010cf2b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100feb12
and dword [ebp - 4], 0
cmp dword [0x10162038], 0
mov ebx, eax
jne 0x1010cfdc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1010d08d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1010d08d
push eax
call fcn.100feaa0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10162038], eax
call esi
push eax
call fcn.100feaa0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1016203c], eax
call esi
push eax
call fcn.100feaa0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10162040], eax
call esi
push eax
call fcn.100feaa0
pop ecx
mov dword [0x10162048], eax
test eax, eax
je 0x1010cfdc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100feaa0
pop ecx
mov dword [0x10162044], eax
mov eax, dword [0x10162044]
cmp eax, ebx
je 0x1010d034
cmp dword [0x10162048], ebx
je 0x1010d034
push eax
call fcn.100feb1b
push dword [0x10162048]
mov esi, eax
call fcn.100feb1b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1010d034
test edi, edi
je 0x1010d034
call esi
test eax, eax
je 0x1010d02b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1010d02b
test byte [ebp - 0xc], 1
jne 0x1010d034
or dword [ebp + 0x10], 0x200000
jmp 0x1010d06d
mov eax, dword [0x1016203c]
cmp eax, ebx
je 0x1010d06d
push eax
call fcn.100feb1b
pop ecx
test eax, eax
je 0x1010d06d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1010d06d
mov eax, dword [0x10162040]
cmp eax, ebx
je 0x1010d06d
push eax
call fcn.100feb1b
pop ecx
test eax, eax
je 0x1010d06d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10162038]
call fcn.100feb1b
pop ecx
test eax, eax
je 0x1010d08d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1010d08f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10111fa7
call fcn.100f7667
mov dword [eax], esi
call fcn.100f7654
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.100f3f46
add esp, 0x14
push 0x16
pop eax
jmp 0x10111ffc
test dword [ebp + 0xc], 0xfffffff9
jne 0x10111f83
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10111fd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100f767a
pop ecx
call fcn.100f7654
mov eax, dword [eax]
jmp 0x10111ffc
test al, 0x10
jne 0x10111ffa
test al, 1
je 0x10111ffa
test byte [ebp + 0xc], 2
je 0x10111ffa
call fcn.100f7667
mov dword [eax], 5
call fcn.100f7654
mov dword [eax], 0xd
jmp 0x10111fcb
xor eax, eax
pop esi
pop ebp
ret
Function at 0x405a4e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x405a75
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x405a78
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00405a2a
pop esi
leave
ret 8

Function at 0x405fe9
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.00405b06
mov edi, eax
test edi, edi
jne 0x406010
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x406059
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x406054
test al, 0x10
je 0x406054
test eax, 0x400
je 0x406050
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0040605f
push dword [ebp - 4]
mov esi, eax
call fcn.00405b71
test esi, esi
jne 0x406054
xor edx, edx
jmp 0x406056
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x406c65
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406ca4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406ca4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406ca4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406ca4
cmp dword [ecx + 0x74], 0xe
jbe 0x406ca4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1146a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
mov word [ebp - 0xc], bx
mov word [ebp - 0xa], 0x100
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
call esi
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x115aa
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 1
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
cmp eax, 0xc0000023
jne 0x11528
push 0x6a494454
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 0x14], edi
jne 0x11533
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_NtClose]
jmp 0x115aa
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push edi
push 1
push eax
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_NtClose]
cmp esi, ebx
jl 0x115a2
mov eax, dword [edi + 0xc]
cmp eax, 2
mov dword [ebp + 0xc], eax
jbe 0x115a2
mov esi, dword [edi + 8]
add esi, edi
cmp eax, ebx
mov edx, esi
mov dword [ebp + 0x10], ebx
jbe 0x11584
lea ecx, [eax - 1]
shr ecx, 1
inc ecx
mov di, word [edx]
inc edx
inc edx
test di, di
jne 0x11581
inc dword [ebp + 0x10]
dec ecx
jne 0x11574
mov edi, dword [ebp + 0x10]
shl edi, 2
push 0x6b494454
add eax, edi
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
test ebx, ebx
jne 0x115b6
mov edi, dword [ebp + 0x14]
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
mov dword [eax], ebx
jmp 0x11616
mov ecx, dword [ebp + 0xc]
mov eax, ecx
shr ecx, 2
add edi, ebx
mov dword [ebp + 0x18], edi
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
push dword [ebp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov esi, dword [ebp + 0x10]
cmp esi, 1
mov eax, ebx
jbe 0x11609
mov ecx, dword [ebp + 0x18]
mov dword [ebx], ecx
inc ecx
push 6
pop edx
inc ecx
cmp dword [ebp + 0xc], edx
lea eax, [ebx + 4]
jbe 0x11609
mov di, word [ecx]
inc ecx
inc ecx
test di, di
jne 0x11602
mov dword [eax], ecx
add eax, 4
inc edx
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x115f3
and dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
mov dword [eax], esi
pop edi
pop esi
pop ebx
leave
ret 0x18