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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10142bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10197710]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x1002425c
xor eax, eax
jmp 0x100243ec
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x10024285
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x10024285
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x100243ec
cmp dword [edi + 0x54], 0
je 0x100243e9
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x100242ad
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x100242d3
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.1011bbe4
add esp, 8
cmp eax, 0xffffffff
je 0x100243e9
mov eax, ebx
jmp 0x100243ec
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.100250d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x100242f0
mov edx, eax
cmp ebx, 0x10
jae 0x100242fc
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x100243da
cmp eax, 1
jg 0x10024390
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x1002433c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x10024365
cmp ebx, 0x10
jae 0x1002434b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.1011c217
add esp, 0x10
cmp esi, eax
jne 0x100243da
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x100243c6
test esi, esi
jne 0x100242f0
cmp dword [ebp - 0x1c], 0x20
jae 0x100243da
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.10025130
jmp 0x100242e5
cmp eax, 3
jne 0x100243da
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.1011bbe4
add esp, 8
cmp eax, 0xffffffff
je 0x100243b0
mov esi, dword [ebp + 8]
jmp 0x100243b3
or esi, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10023820
mov eax, esi
jmp 0x100243ec
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10023820
mov eax, dword [ebp + 8]
jmp 0x100243ec
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10023820
or eax, 0xffffffff
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.1011aa8e
mov esp, ebp
pop ebp
ret 4
Function at 0x100255f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10142ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10197710]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x10025711
cmp byte [edi + 0x49], 0
je 0x10025711
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x100256fe
lea esi, [ebp - 0x2c]
call fcn.100250d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x10025663
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 0x10025693
dec eax
je 0x10025697
sub eax, 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
jne 0x100256f9
jmp 0x1002570c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x100256a7
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x100256d0
cmp ebx, 0x10
jae 0x100256b6
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.1011c217
add esp, 0x10
cmp esi, eax
jne 0x100256ef
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x10025702
test esi, esi
jne 0x10025657
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.10025130
jmp 0x10025651
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10023820
xor al, al
jmp 0x10025713
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10023820
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011aa8e
mov esp, ebp
pop ebp
ret
Function at 0x100258f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10142b6b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10197710]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10136225
push 4
mov dword [ebp - 4], 0
call fcn.10027ae2
mov edi, eax
add esp, 4
test edi, edi
je 0x1002596c
call fcn.10135d76
mov dword [edi], eax
call fcn.10135b35
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.10135a6a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10025962
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.10135a92
jmp 0x1002596e
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 4

Function at 0x10028162
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10197710]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x100281aa
push 0x10148fc8
push 4
push eax
call fcn.1011cd00
push eax
call fcn.1000c440
add esp, 0x10
jmp 0x100281c0
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10028243
push edi
call fcn.1011d7dd
mov edi, dword [eax]
call fcn.1011d7dd
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.1011b3b8
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.1011d7dd
cmp dword [eax], 0
je 0x10028217
call fcn.1011d7dd
push dword [eax]
call fcn.10027b1c
pop ecx
jmp 0x1002821e
call fcn.1011d7dd
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x10028243
cmp dword [ebp - 0x11c], esi
jae 0x10028243
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x10028245
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1011aa8e
leave
ret
Function at 0x10028252
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x10197710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.10028040
pop ecx
cmp eax, esi
je 0x1002833c
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x1002833c
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.1011da20
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x1002833c
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x1002833c
cmp esi, 0x14
jge 0x1002833c
push 0x10
push 0
push edi
call fcn.1011da03
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1002832b
call fcn.1011d7dd
cmp dword [eax], 0x22
je 0x1002832b
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.1011d826
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x10028301
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x101990f8], 0
jne 0x100283c7
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x100283f0
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.10028162
pop ecx
pop ecx
test eax, eax
jne 0x100283f2
inc edi
cmp edi, esi
jl 0x100283cd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011aa8e
leave
ret 8

Function at 0x1002ccba
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.1002e122
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 0x1002ccf3
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.1002c8fc
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 0x1002cd51
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 0x1002cd75
cmp dword [edi + 0x74], 0
jne 0x1002cd75
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.1002e122
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.1002cd12
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 0x10035c34
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 0x10035c7b
call fcn.1002e122
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10035c7b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10035c97
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.10035739
mov esi, eax
test edi, edi
je 0x10035c95
test ebx, ebx
je 0x10035c95
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10036076
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1014004e
call fcn.1011d143
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x1003609b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x100360ed
call fcn.1002bd72
push eax
lea ecx, [ebp - 0x10]
call fcn.100012f0
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.1011f3ab
push eax
call fcn.1000c440
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.100019f0
mov eax, esi
call fcn.1011d21b
ret 8

Function at 0x10036877
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.10036536
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x100368c1
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1002bc6c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1002a2a1
jmp 0x100368cc
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1003aff6
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100368d2
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.10035d40
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 0x1003690f
call fcn.10036536
mov dword [esi + 0xc], 1
jmp 0x10036914
call fcn.10036536
cmp dword [esi], 0
je 0x1003695d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x10036935
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1002bc6c
jmp 0x10036947
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.100017d0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1002a2a1
jmp 0x10036981
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 0x10036981
push dword [esi]
push dword [ebp + 8]
call fcn.1003aff6
pop esi
pop ebp
ret 0xc

Function at 0x100394b6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10197710]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x100394eb
xor eax, eax
jmp 0x1003953e
lea eax, [ebp - 0x210]
push eax
call fcn.1011d826
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x1003951c
push 0x1014bf1c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.101204be
add esp, 0xc
test eax, eax
jne 0x100394e7
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.101204be
add esp, 0xc
test eax, eax
jne 0x100394e7
lea eax, [ebp - 0x210]
push eax
call fcn.10031301
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1011aa8e
leave
ret

Function at 0x10069216
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.100f164f
call fcn.1002db53
cmp dword [eax + 0x14], 0
jne 0x10069233
mov ecx, esi
pop esi
jmp fcn.10068d1b
pop esi
ret

Function at 0x1006c745
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.100a1a64
call fcn.1002db53
cmp dword [eax + 0x14], 0
jne 0x1006c762
mov ecx, esi
pop esi
jmp fcn.1006c118
pop esi
ret
Function at 0x100a7584
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 0x100a759e
call fcn.1002e122
mov esi, dword [eax + 0xc]
push dword [0x1019ce1c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100a75bc
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 0x100a75b4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x100a75e9
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x100a75b6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.100a74b2
mov esi, eax
jmp 0x100a75db

Function at 0x100fb7c3
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 0x100fb7db
mov edi, dword [esi + 0xc]
jmp 0x100fb81b
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100fb7f4
call fcn.10036cd1
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100fb809
call fcn.10036cd1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100fb81b
call fcn.10036cd1
call fcn.1002e122
cmp dword [eax + 0x3c], 0
je 0x100fb830
push edi
mov ecx, ebx
call fcn.100fa689
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100fb6dd
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x100fb84e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x100fb85a
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 0x1011aa8e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10197710]
jne 0x1011aa98
repz ret
jmp fcn.10122a14
Function at 0x1013298b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10197710]
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.101254dc
and dword [ebp - 0x14], 0
cmp dword [0x1019f3d8], 0
mov dword [ebp - 0x18], eax
jne 0x10132a3e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10132ae6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10132ae6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x1016f710
push ebx
mov dword [0x1019f3d8], eax
call edi
push eax
call esi
push 0x1016f6fc
push ebx
mov dword [0x1019f3dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1019f3e0], eax
call edi
push eax
call esi
mov dword [0x1019f3e8], eax
test eax, eax
je 0x10132a3e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1019f3e4], eax
mov eax, dword [0x1019f3e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10132a97
cmp dword [0x1019f3e8], ecx
je 0x10132a97
push eax
call esi
push dword [0x1019f3e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10132a97
test ebx, ebx
je 0x10132a97
call edi
test eax, eax
je 0x10132a8e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10132a8e
test byte [ebp - 8], 1
jne 0x10132a97
or dword [ebp + 0x10], 0x200000
jmp 0x10132aca
mov eax, dword [0x1019f3dc]
cmp eax, dword [ebp - 0x18]
je 0x10132aca
push eax
call esi
test eax, eax
je 0x10132aca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10132aca
mov eax, dword [0x1019f3e0]
cmp eax, dword [ebp - 0x18]
je 0x10132aca
push eax
call esi
test eax, eax
je 0x10132aca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1019f3d8]
call esi
test eax, eax
je 0x10132ae6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10132ae8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011aa8e
leave
ret
Function at 0x401afb
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x479630]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [ebp - 0x118]
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], esi
call fcn.00401a77
mov ebx, eax
cmp ebx, esi
je 0x401b67
cmp dword [ebp - 0x118], esi
je 0x401b60
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x401bff
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x401b8f
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x118]
call fcn.00401afb
mov dword [ebp - 0x124], eax
cmp eax, esi
jne 0x401c10
lea eax, [ebp - 0x12c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push dword [ebp - 0x118]
mov dword [ebp - 0x11c], 0x100
call ebx
test eax, eax
je 0x401b6f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x118], esi
je 0x401bda
push dword [ebp - 0x118]
call ebx
mov dword [ebp - 0x118], esi
push dword [ebp - 0x120]
mov dword [ebp - 0x114], esi
call fcn.0040199c
mov edi, eax
cmp dword [ebp - 0x118], esi
je 0x401bfd
push dword [ebp - 0x118]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a3e1
leave
ret 4
cmp dword [ebp - 0x118], esi
je 0x401c24
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x124]
jmp 0x401bff