joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405601
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x409790]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], ecx
jne 0x405638
xor eax, eax
jmp 0x4057eb
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x40a8c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40566d
push 2
push ecx
push ecx
push dword [ebp + 8]
call fcn.00406930
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40573b
cmp dword [ebp + 0x10], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], ecx
jbe 0x4057b9
jmp 0x405694
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x4056ea
mov edx, dword [ebp - 0x414]
inc dword [ebp - 0x414]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4056d5
inc dword [ebp - 0x41c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x410]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x410]
cmp dword [ebp - 0x410], 0x400
jl 0x4056ac
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405768
mov eax, dword [ebp - 0x424]
add dword [ebp - 0x418], eax
cmp eax, edi
jl 0x405774
mov eax, dword [ebp - 0x414]
sub eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0x10]
jb 0x405692
jmp 0x405774
push ecx
lea ecx, [ebp - 0x424]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405768
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x418], eax
jmp 0x405774
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x4057e3
cmp dword [ebp - 0x40c], eax
je 0x4057b3
push 5
pop esi
cmp dword [ebp - 0x40c], esi
jne 0x4057a5
call fcn.0040595d
mov dword [eax], 9
call fcn.00405970
mov dword [eax], esi
jmp 0x4057de
push dword [ebp - 0x40c]
call fcn.00405983
pop ecx
jmp 0x4057de
mov edi, dword [ebp - 0x420]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4057cb
cmp byte [edi], 0x1a
jne 0x4057cb
xor eax, eax
jmp 0x4057e9
call fcn.0040595d
mov dword [eax], 0x1c
call fcn.00405970
and dword [eax], 0
or eax, 0xffffffff
jmp 0x4057e9
sub eax, dword [ebp - 0x41c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.00406d66
leave
ret
Function at 0x4059f6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40a240], ebx
push esi
push edi
jne 0x405a78
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405ab3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40a240], eax
je 0x405ab3
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40a244], eax
call esi
cmp dword [0x409b88], 2
mov dword [0x40a248], eax
jne 0x405a78
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40a250], eax
je 0x405a78
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40a24c], eax
mov eax, dword [0x40a24c]
test eax, eax
je 0x405abd
call eax
test eax, eax
je 0x405aa4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40a250]
test eax, eax
je 0x405aa4
test byte [ebp - 8], 1
jne 0x405abd
cmp dword [0x409b94], 4
jb 0x405ab7
or byte [ebp + 0x12], 0x20
jmp 0x405adc
xor eax, eax
jmp 0x405aec
or byte [ebp + 0x12], 4
jmp 0x405adc
mov eax, dword [0x40a244]
test eax, eax
je 0x405adc
call eax
mov ebx, eax
test ebx, ebx
je 0x405adc
mov eax, dword [0x40a248]
test eax, eax
je 0x405adc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40a240]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d20
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.00405e30
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405e1c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x409b88], 2
jne 0x405da1
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x405da1
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x405da1
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x405da1
cmp dword [ebp - 4], esi
jbe 0x405da1
mov esi, dword [ebp - 4]
mov edx, dword [0x409b88]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x405dca
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x405dd6
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x405de8
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x405e1c
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x405e1c
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x405e1c
xor eax, eax
inc eax
jmp 0x405e1e
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406d66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409790]
jne 0x406d77
test ecx, 0xffff0000
jne 0x406d77
ret
jmp fcn.00406d7c
Function at 0x58f8c4
Capabilities:
Encode data using xor

Disassembly:
not byte [eax - 0x20]
sub byte [ecx - 0x7c122b96], cl
and byte [ebp - 0x5b], ah
and dword [eax], 0x65
movsd dword es:[edi], dword [esi]
pop ebp
jne 0x58f864
inc esi
pop edx
test dword [eax + 7], 0xaab0939c
cli
rcl dl, cl
invalid
stosd dword es:[edi], eax
cmp byte [ebp - 0x1aebe1fe], bh
loop 0x58f945
jmp 0x58f85c
movups xmm0, xmmword [ecx - 0x36]
cwde
and ebp, esp
mov eax, 0x383fcbeb
int 6
iretd
out 0x15, eax
das
cmc
sbb eax, 0xde6198f2
sbb dword [ebx], esp
mov cl, 0x53
or ch, 0xf9
lea eax, [ecx*8 + 0x66ff8631]
pop eax
pop ebp
push ss
test eax, 0xdb834823
xchg edx, eax
lahf
cmp byte [ecx + edi], ah
dec edi
inc ecx
cmp al, byte [edx + 0x64bc159]
cmpsb byte [esi], byte es:[edi]
push ss
test eax, 0xf3018bb1
jle 0x58f8e1
xchg ecx, eax
imul ebx, dword [eax + 0x2ea65ed], 0x606741c
adc dword [ebx - 0x70], 0x48
lodsb al, byte [esi]
jne 0x58f9b8
xchg esp, eax
sub dword [0x5aa4418f], esp
or edx, dword [ecx]
or dh, byte [eax]
sub eax, 0xcd7d1fb9
cmc
push eax
out dx, al
sbb ch, byte ss:[edi - 0x2a9ff7f1]
jecxz 0x58f8f2
invalid
mov al, byte [0xb4ddab2c]
and dh, dl
sub dword [eax - 0x15], ebp
leave
lahf
xlatb
dec esp
cmp ecx, dword [0x906794ae]
pop ss
or byte [ecx - 0x5eafc810], 0x2c
xor al, ah
invalid
insb byte es:[edi], dx
pushal
cmp al, byte [edx + ebp*4 + 0x24ca8aaf]
in eax, dx
stosb byte es:[edi], al
scasd eax, dword es:[edi]
mov cl, dl
and al, 0xf2
in eax, dx
scasb al, byte es:[edi]
and eax, 0xf60f9257
in eax, 0xc
loopne 0x58f9b4
rcr al, cl
mov al, 0x2b
in al, 0xcc
push esi
dec dword [ebp + 0xb]
jo 0x58f95e
retf 0xb543
Function at 0x10002400
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10188cdb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101eb630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.101878db
push 4
mov dword [ebp - 4], 0
call fcn.1007a2f4
mov edi, eax
add esp, 4
test edi, edi
je 0x10002480
call fcn.101874c0
mov dword [edi], eax
call fcn.1018727f
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.101871b4
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10002476
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.101871dc
jmp 0x10002482
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 0x10004010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10188e78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101eb630]
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 edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x10004131
cmp byte [edi + 0x49], bl
je 0x10004131
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x10004125
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x10004085
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x1000409d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x100040c6
dec eax
je 0x100040ca
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x10004120
jmp 0x1000412c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x100040da
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x10004103
cmp ebx, 0x10
jae 0x100040e9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.1016e094
add esp, 0x10
cmp esi, eax
jne 0x1000411d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x10004129
test esi, esi
jne 0x10004091
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.10003240
jmp 0x1000408b
lea ecx, [ebp - 0x2c]
call fcn.100021e0
xor al, al
jmp 0x10004133
lea ecx, [ebp - 0x2c]
call fcn.100021e0
mov al, 1
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.1016d6ec
mov esp, ebp
pop ebp
ret
Function at 0x1008c10d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x1008c154
call fcn.1007e625
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1008c154
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1008c170
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1008bc12
mov esi, eax
test edi, edi
je 0x1008c16e
test ebx, ebx
je 0x1008c16e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1008c60a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1019181a
call fcn.1016e8ae
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x1008c62f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1008c681
call fcn.10081521
push eax
lea ecx, [ebp - 0x10]
call fcn.1007b0e2
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10170eec
push eax
call fcn.1007a5a3
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1007a929
mov eax, esi
call fcn.1016e986
ret 8

Function at 0x100b6062
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.1007e625
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100b609b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.100b5ca4
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x100b60f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x100b611d
cmp dword [edi + 0x74], 0
jne 0x100b611d
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.1007e625
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 [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.100b60ba
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100b817a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.100b7e39
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x100b81c4
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1008141b
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1007cd9e
jmp 0x100b81cf
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1007fce9
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x100b81d5
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.1008c2d4
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x100b8212
call fcn.100b7e39
mov dword [esi + 0xc], 1
jmp 0x100b8217
call fcn.100b7e39
cmp dword [esi], 0
je 0x100b8260
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x100b8238
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1008141b
jmp 0x100b824a
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.1007b2a5
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1007cd9e
jmp 0x100b8284
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x100b8284
push dword [esi]
push dword [ebp + 8]
call fcn.1007fce9
pop esi
pop ebp
ret 0xc

Function at 0x100e7929
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x100e7943
call fcn.1007e625
mov esi, dword [eax + 0xc]
push dword [0x101fe8bc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100e7961
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x100e7959
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x100e798e
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x100e795b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.100e7857
mov esi, eax
jmp 0x100e7980

Function at 0x1013281d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.10166ed6
call fcn.1007e056
cmp dword [eax + 0x14], 0
jne 0x1013283a
mov ecx, esi
pop esi
jmp fcn.10132322
pop esi
ret
Function at 0x10135a4c
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.10104599
call fcn.1007e056
cmp dword [eax + 0x14], 0
jne 0x10135a69
mov ecx, esi
pop esi
jmp fcn.1013541f
pop esi
ret

Function at 0x10147f58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x10147f70
mov edi, dword [esi + 0xc]
jmp 0x10147fb0
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x10147f89
call fcn.1007e9e4
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x10147f9e
call fcn.1007e9e4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x10147fb0
call fcn.1007e9e4
call fcn.1007e625
cmp dword [eax + 0x3c], 0
je 0x10147fc5
push edi
mov ecx, ebx
call fcn.10146d8c
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.10147e72
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x10147fe3
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x10147fef
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1016d6ec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101eb630]
jne 0x1016d6f6
repz ret
jmp fcn.101765fc
Function at 0x10182e87
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101eb630]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10175112
and dword [ebp - 0x14], 0
cmp dword [0x10201090], 0
mov dword [ebp - 0x18], eax
jne 0x10182f3a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10182fe2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10182fe2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x101be760
push ebx
mov dword [0x10201090], eax
call edi
push eax
call esi
push 0x101be74c
push ebx
mov dword [0x10201094], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10201098], eax
call edi
push eax
call esi
mov dword [0x102010a0], eax
test eax, eax
je 0x10182f3a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1020109c], eax
mov eax, dword [0x1020109c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10182f93
cmp dword [0x102010a0], ecx
je 0x10182f93
push eax
call esi
push dword [0x102010a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10182f93
test ebx, ebx
je 0x10182f93
call edi
test eax, eax
je 0x10182f8a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10182f8a
test byte [ebp - 8], 1
jne 0x10182f93
or dword [ebp + 0x10], 0x200000
jmp 0x10182fc6
mov eax, dword [0x10201094]
cmp eax, dword [ebp - 0x18]
je 0x10182fc6
push eax
call esi
test eax, eax
je 0x10182fc6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10182fc6
mov eax, dword [0x10201098]
cmp eax, dword [ebp - 0x18]
je 0x10182fc6
push eax
call esi
test eax, eax
je 0x10182fc6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10201090]
call esi
test eax, eax
je 0x10182fe2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10182fe4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1016d6ec
leave
ret
Function at 0x403890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489d30
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4be3b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044c692
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0044a3a4
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret