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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
test edi, edi
je 0x40c7fb
push ebx
lea eax, [esp + 0xc]
push ebp
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0040c540
mov eax, dword [esi + 8]
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x1c]
sub ebp, eax
push 0
push edx
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ecx, esi
call fcn.0040c4f0
push edi
mov ecx, esi
call fcn.0040c640
push 2
mov ecx, esi
call fcn.0040c910
mov ecx, esi
mov ebx, eax
call fcn.0040c890
lea eax, [eax + eax*4]
mov edx, ebx
lea ecx, [esp + 0x1c]
push 0
lea ebp, [ebp + eax*8 + 0xe0]
mov eax, dword [esi + 8]
sub edx, eax
push ecx
sub edx, ebp
add eax, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
push eax
push edi
call ebp
mov ecx, dword [esi + 0x24]
push edi
call fcn.0040e100
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x1c]
push 0
sub edx, eax
push ecx
add eax, ebx
push edx
push eax
push edi
call ebp
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
sub ebx, eax
mov edx, dword [ecx + 0x70]
mov ecx, dword [esi + 0x24]
push ebx
push edx
push eax
push edi
call fcn.0040e230
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c7ec
cmp eax, 0x10
mov esi, 0x10
ja 0x40c7d0
mov esi, eax
lea eax, [esp + 0x1c]
push 0
push eax
push esi
push 0x4180b0
push edi
call ebp
mov eax, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0x10], eax
jne 0x40c7c4
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 8
ret 8
pop edi
xor eax, eax
pop esi
add esp, 8
ret 8

Function at 0x40e140
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x18]
cmp eax, edi
jne 0x40e1aa
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
mov ebx, 0x10
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], ebx
je 0x40e177
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov ecx, dword [0x419d5c]
add ecx, ebx
mov dword [0x419d5c], ecx
mov esi, dword [esi + 0x14]
test esi, esi
je 0x40e200
push edi
mov ecx, esi
call fcn.004109f0
test eax, eax
je 0x40e16f
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x40e18c
mov eax, dword [0x419d5c]
pop edi
pop esi
pop ebx
ret 8
cmp eax, 2
jne 0x40e1dd
cmp edi, 3
jne 0x40e1dd
mov esi, dword [esi + 0x14]
test esi, esi
je 0x40e200
mov edi, dword [esp + 0x10]
push edi
mov ecx, esi
call fcn.00410a30
test eax, eax
je 0x40e16f
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x40e1bf
mov eax, dword [0x419d5c]
pop edi
pop esi
pop ebx
ret 8
mov esi, dword [esi + 0x14]
test esi, esi
je 0x40e200
mov ebx, dword [esp + 0x10]
push edi
push ebx
mov ecx, esi
call fcn.004109c0
test eax, eax
je 0x40e16f
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x40e1e8
mov eax, dword [0x419d5c]
pop edi
pop esi
pop ebx
ret 8
Function at 0x40eef0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x50
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x40efdd
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x40efdd
mov ecx, dword [esi + 8]
push ebx
push ebp
lea eax, [esp + 0xc]
push edi
mov ebp, 1
push eax
push ecx
mov dword [esi + 0x40], ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub edi, edx
sub ebx, ecx
mov ecx, dword [esi + 8]
or edx, 0xffffffff
push ebp
or eax, 0xffffffff
push ebx
sub edx, ebx
push edi
sub eax, edi
push edx
push eax
push ecx
mov dword [esi + 0x48], ebp
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 8]
mov dword [esi + 0x48], 0
push edx
push 0x40ece0
call dword [sym.imp.USER32.dll_EnumWindows]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push edx
push ebp
call fcn.00408180
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
push ebp
call fcn.00408180
add esp, 0x20
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
push ebp
push ebx
push edi
push eax
push ecx
push edx
mov dword [esi + 0x48], 1
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 8]
push ebp
push ebp
push eax
mov dword [esi + 0x48], ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esi + 0x40], ebp
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_BeginPaint]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0040eb90
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
pop esi
add esp, 0x50
ret 4

Function at 0x4109f0
Capabilities:
Write file on windows

Disassembly:
lea eax, [esp + 4]
push 0
push eax
push 8
push ecx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 4], 8
je 0x410a11
xor eax, eax
ret 4
mov eax, dword [0x419d5c]
add eax, 8
mov dword [0x419d5c], eax
mov eax, 1
ret 4

Function at 0x410c70
Capabilities:
Write file on windows

Disassembly:
lea eax, [esp + 4]
push 0
push eax
add ecx, 0x10
push 0x10
push ecx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 4]
ret 4
Function at 0x410ca0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x20]
mov ebp, ecx
push edi
and ebp, 7
neg ebp
and ebp, 7
test eax, eax
je 0x410dbc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x18], 0
test edi, edi
je 0x410d5e
push 0x400
call fcn.00403647
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push 0
push eax
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410d55
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add edx, ecx
cmp eax, 0x400
mov dword [esp + 0x18], edx
jb 0x410d55
lea edx, [esp + 0x1c]
push 0
push edx
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410d0c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410d82
cmp dword [ebx + 0x14], 1
jne 0x410d82
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x24]
push 1
push ecx
push edx
mov byte [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
je 0x410d96
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push ebp
push str.PADDINGPADDINGXX
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebx + 0x14]
pop edi
mov eax, ebp
pop esi
pop ebp
add eax, ecx
pop ebx
ret 0x10
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x410dcc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov eax, dword [ebx + 0x24]
lea edx, [esp + 0x18]
test eax, eax
push 0
push edx
je 0x410e1b
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
push eax
push esi
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
je 0x410dfd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
lea ecx, [esp + 0x18]
push 0
push ecx
push ebp
push str.PADDINGPADDINGXX
push esi
call edi
mov ecx, dword [ebx + 0x14]
pop edi
mov eax, ebp
pop esi
pop ebp
add eax, ecx
pop ebx
ret 0x10
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add eax, ebp
sub ecx, esi
push eax
mov eax, dword [esp + 0x2c]
add ecx, edx
mov edx, dword [esp + 0x20]
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x18]
add eax, ebp
cmp ecx, eax
je 0x410dae
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x40175c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push str.IMAGE
push dword [ebp + 0xc]
push 0
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 4], eax
push eax
push 0
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4017a5
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.004016c4
jmp 0x4017b1
push 2
call sub.kernel32.dll_SetLastError
mov eax, 0
leave
ret 8
Function at 0x411d9c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [esi + 0xc]
call fcn.00411ce3
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x411dce
mov esi, 0x8007000e
jmp 0x411e66
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x411dd3
sub eax, ecx
push ebx
lea ebx, [eax + 1]
mov eax, dword [ebp + 0x14]
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411de7
sub eax, edi
inc eax
mov dword [ebp + 0x10], eax
add eax, ebx
push eax
mov dword [ebp + 0xc], eax
call fcn.00508280
test eax, eax
pop ecx
mov dword [ebp - 8], eax
jne 0x411e0e
mov esi, 0x8007000e
jmp 0x411e64
mov esi, dword [esi]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edx, ecx
shr ecx, 2
lea edi, [eax + ebx]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
lea esi, [ebp - 4]
push esi
push eax
push dword [ebp + 0xc]
push 0
push 0
push 0x60c400
push ecx
call dword [edx + 0x1c]
mov esi, eax
test esi, esi
jge 0x411e64
push str.Failed_to_create_x_file_data_object_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x411e77
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push dword [ebp - 8]
call fcn.00508050
pop ecx
mov eax, esi
pop esi
leave
ret 0x14
Function at 0x411e87
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411e9d
sub eax, esi
lea esi, [eax + 1]
mov eax, dword [ebx + 8]
lea eax, [eax + esi + 4]
push eax
mov dword [ebp + 0xc], esi
mov dword [ebp - 8], eax
call fcn.00508280
mov edx, eax
test edx, edx
pop ecx
mov dword [ebp - 0xc], edx
jne 0x411ecd
mov esi, 0x8007000e
jmp 0x411f32
push edi
mov ecx, esi
mov esi, dword [ebx]
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
shr ecx, 2
add eax, edx
mov dword [eax], ecx
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
lea edi, [eax + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
lea esi, [ebp - 4]
push esi
push edx
push dword [ebp - 8]
push 0
push 0
push 0x60c410
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
pop edi
jge 0x411f32
push str.Failed_to_create_x_file_data_object_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x411f43
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push dword [ebp - 0xc]
call fcn.00508050
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x411f54
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x411f69
sub eax, ecx
push ebx
lea ebx, [eax + 1]
lea eax, [ebx + 4]
push eax
mov dword [ebp - 8], eax
call fcn.00508280
mov edx, eax
test edx, edx
pop ecx
mov dword [ebp - 0xc], edx
jne 0x411f93
mov esi, 0x8007000e
jmp 0x411fdf
mov esi, dword [esi]
push edi
mov ecx, ebx
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
lea esi, [ebp - 4]
push esi
push edx
push dword [ebp - 8]
mov dword [ebx + edx], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push 0
push 0
push 0x60c3f0
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
pop edi
jge 0x411fdf
push str.Failed_to_create_x_file_data_object_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
test eax, eax
pop ebx
je 0x411ff1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push dword [ebp - 0xc]
call fcn.00508050
pop ecx
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x412001
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
push dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [edi]
call fcn.00411ce3
test eax, eax
jne 0x41202b
mov esi, 0x8007000e
jmp 0x4120c8
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x412030
mov edx, dword [ebp + 0x18]
push ebx
lea ebx, [ebp - 4]
push ebx
push eax
sub ecx, esi
mov esi, dword [edx]
inc ecx
push ecx
xor ebx, ebx
push ebx
push ebx
push 0x60c3e0
push edx
call dword [esi + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x412066
push str.Failed_to_create_x_file_data_object_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4120c7
cmp dword [edi + 4], ebx
mov dword [ebp + 0xc], ebx
jbe 0x4120c7
xor ebx, ebx
mov eax, dword [edi + 8]
add eax, ebx
mov ecx, dword [eax + 4]
dec ecx
je 0x4120a1
dec ecx
je 0x412093
dec ecx
je 0x412085
xor esi, esi
jmp 0x4120b9
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00411f54
jmp 0x4120b3
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00411e87
jmp 0x4120b3
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00411d9c
mov esi, eax
test esi, esi
jl 0x4120c7
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add ebx, 0x10
cmp eax, dword [edi + 4]
jb 0x412070
pop ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x4120d5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
leave
ret 0x14
Function at 0x4120dd
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push edi
push 0x2c
call fcn.00508280
test eax, eax
pop ecx
mov dword [ebp - 0xc], eax
jne 0x412112
push str.Out_of_memory_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, 0x8007000e
jmp 0x4121ee
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x40]
push 4
lea eax, [edx + 0x10]
mov dword [eax], ecx
mov esi, dword [ebx + 0x20]
pop ecx
add eax, ecx
mov dword [eax], esi
mov esi, dword [ebx + 0x24]
add eax, ecx
mov dword [eax], esi
mov esi, dword [ebx + 0x28]
add eax, ecx
mov dword [eax], esi
mov esi, dword [ebx + 0x30]
add eax, ecx
mov dword [eax], esi
add eax, ecx
mov ecx, dword [ebx + 0x34]
lea esi, [ebp - 4]
push esi
push edx
push 0x2c
mov dword [eax], ecx
mov ecx, dword [ebx + 0x38]
xor esi, esi
push esi
push esi
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
push 0x609a6c
push eax
call dword [ecx + 0x1c]
mov edi, eax
cmp edi, esi
jl 0x4121bf
mov ebx, dword [ebx + 0x44]
cmp ebx, esi
je 0x4121cc
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call fcn.00411ce3
cmp eax, esi
jne 0x412194
mov edi, 0x8007000e
jmp 0x4121ec
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x412199
mov edx, dword [ebp - 4]
sub ecx, edi
mov edi, dword [edx]
lea ebx, [ebp - 8]
push ebx
push eax
inc ecx
push ecx
push esi
push esi
push 0x609acc
push edx
call dword [edi + 0x1c]
mov edi, eax
cmp edi, esi
jge 0x4121cc
push str.Failed_to_create_x_file_data_object_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4121ec
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x4121ec
cmp dword [eax], 0
je 0x4121ec
push dword [ebp - 4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.00412001
mov edi, eax
pop esi
pop ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x4121ff
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 8], 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x412210
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push dword [ebp - 0xc]
call fcn.00508050
pop ecx
mov eax, edi
pop edi
leave
ret 0x18
Function at 0x4122d0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
and dword [ebp - 4], 0
push ebx
push esi
push edi
push eax
call dword [ecx + 0x10]
mov esi, eax
lea edi, [esi + esi*2]
shl edi, 2
lea eax, [edi + 4]
push eax
mov dword [ebp + 0xc], eax
call fcn.00508280
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x412308
mov esi, 0x8007000e
jmp 0x41234e
lea eax, [esi + esi*2]
mov esi, dword [ebp + 0x10]
mov dword [ebx], eax
mov ecx, edi
mov eax, ecx
shr ecx, 2
lea edi, [ebx + 4]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 4]
push edx
push ebx
push dword [ebp + 0xc]
mov ecx, eax
mov eax, dword [ebp + 0x14]
push 0
push 0
and ecx, 3
push 0x60c4f0
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x41234e
push str.Failed_to_create_x_file_data_object_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x41235f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push ebx
call fcn.00508050
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x41383a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x1c]
lea eax, [esi*4 + 4]
imul eax, edi
lea ecx, [ebx + ebx*2]
lea eax, [eax + ecx*4 + 8]
push eax
mov dword [ebp - 8], eax
call fcn.00508280
test eax, eax
pop ecx
mov dword [ebp + 0x10], eax
jne 0x41387d
mov esi, 0x8007000e
jmp 0x413944
mov dword [eax], ebx
add eax, 4
xor edx, edx
test ebx, ebx
jbe 0x4138b6
mov ecx, dword [ebp + 0x24]
mov edi, dword [ecx + 0xc0]
mov esi, dword [ecx + 0x94]
imul edi, edx
add edi, dword [ebp + 0xc]
movzx esi, word [esi + 2]
add esi, edi
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add eax, 0xc
inc edx
cmp edx, ebx
movsd dword es:[edi], dword [esi]
jb 0x41388b
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
mov dword [eax], edi
add eax, 4
test edx, edx
je 0x4138ea
test edi, edi
jbe 0x413917
mov dword [eax], esi
add eax, 4
xor ecx, ecx
test esi, esi
jbe 0x4138de
mov ebx, dword [edx + ecx*4]
mov dword [eax], ebx
add eax, 4
inc ecx
cmp ecx, esi
jb 0x4138d1
mov ecx, esi
shl ecx, 2
add edx, ecx
dec edi
jne 0x4138c6
jmp 0x413917
test edi, edi
jbe 0x413917
mov edx, dword [ebp + 0x14]
lea ebx, [esi + esi]
mov dword [ebp + 0x1c], edi
mov dword [eax], esi
add eax, 4
xor ecx, ecx
test esi, esi
jbe 0x413910
movzx edi, word [edx + ecx*2]
mov dword [eax], edi
add eax, 4
inc ecx
cmp ecx, esi
jb 0x413902
add edx, ebx
dec dword [ebp + 0x1c]
jne 0x4138f7
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push dword [ebp + 0x10]
push dword [ebp - 8]
push 0
push 0
push 0x609abc
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x413944
push str.Failed_to_create_x_file_data_object_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x413955
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push dword [ebp + 0x10]
call fcn.00508050
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x24
Function at 0x413967
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [esi*8 + 4]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
call fcn.00508280
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x413997
mov esi, 0x8007000e
jmp 0x413a01
cmp esi, ebx
mov dword [edi], esi
lea ecx, [edi + 4]
mov dword [ebp + 0x10], ebx
jbe 0x4139d8
mov edx, dword [ebp + 0x14]
mov ebx, dword [edx + 0xc0]
imul ebx, dword [ebp + 0x10]
mov eax, dword [edx + 0xa0]
movzx eax, word [eax + 2]
add ebx, dword [ebp + 0xc]
add eax, ebx
mov ebx, dword [eax]
mov dword [ecx], ebx
mov eax, dword [eax + 4]
add ecx, 4
mov dword [ecx], eax
add ecx, 4
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], esi
jb 0x4139a6
xor ebx, ebx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push edi
push dword [ebp - 8]
push ebx
push ebx
push 0x609aac
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x413a01
push str.Failed_to_create_x_file_data_object_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x413a11
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], ebx
push edi
call fcn.00508050
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14

Function at 0x413a21
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [edi + edi*4]
lea eax, [eax*4 + 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
call fcn.00508280
cmp eax, ebx
pop ecx
mov dword [ebp + 0x10], eax
jne 0x413a56
mov esi, 0x8007000e
jmp 0x413acd
test edi, edi
mov dword [eax], edi
lea esi, [eax + 4]
jbe 0x413aa0
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ecx + 0xc0]
imul eax, ebx
add eax, dword [ebp + 0xc]
push eax
call fcn.004133c9
mov ecx, dword [ebp - 0x18]
mov dword [esi], ebx
push 4
pop eax
add esi, eax
mov dword [esi], ecx
mov ecx, dword [ebp - 0x14]
add esi, eax
mov dword [esi], ecx
mov ecx, dword [ebp - 0x10]
add esi, eax
mov dword [esi], ecx
mov ecx, dword [ebp - 0xc]
add esi, eax
mov dword [esi], ecx
add esi, eax
inc ebx
cmp ebx, edi
jb 0x413a5f
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push dword [ebp + 0x10]
push dword [ebp - 8]
push 0
push 0
push 0x609adc
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x413acd
push str.Failed_to_create_x_file_data_object_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x413ade
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push dword [ebp + 0x10]
call fcn.00508050
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14