joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dda0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456c20
push 0x44bffc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x104
call fcn.0044c0d4
mov dword [ebp - 0x168], eax
push 0x104
call fcn.0044c0d4
add esp, 8
mov ebx, eax
mov dword [ebp - 0x164], ebx
mov dword [ebp - 4], 0
mov edi, dword [0x477328]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0x168]
mov edx, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x45a1c4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x15c]
push eax
mov ecx, dword [ebp - 0x168]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x16c], esi
cmp esi, 0xffffffff
jne 0x41de71
mov dword [ebp - 4], eax
jmp 0x41df0c
lea edi, [ebp - 0x130]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x45a630
push ebx
call fcn.00449570
mov dword [ebp - 0x1c], eax
mov byte [eax], 0
push ebx
push 0
push 0x143
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x160], eax
lea ecx, [ebp - 0x15c]
push ecx
mov edx, dword [ebp - 0x16c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41de71
mov dword [ebp - 4], 0xffffffff
jmp 0x41df06
mov esi, dword [ebp - 0x16c]
test ebx, ebx
je 0x41df19
push ebx
call fcn.0044c186
add esp, 4
mov eax, dword [ebp - 0x168]
test eax, eax
je 0x41df2c
push eax
call fcn.0044c186
add esp, 4
cmp esi, 0xffffffff
je 0x41df38
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41e0d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [0x476ccc]
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x413
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push 1
push 3
push 1
push 0x80000000
push 0x476aa0
mov esi, eax
call fcn.0044a650
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41e1f4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esp + 0x18], eax
call fcn.0044c0d4
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x10]
mov ebx, eax
push 0
push ecx
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, word [ebx + 4]
add ax, 2
and eax, 0xffff
shl eax, 0x10
push eax
push 0
push 0x401
push esi
call ebp
push 0
push 1
push 0x404
push esi
call ebp
mov dword [esp + 0x10], 0
mov eax, dword [ebx + 4]
test eax, eax
jbe 0x41e1c6
lea edi, [ebx + 0x175]
push 0
push 0
push 0x405
push esi
call ebp
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov cl, byte [edi + 4]
mov edx, dword [edi]
push 3
push ecx
push edx
call fcn.00432f00
test eax, eax
je 0x41e1b3
push 1
push eax
call fcn.00438350
cmp eax, 2
je 0x41e1e7
mov eax, dword [esp + 0x10]
add edi, 0x25
inc eax
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 4]
cmp eax, ecx
jb 0x41e181
push 0
push 0
push 0x405
push esi
call ebp
mov eax, dword [0x476a84]
push eax
push 0x476aa0
push 0xfa2
call fcn.004409f0
test ebx, ebx
je 0x41e1f4
push ebx
call fcn.0044c186
add esp, 4
push 0
push 0
push 0x405
push esi
call ebp
call fcn.0043a800
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x41e210
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
cmp ebx, 0x20
push ebp
jl 0x41e306
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x41e306
mov eax, dword [0x476960]
test eax, eax
jne 0x41e25a
mov ecx, dword [0x4773fc]
push eax
mov eax, dword [0x477358]
push 0x41e3a0
push eax
push 0x84
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x476960], eax
push esi
push edi
push ebp
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [0x476960]
lea edx, [esp + 0x28]
push edx
push 0x3f9
push eax
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], 0
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [0x476960]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push 1
push 0xb1
push 0x3f9
push ecx
call esi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call edi
mov edx, dword [0x476960]
push 0
push 0x104
push 0xc5
push 0x3f9
push edx
call esi
push eax
call edi
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x476960]
push 0x21
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push 0
push 0
add edx, 0x14
push ecx
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x476960]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x4228f0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x18]
cmp edi, 3
je 0x4229bf
cmp edi, 6
je 0x4229bf
lea eax, [esp + 4]
push esi
push eax
call fcn.004229e0
cmp edi, 1
mov esi, eax
je 0x42291e
xor esi, esi
mov eax, esi
sub eax, 0
je 0x422939
dec eax
je 0x422932
dec eax
jne 0x42293b
mov esi, 3
jmp 0x42293b
mov esi, 6
jmp 0x42293b
mov esi, edi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, eax
push 4
push ecx
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
sub edx, ecx
push edx
push eax
mov eax, dword [0x477358]
push ecx
push 0
push eax
call edi
mov ecx, dword [0x477358]
push esi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x45a958
push 0x1068
call fcn.00440930
test eax, eax
pop esi
je 0x42298e
call fcn.0040cb20
call fcn.00448540
mov edx, dword [0x477358]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [0x477358]
push 0x27
push 0
push 0
push 0
push 0
push 0
push eax
call edi
pop edi
add esp, 0x10
ret 4
mov ecx, dword [0x477358]
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
add esp, 0x10
ret 4

Function at 0x423000
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x130
mov eax, dword [0x4773bc]
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x2c]
push edx
call fcn.00448e70
lea eax, [esp + 0x2c]
push 0x45aa34
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x8000080
push 2
push 0
push 0
lea ecx, [esp + 0x40]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x423125
mov eax, dword [0x477180]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x42306d
mov ebx, dword [eax + 4]
jmp 0x42306f
xor ebx, ebx
lea ebp, [ebx + 1]
shl ebp, 5
push ebp
call fcn.0044c0d4
mov ecx, ebp
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x45aa30
and ecx, 3
mov dword [esp + 0x1c], esi
rep stosb byte es:[edi], al
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x2c]
push 0x20
push ecx
push esi
call fcn.0044ce50
add esp, 0x1c
xor esi, esi
test ebx, ebx
jle 0x4230f9
mov edx, dword [esp + 0x10]
lea edi, [edx + 0x20]
mov eax, dword [0x477180]
mov ecx, dword [eax]
mov edx, dword [ecx + esi*4]
lea ecx, [esp + 0x1c]
mov eax, dword [edx + 8]
push eax
push 0x45aa2c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x28]
push 0x20
push edx
push edi
call fcn.0044ce50
add esp, 0x18
inc esi
add edi, 0x20
cmp esi, ebx
jl 0x4230c3
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0044c186
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
Function at 0x423130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push esi
push edi
mov dword [0x476954], eax
mov eax, dword [0x4773fc]
push 5
push 0xb8
push eax
mov dword [0x476958], ecx
mov dword [0x476950], edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [0x4773fc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0
mov esi, eax
mov edx, dword [esp + 0x10]
mov eax, dword [0x477340]
push 0x4231a0
push edx
push esi
push eax
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x4233c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [0x4773fc]
mov eax, dword [esp + 8]
push esi
push edi
push 5
push 0xae
push ecx
mov dword [0x476828], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x4773fc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [0x477340]
mov esi, eax
mov eax, dword [esp + 0xc]
push 0
push 0x423420
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x426ec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [0x4773fc]
mov eax, dword [esp + 8]
push esi
push edi
push 5
push 0xb1
push ecx
mov dword [0x464aa0], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x4773fc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [0x477340]
mov esi, eax
mov eax, dword [esp + 0xc]
push 0
push 0x426f20
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x4280d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456d28
push 0x44bffc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 0x80
lea eax, [ebp - 0x9c]
push eax
push 0x446
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
lea ecx, [ebp - 0x9c]
push ecx
call fcn.00449ad0
lea edx, [ebp - 0x9c]
push edx
push 0x45f2c4
push 0x1072
call fcn.00440860
push 0
push 0
push 0x147
push 0x40f
push esi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
call edi
push eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
call ebx
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x42817b
push 0x45f258
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x428196
push 0x80
lea ecx, [ebp - 0x9c]
push ecx
push 0x40f
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [ebp - 0x9c]
push edx
push 0x45f2b0
push 0x1072
call fcn.00440860
push 0
push 0
push 0x147
push 0x40c
push esi
call edi
push eax
call ebx
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x4281de
push 0x45f258
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4281f6
lea ecx, [ebp - 0x9c]
push ecx
push eax
push 0x148
push 0x40c
push esi
call edi
push eax
call ebx
lea edx, [ebp - 0x9c]
push edx
push 0x45f2a8
push 0x1072
call fcn.00440860
push 0
push 0
push 0x147
push 0x452
push esi
call edi
push eax
call ebx
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x42823e
push 0x45f258
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x428256
lea ecx, [ebp - 0x9c]
push ecx
push eax
push 0x148
push 0x452
push esi
call edi
push eax
call ebx
lea edx, [ebp - 0x9c]
push edx
push 0x45f2a0
push 0x1072
call fcn.00440860
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x462
push esi
call dword [sym.imp.USER32.dll_GetDlgItemInt]
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x42829c
push 0x45f258
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4282b2
push eax
push 0x45aa30
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x9c]
push eax
push 0x45f298
push 0x1072
call fcn.00440860
jmp 0x4282e5
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42ac20
Capabilities:
Get file version info

Disassembly:
sub esp, 0x110
mov ecx, dword [0x477340]
push ebx
push esi
lea eax, [esp + 0x14]
push 0x104
push eax
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x42ac9f
push esi
call fcn.0044c0d4
add esp, 4
mov ebx, eax
lea ecx, [esp + 0x14]
push ebx
push esi
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x42ac92
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
push 0x45fe98
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x42acac
test ebx, ebx
je 0x42ac9f
push ebx
call fcn.0044c186
add esp, 4
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edi
xor esi, esi
xor edi, edi
test edx, edx
jle 0x42ad25
cmp byte [esi + ecx], 0x20
lea eax, [esi + ecx]
jne 0x42ace5
sub edx, esi
lea ecx, [eax + 1]
dec edx
push edx
push ecx
push eax
call fcn.0044cb10
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add esp, 0xc
dec edx
mov dword [esp + 0x10], edx
dec esi
cmp byte [esi + ecx], 0x2c
jne 0x42acf8
mov byte [esi + ecx], 0x2e
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
inc edi
inc esi
cmp esi, edx
jl 0x42acbd
cmp edi, 2
jle 0x42ad25
xor eax, eax
xor esi, esi
test edx, edx
jle 0x42ad25
cmp byte [eax + ecx], 0x2e
jne 0x42ad11
inc esi
cmp esi, 3
je 0x42ad1d
inc eax
cmp eax, edx
jl 0x42ad0a
jmp 0x42ad25
mov byte [eax + ecx], 0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x120]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebx, ebx
pop edi
je 0x42ad42
push ebx
call fcn.0044c186
add esp, 4
pop esi
mov eax, 1
pop ebx
add esp, 0x110
ret 4
Function at 0x42f490
Capabilities:
Enumerate files on windows

Disassembly:
mov ecx, dword [0x476284]
xor eax, eax
sub esp, 0x34c
cmp ecx, eax
mov dword [0x4764d4], eax
mov dword [0x4764c8], eax
jle 0x42f5b3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [eax + 1]
mov eax, dword [0x477398]
push esi
push eax
lea ecx, [esp + 0x1c]
push 0x4605f4
push ecx
mov dword [esp + 0x20], esi
call edi
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call fcn.00448ed0
test eax, eax
je 0x42f59f
lea eax, [esp + 0x14]
lea ecx, [esp + 0x118]
push eax
push 0x4605e8
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x21c]
lea eax, [esp + 0x118]
push edx
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x42f541
mov ecx, dword [0x4764d4]
inc ecx
mov dword [0x4764d4], ecx
lea ecx, [esp + 0x21c]
push ecx
push esi
call ebp
test eax, eax
jne 0x42f525
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x14]
lea eax, [esp + 0x118]
push edx
push 0x4605dc
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x118]
push ecx
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x42f594
mov edx, dword [0x4764c8]
lea eax, [esp + 0x21c]
inc edx
push eax
push esi
mov dword [0x4764c8], edx
call ebp
test eax, eax
jne 0x42f578
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x10]
mov ecx, dword [0x476284]
mov eax, esi
cmp eax, ecx
jl 0x42f4c6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x431940
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x80
test eax, eax
push esi
mov esi, dword [esp + 0x88]
jne 0x43196b
push 0
push 0x42c
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 4]
push 0x80
push eax
push 0x464964
push 0x46092c
push 0x1073
call fcn.00440750
mov al, byte [esp + 4]
test al, al
je 0x4319a2
lea ecx, [esp + 4]
push ecx
push 0x458
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
pop esi
add esp, 0x80
ret 8
Function at 0x432550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456d70
push 0x44bffc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov eax, 0x5397829d
mul dword [esi + 8]
shr edx, 5
mov dword [0x4751a4], edx
lea eax, [edx + 0x64]
mov dword [0x475190], eax
lea ecx, [eax + eax*2]
shl ecx, 4
add ecx, eax
shl ecx, 1
push ecx
call fcn.0044c0d4
add esp, 4
mov edi, eax
mov dword [0x47518c], edi
test edi, edi
jne 0x4325cd
push eax
push eax
push 1
push 0xefffffff
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [0x475190]
lea ecx, [eax + eax*2]
shl ecx, 4
add ecx, eax
shl ecx, 1
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push 0
push 0
mov eax, dword [esi + 4]
push eax
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [esi + 8]
push edx
mov eax, dword [0x47518c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432621
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [esi + 8]
je 0x432632
push 0
push 0
push 1
push 0xefffffff
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4326b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456d80
push 0x44bffc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
add eax, 0x1000
mov dword [0x475188], eax
mov ecx, dword [esi + 0x10]
mov dword [0x475198], ecx
push eax
call fcn.0044c0d4
add esp, 4
mov dword [0x475178], eax
test eax, eax
jne 0x432717
push eax
push eax
push 1
push 0xefffffff
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0
push 0
mov edx, dword [esi + 0xc]
push edx
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [esi + 0x10]
push ecx
mov edx, dword [0x475178]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43274d
mov eax, dword [ebp - 0x1c]
cmp eax, dword [esi + 0x10]
je 0x43275e
push 0
push 0
push 1
push 0xefffffff
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4327d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456d90
push 0x44bffc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0x20000
push 0
call fcn.0044d47f
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x18
mov ecx, dword [0x4751a4]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
shl eax, 1
mov dword [ebp - 0x28], eax
add eax, 0x18
mov dword [ebp - 0x24], eax
mov eax, dword [0x475198]
cmp eax, 1
jbe 0x432847
mov dword [ebp - 0x20], eax
jmp 0x432856
mov dword [ebp - 0x20], 1
mov eax, dword [0x475178]
mov byte [eax], 0
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
mov ecx, dword [0x477410]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x38], esi
cmp esi, 0xffffffff
jne 0x432891
push 0
push 0
push 1
push 0xefffffff
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
call edi
jmp 0x432897
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
push 0
lea edx, [ebp - 0x34]
push edx
push 0x18
lea eax, [ebp - 0x30]
push eax
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
call ebx
test eax, eax
je 0x4328b6
cmp dword [ebp - 0x34], 0x18
je 0x4328c3
push 0
push 0
push 1
push 0xefffffff
call edi
push 0
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [0x47518c]
push ecx
push esi
call ebx
test eax, eax
je 0x4328f2
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x28]
je 0x4328ff
push 0
push 0
push 1
push 0xefffffff
call edi
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [0x475178]
push eax
push esi
call ebx
test eax, eax
je 0x43292d
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x20]
je 0x43293a
push 0
push 0
push 1
push 0xefffffff
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret