joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f790
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x1c
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x18]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0041e2d0
mov ebx, eax
test eax, eax
jne 0x41f7c8
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
lea eax, [ebp - 0xc]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.0041e2d0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, eax
test eax, eax
jne 0x41f820
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ebx, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
xor edx, edx
test eax, eax
mov eax, dword [ebp + 0x10]
sete dl
mov dword [eax], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
jmp 0x41f7ee
Function at 0x41f8e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x544
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0xffffffff
je 0x41f93b
lea ebx, [eax + 0x18]
lea esi, [ebp - 0x52c]
jmp 0x41f923
mov eax, dword [ebp - 0x52c]
cmp eax, 0x11
jne 0x41f948
mov dword [esp + 8], ebx
mov dword [esp + 4], 3
mov dword [esp], ebx
call fcn.0041e2d0
test eax, eax
je 0x41f93b
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0041e2d0
test eax, eax
jne 0x41f900
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xb
jne 0x41f93b
lea eax, [ebp - 0x528]
mov dword [esp + 4], 0xd
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.0041e2d0
test eax, eax
je 0x41f93b
mov eax, dword [ebp - 0x528]
mov dword [ebp - 0x414], 0
test eax, eax
je 0x41f93b
lea esi, [ebp - 0x418]
mov dword [ebp - 0x530], ebx
jmp 0x41f9c6
mov eax, dword [ebp - 0x528]
mov edx, eax
cmp eax, 0x100
jbe 0x41f9a4
mov edx, 0x100
sub eax, edx
mov edx, dword [ebp - 0x414]
add edx, 0x100
mov dword [ebp - 0x528], eax
mov dword [ebp - 0x414], edx
test eax, eax
je 0x41f93b
cmp eax, 0x100
jbe 0x41f9d2
mov eax, 0x100
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x530]
mov dword [esp + 8], esi
mov dword [esp + 4], 7
mov dword [esp], eax
call fcn.0041e2d0
test eax, eax
je 0x41f990
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x418]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x51c], eax
mov eax, dword [ebp - 0x528]
cmp edx, eax
jbe 0x41fa14
mov edx, eax
test edx, edx
je 0x41f996
xor ebx, ebx
lea edi, [ebp - 0x524]
jmp 0x41fa43
mov eax, dword [ebp - 0x528]
mov edx, dword [ebp - 0x418]
inc ebx
cmp edx, eax
jbe 0x41fa3b
mov edx, eax
cmp edx, ebx
jbe 0x41f996
mov eax, dword [esi + ebx*4 + 8]
mov dword [esp + 8], edi
mov dword [ebp - 0x520], eax
lea eax, [ebp - 0x520]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0041e2d0
test eax, eax
je 0x41fa28
mov eax, dword [ebp - 0x524]
test eax, eax
je 0x41fa28
lea ecx, [ebp - 0x518]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x100
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x524]
mov eax, dword fs:[0x18]
sub esp, 0x20
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
sub esp, 0xc
mov dword [esp + 4], eax
lea eax, [ebp - 0x518]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcmp]
test eax, eax
jne 0x41fa28
lea edx, [ebp - 0x520]
mov eax, dword [ebp + 8]
call fcn.0041e930
jmp 0x41f93d
Function at 0x4216c0
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push ebx
mov ecx, 0x10
lea edx, [ebp - 0x250]
sub esp, 0x28c
mov edi, edx
lea ebx, [ebp - 0x210]
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x104
mov dword [esp], ebx
mov dword [ebp - 0x254], 0x44
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
cmp word [ebp - 0x210], 0
push eax
mov edx, ebx
push eax
je 0x421719
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x421710
xor eax, eax
mov ecx, 0x5c
jmp 0x42172f
mov cx, word [eax + str.winedbg.exe]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x421728
lea eax, [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
push edi
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0x264]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], edx
lea edx, [ebp - 0x254]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x421807
test byte [0x4387dc], 2
jne 0x4217c9
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
push eax
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov eax, ebx
call fcn.004213f0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_restart_64_bit__s__err__ld_n
mov dword [esp + 8], str.restart_if_wow64
mov dword [esp + 4], 0x4387dc
mov dword [esp], 1
call fcn.00421670
jmp 0x4217b2
test byte [0x4387dc], 8
jne 0x42186a
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_SetConsoleCtrlHandler]
mov eax, dword [ebp - 0x264]
push edx
push edx
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x268]
push ecx
push ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x268]
push ebx
push ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, ebx
call fcn.004213f0
mov dword [esp + 0xc], str.restarting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.restart_if_wow64
mov dword [esp + 4], 0x4387dc
mov dword [esp], 3
call fcn.00421670
jmp 0x421810
Function at 0x4218d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp + 0xc]
sub esp, 0x2c
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], 0x4ac600
mov dword [esp], 6
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vsprintf]
mov dword [ebp - 0x1c], eax
test eax, eax
js 0x421a68
cmp eax, 0xfff
ja 0x421a68
mov edx, dword [ebp - 0x1c]
test edx, edx
jle 0x421a5d
mov edi, dword [0x4ac5e0]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0x4ac600
lea esi, [esi]
mov ebx, 0x1000
sub ebx, edi
cmp ebx, esi
jbe 0x421955
mov ebx, esi
lea eax, [edi + 0x4ab5e0]
mov edx, dword [ebp - 0x14]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
sub esi, ebx
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0x14]
add eax, ebx
lea ecx, [ebx + edi]
mov dword [ebp - 0x14], eax
mov dword [0x4ac5e0], ecx
mov ebx, ecx
jmp 0x421996
cmp byte [ebx + 0x4ab5df], 0xa
lea eax, [ebx - 1]
je 0x421a00
mov ebx, eax
test ebx, ebx
jne 0x421988
test esi, esi
jle 0x421a5d
lea eax, [ebp - 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov eax, dword [0x4ab2f0]
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0x4ab5e0
mov dword [esp], eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [ebp - 0x18]
sub esp, 0x14
mov edi, dword [0x4ac5e0]
sub edi, ecx
add ecx, 0x4ab5e0
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], 0x4ab5e0
call dword [sym.imp.ucrtbase.dll_memmove]
jmp 0x421948
lea eax, [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov eax, dword [0x4ab2f0]
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0x4ab5e0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov edi, dword [0x4ac5e0]
sub esp, 0x14
sub edi, ebx
add ebx, 0x4ab5e0
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], 0x4ab5e0
call dword [sym.imp.ucrtbase.dll_memmove]
mov dword [0x4ac5e0], edi
test esi, esi
jg 0x421948
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x4ad5fc], 0x2e2e2e
mov dword [ebp - 0x1c], 0xfff
jmp 0x421935
Function at 0x422940
Capabilities:
Check if process is running under wine
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20
mov eax, dword [0x4ab5d8]
test eax, eax
je 0x42295d
mov edx, dword [eax + 0x34]
test edx, edx
jne 0x422a48
mov eax, dword [ebp + 0xc]
mov dword [0x4ab2f4], 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00422ef0
mov eax, dword [0x4387d4]
cmp eax, 0x4387d4
mov ebx, dword [eax]
je 0x4229a3
nop
mov edx, dword [eax + 0x10]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx]
mov eax, ebx
cmp eax, 0x4387d4
mov ebx, dword [ebx]
jne 0x422988
lea eax, [ebp - 0x14]
mov dword [esp + 4], str.SoftwareWineWineDbg
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyA]
sub esp, 0xc
test eax, eax
jne 0x422a58
mov ebx, 0x4ab240
lea edi, [ebp - 0x10]
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExA]
jmp 0x4229eb
add ebx, 0x10
cmp ebx, 0x4ab2f0
je 0x422a30
cmp dword [ebx + 8], ebx
jne 0x4229e0
mov eax, dword [ebx]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
add ebx, 0x10
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call esi
sub esp, 0x18
cmp ebx, 0x4ab2f0
jne 0x4229eb
nop
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041b510
jmp 0x42295d
test byte [0x4387dc], 2
je 0x422a3d
mov dword [esp + 0xc], str.Cannot_create_WineDbg_key_in_registry_n
mov dword [esp + 8], str.dbg_save_internal_vars
mov dword [esp + 4], 0x4387dc
mov dword [esp], 1
call fcn.00421670
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x422bc0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x24
mov dword [ebp - 0x1c], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
lea ecx, [ebp - 0x10]
mov dword [esp + 8], eax
mov eax, dword [0x4387f4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], 0x10
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x422cd3
mov edx, dword [0x4387f8]
mov esi, 2
inc edx
mov edi, 0x10
mov dword [0x4387f8], edx
jmp 0x422c42
mov edx, dword [ebp - 0x18]
mov cl, byte [ebp - 0x11]
lea eax, [esi - 1]
inc esi
mov byte [edx + ebx], cl
cmp cl, 0xa
je 0x422cc0
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x11]
mov dword [esp + 4], eax
mov eax, dword [0x4387f0]
mov dword [esp + 8], 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
lea ebx, [esi - 2]
sub esp, 0x14
test eax, eax
je 0x422ca8
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x422ca8
cmp edi, esi
jae 0x422c30
lea esi, [esi]
nop
add edi, edi
cmp edi, esi
jb 0x422c88
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
test eax, eax
je 0x422ca8
mov dword [ebp - 0x18], eax
jmp 0x422c30
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
pop ebx
or eax, 0xffffffff
pop esi
pop edi
pop ebp
ret
mov byte [edx + eax], 0
mov ecx, edx
mov edx, dword [ebp - 0x1c]
mov dword [edx], ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x1f9
mov dword [esp + 4], str..._wine_9.5_programs_winedbg_dbg.y
mov dword [esp], str.buffer___NULL
call dword [sym.imp.ucrtbase.dll__assert]
Function at 0x4251c0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x214]
sub esp, 0x234
lea ebx, [ebp - 0x110]
mov esi, dword [ebp + 8]
mov dword [esp + 4], edi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
push eax
push eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4419a4
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000080
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0010000
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
inc eax
je 0x425361
mov dword [esp], esi
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [ebp - 0x224], eax
call eax
lea edi, [ebp - 0x218]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [sym.imp.kernel32.dll_WriteFile]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [ebp - 0x21c], eax
call eax
lea ecx, [ebp + 0x10]
sub esp, 0x14
mov esi, ecx
mov dword [ebp - 0x220], ebx
jmp 0x425303
mov eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x4413bb
mov dword [esp], eax
call edx
mov ecx, dword [ebp - 0x224]
sub esp, 0x14
mov dword [esp], ebx
call ecx
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x220]
mov dword [esp + 0xc], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov edx, dword [ebp - 0x21c]
call edx
sub esp, 0x14
mov ebx, dword [esi - 4]
add esi, 4
test ebx, ebx
jne 0x4252a0
mov ebx, dword [ebp - 0x220]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 6
mov dword [esp + 4], str._nquit_n
mov dword [esp], ebx
mov eax, dword [ebp - 0x21c]
call eax
sub esp, 0x14
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x425500
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov ebx, eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x443180
mov dword [esp], eax
call fcn.004254c0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
nop
Function at 0x4368d0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x436940
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
and eax, 0xff
inc eax
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00437110
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x1010058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.010101a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x101007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x101006a
add dl, dl
jne 0x1010089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10100dc
xor eax, eax
add dl, dl
jne 0x1010096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x101017d
add dl, dl
jne 0x10100a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10100b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10100bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10100c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10100d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1010075
mov eax, 1
add dl, dl
jne 0x10100ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10100f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10100e1
sub eax, ebx
mov ebx, 1
jne 0x1010128
mov ecx, 1
add dl, dl
jne 0x101010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1010119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1010105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1010075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x101013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x101014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1010136
cmp eax, 0x7d00
jae 0x101016d
cmp eax, 0x500
jb 0x1010168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1010075
cmp eax, 0x7f
ja 0x1010170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1010075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x101019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1010075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4036f3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
mov eax, dword [0x471040]
xor eax, esp
mov dword [esp + 0x410], eax
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], edx
jne 0x40387f
xor edi, edi
inc edi
cmp dword [ebp + 0xc], 0x110
push 2
pop edx
jne 0x40379a
push ecx
push ecx
mov dword [esi + 0x98], edi
call fcn.004038e1
mov dword [ebx], eax
cmp dword [esi + 0x98], 0
jne 0x4037bf
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402b29
add esp, 0xc
test eax, eax
jne 0x4037bf
cmp dword [ebp + 0xc], 0x111
mov eax, dword [esi + 0x50]
mov dword [esp + 0x14], eax
jne 0x403828
cmp di, word [ebp + 0x10]
jne 0x403852
push edi
push dword [esi + 4]
mov dword [esi + 0x50], edi
call dword [sym.imp.USER32.dll_EndDialog]
and dword [ebx], 0
jmp 0x40384c
cmp dword [ebp + 0xc], 0x111
jne 0x40374d
mov eax, dword [ebp + 0x10]
movzx eax, ax
mov ecx, eax
cmp dx, ax
jne 0x4037c6
push edx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
xor edi, edi
inc edi
mov dword [ebx], edi
mov eax, edi
jmp 0x403881
cmp di, cx
jne 0x40380e
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0041d5f0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x200
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x80]
call fcn.004022f4
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4037bd
push 0x4d
pop eax
cmp ax, cx
jne 0x40374d
sub esp, 0x10
mov ecx, esi
call fcn.00403d39
mov dword [ebx], eax
jmp 0x4037bf
cmp dword [ebp + 0xc], 0x10
jne 0x403835
push 2
jmp 0x403786
cmp dword [ebp + 0xc], 0x110
jne 0x403852
push ecx
push ecx
mov ecx, esi
mov dword [esi + 0x50], edi
call fcn.00402a1c
mov dword [ebx], eax
cmp dword [esi + 0x50], 0
jne 0x40386c
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402b29
add esp, 0xc
test eax, eax
je 0x403878
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
jmp 0x4037bf
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
xor eax, eax
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b8c5
mov esp, ebp
pop ebp
ret 0x18

Function at 0x407923
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x451000
call fcn.0041c1ce
mov esi, ecx
push 4
xor ebx, ebx
call fcn.0041b904
mov edx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov dword [eax], edx
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push eax
push 0x407d19
push ebx
push ebx
call fcn.0042759d
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x40796a
mov eax, esi
call fcn.0041c19c
ret 4
push 6
mov dword [edi], ebx
call fcn.0041a960
int3
Function at 0x4085da
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
xor ebx, ebx
test ecx, ecx
je 0x4085fd
cmp word [ecx], bx
je 0x4085fd
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4085fd
push 1
test al, 0x10
movzx ebx, bl
pop ecx
cmove ebx, ecx
mov al, bl
pop ebx
ret

Function at 0x4086ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x471040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
push 0xa
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov esi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push 0x4677c0
push eax
call fcn.0040690b
add esp, 0xc
lea eax, [ebp - 0x2c]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x408768
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408768
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x408768
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x408768
lea eax, [esi + 1]
cmp eax, dword [ebx + 0x10]
ja 0x408748
cmp dword [ebx + 0x14], 0xf
mov edx, ebx
jbe 0x40873e
mov edx, dword [ebx]
xor ecx, ecx
mov dword [ebx + 0x10], eax
mov byte [edx + eax], cl
jmp 0x408754
sub eax, dword [ebx + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.00408ece
push ecx
mov ecx, ebx
call fcn.0040685f
push esi
push edi
call fcn.00402216
xor ecx, ecx
inc ecx
jmp 0x40876a
xor ecx, ecx
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b8c5
leave
ret

Function at 0x40877b
Capabilities:
Get file version info

Disassembly:
push 0x18
mov eax, 0x451174
call fcn.0041c237
mov esi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push eax
mov dword [ebp - 0x1c], eax
call fcn.0041bb8a
pop ecx
mov edi, eax
xor eax, eax
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push eax
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4087ff
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4676b8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4087ff
mov ax, word [ecx + 0xa]
mov word [esi], ax
mov ax, word [ecx + 8]
mov word [esi + 2], ax
mov ax, word [ecx + 0xe]
mov word [esi + 4], ax
mov ax, word [ecx + 0xc]
mov word [esi + 6], ax
xor esi, esi
inc esi
test edi, edi
je 0x408818
push edi
call fcn.0041bb85
pop ecx
jmp 0x408818
mov eax, esi
call fcn.0041c19c
ret