joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c40
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43ca50
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f418]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov ecx, edi
add esi, 0x10
shr ecx, 4
xor edx, edx
mov eax, ecx
div dword [esi + 8]
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 0x1c], esi
je 0x404dae
mov eax, dword [eax + edx*4]
test eax, eax
je 0x404dae
cmp dword [eax + 0xc], ecx
jne 0x404ca8
xor edx, edx
cmp dword [eax], edi
sete dl
test edx, edx
jne 0x404cb4
mov eax, dword [eax + 8]
test eax, eax
jne 0x404c98
jmp 0x404dae
mov edi, dword [eax + 4]
test edi, edi
je 0x404dae
lea esi, [esp + 0x14]
mov eax, edi
call fcn.00403f60
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404cfa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
mov eax, edi
je 0x404d4d
lea esi, [esp + 0x30]
call fcn.00403f80
mov dword [esp + 0x28], 0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_delete_file.__Error_d__File_s_
call fcn.004085b0
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x404d49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x404db3
lea esi, [esp + 0x18]
call fcn.00403f80
mov dword [esp + 0x28], 1
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0xc]
push eax
push ecx
push str.Delete_file.__Folder_s__File_s_
call fcn.004085b0
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x404d97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
call fcn.00401270
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8

Function at 0x405090
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1008
call fcn.0042b040
mov eax, dword [0x44f418]
xor eax, esp
mov dword [esp + 0x1004], eax
mov eax, dword [esp + 0x100c]
mov eax, dword [eax + 4]
push eax
push 0x1000
lea eax, [esp + 0xc]
push eax
push edi
push edx
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00403b50
mov ecx, dword [esp + 0x1004]
xor ecx, esp
mov eax, esi
call fcn.004256ab
add esp, 0x1008
ret 4
Function at 0x405100
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43c81b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x44f418]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esi + 8], ecx
push edx
lea ecx, [esi + 0xc]
mov dword [esi], vtable.CListBase.0
mov dword [esi + 4], eax
call fcn.00403b50
mov eax, dword [esp + 0x24]
xor edi, edi
push eax
lea ecx, [esi + 0x10]
mov dword [esp + 0x18], edi
call fcn.00403b50
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], vtable.CMap_unsigned_int__unsigned_int__class_CListItemBase___class_CListItemBase___.0
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], 0x11
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], 0xa
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc

Function at 0x405320
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x43ca23
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x44f418]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
push 0x44
call fcn.0040900c
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x1c], 0
je 0x405379
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
push edx
mov edx, dword [edi + 8]
push edx
mov edx, dword [esp + 0x2c]
push edx
push eax
call fcn.004074b0
jmp 0x40537b
xor eax, eax
or esi, 0xffffffff
mov dword [esp + 0x1c], esi
mov dword [edi + 0x14], eax
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405424
mov eax, dword [edi + 0x14]
push eax
call fcn.004077b0
test eax, eax
jne 0x4053bb
lea eax, [esi + 6]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
mov ecx, dword [edi + 0x14]
push ecx
call fcn.00407b30
test eax, eax
jne 0x405424
lea edx, [esp + 0x24]
push edx
call fcn.00405280
mov dword [esp + 0x1c], 1
mov eax, dword [eax]
push eax
push str.The_list_version_is_incorrect.__Folder_s_
call fcn.004085b0
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40540b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 4
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x4068e0
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x30]
push 0x24
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x406935
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
je 0x40697e
call esi
push eax
push str.Failed_to_open_service.__Error_d_
call fcn.004085b0
add esp, 8
pop edi
pop esi
mov eax, 5
pop ebx
add esp, 0x1c
ret 8
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40696e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_query_service_status.__Error_d_
call fcn.004085b0
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, 5
pop ebx
add esp, 0x1c
ret 8
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x406989
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
cmp eax, 3
je 0x4069c9
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4069c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_stop_service.__Error_d_
call fcn.004085b0
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, 5
pop ebx
add esp, 0x1c
ret 8
cmp dword [0x453d2c], 0
push ebp
jne 0x406a12
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
mov ecx, dword [esp + 0x28]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x406a35
cmp dword [esp + 0x14], 1
je 0x406a4b
call edi
sub eax, ebx
cmp eax, 0x7530
ja 0x406a85
cmp dword [0x453d2c], 0
je 0x4069e0
push str.Cancel.
call fcn.004085b0
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_query_service_status.__Error_d_
call fcn.004085b0
add esp, 8
jmp 0x406a92
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x406a79
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_close_service.__Error_d_
call fcn.004085b0
add esp, 8
pop ebp
pop edi
pop esi
mov eax, 5
pop ebx
add esp, 0x1c
ret 8
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
push str.Failed_to_stop_service.__Time_out_
call fcn.004085b0
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
pop edi
pop esi
mov eax, 5
pop ebx
add esp, 0x1c
ret 8
Function at 0x4071f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43cd43
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f418]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
add ebp, 0xc
mov esi, 0x450d64
mov ebx, 0x20
push 0x54
call fcn.0040900c
add esp, 4
mov dword [esp + 0x30], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x28], edi
je 0x407256
mov ecx, dword [esi + 4]
mov edx, dword [esi - 4]
push ecx
mov cx, word [esi]
push edx
mov edx, dword [esi + 8]
push eax
call fcn.00401fc0
mov edi, eax
mov dword [esp + 0x28], 0xffffffff
movzx eax, word [esi]
push eax
mov ecx, ebp
call fcn.00416101
add esi, 0x10
sub ebx, 1
mov dword [eax], edi
jne 0x407228
movzx eax, word [ebx + 0x450f62]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
mov dword [esp + 0x1c], 0
call fcn.00415fce
movzx eax, word [ebx + 0x450f60]
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], 0
call fcn.00415fce
mov eax, dword [esp + 0x30]
lea esi, [esp + 0x18]
call fcn.00404950
mov dword [esp + 0x28], 1
mov eax, dword [eax]
push eax
movzx eax, word [ebx + 0x450f60]
push eax
call fcn.00402450
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407300
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x48]
add ecx, 0x40
push edx
push eax
call fcn.0040930e
add ebx, 4
cmp ebx, 0x80
jb 0x407273
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x407340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43cd43
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f418]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
add ebp, 0xc
mov esi, 0x450fe4
mov ebx, 0xf
push 0x54
call fcn.0040900c
add esp, 4
mov dword [esp + 0x30], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x28], edi
je 0x4073a6
mov ecx, dword [esi + 4]
mov edx, dword [esi - 4]
push ecx
mov cx, word [esi]
push edx
mov edx, dword [esi + 8]
push eax
call fcn.00401fc0
mov edi, eax
mov dword [esp + 0x28], 0xffffffff
movzx eax, word [esi]
push eax
mov ecx, ebp
call fcn.00416101
add esi, 0x10
sub ebx, 1
mov dword [eax], edi
jne 0x407378
movzx eax, word [ebx + 0x4510d2]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
mov dword [esp + 0x1c], 0
call fcn.00415fce
movzx eax, word [ebx + 0x4510d0]
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], 0
call fcn.00415fce
mov eax, dword [esp + 0x30]
lea esi, [esp + 0x18]
call fcn.00404950
mov dword [esp + 0x28], 1
mov eax, dword [eax]
push eax
movzx eax, word [ebx + 0x4510d0]
push eax
call fcn.00402450
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407450
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x48]
add ecx, 0x40
push edx
push eax
call fcn.0040930e
add ebx, 4
cmp ebx, 0x44
jb 0x4073c3
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x40a0cd
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x44f418]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x40a165
push 0x43eabc
push 4
push eax
call fcn.004276e7
push eax
call fcn.00408410
add esp, 0x10
push ebx
push edi
call fcn.00427387
mov edi, dword [eax]
call fcn.00427387
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004256d6
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.00427387
cmp dword [eax], ebx
je 0x40a17c
call fcn.00427387
push dword [eax]
call fcn.004096db
pop ecx
jmp 0x40a183
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x40a119
jmp 0x40a1f5
call fcn.00427387
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x40a1f1
cmp dword [ebp - 0x3c], esi
jae 0x40a1f1
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00426f30
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x40a1e3
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40a1e3
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x40a1e3
push ebx
push ebx
push esi
jmp 0x40a1e9
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x40a1f3
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.004256ab
add ebp, 0xe0
leave
ret
Function at 0x40c057
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40c09d
call fcn.00414a23
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40c09d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40c0e0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40c0c9
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40c0c9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40c0dd
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d1a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x43b1a7
call fcn.00426e38
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00414a23
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x40d1ed
call fcn.00414a23
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x40d1fe
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x40d20b
or eax, 0xffffffff
jmp 0x40d367
mov ecx, esi
call fcn.0040cce9
mov dword [ebp - 0x14], eax
call fcn.004100f2
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x40d289
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x40d289
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40d289
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040a098
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x40d289
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x40d289
mov ecx, ebx
call fcn.00413919
test eax, eax
je 0x40d289
push 0
mov ecx, ebx
call fcn.00413934
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00411a49
push dword [ebp - 0x14]
call fcn.0041004a
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0040cfaa
xor edi, edi
cmp eax, edi
je 0x40d2e6
test byte [esi + 0x3c], 0x10
je 0x40d2d0
push 4
pop edi
mov ecx, esi
call fcn.0041382a
test ax, 0x100
je 0x40d2c6
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040fbe0
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40d2e6
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00413ae2
or dword [ebp - 4], 0xffffffff
jmp 0x40d311
cmp dword [ebp - 0x28], edi
je 0x40d31f
push 1
mov ecx, ebx
call fcn.00413934
cmp dword [ebp - 0x2c], edi
je 0x40d32f
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40d348
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x40d348
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0040cd23
cmp dword [esi + 0x58], edi
je 0x40d364
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00426edd
ret
Function at 0x412b66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x412ba9
call fcn.00414a23
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x412ba9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x412bc4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041271d
test ebx, ebx
mov esi, eax
je 0x412bc2
test edi, edi
je 0x412bc2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x416f8c
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x416f95
xor eax, eax
jmp 0x416ffe
cmp dword [esp + 8], 0
jne 0x416fa1
call fcn.0040917c
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0042a470
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x416fdc
push dword [esi + 0x10]
call fcn.0042a176
test eax, eax
pop ecx
jne 0x416fdc
mov esi, dword [esi + 0xc]
call fcn.0042739a
push esi
push dword [eax]
push 1
call fcn.00416df1
push dword [esi + 0x10]
call fcn.0042a1a5
test eax, eax
pop ecx
je 0x416ffb
push dword [esi + 0x10]
call fcn.0042a0ca
push eax
call fcn.00408410
pop ecx
pop ecx
jmp 0x416fca
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x417007
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x417011
call fcn.0040917c
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0042a5ea
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x41703e
mov esi, dword [esi + 0xc]
call fcn.0042739a
push esi
push dword [eax]
push 1
call fcn.00416df1
pop esi
ret 8

Function at 0x4256ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44f418]
jne 0x4256b5
repz ret
jmp fcn.0042ba8f
Function at 0x42a1d4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x42a211
cmp dword [ebp + 0x14], edi
je 0x42a211
cmp ecx, edi
jne 0x42a218
call fcn.00427387
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0042c7e4
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x42a22c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x42a24d
cmp ebx, 0xffffffff
je 0x42a23c
push ebx
push edi
push ecx
call fcn.00426f30
add esp, 0xc
cmp esi, edi
je 0x42a1f9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x42a1f9
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x42a269
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x42a270
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x42a361
test word [esi + 0xc], 0x10c
je 0x42a2c4
mov eax, dword [esi + 4]
test eax, eax
je 0x42a2c4
jl 0x42a3c2
cmp ebx, eax
mov edi, ebx
jb 0x42a295
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x42a369
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00425a3a
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x42a359
cmp ebx, dword [ebp - 0xc]
jb 0x42a331
cmp dword [ebp - 0xc], 0
je 0x42a2ee
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x42a2e3
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x42a2ea
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x42a2f9
mov eax, SysReAllocString
cmp ebx, eax
ja 0x42a2f9
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x42a395
push eax
push dword [ebp - 8]
push esi
call fcn.00429e29
pop ecx
push eax
call fcn.004342ef
add esp, 0xc
test eax, eax
je 0x42a3d4
cmp eax, 0xffffffff
je 0x42a3c2
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x42a359
push esi
call fcn.00433c0e
cmp eax, 0xffffffff
pop ecx
je 0x42a3c6
cmp dword [ebp - 4], 0
je 0x42a395
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x42a278
mov eax, dword [ebp + 0x14]
jmp 0x42a213
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x42a380
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00426f30
add esp, 0xc
call fcn.00427387
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x42a209
cmp dword [ebp + 0xc], 0xffffffff
je 0x42a3ab
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00426f30
add esp, 0xc
call fcn.00427387
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x42a209
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x42a213
or dword [esi + 0xc], 0x10
jmp 0x42a3c6