joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4140d0
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push 0xea810001
out 0xc0, al
add byte [eax], al
Function at 0x4148a0
Capabilities:
Contain obfuscated stackstrings
Get number of processors

Disassembly:
add esp, 4
add ebx, 0x18084
pop ebx
mov ecx, dword [ebp - 0x514]
mov dword [ebp - 0x2fc], ecx
jmp 0x414920
Function at 0x439630
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x56c1f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebp
push esi
mov eax, dword [0x5a53f4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
lea ecx, [edi + 4]
push edx
mov dword [edi], eax
call fcn.00403750
mov eax, dword [esp + 0x3c]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.00403750
mov edx, dword [esp + 0x40]
lea ecx, [edi + 0xc]
push edx
call fcn.00403750
mov eax, dword [esp + 0x44]
lea ecx, [edi + 0x10]
push eax
call fcn.00403750
mov edx, dword [esp + 0x48]
lea ecx, [edi + 0x14]
push edx
call fcn.00403750
mov eax, dword [esp + 0x4c]
lea ecx, [edi + 0x18]
push eax
call fcn.00403750
mov edx, dword [esp + 0x50]
lea ecx, [edi + 0x1c]
push edx
call fcn.00403750
mov eax, dword [edi]
mov ecx, dword [esi]
push eax
lea esi, [esp + 0x10]
call fcn.00438f90
add esp, 4
xor edx, edx
mov dword [esp + 0x30], edx
cmp dword [eax + 0x18], 8
jb 0x4396d6
mov eax, dword [eax + 4]
jmp 0x4396d9
add eax, 4
lea ecx, [edi + 0x20]
cmp eax, edx
je 0x4396f4
mov edx, eax
lea ebp, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x4396e5
sub edx, ebp
sar edx, 1
push edx
push eax
call fcn.00403930
cmp dword [esp + 0x24], 8
jb 0x43972a
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005303ae
mov dl, byte [esp + 0x58]
add esp, 4
mov byte [edi + 0x24], dl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x28
ret 0x20
mov al, byte [esp + 0x54]
mov byte [edi + 0x24], al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x28
ret 0x20

Function at 0x439b70
Capabilities:
Get file version info

Disassembly:
sub esp, 0x94
mov eax, dword [0x5a53f4]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
lea eax, [esp + 0xc]
push eax
push edi
mov ebx, ecx
mov byte [esp + 0x13], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x439bb7
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.005308cb
add esp, 0x94
ret
push ebp
push esi
call fcn.005351d9
add esp, 4
mov ebp, eax
push ebp
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x439c44
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x439c44
test ebx, ebx
je 0x439c44
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04xFileDescription
lea eax, [esp + 0x28]
push 0x80
push eax
call fcn.004082f0
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x439c44
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xa4]
push ecx
push edx
push ebx
call fcn.00407af0
mov bl, 1
test eax, eax
jge 0x439c48
mov bl, byte [esp + 0xf]
push ebp
call fcn.00534c33
mov ecx, dword [esp + 0xa0]
add esp, 4
pop ebp
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.005308cb
add esp, 0x94
ret
Function at 0x867b90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x427000]
push edi
or ebp, 0xffffffff
jmp 0x867bb2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x867bb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x867ba8
mov eax, 1
add ebx, ebx
jne 0x867bcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x867bdc
jne 0x867bfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x867bfb
dec eax
add ebx, ebx
jne 0x867be8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x867bc0
add ebx, ebx
jne 0x867bf7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x867c4d
xor ecx, ecx
sub eax, 3
jb 0x867c13
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x867c82
sar eax, 1
mov ebp, eax
jmp 0x867c1e
add ebx, ebx
jne 0x867c1e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x867bec
inc ecx
add ebx, ebx
jne 0x867c2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x867bec
add ebx, ebx
jne 0x867c39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x867c2e
jne 0x867c4a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x867c2e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x867c6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x867c5e
jmp 0x867bae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x867c6c
add edi, ecx
jmp 0x867bae
pop esi
mov edi, esi
mov ecx, 0xc46
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x867c8a
cmp byte [edi], 6
jne 0x867c8a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x867c8f
lea edi, [esi + 0x465000]
mov eax, dword [edi]
or eax, eax
je 0x867cfe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x46a040]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x46a0a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x867cbc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x46a0a8]
or eax, eax
je 0x867cf8
mov dword [ebx], eax
add ebx, 4
jmp 0x867cd9
call dword [esi + 0x46a0a4]
mov ebp, dword [esi + 0x46a0ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x867d32
sub esp, 0xffffff80
jmp 0x40adb0
Function at 0x5322e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd3000]
push edi
jmp 0x5322fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x532301
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5322f0
mov eax, 1
add ebx, ebx
jne 0x532313
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x532324
jne 0x532343
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x532343
dec eax
add ebx, ebx
jne 0x532330
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x532308
add ebx, ebx
jne 0x53233f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x532395
xor ecx, ecx
sub eax, 3
jb 0x53235b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5323ca
sar eax, 1
mov ebp, eax
jmp 0x532366
add ebx, ebx
jne 0x532366
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x532334
inc ecx
add ebx, ebx
jne 0x532374
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x532334
add ebx, ebx
jne 0x532381
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x532376
jne 0x532392
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x532376
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5323b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5323a6
jmp 0x5322f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5323b4
add edi, ecx
jmp 0x5322f6
pop esi
mov edi, esi
mov ecx, 0x45f6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5323d2
cmp byte [edi], 0x22
jne 0x5323d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5323d7
lea edi, [esi + 0x12f000]
mov eax, dword [edi]
or eax, eax
je 0x53244f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x136fc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1370e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x532404
mov ecx, edi
jns 0x532433
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1370f0]
or eax, eax
je 0x532449
mov dword [ebx], eax
add ebx, 4
jmp 0x532421
call dword [esi + 0x1370ec]
mov ebp, dword [esi + 0x1370f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x532483
sub esp, 0xffffff80
jmp 0x49add5
Function at 0x409dad
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x409dc5
push dword [esp + 4]
push 0x409d46
call dword [sym.imp.USER32.DLL_EnumWindows]
jmp 0x409e02
push esi
mov esi, dword [0x416ccc]
test esi, esi
je 0x409e01
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x409df9
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
push edi
push 0x416ccc
call fcn.00411df7
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x409dd2
pop edi
pop ebx
pop esi
ret 4
Function at 0x40b6ea
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x4172dc]
call fcn.004117d5
mov edi, eax
test edi, edi
je 0x40b74c
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40b713
push dword [esp + 0xc]
push edi
call eax
jmp 0x40b74c
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00412c00
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.00412cf0
pop esi
pop ebx
pop edi
ret 8
Function at 0x40f790
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
test eax, eax
mov edi, dword [sym.imp.USER32.DLL_GetPropA]
mov dword [ebp - 4], eax
je 0x40f81b
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 9
call esi
test al, al
jns 0x40f80d
push 0x11
call esi
test al, al
js 0x40f80d
push 0x10
call esi
test al, al
js 0x40f80d
push 0x12
call esi
test al, al
js 0x40f80d
push 5
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [ebp - 0xc]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40f80d
push eax
push eax
push 0x44e
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_SendMessageA]
test ax, 0x800
je 0x40f83b
push str.PB_Hotkey
push dword [ebp - 4]
call edi
test eax, eax
jne 0x40f83b
push str.PB_WindowID
push dword [ebp + 8]
call edi
test eax, eax
je 0x40f83b
dec eax
push eax
push dword [0x4172e4]
call fcn.004117d5
mov eax, dword [eax + 8]
jmp 0x40f83d
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x41007a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
cmp eax, edi
mov dword [0x417234], eax
je 0x4100ad
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x417238], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x417230], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4100eb
cmp dword [ebp - 0xc], 1
je 0x4100fc
cmp dword [ebp - 0xc], 2
jne 0x4100eb
cmp dword [ebp - 0x18], 5
jb 0x4100fc
jne 0x4100eb
cmp dword [ebp - 0x14], edi
jne 0x4100eb
mov dword [0x417230], edi
cmp dword [0x417230], edi
je 0x410102
call fcn.0040ffc1
test eax, eax
jne 0x410102
mov dword [0x417230], edi
pop edi
add ebp, 0x78
leave
ret
Function at 0x410ceb
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp dword [0x41723c], ebx
jne 0x410d19
push fcn.00410cb8
push 0x10
push 0x148
call fcn.00411875
mov dword [0x41723c], eax
mov esi, dword [ebp + 0xc]
cmp esi, ebx
jne 0x410d25
mov esi, 0x41400f
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call sub.MSVCRT.dll_strncpy
push esi
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, ebx
je 0x410d61
cmp byte [eax + esi - 1], 0x5c
je 0x410d61
lea eax, [ebp - 0x108]
push 0x41428c
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x410d6c
cmp byte [eax], bl
jne 0x410d71
mov eax, 0x414288
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push dword [ebp + 8]
push dword [0x41723c]
call fcn.00411771
mov esi, eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x410dad
mov dword [esi + 4], ebx
jmp 0x410dbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x410dc3
mov dword [esi + 4], 1
mov edi, esi
jmp 0x410dd7
cmp dword [ebp + 8], 0xffffffff
jne 0x410dd5
push esi
push dword [0x41723c]
call fcn.0041183f
mov dword [esi], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x410e25
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
test eax, eax
push edi
mov edi, esi
je 0x410f36
cmp byte [eax], 0
je 0x410f36
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, 2
lea ecx, [ebp + eax - 0x109]
je 0x410e7f
cmp eax, 3
jne 0x410ebc
cmp byte [ebp - 0x107], 0x3a
jne 0x410ebc
cmp eax, 2
jne 0x410ea0
lea eax, [ebp - 0x108]
push 0x41428c
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x410f36
jmp 0x410f30
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x410eb8
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x410f08
test byte [ebp - 0x248], 0x10
je 0x410eeb
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x410eff
mov ecx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x22c]
xor edi, edi
xor edx, edx
or edi, ecx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x410f36
cmp byte [ebp - 0x108], 0x5c
jne 0x410f36
cmp byte [ebp - 0x107], 0x5c
jne 0x410f36
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410f36
test al, 0x10
je 0x410f36
push 0xfffffffffffffffe
or esi, 0xffffffff
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4
Function at 0x410fa0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x410fd5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x4111f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
test esi, esi
mov dword [esp + 4], eax
je 0x411239
cmp byte [esi], al
je 0x411239
mov eax, dword [esp + 0xc]
mov ecx, dword [0x417384]
push eax
push ecx
call fcn.004117d5
test eax, eax
je 0x411267
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x411240
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x411225
sub ecx, edi
push ecx
push esi
push eax
call fcn.00411550
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x411240
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8

Function at 0x411270
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
push eax
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.00412c00
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x417384]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.004117d5
mov ebx, eax
test ebx, ebx
je 0x41138e
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x4112ce
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00411650
mov dword [esp + 0x14], eax
jmp 0x4112e5
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x4112f7
mov byte [ebp], al
mov al, byte [esp + 0x13]
add ebp, 1
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x411321
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.00412c00
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x41138d
cmp dword [esp + 0x14], 0
je 0x411338
cmp al, 0xd
je 0x411338
cmp al, 0xa
jne 0x4112b0
sub ebp, 1
cmp al, 0xd
jne 0x41138d
cmp dword [ebx + 4], 0
je 0x411354
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00411650
jmp 0x41136b
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x41138d
cmp dword [ebx + 4], 0
je 0x41137e
add dword [ebx + 0xc], 1
jmp 0x41138d
mov ecx, dword [ebx]
push 1
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
sub edi, ebp
add edi, dword [esp + 0x14]
mov byte [ebp], 0
push edi
call fcn.00412cf0
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x411410
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x417384]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.004117d5
test eax, eax
je 0x411462
cmp dword [eax + 4], 0
je 0x411448
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call fcn.00411650
pop ecx
ret 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push 0
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 0xc

Function at 0x411470
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x417384]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.004117d5
mov esi, eax
test esi, esi
je 0x411542
mov ecx, dword [esp + 0x14]
test ecx, ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x4114fa
cmp byte [ecx], 0
je 0x4114fa
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x4114e0
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4114c0
sub eax, edi
push eax
push ecx
push esi
call fcn.00411550
mov dword [esp + 0xc], eax
jmp 0x4114f9
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4114e0
push 0
lea edx, [esp + 0x10]
push edx
sub eax, edi
push eax
mov eax, dword [esi]
push ecx
push eax
call ebp
pop edi
cmp dword [esi + 4], 0
je 0x41151d
push 2
push 0x414098
push esi
call fcn.00411550
mov ecx, eax
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x414098
push edx
call ebp
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8
Function at 0x411550
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x411585
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x4115fe
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x4115eb
sub ecx, 1
je 0x4115d6
sub ecx, 2
je 0x4115c3
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.00410fa0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x41162b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x411650
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x411671
push esi
call fcn.00410fa0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x4116ea
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
sub ecx, 1
je 0x4116d7
sub ecx, 1
je 0x4116c2
sub ecx, 2
je 0x4116af
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
cmp edi, eax
push 0
jl 0x411733
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp edi, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
jle 0x411756
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc