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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp eax, 0x3fffffff
jb 0x40c30f
mov eax, 0x8000ffff
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
push esi
push edi
push 0
push 0
add eax, eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c355
call edi
test eax, eax
je 0x40c355
call edi
test eax, eax
jg 0x40c341
call edi
mov esi, eax
jmp 0x40c351
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x40c3b8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push 0
lea edx, [ebp - 4]
push edx
add ebx, ebx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c39a
call edi
test eax, eax
jg 0x40c385
call edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
call edi
pop ebx
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 4], ebx
je 0x40c3ad
pop ebx
pop edi
mov eax, 0x8000ffff
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40daa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4507f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], esi
cmp dword [0x4547b8], esi
jne 0x40dc46
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x420]
push eax
push 1
push esi
push 0x407fe0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, esi
jl 0x40dc35
mov eax, dword [ebp - 0x420]
push edi
cmp eax, esi
je 0x40dc26
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x424]
push ecx
push esi
lea edx, [ebp - 0x428]
push edx
push esi
push esi
push eax
call edi
test eax, eax
jne 0x40dc26
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x40dc26
shr eax, 1
lea ecx, [eax - 0xb]
cmp ecx, 0xf9
ja 0x40dc2f
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410db5
mov esi, eax
add esp, 4
test esi, esi
jne 0x40db7e
mov ebx, 0x8007000e
jmp 0x40dc34
mov edx, dword [ebp - 0x420]
lea eax, [ebp - 0x424]
push eax
push esi
lea ecx, [ebp - 0x428]
push ecx
push 0
push 0
push edx
call edi
test eax, eax
jne 0x40dc26
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call fcn.00436120
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push 0x408058
push esi
lea edx, [ebp - 0x41c]
push edx
call edi
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00436120
add esp, 0xc
push 0x408070
push esi
lea edx, [ebp - 0x210]
push edx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x41c]
push eax
call edi
lea ecx, [ebp - 0x210]
push ecx
call edi
mov dword [0x4547b8], eax
cmp dword [0x4547b8], 0
jne 0x40dc34
mov ebx, 0x8000ffff
pop edi
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x40dc46
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00410dc5
mov ecx, dword [ebp - 4]
add esp, 4
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00434067
mov esp, ebp
pop ebp
ret

Function at 0x40e560
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 0x408120
mov dword [ebp - 4], ebx
xor esi, esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
cmp edi, ebx
je 0x40e5ca
push edi
call fcn.00410db5
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40e5ca
mov ecx, dword [ebp - 4]
push esi
push edi
push ecx
push 0x408120
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40e5ca
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0x408174
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40e5ca
mov ecx, dword [ebp - 8]
movzx ebx, word [ecx + 0xa]
push esi
call fcn.00410dc5
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f160
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
mov edi, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x40f18e
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + esi*8]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40f1c1
inc esi
cmp esi, ebx
jb 0x40f177
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40f1da
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], eax
jmp 0x40f1a0
xor esi, esi
test ebx, ebx
je 0x40f1d2
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + esi*8]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40f1cb
inc esi
cmp esi, ebx
jb 0x40f1a6
jmp 0x40f1d2
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0
add edi, 8
dec dword [ebp + 0xc]
jne 0x40f1a0
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40f1f0
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov ecx, 1
mov dword [ebp - 8], ecx
test eax, eax
je 0x40f259
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x40f245
lea esp, [esp]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + esi*8]
mov edx, dword [edi]
push ecx
push edx
call ebx
test eax, eax
je 0x40f236
test byte [edi + 4], 0x10
je 0x40f23e
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40f220
jmp 0x40f245
mov dword [ebp - 8], 0
add edi, 8
dec dword [ebp - 4]
jne 0x40f212
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f330
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4507f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x22c], eax
xor eax, eax
push 0x40
mov esi, ecx
push eax
lea ecx, [ebp - 0x270]
push ecx
mov edi, edx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x274], 0x44
call fcn.00436120
add esp, 0xc
test ebx, ebx
je 0x40f4fa
lea edx, [ebp - 0x214]
push edx
push 0x200eb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40f3b8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
jmp 0x40f4d8
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x214]
call fcn.0040eef0
test eax, eax
jne 0x40f4d8
mov ecx, dword [ebp - 0x218]
lea edx, [ebp - 0x210]
push edx
mov edx, dword [ebp - 0x214]
push eax
push eax
mov eax, dword [ebp + 0xc]
push edi
push eax
push esi
mov dword [ebp - 0x230], ecx
mov ecx, dword [ebp + 8]
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
je 0x40f3a9
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x40f43b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40f3a9
mov edi, dword [ebp - 0x210]
lea edx, [ebp - 0x230]
push edx
call fcn.0040f530
test eax, eax
jne 0x40f4d8
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x274]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x40f3a9
mov ecx, dword [ebp - 0x228]
push 0x1388
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [ebp - 0x228]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x224]
push eax
call esi
mov ecx, dword [ebp - 0x220]
mov dword [ebx], ecx
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x40f4e9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40f4fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x218]
push edx
call fcn.00410dc5
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00434067
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f980
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4507f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], 0
test edi, edi
jne 0x40f9b8
mov eax, 0x8000ffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434067
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.0040f8e0
test eax, eax
je 0x40fa2d
push 0x408dbc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40fa7d
push 0x408dcc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fa7d
cmp dword [ebp + 8], 0
je 0x40fa04
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0x8000
push 0x40768c
jmp 0x40fa17
lea edx, [ebp - 0x210]
push edx
push 0
push 0x8000
push 0x40769c
call eax
mov esi, eax
test esi, esi
js 0x40fa82
mov eax, dword [ebp - 0x210]
push 0x408de8
push eax
jmp 0x40fa72
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.00436120
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x40fa82
push 0x408de8
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x40fa82
mov esi, 0x8000ffff
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40fa93
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00434067
mov esp, ebp
pop ebp
ret 4
Function at 0x40fc30
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor ebx, ebx
push ebx
push 0x8000000
push 3
push ebx
push ebx
push SysReAllocString
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fc6e
mov dword [ebp - 4], 0x8000ffff
jmp 0x40fd99
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x40fd15
mov esi, eax
shr esi, 1
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410db5
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x40fcbd
push edi
mov dword [ebp - 4], 0x8007000e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40fd98
xor ecx, ecx
push ecx
lea edx, [ebp - 0xc]
push edx
mov word [eax + esi*2], cx
mov esi, dword [ebp - 0x10]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40fd10
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40fcf5
call esi
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40fd98
call esi
and eax, 0xffff
or eax, 0x80070000
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40fd98
cmp esi, dword [ebp - 0xc]
je 0x40fd25
push edi
mov dword [ebp - 4], 0x8000ffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40fd98
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], eax
call fcn.0040fdc0
xor edi, edi
cmp eax, edi
jne 0x40fd61
mov eax, dword [ebp - 4]
mov dword [eax + 8], ebx
mov ebx, eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], edi
call fcn.0040fdc0
cmp eax, edi
je 0x40fd45
mov dword [ebp - 4], eax
cmp eax, edi
jl 0x40fd6f
mov edx, dword [ebp + 8]
mov dword [edx], ebx
jmp 0x40fd98
cmp ebx, edi
je 0x40fd98
mov esi, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 8]
push eax
call fcn.00410dc5
mov ecx, dword [esi + 4]
push ecx
call fcn.00410dc5
push esi
call fcn.00410dc5
add esp, 0xc
mov esi, ebx
cmp ebx, edi
jne 0x40fd75
pop esi
mov edx, dword [ebp - 8]
push edx
call fcn.00410dc5
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x410050
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4507f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
xor ecx, ecx
push 0x206
mov esi, edx
push ecx
lea edx, [ebp - 0x20a]
push edx
mov dword [ebp - 0x214], eax
mov word [ebp - 0x20c], cx
call fcn.00436120
add esp, 0xc
push 0x408e5c
push edi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], 0
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x4100ca
pop edi
mov eax, 0x8000ffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434067
mov esp, ebp
pop ebp
ret 4
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4100b3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push 0
cmp eax, 0xb7
jne 0x410127
lea edx, [ebp - 0x210]
push edx
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410142
cmp dword [ebp - 0x210], 4
je 0x41017e
mov esi, 0x8000ffff
jmp 0x410150
lea eax, [ebp - 0x210]
push eax
push 4
push esi
push edi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410117
call ebx
test eax, eax
jg 0x41016c
call ebx
mov esi, eax
test esi, esi
jns 0x410157
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434067
mov esp, ebp
pop ebp
ret 4
call ebx
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x41014c
mov ecx, dword [ebp - 0x214]
mov dword [ecx], edi
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00434067
mov esp, ebp
pop ebp
ret 4

Function at 0x410b20
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4507f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00436120
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
xor esi, esi
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x410bb0
cmp dword [ebp - 0x108], 2
jne 0x410b9f
mov eax, dword [ebp - 0x114]
cmp eax, 6
jb 0x410b9f
jne 0x410b8b
cmp dword [ebp - 0x110], 1
sbb eax, eax
inc eax
je 0x410b9f
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434067
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434067
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00434067
mov esp, ebp
pop ebp
ret
Function at 0x422267
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 0x4222ae
call fcn.00424d21
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4222ae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4222ca
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00421dcb
mov esi, eax
test edi, edi
je 0x4222c8
test ebx, ebx
je 0x4222c8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x423c07
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x447bde
call fcn.004368a0
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x423c2c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x423c72
lea ecx, [ebp - 0x10]
call fcn.00415da1
mov ecx, dword [esi + 0x50]
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.00422431
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040b810
mov eax, esi
call fcn.0043698c
ret 8

Function at 0x4331f8
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 + 0x58], ebx
test ebx, 0xffff0000
jne 0x43321c
cmp dword [edi + 0x54], 0
jne 0x43321c
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00424d21
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.004331af
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 0x434067
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4507f0]
jne 0x434071
repz ret
jmp fcn.004399bb
Function at 0x438759
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x450980]
je 0x438774
inc edi
cmp edi, 0x17
jb 0x438765
cmp edi, 0x17
jae 0x4388f4
push ebp
push 3
call fcn.004407ea
cmp eax, 1
pop ecx
je 0x4388c0
push 3
call fcn.004407ea
test eax, eax
pop ecx
jne 0x4387a8
cmp dword [0x4507c4], 1
je 0x4388c0
cmp ebx, 0xfc
je 0x4388f3
push 0x405af0
mov ebx, 0x314
push ebx
mov ebp, 0x453b70
push ebp
call fcn.00440780
add esp, 0xc
test eax, eax
je 0x4387de
push esi
push esi
push esi
push esi
push esi
call fcn.00439f69
add esp, 0x14
push 0x104
mov esi, 0x453b89
push esi
push 0
mov byte [0x453c8d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x438822
push 0x405ad8
push 0x2fb
push esi
call fcn.00440780
add esp, 0xc
test eax, eax
je 0x438822
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00439f69
add esp, 0x14
push esi
call fcn.004406f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x438867
push esi
call fcn.004406f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x453e84
push 0x405ad4
sub ecx, eax
push ecx
push eax
call fcn.0044062f
add esp, 0x14
test eax, eax
je 0x438867
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00439f69
add esp, 0x14
jmp 0x438869
xor esi, esi
push 0x405ad0
push ebx
push ebp
call fcn.004405b9
add esp, 0xc
test eax, eax
je 0x438889
push esi
push esi
push esi
push esi
push esi
call fcn.00439f69
add esp, 0x14
push dword [edi*8 + 0x450984]
push ebx
push ebp
call fcn.004405b9
add esp, 0xc
test eax, eax
je 0x4388ab
push esi
push esi
push esi
push esi
push esi
call fcn.00439f69
add esp, 0x14
push 0x12010
push 0x405aa8
push ebp
call fcn.004403f7
add esp, 0xc
jmp 0x4388f3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4388f3
cmp ebp, 0xffffffff
je 0x4388f3
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x450984]
push dword [esi]
call fcn.004406f0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4403f7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043934f
xor ebx, ebx
cmp dword [0x454670], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4404cd
push 0x405d30
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4405ad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x405d24
push edi
call esi
cmp eax, ebx
je 0x4405ad
push eax
call fcn.004392dc
mov dword [esp], 0x405d14
push edi
mov dword [0x454670], eax
call esi
push eax
call fcn.004392dc
mov dword [esp], 0x405d00
push edi
mov dword [0x454674], eax
call esi
push eax
call fcn.004392dc
mov dword [0x454678], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004374ab
test eax, eax
pop ecx
pop ecx
je 0x44049b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00439f69
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4404cd
push 0x405ce4
push edi
call esi
push eax
call fcn.004392dc
cmp eax, ebx
pop ecx
mov dword [0x454680], eax
je 0x4404cd
push 0x405ccc
push edi
call esi
push eax
call fcn.004392dc
pop ecx
mov dword [0x45467c], eax
mov eax, dword [0x45467c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x440552
cmp dword [0x454680], ecx
je 0x440552
push eax
call fcn.0043935d
push dword [0x454680]
mov esi, eax
call fcn.0043935d
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x440552
cmp edi, ebx
je 0x440552
call esi
cmp eax, ebx
je 0x44051f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44051f
test byte [ebp - 0x18], 1
jne 0x440552
lea eax, [ebp - 0x10]
push eax
call fcn.004374e7
test eax, eax
pop ecx
je 0x44053a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00439f69
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x440549
or dword [ebp + 0x10], 0x200000
jmp 0x44058d
or dword [ebp + 0x10], 0x40000
jmp 0x44058d
mov eax, dword [0x454674]
cmp eax, dword [ebp - 8]
je 0x44058d
push eax
call fcn.0043935d
cmp eax, ebx
pop ecx
je 0x44058d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44058d
mov eax, dword [0x454678]
cmp eax, dword [ebp - 8]
je 0x44058d
push eax
call fcn.0043935d
cmp eax, ebx
pop ecx
je 0x44058d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x454670]
call fcn.0043935d
cmp eax, ebx
pop ecx
je 0x4405ad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4405af
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret