joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aa50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cfde
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x45c4f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ecx, ecx
mov eax, 0xf
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ecx
mov dword [ebp - 0x38], esi
mov byte [esi], cl
mov dword [ebp - 4], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], ecx
mov byte [esi + 0x1c], cl
mov byte [ebp - 4], 1
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], ecx
mov byte [esi + 0x38], cl
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, eax
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x40aab7
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00401e00
cmp dword [esi + 0x14], 0x10
mov ax, word [0x4466c0]
mov cl, byte [0x4466c2]
mov word [ebp - 0x34], ax
mov byte [ebp - 0x32], cl
jb 0x40aae6
mov eax, dword [esi]
jmp 0x40aae8
mov eax, esi
lea edx, [ebp - 0x34]
push edx
push eax
mov ecx, esi
call fcn.0040a580
test eax, eax
je 0x40abc2
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40ab01
sub ecx, ebx
push ecx
push eax
lea ecx, [esi + 0x1c]
call fcn.00401e00
push 1
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 0x1c]
mov byte [ebp - 0x30], 0x20
call fcn.0040a610
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40abc2
mov eax, dword [esi + 0x2c]
sub eax, ebx
push eax
lea ecx, [ebx + 1]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea ecx, [esi + 0x1c]
call fcn.0040a940
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x38]
call fcn.0040a9c0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0x10
jb 0x40ab6c
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebx
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.0040a940
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x1c]
call fcn.0040a9c0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0x10
jb 0x40abb0
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b28c
mov esp, ebp
pop ebp
ret
Function at 0x40bbf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x45c4f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x30e]
push edx
mov word [ebp - 0x310], cx
call sub.MSVCR100.dll_memset
push 0
push 0
push 2
push 0x104
lea eax, [ebp - 0x310]
push eax
push str.stormpop.ini
call sub.crt.dll_Ordinal_34
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0x30
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x310]
push ecx
push 0
push 0
call esi
push 0
push 0
push eax
lea edx, [ebp - 0x108]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push 0
push 0
call esi
lea ecx, [ebp - 0x108]
push ecx
push 0
push str.poptime
push str.setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043b28c
mov esp, ebp
pop ebp
ret

Function at 0x40bfb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x45c4f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call sub.MSVCR100.dll_memset
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call sub.MSVCR100.dll_memset
push 0
push 0
push 2
push 0x104
lea eax, [ebp - 0x414]
push eax
push str.stormpop.ini
call sub.crt.dll_Ordinal_34
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0x30
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x414]
push ecx
push 0
push 0
call esi
push 0
push 0
push eax
lea edx, [ebp - 0x20c]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
push 0
push 0
call esi
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x446728
push str.popcounts
push str.setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.MSVCR100.dll_atoi]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.0043b28c
mov esp, ebp
pop ebp
ret
Function at 0x4141c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
jne 0x41420d
cmp dword [esi + 0x14], 0x10
jb 0x4141da
mov eax, dword [esi]
jmp 0x4141dc
mov eax, esi
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x41420d
cmp dword [esi + 0x14], 0x10
jb 0x4141f8
mov eax, dword [esi]
jmp 0x4141fa
mov eax, esi
push eax
push ebx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x1c], eax
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x414246
push 0
push 0
push 0
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x414246
mov eax, dword [ebp + 8]
push ebx
push eax
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
pop esi
xor al, al
pop ebx
pop ebp
ret 8

Function at 0x414250
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor bl, bl
cmp dword [esi + 0x1c], 0
jne 0x414279
cmp dword [esi + 0x14], 0x10
jb 0x414269
mov eax, dword [esi]
jmp 0x41426b
mov eax, esi
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 0x1c], eax
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x4142b5
push 4
push 0
push 0
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x4142b5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push esi
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x415590
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x45c4f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x40c]
push ecx
push ebx
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x40c], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x415698
push esi
push edi
call fcn.0043b27a
mov edx, dword [ebp - 0x40c]
add esp, 4
mov esi, eax
push esi
push edi
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x408]
push ecx
push 0x446b5c
xor ebx, ebx
push esi
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x410], ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 0x408]
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov di, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, di
push eax
movzx edx, dx
push edx
movzx eax, cx
push eax
push str._u._u._u._u
lea ecx, [ebp - 0x404]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x1c
cmp esi, ebx
je 0x41565e
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415668
mov ecx, dword [ebp - 0x414]
sub eax, edx
push eax
lea edx, [ebp - 0x404]
push edx
call fcn.00401e00
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b28c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0043b28c
mov esp, ebp
pop ebp
ret 8
Function at 0x418fe0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp eax, 3
jne 0x418fff
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
cmp eax, 2
jne 0x419028
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x419043
mov edx, dword [esi + 4]
push 0x57
push eax
push eax
push eax
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
pop ebp
ret 4
cmp eax, 1
jne 0x419043
mov eax, dword [esi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop esi
pop ebp
ret 4
Function at 0x428270
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4420af
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x45c4f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
lea eax, [esi + 8]
mov dword [esi + 4], ebx
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], ebx
mov dword [ebp - 4], 1
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [ebp - 4], 3
mov byte [esi + 0x20], bl
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], 4
lea ecx, [esi + 0x60]
call fcn.0041bfd0
mov byte [ebp - 4], 5
mov dword [esi + 0x28], vtable.WTL::CMessageFilter.0
mov dword [esi + 0x2c], vtable.WTL::CIdleHandler.0
mov dword [esi + 0x78], ebx
lea eax, [esi + 0x78]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [ebp - 0x14], eax
add eax, 4
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [ebp - 0x18], eax
mov byte [eax + 0x18], bl
mov byte [ebp - 4], 8
lea ecx, [esi + 0x30]
call fcn.0041c090
lea ecx, [esi + 0x98]
mov dword [esi], vtable.CMainDlg.4.0
mov dword [esi + 0x28], vtable.CMainDlg.3.0
mov dword [esi + 0x2c], vtable.CMainDlg.2.0
mov dword [esi + 0x30], vtable.CMainDlg.1.0
mov dword [esi + 0x5c], vtable.CMainDlg.0
call fcn.00430790
mov byte [ebp - 4], 9
mov dword [esi + 0xa4c], ebx
call fcn.00427e70
lea eax, [esi + 0xa50]
mov dword [ebp - 0x18], eax
mov dword [eax], ebx
mov byte [ebp - 4], 0xb
lea eax, [esi + 0xa54]
mov dword [ebp - 0x18], eax
mov dword [eax], ebx
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0xa58]
call fcn.004171b0
mov byte [ebp - 4], 0xf
mov dword [esi + 0xa88], ebx
mov dword [esi + 0xa90], ebx
mov dword [esi + 0xa84], 0x446db4
mov ecx, dword [0x45c86c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov byte [ebp - 4], 0x10
lea ecx, [esi + 0xa94]
call fcn.0040a330
mov byte [ebp - 4], 0x11
mov eax, 0xf
mov dword [esi + 0xae0], eax
mov dword [esi + 0xadc], ebx
mov byte [esi + 0xacc], bl
mov byte [ebp - 4], 0x12
mov dword [esi + 0xafc], eax
mov dword [esi + 0xaf8], ebx
mov byte [esi + 0xae8], bl
mov byte [ebp - 4], 0x13
push str.C4818EA8_983A_43AC_91CB_5BF866507235
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push str.73F44038_6655_4319_A453_232162E4E728
mov dword [esi + 0xabc], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [esi + 0xac0], eax
call fcn.0040c970
test eax, eax
je 0x428432
mov eax, dword [esi + 0xabc]
push 1
push eax
call sub.crt.dll_Ordinal_94
mov ecx, dword [esi + 0xac0]
push 1
push ecx
call sub.crt.dll_Ordinal_94
add esp, 0x10
push ebx
push 0x446a0a
lea ecx, [esi + 0xae8]
mov dword [esi + 0xac4], ebx
mov byte [esi + 0xac8], bl
call fcn.00401e00
mov dword [esi + 0xb04], ebx
mov dword [esi + 0xb0c], ebx
mov dword [esi + 0xb08], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x45c4f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x447874
push eax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x8c], esi
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
xor eax, eax
add esp, 8
cmp edi, eax
jne 0x42a9e5
mov edi, dword [ebp - 0x84]
cmp edi, eax
je 0x42a9d2
call dword [sym.imp.MSVCR100.dll__errno]
mov edx, dword [eax]
push edx
call dword [sym.imp.MSVCR100.dll_strerror]
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x42a9c0
sub ecx, esi
push ecx
push eax
mov ecx, edi
call fcn.00401e00
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b28c
mov esp, ebp
pop ebp
ret
cmp esi, eax
je 0x42a9f0
mov ecx, dword [esi]
mov dword [ebp - 0x80], ecx
jmp 0x42a9f3
mov dword [ebp - 0x80], eax
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov byte [ebp - 0x18], al
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call fcn.00401f60
mov ebx, dword [sym.imp.MSVCR100.dll_fseek]
push 2
push 0
push edi
call ebx
push edi
call dword [sym.imp.MSVCR100.dll_ftell]
push 0
push 0
push edi
mov esi, eax
call ebx
add esp, 0x1c
test esi, esi
je 0x42aa63
push esi
call fcn.0043b27a
push edi
push 1
mov ebx, eax
push esi
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
mov ecx, dword [ebp - 0x88]
add esp, 0x14
push esi
push ebx
call fcn.00401e00
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x7c]
push str._s_d_bytes
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
mov ecx, dword [ebp - 0x84]
add esp, 0x10
test ecx, ecx
je 0x42aaa3
lea eax, [ebp - 0x7c]
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42aa90
sub eax, esi
push eax
lea edx, [ebp - 0x7c]
push edx
call fcn.00401e00
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [ebp - 0x8c]
add esp, 4
test eax, eax
je 0x42aabc
mov ecx, dword [ebp - 0x80]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0043b28c
mov esp, ebp
pop ebp
ret
Function at 0x42aad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x45c4f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
push 0x447878
push eax
mov dword [ebp - 0x8c], edi
mov byte [ebp - 0x7d], 1
call dword [sym.imp.MSVCR100.dll_fopen]
mov ecx, eax
xor eax, eax
add esp, 8
mov dword [ebp - 0x88], ecx
cmp ecx, eax
jne 0x42ab59
cmp ebx, eax
je 0x42ab46
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_strerror]
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x42ab34
sub ecx, esi
push ecx
push eax
mov ecx, ebx
call fcn.00401e00
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b28c
mov esp, ebp
pop ebp
ret
cmp edi, eax
je 0x42ab67
mov edx, dword [edi]
mov dword [ebp - 0x84], edx
jmp 0x42ab6d
mov dword [ebp - 0x84], eax
mov edi, dword [esi + 0x10]
mov byte [ebp - 0x18], al
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
test edi, edi
je 0x42aba7
cmp dword [esi + 0x14], 0x10
jb 0x42ab92
mov esi, dword [esi]
push ecx
push 1
push edi
push esi
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
sete byte [ebp - 0x7d]
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x7c]
push str._s_d_bytes
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
test ebx, ebx
je 0x42abdd
lea eax, [ebp - 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42abc8
sub eax, edx
push eax
lea edx, [ebp - 0x7c]
push edx
mov ecx, ebx
call fcn.00401e00
cmp byte [ebp - 0x7d], 0
jne 0x42ac12
test ebx, ebx
je 0x42ac12
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_strerror]
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x42ac00
sub ecx, esi
push ecx
push eax
mov ecx, ebx
call fcn.00401e00
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [ebp - 0x8c]
add esp, 4
test eax, eax
je 0x42ac34
mov edx, dword [ebp - 0x84]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x7d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b28c
mov esp, ebp
pop ebp
ret
Function at 0x42ff20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45c4f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x210], eax
test edi, edi
je 0x43002e
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
push 0x103
lea edx, [ebp - 0x20b]
push 0
push edx
mov byte [ebp - 0x20c], 0
call sub.MSVCR100.dll_memset
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
push 1
push edi
mov ecx, esi
call fcn.0042fe40
test eax, eax
je 0x43002e
lea ecx, [ebp - 0x20c]
push ecx
push 2
push edi
mov ecx, esi
call fcn.0042fe40
test eax, eax
je 0x43002e
cmp dword [esi + 4], 0
je 0x43002e
lea edx, [ebp - 0x108]
push edx
mov ecx, esi
call fcn.0042fd50
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
mov edx, dword [esi + 4]
movzx ecx, ax
add esp, 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x43002e
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x43002e
mov ecx, dword [esi + 4]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp - 0x210]
push ebx
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b28c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0043b28c
mov esp, ebp
pop ebp
ret 8

Function at 0x431180
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x45c4f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push str.Crash.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x431226
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str...Crash.dll
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi], eax
test eax, eax
je 0x431226
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CrashInitialize
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
push str.CrashUninitialize
push eax
call edi
mov ecx, dword [esi]
push str.CrashPlayFile
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi]
push str.CrashPlayPos
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push str.CrashRestartInstance
push eax
call edi
mov dword [esi + 0x14], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043b28c
mov esp, ebp
pop ebp
ret 4
Function at 0x431cf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x431d09
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x431d13
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4329c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45c4f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.diag.dll
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x432a34
cmp byte [ebp + 0xc], al
je 0x432ad3
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...diag.dll
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [edi + 4], eax
test esi, esi
je 0x432ad3
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DiagServerInitialize
push esi
call ebx
push str.DiagServerUninitialize
push esi
mov dword [edi + 8], eax
call ebx
push str.IsDebugMode
push esi
mov dword [edi + 0xc], eax
call ebx
push str.IsHasDiagConsole
push esi
mov dword [edi + 0x10], eax
call ebx
push str.DiagTrace
push esi
mov dword [edi + 0x14], eax
call ebx
push str.GetDiagInformation
push esi
mov dword [edi + 0x18], eax
call ebx
push str.DiagCommand
push esi
mov dword [edi + 0x1c], eax
call ebx
push str.DiagPerformTimer
push esi
mov dword [edi + 0x20], eax
call ebx
push str.DiagMemory
push esi
mov dword [edi + 0x24], eax
call ebx
push str.DiagObjectAddRef
push esi
mov dword [edi + 0x28], eax
call ebx
push str.DiagObjectRelease
push esi
mov dword [edi + 0x2c], eax
call ebx
push str.DiagHttp
push esi
mov dword [edi + 0x30], eax
call ebx
mov dword [edi + 0x34], eax
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b28c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0043b28c
mov esp, ebp
pop ebp
ret 8