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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x457f60
cmp edx, dword [eax]
je 0x41c184
add eax, 8
inc ecx
cmp eax, 0x457ff0
jl 0x41c175
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x457f60]
jne 0x41c2b2
mov eax, dword [0x47da20]
cmp eax, 1
je 0x41c28c
test eax, eax
jne 0x41c1b5
cmp dword [0x4575d4], 1
je 0x41c28c
cmp edx, 0xfc
je 0x41c2b2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c1ec
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004166a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00416980
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41c22f
lea eax, [ebp - 0x1a4]
push eax
call fcn.00416980
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4493f0
push edi
call fcn.0041f0a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004166a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004166b0
lea eax, [ebp - 0xa0]
push 0x4493d0
push eax
call fcn.004166b0
push dword [esi + 0x457f64]
lea eax, [ebp - 0xa0]
push eax
call fcn.004166b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041f00f
add esp, 0x2c
pop edi
jmp 0x41c2b2
lea eax, [ebp + 8]
lea esi, [esi + 0x457f64]
push 0
push eax
push dword [esi]
call fcn.00416980
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x423b00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00416b30
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x423bcb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x423bcb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x423b7e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x423b89
or bh, 8
and edi, 0x8000000
je 0x423ba4
mov eax, dword [0x47f1bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x423bcb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423fa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x423fcb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x423fef
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42400a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x428ba1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x428bd9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00426ead
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00426e85
jmp 0x428be5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x42a732
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42a774
call fcn.0043ad1a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42a774
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42a76b
xor eax, eax
jmp 0x42a77c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042a782
pop edi
pop esi
pop ebx
ret 4

Function at 0x42b0d7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0043ad1a
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42b108
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0042b11b
pop edi
pop esi
pop ebx
ret 8

Function at 0x43c694
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43c6c2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43c6e0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043c5fa
jmp 0x43c6e0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43c6e0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0043c5fa
test edi, edi
mov eax, edi
jne 0x43c6ca
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x43ce0e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0043ad1a
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43ce4b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43ce4b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x43ce4f
xor eax, eax
jmp 0x43cecd
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00426fd1
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x43ce87
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x43ce71
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0043cfbe
push ebx
mov edi, eax
call fcn.00426ffa
test edi, edi
pop ecx
je 0x43cec9
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0043cd87
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0043ced2
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434004]
jne 0x40100a
repz ret
jmp fcn.00401478

Function at 0x404a58
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402e62
and dword [ebp - 4], 0
cmp dword [0x435c94], 0
mov ebx, eax
jne 0x404b09
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404bba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404bba
push eax
call fcn.00402df0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435c94], eax
call esi
push eax
call fcn.00402df0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x435c98], eax
call esi
push eax
call fcn.00402df0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x435c9c], eax
call esi
push eax
call fcn.00402df0
pop ecx
mov dword [0x435ca4], eax
test eax, eax
je 0x404b09
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402df0
pop ecx
mov dword [0x435ca0], eax
mov eax, dword [0x435ca0]
cmp eax, ebx
je 0x404b61
cmp dword [0x435ca4], ebx
je 0x404b61
push eax
call fcn.00402e6b
push dword [0x435ca4]
mov esi, eax
call fcn.00402e6b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404b61
test edi, edi
je 0x404b61
call esi
test eax, eax
je 0x404b58
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404b58
test byte [ebp - 0xc], 1
jne 0x404b61
or dword [ebp + 0x10], 0x200000
jmp 0x404b9a
mov eax, dword [0x435c98]
cmp eax, ebx
je 0x404b9a
push eax
call fcn.00402e6b
pop ecx
test eax, eax
je 0x404b9a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404b9a
mov eax, dword [0x435c9c]
cmp eax, ebx
je 0x404b9a
push eax
call fcn.00402e6b
pop ecx
test eax, eax
je 0x404b9a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435c94]
call fcn.00402e6b
pop ecx
test eax, eax
je 0x404bba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404bbc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430300
Capabilities:
Get hostname

Disassembly:
sub esp, 0x42c
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x428], eax
cmp edi, 0x182
jne 0x43032b
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x430365
cmp edi, 0x19f
jne 0x430365
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
push str.fihiresaduduvakuzafanenazewuduhe
push str.vabunayadedifecibu
push str.yosavagenisusoluselidesuli
push str.nibezitihomoyaradilocaxihenazigo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
push esi
xor esi, esi
test edi, edi
jle 0x4303d2
lea esp, [esp]
lea ecx, [esp + 8]
mov dword [esp + 4], 5
mov dword [esp + 8], 0
call fcn.004302f0
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp + 4], eax
sub dword [esp + 4], 0x46
mov cl, byte [esp + 4]
xor byte [ebx + esi], cl
cmp edi, 0xf
jne 0x4303cd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
inc esi
cmp esi, edi
jl 0x430370
pop esi
cmp edi, 0x2d
jne 0x4303ec
mov dword [0x50e500], 0xa62e7790
mov dword [0x50e504], 0xffffffff
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.00401000
add esp, 0x42c
ret
Function at 0x401f70
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539040
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x59e9e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor bl, bl
push dword [esi]
push str._CDirPath::MakeDir__Path__s
push 4
call fcn.00535450
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402069
lea eax, [ebp + 8]
push eax
call fcn.00401db0
push dword [eax]
mov dword [ebp - 4], 0
push str._CDirPath::MakeDir__Attributes__0xFFFFFFFF__error_message___s
push 4
call fcn.00535450
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or edi, 0xffffffff
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402004
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
je 0x40207c
lea eax, [ebp - 0x10]
push eax
call fcn.00401db0
push dword [eax]
mov dword [ebp - 4], 1
push str._CDirPath::MakeDir__Failed_to_create_directory_error_message___s
call fcn.005354f0
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x402053
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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
test al, 0x10
je 0x402053
push str._CDirPath::MakeDir__Dir_already_exists
push 4
call fcn.00535450
add esp, 8
mov al, 1
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 0x402420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402435
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402474
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402470
lea ebx, [ebx]
cmp esi, edx
jae 0x402474
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402460
cmp esi, edx
jb 0x402479
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x404f40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53971c
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x59e9e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x11c
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.0051b430
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
setne al
test al, al
jne 0x405063
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x405063
call fcn.004063ec
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x404fe0
push 0x80004005
call fcn.004015d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x134], eax
mov dword [ebp - 4], 0
call fcn.004063ec
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x405013
push 0x80004005
call fcn.004015d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x130], eax
push 0x6e
push 0
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 1
call fcn.00401ea0
push 0x6c
push 0
lea ecx, [ebp - 0x130]
call fcn.00401ea0
push 0
push dword [ebp - 0x134]
push dword [ebp - 0x130]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 0x11c], 1
jne 0x40510f
call fcn.004063ec
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40508c
push 0x80004005
call fcn.004015d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x130], eax
mov dword [ebp - 4], 2
call fcn.004063ec
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4050bf
push 0x80004005
call fcn.004015d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x134], eax
push 0x6e
push 0
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 3
call fcn.00401ea0
push 0x70
push 0
lea ecx, [ebp - 0x134]
call fcn.00401ea0
push 0
push dword [ebp - 0x130]
push dword [ebp - 0x134]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051afd4
mov esp, ebp
pop ebp
ret
Function at 0x405260
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539778
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x59e9e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.004063ec
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4052a8
push 0x80004005
call fcn.004015d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 0
call fcn.005347a0
push 0x54be70
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.004028b0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004012c0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x405307
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405327
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405377
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405377
lea eax, [ebp - 0x14]
push eax
call fcn.005347a0
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004012c0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405377
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4053bd
lea eax, [ebp - 0x14]
push eax
call fcn.00401db0
push dword [eax]
mov byte [ebp - 4], 4
push str._CSetExtractionDir::CSetExtractionDir__Error___s
call fcn.005354f0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
add esp, 8
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4053bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40dc59
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x59e9e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5a1c44]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x40dca5
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40dcc2
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5a1c44], eax
jmp 0x40dcae
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x40dcc2
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40dd2f
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40dcdd
xor eax, eax
jmp 0x40dd2f
lea eax, [ebp - 0x210]
push eax
call fcn.0051be96
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x40dd0e
push 0x54b1fc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051da78
add esp, 0xc
test eax, eax
jne 0x40dcd9
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051da78
add esp, 0xc
test eax, eax
jne 0x40dcd9
lea eax, [ebp - 0x210]
push eax
call fcn.00412a39
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0051afd4
leave
ret

Function at 0x40e4e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x40e527
call fcn.0040bf44
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40e527
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40e543
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041a4d8
mov ebx, eax
test edi, edi
je 0x40e541
test esi, esi
je 0x40e541
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x412cc1
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x546fd5
call fcn.0051bd62
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x412ce7
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x412d3b
call fcn.004063ec
push eax
lea ecx, [ebp - 0x10]
call fcn.00401000
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0051bc72
push eax
call fcn.004014b0
add esp, 0x14
test edi, edi
je 0x412d2e
push edi
call fcn.0051be96
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402240
mov eax, esi
call fcn.0051bd30
ret 8