joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b514
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4150b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40b55f
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x422240], ax
xor eax, eax
mov word [0x422242], ax
mov dword [0x4150b0], 0x422240
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040eaa2
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4150a0
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10

Function at 0x40b8de
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x41c200]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x41d314], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40b940
mov ecx, dword [0x41b0d4]
call fcn.00406ab6
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x413734
push 0
push 0xc2
push edi
call esi
mov byte [0x41d314], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x40b990
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x40b9da
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x413758
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40c30d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00401200
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40c328
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40c332
mov byte [eax], 0
test edi, edi
je 0x40c3db
movzx eax, word [edi]
test ax, ax
je 0x40c3db
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40c36b
cmp dword [ebp + 0xc], 0
je 0x40c377
test esi, esi
jne 0x40c377
test ebx, ebx
je 0x40c367
mov byte [ebx], 1
mov esi, edx
jmp 0x40c386
cmp ax, 0xd
je 0x40c399
cmp ax, 0xa
je 0x40c39b
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40c391
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40c34b
jmp 0x40c39b
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40c39b
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40c3d6
mov word [ebx], ax
test esi, esi
je 0x40c3d6
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040ea78
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40c3dd
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40c422
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.00412832
cmp byte [0x41d315], 0
jne 0x40c4b0
push 6
push dword [0x41509c]
lea eax, [ebp - 0x820]
push eax
call fcn.00407c5f
push eax
call fcn.0040f376
test eax, eax
jne 0x40c4b0
push 0x4137ec
call fcn.0041281f
lea eax, [ebp - 0x820]
push eax
call fcn.0040b07a
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040ad4b
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40c57b
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x41c1f1], 1
cmp dword [0x41c200], ebx
je 0x40c5a3
push 0x7d
call fcn.0040a3b6
push eax
push 2
push dword [0x41c200]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x41c200]
mov dword [0x41c1f4], ebx
mov byte [0x41c1f0], 1
cmp eax, ebx
je 0x40c604
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x41d324], ebx
jne 0x40c5d2
cmp byte [0x41d314], bl
je 0x40c5da
cmp dword [0x41c1f8], ebx
jne 0x40c5fc
push ebx
push 1
push 0x111
push dword [0x41c200]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40c5fc
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040b4d5
cmp dword [0x41c200], ebx
jne 0x40c5f0
cmp byte [0x41c208], bl
pop ebx
je 0x40c612
jmp fcn.0040c422
ret
Function at 0x40c64e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x41c210], bl
je 0x40c6ce
cmp word [0x41b0d8], bx
je 0x40c6ce
push esi
push 0x41b0d8
lea esi, [ebp - 0x808]
call fcn.0040c613
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40c6ce
push dword [ebp + 8]
call fcn.0040b07a
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40c6d3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x41c210], 0
je 0x40c77a
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040c613
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40c77a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c771
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40c755
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040ea78
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40c8a2
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x41c0e6], 0
mov eax, dword [ebp + 0xc]
mov dword [0x41c0e8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x41c0ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x41c0e0], eax
je 0x40c8d2
xor eax, eax
inc eax
jmp 0x40c8fb
cmp byte [0x41c0e7], 0
je 0x40c8e0
push 2
pop eax
jmp 0x40c8fb
push dword [ebp + 8]
push 0x40baae
push dword [0x41c200]
push str.REPLACEFILEDLG
push dword [0x415e74]
call esi
dec eax
je 0x40c94d
dec eax
je 0x40c95f
dec eax
je 0x40c946
dec eax
jne 0x40c92a
push dword [ebp + 8]
push 0x40bdfa
push dword [0x41c200]
push str.RENAMEDLG
push dword [0x415e74]
call esi
test eax, eax
je 0x40c8ac
mov al, 0x52
jmp 0x40c95a
dec eax
je 0x40c93b
dec eax
mov al, 0x4e
jne 0x40c95a
mov byte [0x41c0e7], 1
jmp 0x40c95a
mov byte [0x41c1f2], 1
mov al, 0x43
jmp 0x40c95a
mov byte [0x41c0e6], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40c95a
Function at 0x40cb18
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.00401200
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x40cd4f
push esi
call fcn.0040b07a
cmp eax, 0x3f6
jae 0x40cd4f
push edi
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x40]
push eax
call fcn.0040ad4b
movzx ecx, word [esi]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0x5c0
cmp cx, 0x22
jne 0x40cb6f
lea eax, [esi + 2]
mov dword [ebp - 0x30], eax
jmp 0x40cb72
mov dword [ebp - 0x30], esi
xor eax, eax
cmp cx, bx
je 0x40cbc8
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40cb9a
jmp 0x40cb8a
cmp word [esi + eax*2], 0x22
je 0x40cb93
inc eax
cmp word [esi + eax*2], bx
jne 0x40cb83
jmp 0x40cb9a
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x40cbb4
cmp word [esi + eax*2 + 2], 0x2f
je 0x40cbb4
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40cb7b
jmp 0x40cbc8
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40cbc2
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x2c], eax
cmp byte [ebp + 8], bl
jne 0x40cbdd
cmp word [0x41ca12], bx
je 0x40cbdd
mov dword [ebp - 0x2c], 0x41ca12
push dword [ebp - 0x30]
mov dword [ebp - 0x24], 1
call fcn.00407ef1
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40cc09
push str..inf
push eax
call fcn.0040f2b9
test eax, eax
jne 0x40cc09
mov dword [ebp - 0x34], 0x413838
push dword [ebp - 0x30]
call fcn.00405dd9
mov bl, al
test bl, bl
je 0x40cc2f
lea eax, [ebp - 0x1040]
push eax
push dword [ebp - 0x30]
call fcn.00407a18
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], 0
je 0x40cc6d
test bl, bl
jne 0x40cc6d
push dword [ebp - 0x30]
lea eax, [ebp - 0x840]
push eax
call fcn.0040b0a4
push str..exe
lea eax, [ebp - 0x840]
push eax
call fcn.0040b111
lea eax, [ebp - 0x840]
push eax
call fcn.00405dd9
test al, al
je 0x40cd4e
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [ebp - 0x40]
push eax
call edi
test eax, eax
setne al
test al, al
jne 0x40cc9f
and dword [ebp - 0x3c], 0xfffffbff
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], esi
call edi
test eax, eax
setne al
test al, al
je 0x40cd4e
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
xor bl, bl
cmp byte [0x41c208], bl
jne 0x40ccb4
cmp byte [ebp + 8], bl
je 0x40ccea
mov eax, dword [0x41c200]
test eax, eax
je 0x40ccd4
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40ccd4
push 0
push dword [0x41c200]
call esi
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 8]
call fcn.0040c3e3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40cd0a
push str..exe
push dword [ebp - 4]
call fcn.0040f2b9
test eax, eax
je 0x40cd3a
cmp byte [0x41c208], 0
je 0x40cd20
cmp byte [ebp + 8], 0
jne 0x40cd20
push 0x1b58
jmp 0x40cd34
xor eax, eax
cmp byte [ebp + 8], al
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test bl, bl
je 0x40cd4e
cmp byte [ebp + 8], 0
je 0x40cd4e
push 1
push dword [0x41c200]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40e240
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 1
call fcn.0040ed72
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x424cf8
call fcn.0040f473
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp esi, ebx
je 0x40e2d0
push esi
call fcn.0040c16a
cmp byte [0x41c211], bl
je 0x40e2c8
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40e2bd
push 0x20000
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40e2b6
push esi
push str.sfxcmd
call edi
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e2d0
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, 0x41b8e0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x415e74], edi
mov dword [0x415e78], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x415e78]
mov dword [0x41b8dc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 8]
mov dword [0x41b8d8], eax
call fcn.004128a2
push esi
mov ecx, 0x415e88
call fcn.0040a39f
lea ecx, [ebp - 0x40]
call fcn.00406a93
lea ecx, [ebp - 0x24]
call fcn.00406a93
push 0x64
call fcn.0040b7de
push 0x64
mov dword [ebp - 0x28], eax
call fcn.0040b7de
push ebx
push 0x40da7c
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x41b0d4], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x41b0d0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x24]
mov dword [0x41b0d0], ebx
mov dword [0x41b0d4], ebx
call fcn.00406aa9
lea ecx, [ebp - 0x40]
call fcn.00406aa9
lea ecx, [ebp - 8]
call fcn.004128f4
cmp byte [0x41c208], bl
je 0x40e3ab
call fcn.0040c422
push 0x100
push ebx
push 0x41c0f0
call fcn.0040ad4b
cmp dword [0x41d324], ebx
jbe 0x40e3ce
push dword [0x41d318]
call fcn.0040acc7
push dword [0x41b8dc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x41b8d8]
cmp eax, ebx
je 0x40e3e8
push eax
call esi
cmp dword [0x415e7c], ebx
jne 0x40e407
cmp byte [0x41c1f2], bl
je 0x40e407
push 0xff
mov ecx, 0x415e7c
call fcn.0040344d
mov eax, dword [0x41d32c]
mov byte [0x41c1f2], 1
cmp eax, ebx
je 0x40e41d
push eax
call fcn.0040c3e3
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x415e7c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40e78f
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x412832
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x402bb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x47900c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.JHI_Service:
lea eax, [ebp - 0x408]
mov esi, edx
push 0xe
push eax
mov edi, ecx
call fcn.0043d54a
add esp, 0xc
lea eax, [ebp - 0x3fb]
push esi
push 0
push edi
push 0x3f3
push eax
call fcn.00401bf0
add esp, 0x14
mov esi, eax
cmp dword [0x47b798], 1
jne 0x402c24
call fcn.00403e70
lea ecx, [ebp - 0x408]
call fcn.00402890
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00434098
mov esp, ebp
pop ebp
ret
Function at 0x402f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x403044
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x403033
jg 0x402f90
test edx, edx
je 0x403033
nop dword [eax]
call fcn.00405080
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x402fe4
jg 0x402fa7
test esi, esi
je 0x402fe4
cmp ebx, eax
jg 0x402fb7
jl 0x402fb1
cmp edi, esi
jae 0x402fb7
mov esi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x20]
push dword [eax]
call fcn.00437eb0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x403017
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call dword [0x45e29c]
mov ecx, dword [esp + 0x10]
call esi
cmp eax, 0xffffffff
je 0x40302d
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x402f90
jl 0x40302d
test edi, edi
jne 0x402f90
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403066
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x403068
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4030e6
jg 0x40307b
test esi, esi
je 0x4030e6
test eax, eax
jl 0x4030c0
jg 0x403085
test ebx, ebx
je 0x4030c0
cmp edi, eax
jg 0x403095
jl 0x40308f
cmp esi, ebx
jae 0x403095
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00437eb0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x4030c3
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4030e6
jg 0x4030cd
test esi, esi
je 0x4030e6
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4030e6
push eax
push esi
push 1
push edx
call fcn.0043d7eb
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4036a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x47900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x4036d0
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x40370c
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x40370c
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x4c], 0
je 0x403803
mov esi, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [esi], eax
jne 0x403734
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], edx
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x40376a
push dword [edi + 0x4c]
movsx eax, bl
push eax
call fcn.0043af17
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x45e29c]
mov ecx, dword [ebp - 0x34]
call esi
test eax, eax
js 0x403803
cmp eax, 1
jle 0x4037d6
cmp eax, 3
jne 0x403803
push dword [edi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0043af17
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x4037f3
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0043d7eb
add esp, 0x10
cmp esi, eax
jne 0x403803
lea eax, [ebp - 0x25]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4036f7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00434098
mov esp, ebp
pop ebp
ret 4
Function at 0x404db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x47900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x404e88
cmp byte [ebx + 0x3d], 0
je 0x404e88
mov eax, dword [ebx]
push esi
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x45e29c]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x404e76
push edi
mov edi, dword [ebx + 0x38]
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [0x45e29c]
mov ecx, edi
call esi
pop edi
sub eax, 0
je 0x404e3e
sub eax, 1
je 0x404e42
sub eax, 2
jne 0x404e76
mov byte [ebx + 0x3d], al
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x404e5f
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.0043d7eb
add esp, 0x10
cmp esi, eax
jne 0x404e76
cmp byte [ebx + 0x3d], 0
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.00434098
mov esp, ebp
pop ebp
ret

Function at 0x406150
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a8b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x47900c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004342c0
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00435554
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret