joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x5e754a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e7551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5e88af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x60554c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x60554c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x604378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e88b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40c9d0
Capabilities:
Read file on windows

Disassembly:
push edi
push ebp
sub esp, 0x14
cvtsi2sd xmm1, dword [eax + 0x20]
cvtsi2sd xmm0, dword [eax + 0x24]
divsd xmm1, xmm0
cvtsd2ss xmm5, xmm1
lea edx, [esp]
mov dword [esp], 0
push dword [0x93854c]
push 1
push 4
push edx
movss dword [esp + 0x14], xmm5
call dword [sym.imp.MSVCR90.dll_fread]
movss xmm5, dword [esp + 0x14]
add esp, 0x10
movss xmm4, dword [0x9386b4]
movaps xmm3, xmm4
divss xmm3, xmm5
cvttss2si eax, xmm3
movss xmm3, dword [0x9386b8]
cvtsi2ss xmm0, eax
mulss xmm0, xmm5
addss xmm3, xmm4
movss xmm2, dword [0x9386bc]
mov edx, dword [0x9386c0]
subss xmm3, xmm0
addss xmm2, xmm4
movss dword [0x9386bc], xmm2
test edx, edx
jle 0x40cb6d
mov edi, dword [0x9386c4]
mov ecx, dword [0x9386c8]
movss xmm1, dword [esp]
mov ebp, ecx
shl ebp, 4
movsd xmm0, qword [ebp + edi]
cvtps2pd xmm6, xmm2
comisd xmm6, xmm0
ja 0x40ca9c
subsd xmm0, xmm6
movss xmm6, dword [0x41e700]
mulss xmm6, xmm1
cvtps2pd xmm7, xmm6
comisd xmm7, xmm0
jbe 0x40cad0
inc ecx
mov dword [0x9386c8], ecx
dec edx
cvtps2pd xmm0, xmm3
mov dword [0x9386c0], edx
addsd xmm0, qword [ebp + edi + 8]
cvtsd2ss xmm3, xmm0
movaps xmm6, xmm3
divss xmm6, xmm5
cvttss2si ebp, xmm6
cvtsi2ss xmm7, ebp
add eax, ebp
mulss xmm7, xmm5
subss xmm3, xmm7
mov edx, dword [0x9386cc]
test edx, edx
jle 0x40cb33
mov ecx, dword [0x9386d0]
cmp ecx, edx
jge 0x40cb33
movsd xmm0, qword [ecx*8 + 0x90a8e0]
cvtps2pd xmm6, xmm2
comisd xmm6, xmm0
ja 0x40cb22
subsd xmm0, xmm6
cvtps2pd xmm2, xmm1
mulsd xmm2, qword [0x41e6b8]
comisd xmm2, xmm0
ja 0x40cb22
comiss xmm4, dword [0x41e704]
jbe 0x40cb33
movsd xmm2, qword [0x41e6c0]
comisd xmm2, xmm0
jbe 0x40cb33
mov dword [0x938674], 1
inc ecx
mov dword [0x9386d0], ecx
pxor xmm0, xmm0
movss xmm0, xmm3
cvtps2pd xmm2, xmm0
comisd xmm2, xmmword [0x41e6b0]
jbe 0x40cb57
inc eax
subss xmm3, xmm5
movss dword [0x9386b8], xmm3
jmp 0x40cb5f
movss dword [0x9386b8], xmm3
movss dword [0x9386b4], xmm1
add esp, 0x14
pop ebp
pop edi
ret
movss xmm1, dword [esp]
jmp 0x40cad0
Function at 0x40e2a0
Capabilities:
Terminate process

Disassembly:
push esi
push ebp
push ebx
mov esi, eax
push dword [esi + 0x68]
push esi
call sub.avformat.dll_av_new_stream
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x40e394
push 3
mov ebx, dword [ebp + 8]
push ebx
call sub.avcodec.dll_avcodec_get_context_defaults2
add esp, 8
mov edx, dword [0x938510]
mov ecx, dword [0x938718]
mov dword [0x938718], 0
mov eax, edx
shl eax, 4
sub eax, edx
mov edx, dword [esi + 0x68]
shl eax, 4
mov dword [eax + edx*4 + 0x8fe93c], ecx
mov eax, dword [0x426500]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x26c], eax
mov eax, dword [0x93871c]
mov dword [ebx + 0xe0], 3
test eax, eax
je 0x40e31a
mov dword [ebx + 0xe8], eax
mov eax, dword [esi + 8]
test byte [eax + 0x28], 0x40
je 0x40e32a
or dword [ebx + 0xc], 0x400000
cmp dword [0x9386d8], 0
je 0x40e33c
mov dword [ebp + 0x4c], 1
jmp 0x40e347
mov eax, dword [0x9386dc]
mov dword [ebx + 0xe4], eax
mov eax, dword [0x9384dc]
test eax, eax
je 0x40e36f
push eax
push str.language
add ebp, 0xe8
push ebp
call sub.avformat.dll_Ordinal_3
push 0x9384dc
call sub.avutil.dll_av_freep
add esp, 0x10
mov dword [0x9384d8], 0
push 0x938720
call sub.avutil.dll_av_freep
xor eax, eax
mov dword [0x9386d8], eax
mov dword [0x9386dc], eax
pop ecx
pop ebx
pop ebp
pop esi
ret
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
push str.Could_not_alloc_stream_n
call sub.MSVCR90.dll_fputs
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0xc
lea esi, [esi]
lea edi, [edi]
Function at 0x4151a0
Capabilities:
Write file on windows

Disassembly:
push esi
mov eax, dword [0x938738]
cmp eax, 0x1c00
jle 0x4151da
push 0x9361e0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp]
push 0
push edx
push eax
push 0x9361e0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x938738], 0
xor eax, eax
lea edx, [eax + 0x9361e0]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
add dword [0x938738], eax
pop ecx
ret

Function at 0x415200
Capabilities:
Get file version info

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x38
mov edi, ecx
lea esi, [edi + 0x28]
lea eax, [esp + 0x34]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test ebp, ebp
jne 0x415227
xor eax, eax
add esp, 0x38
pop ebx
pop ebp
pop esi
pop edi
ret
lea ebx, [ebp + 1]
push ebx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
push ebx
push 0
mov dword [edi], eax
push eax
call fcn.004195e0
add esp, 0x10
push dword [edi]
push ebp
push dword [esp + 0x3c]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x415259
xor eax, eax
add esp, 0x38
pop ebx
pop ebp
pop esi
pop edi
ret
lea eax, [esp]
push eax
mov ecx, edi
call fcn.004150a0
test eax, eax
je 0x41524f
mov edx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, edx
shr eax, 0x10
mov word [edi + 8], ax
mov word [edi + 0xa], dx
mov edx, dword [esp + 0x14]
mov ebx, ebp
shr ebx, 0x10
mov word [edi + 0xc], bx
mov ebx, dword [esp + 0x1c]
mov word [edi + 0xe], bp
mov ebp, dword [esp + 0x20]
mov esi, ecx
shr esi, 0x10
mov word [edi + 0x10], si
mov esi, dword [esp + 0x24]
mov word [edi + 0x12], cx
mov ecx, dword [esp + 0x28]
mov eax, edx
shr eax, 0x10
mov word [edi + 0x14], ax
mov word [edi + 0x16], dx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], ecx
lea eax, [edi + 0x230]
push eax
push 0x4223c0
mov ecx, edi
call fcn.00414fe0
lea eax, [edi + 0x640]
push eax
mov ecx, edi
push 0x4223cc
call fcn.00414fe0
lea eax, [edi + 0x438]
push eax
mov ecx, edi
push 0x4223dc
call fcn.00414fe0
mov eax, 1
add esp, 0x38
pop ebx
pop ebp
pop esi
pop edi
ret
Function at 0x415390
Capabilities:
Read file on windows

Disassembly:
push edi
push ebp
push ebx
sub esp, 0x43c
mov edx, eax
mov edi, dword [edx + 0x6c]
pxor xmm0, xmm0
movss dword [esp + 0x438], xmm0
xor ebp, ebp
test edi, edi
je 0x4154c6
mov dword [0x938548], 1
mov dword [esp + 0x434], ebp
add edx, 0x15c
lea eax, [esp + 0x18]
mov ecx, 0x4223e8
call fcn.00414f60
push 0x42151c
lea eax, [esp + 0x1c]
push eax
call sub.avutil.dll_fopen_utf8
add esp, 8
mov ebx, eax
mov dword [0x93854c], ebx
test ebx, ebx
je 0x4154c6
push ebx
call dword [sym.imp.MSVCR90.dll_feof]
pop ecx
test eax, eax
jne 0x415460
lea eax, [esp + 0x434]
mov dword [esp + 0x430], esi
mov esi, eax
push ebx
push 4
push 1
push esi
call dword [sym.imp.MSVCR90.dll_fread]
movss xmm0, dword [esp + 0x444]
movss xmm1, dword [esp + 0x448]
addss xmm0, xmm1
cmp eax, 4
jne 0x415442
movaps xmm1, xmm0
movss dword [esp + 0x448], xmm1
push ebx
call dword [sym.imp.MSVCR90.dll_feof]
add esp, 0x14
test eax, eax
je 0x415418
mov esi, dword [esp + 0x430]
cvtsi2ss xmm0, dword [edi + 0x44]
cvtsi2ss xmm1, dword [edi + 0x40]
movss xmm2, dword [esp + 0x438]
mulss xmm2, xmm0
divss xmm2, xmm1
movss dword [esp + 0x428], xmm2
fld dword [esp + 0x428]
fnstcw word [esp + 0xc]
movzx eax, word [esp + 0xc]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp qword [edi + 0x60]
fldcw word [esp + 0xc]
push ebp
push ebp
push ebx
call dword [sym.imp.MSVCR90.dll_fseek]
push ebx
push 1
push 4
push 0x9386b4
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x1c
jmp 0x4154cb
mov ebp, 0xffffffff
mov eax, ebp
add esp, 0x43c
pop ebx
pop ebp
pop edi
ret
Function at 0x4159c0
Capabilities:
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push edi
push esi
push ebx
sub esp, 0x404
mov edi, eax
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea ebx, [esp + 0x10]
push dword [esp + 0x78]
push dword [esp + 0x78]
push ebx
call fcn.00415120
push ebx
push str.Error_occurred_at__s._r_n
push edi
call fcn.004151a0
add esp, 0x18
mov eax, 0x200
pxor xmm0, xmm0
movq qword [esp + 0x350], xmm0
movaps xmmword [esp + eax + 0x140], xmm0
movaps xmmword [esp + eax + 0x130], xmm0
movaps xmmword [esp + eax + 0x120], xmm0
movaps xmmword [esp + eax + 0x110], xmm0
sub eax, 0x40
jne 0x415a0f
lea esi, [esp + 0x150]
push 0x206
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pxor xmm0, xmm0
test eax, eax
ja 0x415a61
push 0x42159c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pxor xmm0, xmm0
movq qword [esp + 0x140], xmm0
mov eax, 0xc0
movaps xmmword [esp + eax + 0x70], xmm0
movaps xmmword [esp + eax + 0x60], xmm0
movaps xmmword [esp + eax + 0x50], xmm0
movaps xmmword [esp + eax + 0x40], xmm0
sub eax, 0x40
jne 0x415a6f
mov dword [esp + 0x7c], 0xc6
lea ebx, [esp + 0x80]
lea eax, [esp + 0x7c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x415ab3
push 0x42159c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push esi
push str._s__run_by__s._r_n
push edi
call fcn.004151a0
add esp, 0x10
lea esi, [esp + 0x358]
lea ebx, [esp + 0x38a]
lea edx, [esp + 0x148]
mov eax, esi
mov ecx, ebx
call fcn.00414c80
push ebx
push esi
push str.Operating_system:___s___s_._r_n
push edi
call fcn.004151a0
add esp, 0x10
lea eax, [esp + 0x3bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [esp + 0x3d4]
push dword [esp + 0x3d4]
push str._d_processor_s___type__d._r_n
push edi
call fcn.004151a0
add esp, 0x10
mov dword [esp + 0x3e0], 0x20
lea eax, [esp + 0x3e0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push dword [esp + 0x3e4]
push str._d___memory_in_use._r_n
push edi
call fcn.004151a0
mov eax, dword [esp + 0x3f4]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory._r_n
push edi
call fcn.004151a0
mov eax, dword [esp + 0x404]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory_free._r_n
push edi
call fcn.004151a0
mov eax, dword [esp + 0x414]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file._r_n
push edi
call fcn.004151a0
mov eax, dword [esp + 0x424]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file_free._r_n
push edi
call fcn.004151a0
mov eax, dword [esp + 0x434]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_user_address_space._r_n
push edi
call fcn.004151a0
mov eax, dword [esp + 0x444]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_user_address_space_free._r_n
push edi
call fcn.004151a0
add esp, 0x458
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x415e90
Capabilities:
Get system information on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x50
mov edi, eax
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 4]
mov eax, 0x40000000
xor edx, edx
div ecx
mov esi, eax
shl esi, 2
test esi, esi
jbe 0x415f4d
mov dword [esp + 0x44], edi
mov edi, ecx
mov dword [esp + 0x40], ebp
lea ebp, [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x48], ebx
mov eax, 1
mov dword [esp + 0x4c], eax
push 0x1c
push ebp
mov eax, edi
imul eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415f3a
mov eax, dword [esp + 0x30]
test eax, eax
jbe 0x415f3a
xor edx, edx
div edi
add ebx, eax
cmp dword [esp + 0x34], 0x1000
jne 0x415f45
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x48]
jbe 0x415f45
mov dword [esp + 0x48], eax
push dword [esp + 0x4c]
push eax
push dword [esp + 0x4c]
call fcn.00415690
add esp, 0xc
mov ecx, eax
mov edx, dword [esp + 0x4c]
lea eax, [edx + 1]
movzx ecx, cl
test ecx, ecx
cmovne edx, eax
mov dword [esp + 0x4c], edx
jmp 0x415f45
mov eax, 0x10000
xor edx, edx
div edi
add ebx, eax
cmp ebx, esi
jb 0x415ed9
mov ebp, dword [esp + 0x40]
add esp, 0x50
pop ebx
pop esi
pop edi
ret

Function at 0x415f60
Capabilities:
Create process memory minidump
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e754
push 0x418c6a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0xc], 0
jne 0x415fbd
mov dword [ebp - 4], 0
push str.raising_exception_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
push eax
push eax
push eax
push reloc.avformat.dll_Ordinal_3
call dword [sym.imp.KERNEL32.dll_RaiseException]
push str.writing_minidump_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 0xc], 0
je 0x415ff9
lea edx, [ebp - 0x30]
xor ecx, ecx
jmp 0x415ffd
xor edx, edx
xor ecx, ecx
push ecx
push ecx
push edx
push ecx
push dword [ebp + 8]
push eax
push ebx
call sub.dbghelp.dll_MiniDumpWriteDump
mov esp, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x418770
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41b839
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x10], ebx
je 0x41879f
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [esp + 0x28]
push 0x4232b4
push eax
call dword [sym.imp.MSVCR90.dll__wfopen]
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x4187e7
cmp esi, ebx
je 0x4187c2
mov dword [esi], 0xa
mov ecx, dword [0x9387c0]
cmp ecx, ebx
mov eax, dword [esp + 0x24]
mov dword [eax], ecx
je 0x4187d5
inc dword [ecx + 0x30]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov esi, dword [sym.imp.MSVCR90.dll_fseek]
push edi
push 2
push ebx
push ebp
call esi
push ebp
call dword [sym.imp.MSVCR90.dll_ftell]
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x41884c
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x418812
mov dword [eax], 3
push ebp
call dword [sym.imp.MSVCR90.dll_fclose]
mov edx, dword [0x9387c0]
mov eax, dword [esp + 0x2c]
mov ecx, edx
add esp, 4
cmp ecx, ebx
mov dword [eax], edx
je 0x41896b
mov edx, dword [ecx + 0x30]
pop edi
pop esi
inc edx
pop ebp
mov dword [ecx + 0x30], edx
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push ebx
push ebx
push ebp
call esi
lea eax, [edi + 4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
push ebp
push 1
mov esi, eax
push edi
push esi
call dword [sym.imp.MSVCR90.dll_fread]
push ebp
call dword [sym.imp.MSVCR90.dll_fclose]
mov al, byte [0x426544]
mov ebp, dword [sym.imp.MSVCR90.dll_free]
add esp, 0x24
test al, al
mov byte [esi + edi], 0
mov byte [esi + edi + 1], 0
mov byte [esi + edi + 2], 0
mov byte [esi + edi + 3], 0
je 0x4188ef
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test al, al
jne 0x4188cf
cmp byte [esi], 0xef
jne 0x4188b8
cmp byte [esi + 1], 0xbb
jne 0x4188b8
cmp byte [esi + 2], 0xbf
jne 0x4188b8
mov ebx, 3
lea ecx, [esi + ebx]
push ecx
call fcn.00416760
push esi
mov edi, eax
call ebp
add esp, 8
mov esi, edi
xor ebx, ebx
jmp 0x4188ef
mov al, byte [esi]
cmp al, 0xef
jne 0x4188e0
cmp byte [esi + 1], 0xff
jne 0x4188e0
mov ebx, 2
cmp al, 0xff
jne 0x4188ef
cmp byte [esi + 1], 0xfe
jne 0x4188ef
mov ebx, 2
test esi, esi
mov eax, dword [esp + 0x34]
jne 0x41892d
test eax, eax
je 0x418901
mov dword [eax], 0xe
mov edx, dword [0x9387c0]
mov eax, dword [esp + 0x28]
mov ecx, edx
test ecx, ecx
mov dword [eax], edx
je 0x41896b
mov edx, dword [ecx + 0x30]
pop edi
pop esi
inc edx
pop ebp
mov dword [ecx + 0x30], edx
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esi + ebx]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00418480
push esi
call ebp
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x3c]
add esp, 0x14
test eax, eax
mov dword [esi], eax
je 0x418958
inc dword [eax + 0x30]
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 1
call fcn.00417b10
mov eax, esi
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x418980
Capabilities:
Read file on windows
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x41b86f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8b4
push ebx
push esi
push edi
mov edi, dword [esp + 0x8d4]
push 0x4232b4
push edi
mov dword [esp + 0x18], 0
call dword [sym.imp.MSVCR90.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4189df
push esi
push 0xc8
lea eax, [esp + 0x28]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fread]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
mov ebx, dword [esp + 0x8d8]
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x14]
push edi
push edx
call fcn.00418770
mov esi, dword [esp + 0x24]
add esp, 0x10
test esi, esi
je 0x418a72
cmp esi, 0xb
mov eax, 0x423336
mov edx, eax
mov ecx, 0x423334
jne 0x418a1f
mov eax, str.First_Tag_should_be_
mov ecx, ebx
mov edx, 0x423318
push edx
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
push esi
call fcn.00416670
add esp, 4
push eax
push edi
lea edx, [esp + 0x10c]
push str.XML_Parsing_error_inside_file__S._n_S_nAt_line__i__column__i._n_s_S_s
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x24
push 0x40010
push str.XML_Parsing_error
lea eax, [esp + 0xf8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xff
call dword [sym.imp.MSVCR90.dll_exit]
mov eax, dword [esp + 0xc]
test eax, eax
mov esi, dword [esp + 0x8d0]
mov dword [esi], eax
je 0x418a86
inc dword [eax + 0x30]
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 1
call fcn.00417b10
mov ecx, dword [esp + 0x8c0]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c0
ret