joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006cb8
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x1017f31d
call fcn.1015ea20
mov edi, edx
mov dword [ebp - 0x14], ecx
xor esi, esi
lea edx, [ebp + 0xc]
inc esi
mov dword [ebp - 4], esi
call fcn.10006be1
xor ebx, ebx
test eax, eax
je 0x10006d05
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x10006d25
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10003bf1
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10003bf1
mov eax, esi
call fcn.1015e9cf
ret
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x1c]
test eax, eax
jne 0x10006cff
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10006d07
Function at 0x10006d49
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f361
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.1015eba0
mov eax, dword [0x101ebe94]
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 dword [ebp - 0x1020], edx
mov ebx, ecx
mov dword [ebp - 0x1014], ebx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1014], ebx
xor eax, eax
mov dword [ebp - 4], 2
push 0x1000
push eax
mov dword [ebp - 0x101c], eax
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1010]
push eax
call fcn.1015fdf0
add esp, 0xc
lea edx, [ebp + 0x10]
add esi, 0xfffffff0
add edi, 0xfffffff0
call fcn.10006be1
test eax, eax
jne 0x10006df6
push 0x101c76a6
mov ecx, ebx
call fcn.10004dc5
mov ecx, esi
call fcn.10003bf1
mov ecx, edi
call fcn.10003bf1
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
jmp 0x10006eba
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x101c]
push eax
xor eax, eax
push eax
push 0x20019
push eax
push eax
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x1020]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x10006e35
push dword [ebp - 0x101c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x101c76a6
jmp 0x10006e9f
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x1014], 0x1000
push eax
lea eax, [ebp - 0x1010]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0x101c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x101c]
test eax, eax
je 0x10006e7e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.10005109
add eax, 0x10
pop ecx
mov dword [ebx], eax
jmp 0x10006ea6
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006e8d
sub ecx, edx
je 0x10006e70
lea eax, [ebp - 0x1010]
push eax
mov ecx, ebx
call fcn.10004dc5
mov ecx, esi
call fcn.10003bf1
mov ecx, edi
call fcn.10003bf1
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.10003bf1
mov eax, ebx
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.1015dd3f
leave
ret
Function at 0x10006edb
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x1017f3a8
call fcn.1015ea20
mov esi, ecx
lea edx, [ebp + 0x10]
mov dword [ebp - 4], 2
call fcn.10006be1
xor edi, edi
test eax, eax
je 0x10006f26
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x10006f51
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, edi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.10003bf1
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10003bf1
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.10003bf1
mov eax, esi
call fcn.1015e9cf
ret
mov eax, dword [ebp + 0xc]
xor esi, esi
inc esi
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push esi
push edi
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x18]
test eax, eax
jne 0x10006f20
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10006f28

Function at 0x10006f7a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x101ebe94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x48]
push ebx
push eax
mov esi, ecx
call fcn.1015fdf0
add esp, 0xc
mov dword [ebp - 0x48], edi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
test esi, esi
je 0x10006fd2
push 0xffffffffffffffff
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.10003bf1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1015dd3f
leave
ret
Function at 0x100076d6
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x1017f5cf
call fcn.1015ea20
mov edi, ecx
mov dword [ebp - 0x1c], edi
xor ebx, ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov dword [edi], ebx
call fcn.10016be7
push eax
mov ecx, edi
call fcn.100050a8
mov edx, esi
mov dword [ebp - 0x20], esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.100069e9
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
mov dword [ebp - 0x18], esi
call fcn.10005109
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov esi, esp
mov ebx, dword [ebp + 8]
add ebx, 0xfffffff0
mov dword [ebp - 0x18], esi
push ebx
call fcn.10005109
add eax, 0x10
mov dword [esi], eax
pop ecx
mov byte [ebp - 4], 2
call fcn.10006b72
pop ecx
pop ecx
test eax, eax
je 0x10007794
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x18], esi
call fcn.10005109
pop ecx
add eax, 0x10
lea ecx, [ebp - 0x1c]
mov dword [esi], eax
call fcn.100077b7
pop ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.10005058
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.10003bf1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10003bf1
mov ecx, ebx
call fcn.10003bf1
mov eax, edi
call fcn.1015e9cf
ret
Function at 0x10008924
Capabilities:
Move file

Disassembly:
push 0xc
mov eax, 0x1017f93b
call fcn.1015e9ed
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x10008a0c
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 0xc], 0
je 0x10008a0c
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x18], esi
call fcn.10005109
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.10006a85
pop ecx
test eax, eax
je 0x10008a09
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x18], esi
push eax
mov dword [ebp - 0x18], eax
call fcn.10005109
pop ecx
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10006ab1
mov esi, dword [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x10], edi
mov ebx, edi
pop ecx
test esi, esi
jle 0x10008a04
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x100089d2
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, esi
jl 0x100089aa
jmp 0x100089d5
xor ebx, ebx
inc ebx
push ecx
mov esi, esp
push dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
call fcn.10005109
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.10006a85
pop ecx
test eax, eax
jne 0x10008a04
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x100089d5
mov eax, dword [ebp + 8]
jmp 0x10008a0e
mov eax, dword [ebp + 8]
xor ebx, ebx
lea ecx, [eax - 0x10]
call fcn.10003bf1
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10003bf1
mov eax, ebx
call fcn.1015e9bb
ret

Function at 0x10008a29
Capabilities:
Delete file

Disassembly:
push 0x138
mov eax, 0x1017f97b
call fcn.1015ea20
push ecx
xor ebx, ebx
mov ecx, esp
mov dword [ebp - 4], ebx
mov dword [ebp - 0x140], esp
push 0x101c76a6
call fcn.10004dc5
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x144], esp
push 0x101c7e08
call fcn.10004dc5
mov byte [ebp - 4], 2
mov edi, dword [ebp + 8]
push ecx
mov esi, esp
add edi, 0xfffffff0
push edi
mov dword [ebp - 0x13c], esi
call fcn.10005109
pop ecx
add eax, 0x10
lea ecx, [ebp - 0x138]
mov dword [esi], eax
or edx, 0xffffffff
mov byte [ebp - 4], bl
call fcn.10008834
mov ecx, dword [ebp - 0x138]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.10003bf1
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x114]
mov edx, eax
sub esi, eax
mov cl, byte [edx]
mov byte [esi + edx], cl
inc edx
test cl, cl
jne 0x10008ab5
mov eax, dword [eax - 0xc]
inc eax
cmp eax, 0x104
jae 0x10008b2b
mov byte [ebp + eax - 0x114], bl
lea eax, [ebp - 0x114]
mov dword [ebp - 0x12c], eax
mov eax, 0x414
mov word [ebp - 0x124], ax
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], 3
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x122], ebx
mov dword [ebp - 0x11e], ebx
mov dword [ebp - 0x11a], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, edi
call fcn.10003bf1
call fcn.1015e9cf
ret
call fcn.1015e4b4
int3
Function at 0x10008cb5
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x1017fa0e
call fcn.1015ea20
mov dword [ebp - 0x50], ecx
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xc]
lea edi, [eax - 0x10]
mov dword [ebp - 0x4c], edi
test edx, edx
je 0x10008d91
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
push 0x101c7e08
lea edi, [edx - 1]
call fcn.10004dc5
push ecx
mov esi, esp
mov byte [ebp - 4], 2
push dword [ebp - 0x4c]
mov dword [ebp - 0x48], esi
call fcn.10005109
pop ecx
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
mov byte [ebp - 4], bl
call fcn.10008b31
pop ecx
pop ecx
test eax, eax
jne 0x10008d49
push dword [ebp - 0x4c]
call fcn.10005109
add eax, 0x10
lea ecx, [ebp - 0x44]
push ecx
push eax
lea edi, [eax - 0x10]
call fcn.10167b4c
add esp, 0xc
or esi, 0xffffffff
test eax, eax
mov ecx, edi
cmove esi, dword [ebp - 0x30]
call fcn.10003bf1
cmp esi, dword [ebp - 0x50]
jbe 0x10008d8e
and dword [ebp - 0x14], 0
mov edi, dword [ebp - 0x4c]
push ecx
mov esi, esp
push edi
mov dword [ebp - 0x48], esi
call fcn.10005109
pop ecx
add eax, 0x10
lea ecx, [ebp - 0x14]
mov edx, ebx
mov dword [esi], eax
call fcn.10008bae
pop ecx
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10003bf1
jmp 0x10008d93
mov edi, dword [ebp - 0x4c]
xor ebx, ebx
mov ecx, edi
call fcn.10003bf1
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10003bf1
mov eax, ebx
call fcn.1015e9cf
ret
Function at 0x1001905b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x101815d2
call fcn.1015e9ed
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x10019081
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x100190db
lea ecx, [ebp - 0x10]
call fcn.10004e13
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x10191a68]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.1016cb5a
push eax
call fcn.100056aa
add esp, 0x14
test esi, esi
je 0x100190ce
push esi
call fcn.1016ca60
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10003bf1
mov eax, ebx
call fcn.1015e9bb
ret 8

Function at 0x1001bd1e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x1001bd5d
call fcn.100330a4
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1001bd5d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001bd65
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.10037b8c
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1001c76a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1001c7f6
cmp dword [esi + 0x20], 0
je 0x1001c7f6
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1001c7f6
cmp dword [ebp + 8], 0
je 0x1001c7f6
xor edi, edi
mov ebx, edi
call fcn.100330a4
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x1001c7da
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001c7f6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.1003c653
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1001c7f2
mov ecx, esi
call fcn.1001c508
mov eax, edi
jmp 0x1001c7f8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100307d6
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x10030829
push esi
push dword [ebp + 8]
call fcn.100309bc
mov edi, eax
test edi, edi
je 0x10030824
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10030824
mov eax, dword [ebp - 8]
jmp 0x1003083b
mov eax, dword [ebp + 0x10]
jmp 0x1003083b
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x100325b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x100325f8
call fcn.100330a4
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x100325f5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1003263f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x1003261b
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10191a68]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x1003263c
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x10191a68]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x10034f02
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x10034f2d
cmp dword [edi + 0x80], 0
jne 0x10034f2d
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.100330a4
push 5
push ebx
mov esi, dword [eax + 0xc]
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 ecx, edi
push eax
call fcn.1003519b
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10034f5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.100330a4
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10034f8d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.10034fa0
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1003f0c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x1003f11e
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x1003f0f7
call fcn.100363d7
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x1003f10c
call fcn.100363d7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x1003f11e
call fcn.100363d7
call fcn.100330a4
cmp dword [eax + 0x3c], 0
je 0x1003f133
push edi
mov ecx, ebx
call fcn.1003e7eb
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.1003f319
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1003f15c
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1003f168
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1004c6ea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x1004c703
call fcn.100330a4
mov esi, dword [eax + 0xc]
push 0x1019848c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x1004c745
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1004c745
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1004c745
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.1004c74e
jmp 0x1004c747
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100cea76
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.10018c0e
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x100ceab2
call fcn.100cec93
mov dword [esi + 0xc], 1
jmp 0x100ceab7
call fcn.100cec93
cmp dword [esi], 0
je 0x100ceb02
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x100ceadd
push edi
call fcn.100171c1
lea ecx, [edi + 1]
push ecx
jmp 0x100ceaec
push 0xff
call fcn.10004fbb
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.100090d3
pop edi
jmp 0x100ceb26
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x100ceb26
push dword [esi]
push dword [ebp - 4]
call fcn.1003d607
pop esi
leave
ret 0xc

Function at 0x100cebea
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.100cec93
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x100cec32
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.100171c1
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.100090d3
jmp 0x100cec3d
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1003d607
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1012458e
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.1016e950
pop ecx
test eax, eax
jne 0x101245d0
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10010c04
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10124596
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x10133de7
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.1015b243
call fcn.100330f8
cmp dword [eax + 0x14], 0
jne 0x10133e02
mov ecx, esi
pop esi
jmp fcn.1013310b
pop esi
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.10004bbd
call fcn.100330f8
cmp dword [eax + 0x14], 0
jne 0x1013f9d7
mov ecx, esi
pop esi
jmp fcn.1013f22d
pop esi
ret

Function at 0x101786a1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1017831e
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ed50
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x114
mov eax, dword [0x4a3004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x124], 0x475202f7
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 4
shl eax, 1
lea ecx, [ebp - 0x10c]
mov dword [ebp + eax - 0xf0], ecx
mov edx, dword [0x4a1508]
mov dword [ebp - 0x28], edx
mov eax, dword [0x4a150c]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x4a1510]
mov dword [ebp - 0x20], ecx
mov edx, dword [0x4a1514]
mov dword [ebp - 0x1c], edx
mov al, byte [0x4a1518]
mov byte [ebp - 0x18], al
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x120], ecx
mov edx, 4
shl edx, 0
mov eax, dword [ebp + edx - 0x28]
mov dword [ebp - 0x11c], eax
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + ecx - 0x28]
mov dword [ebp - 0x118], edx
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp + ecx - 0x28]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xfc], eax
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x100], 0
jmp 0x40110b
mov eax, dword [ebp - 0x100]
cmp eax, dword [ebp + 0xc]
jae 0x40129c
mov dword [ebp - 0x10c], 0xea405ee0
mov dword [ebp - 4], 0
mov dword [ebp - 0x110], 0x4a1519
push 0x4a1f80
lea ecx, [ebp - 0x110]
push ecx
call fcn.00403c38
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0xfc]
mov edx, dword [ecx + eax]
mov dword [ebp - 0xf4], edx
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 0xfc]
mov edx, dword [ecx + eax]
mov dword [ebp - 0xf8], edx
mov eax, 0x401183
ret
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004013be
mov esp, ebp
pop ebp
ret 8