joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a220
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ed47
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x478d40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x10], 0
mov dword [edi], 0x466f2c
mov dword [edi + 4], 0x466f40
mov dword [edi + 8], 0x466f54
mov dword [edi + 0xc], 0x466f64
mov byte [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
lea ecx, [edi + 0x44]
mov byte [ebp - 4], 2
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
call fcn.004139b0
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 3
call fcn.004139b0
lea esi, [edi + 0x60]
mov byte [ebp - 4], 4
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00416ec0
lea ecx, [esi + 0x28]
call fcn.004139b0
lea ecx, [edi + 0x98]
mov byte [ebp - 4], 5
call fcn.00428740
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42a360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ed70
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x478d40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0xcc]
call fcn.0043753c
push dword [esi + 0xc0]
call fcn.0043753c
push dword [esi + 0x9c]
call fcn.0043753c
push dword [esi + 0x90]
call fcn.0043753c
push dword [esi + 0x30]
call fcn.0043753c
push dword [esi + 0x24]
call fcn.0043753c
push dword [esi + 0x18]
call fcn.0043753c
add esp, 0x1c
mov ecx, dword [esi + 0xc]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x42a3e0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x42a3f4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x42a408
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x42a41b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42a4d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44edfc
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x478d40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0xe0
call fcn.004374f5
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x42a661
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov dword [esi], ecx
test ecx, ecx
je 0x42a52a
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 4]
mov byte [ebp - 4], 1
mov dword [esi + 4], ecx
test ecx, ecx
je 0x42a53e
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 8]
mov byte [ebp - 4], 2
mov dword [esi + 8], ecx
test ecx, ecx
je 0x42a552
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 0xc]
mov byte [ebp - 4], 3
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x42a566
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
movzx eax, byte [edi + 0x10]
lea ecx, [esi + 0x18]
mov byte [esi + 0x10], al
movzx eax, byte [edi + 0x11]
mov byte [esi + 0x11], al
movzx eax, byte [edi + 0x12]
mov byte [esi + 0x12], al
movzx eax, byte [edi + 0x13]
mov byte [esi + 0x13], al
movzx eax, byte [edi + 0x14]
mov byte [esi + 0x14], al
movzx eax, byte [edi + 0x15]
mov byte [esi + 0x15], al
movzx eax, byte [edi + 0x16]
mov byte [esi + 0x16], al
movzx eax, byte [edi + 0x17]
mov byte [esi + 0x17], al
lea eax, [edi + 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.004137d0
lea eax, [edi + 0x24]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x24]
call fcn.004137d0
lea eax, [edi + 0x30]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x30]
call fcn.004137d0
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
movq xmm0, qword [edi + 0x44]
movq qword [esi + 0x44], xmm0
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ecx
mov eax, dword [edi + 0x58]
mov ecx, dword [edi + 0x5c]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ecx
movzx eax, byte [edi + 0x60]
mov byte [esi + 0x60], al
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
mov eax, dword [edi + 0x70]
mov ecx, dword [edi + 0x74]
mov dword [esi + 0x70], eax
lea eax, [edi + 0x78]
mov dword [esi + 0x74], ecx
lea ecx, [esi + 0x78]
push eax
mov byte [ebp - 4], 7
call fcn.0042a180
lea eax, [edi + 0xa8]
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0xa8]
call fcn.0042a180
mov eax, dword [edi + 0xd8]
mov ecx, dword [edi + 0xdc]
mov dword [esi + 0xd8], eax
mov dword [esi + 0xdc], ecx
jmp 0x42a663
xor esi, esi
mov eax, dword [ebx + 4]
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov ecx, dword [ebx]
mov dword [ecx + eax*4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4336c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x47bbb8], 0
push esi
mov esi, dword [ebp + 8]
jne 0x4337cd
mov eax, 1
lock xadd dword [0x47bbbc], eax
inc eax
cmp eax, 1
jne 0x4337bc
test esi, esi
jne 0x4337b1
push ebx
push edi
push str.advapi32.dll
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x433791
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x433791
push str.CryptGenRandom
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x433791
push str.CryptReleaseContext
push esi
call edi
mov edi, eax
test edi, edi
je 0x433791
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call ebx
test eax, eax
je 0x433791
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
call dword [ebp - 8]
push 0
push dword [ebp + 8]
mov esi, eax
call edi
test esi, esi
je 0x433791
mov eax, dword [ebp - 4]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [ebp - 2]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 1]
shl esi, 8
or esi, eax
jmp 0x4337a5
push 0
call fcn.0043eac2
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
test esi, esi
mov eax, 1
pop edi
cmove esi, eax
pop ebx
mov dword [0x47bbb8], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
call esi
cmp dword [0x47bbb8], 0
je 0x4337c2
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4337e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add ecx, 0xdeadbeef
push ebx
mov ebx, dword [ebp + 8]
add ecx, edx
push esi
mov esi, ecx
mov dword [ebp + 0x10], esi
push edi
mov edi, ecx
cmp edx, 0xc
jbe switch.0x004338ec
add edx, 0xfffffff3
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 3
inc eax
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx esi, byte [ebx + 7]
movzx eax, byte [ebx + 6]
movzx edx, byte [ebx + 0xb]
shl esi, 8
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 5]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 4]
add edi, eax
shl esi, 8
movzx eax, byte [ebx + 0xa]
add edi, esi
movzx esi, byte [ebx + 8]
add edx, eax
movzx eax, byte [ebx + 9]
add esi, ecx
shl edx, 8
add edx, eax
shl edx, 8
add esi, edx
mov edx, dword [ebp + 8]
mov ebx, esi
rol ebx, 4
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx]
shl ecx, 8
add ecx, eax
sub ecx, esi
add esi, edi
add ecx, dword [ebp + 0x10]
xor ebx, ecx
sub edi, ebx
mov eax, ebx
add ebx, esi
rol eax, 6
xor eax, edi
sub esi, eax
mov edx, eax
rol edx, 8
add eax, ebx
xor edx, esi
sub ebx, edx
mov esi, edx
rol esi, 0x10
add edx, eax
xor esi, ebx
mov ebx, dword [ebp + 8]
mov edi, esi
sub eax, esi
ror edi, 0xd
add esi, edx
xor edi, eax
mov dword [ebp + 0x10], esi
sub edx, edi
mov ecx, edi
rol ecx, 4
add ebx, 0xc
xor ecx, edx
mov dword [ebp + 8], ebx
mov edx, dword [ebp + 0xc]
add edi, esi
sub edx, 0xc
sub dword [ebp - 4], 1
mov dword [ebp + 0xc], edx
jne 0x433820
cmp edx, 0xc
ja 0x433958
jmp dword [edx*4 + 0x4339a8]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add ecx, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add ecx, eax
movzx eax, byte [ebx + 8]
add ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 4]
add edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add esi, eax
movzx eax, byte [ebx]
add esi, eax
mov dword [ebp + 0x10], esi
xor ecx, edi
mov eax, edi
rol eax, 0xe
sub ecx, eax
mov eax, ecx
mov esi, ecx
xor esi, dword [ebp + 0x10]
rol eax, 0xb
sub esi, eax
xor edi, esi
mov eax, esi
ror eax, 7
sub edi, eax
mov eax, edi
xor ecx, edi
rol eax, 0x10
sub ecx, eax
mov eax, ecx
mov edx, ecx
rol eax, 4
xor edx, esi
sub edx, eax
mov eax, edx
xor edi, edx
rol eax, 0xe
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 8
sub ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438315
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x438354
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x438354
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x438354
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x438354
cmp dword [ecx + 0x74], 0xe
jbe 0x438354
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x444482
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46b2e4
push 0x46b2dc
push str.FlsAlloc
push 0x1e
call fcn.00444360
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4444b6
push dword [ebp + 8]
mov ecx, esi
call dword [0x46629c]
call esi
jmp 0x4444bc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x444500
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46b2f4
push 0x46b2ec
push str.FlsGetValue
push 0x20
call fcn.00444360
mov esi, eax
add esp, 0x10
test esi, esi
je 0x444537
push dword [ebp + 8]
mov ecx, esi
call dword [0x46629c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x448838
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4488d5
push ebx
push esi
call fcn.00448801
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00444133
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x448882
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4488d4
push edi
push eax
call fcn.00443d55
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4488a2
call fcn.00443d1b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4488d3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00444133
add esp, 0x20
test eax, eax
jne 0x4488c1
push edi
call fcn.00443d1b
jmp 0x4488c9
push ebx
call fcn.00443d1b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x44d400
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44d42d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44d42d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x463fa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [ebp - 0x80], 0x420041
xor edx, edx
mov dword [ebp - 0x7c], 0x440043
mov dword [ebp - 0x78], 0x460045
mov dword [ebp - 0x74], 0x480047
mov dword [ebp - 0x70], 0x4a0049
mov dword [ebp - 0x6c], 0x4c004b
mov dword [ebp - 0x68], 0x4e004d
mov dword [ebp - 0x64], 0x50004f
mov dword [ebp - 0x60], 0x520051
mov dword [ebp - 0x5c], 0x540053
mov dword [ebp - 0x58], 0x560055
mov dword [ebp - 0x54], 0x580057
mov dword [ebp - 0x50], 0x5a0059
mov dword [ebp - 0x4c], 0x620061
mov dword [ebp - 0x48], 0x640063
mov dword [ebp - 0x44], 0x660065
mov dword [ebp - 0x40], 0x680067
mov dword [ebp - 0x3c], 0x6a0069
mov dword [ebp - 0x38], 0x6c006b
mov dword [ebp - 0x34], 0x6e006d
mov dword [ebp - 0x30], 0x70006f
mov dword [ebp - 0x2c], 0x720071
mov dword [ebp - 0x28], 0x740073
mov dword [ebp - 0x24], 0x760075
mov dword [ebp - 0x20], 0x780077
mov dword [ebp - 0x1c], 0x7a0079
mov dword [ebp - 0x18], 0x310030
mov dword [ebp - 0x14], 0x330032
mov dword [ebp - 0x10], 0x350034
mov dword [ebp - 0xc], 0x370036
mov dword [ebp - 8], 0x390038
mov dword [ebp - 4], 0x2f002b
test esi, esi
jle 0x4640c2
nop dword [eax]
movzx ecx, word [edi + edx*2]
xor eax, eax
cmp word [ebp + eax*2 - 0x80], cx
je 0x4640bd
inc eax
cmp eax, 0x40
jb 0x4640a6
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
inc edx
cmp edx, esi
jl 0x4640a0
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x464450
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x478d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x208
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00438b90
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x464534
push ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4644eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4644fd
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add ecx, ebx
mov dword [esi], ecx
adc eax, 0
mov dword [esi + 4], eax
push dword [esi]
mov dword [ebp - 0x218], 0
call fcn.00437533
mov ecx, dword [ebp - 0x214]
add esp, 4
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x218]
push ecx
push dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004372f8
mov esp, ebp
pop ebp
ret 8
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401c40
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
sub esp, 0x2c
mov dword [esp], eax
mov dword [esp + 0x18], edx
call fcn.0041f340
mov ebx, eax
or edx, ebx
jne 0x401c6d
mov dword [0x4e40dc], 1
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 2]
mov dword [esp], eax
call fcn.004a91f0
mov dword [esp + 4], 0x4b56d1
mov dword [esp], ebp
mov esi, eax
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
je 0x401e6f
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fread
test eax, eax
je 0x401e5f
mov dword [esp], edi
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x401e5f
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov byte [esi + ebx], 0xa
mov byte [esi + ebx + 1], 0
mov edx, 1
movzx eax, byte [esi]
test al, al
je 0x401c65
mov dword [esp + 0x1c], ebp
mov ebp, edx
mov esi, esi
lea edi, [edi]
mov ebx, esi
jmp 0x401d09
cmp al, 0xd
je 0x401d91
cmp al, 0x23
jne 0x401d03
mov byte [ebx], 0
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0xa
je 0x401da4
jg 0x401cf4
test al, al
jne 0x401d03
movzx eax, byte [esi]
cmp al, 9
je 0x401d22
cmp al, 0x20
jne 0x401d30
add esi, 1
movzx eax, byte [esi]
cmp al, 0x20
je 0x401d22
cmp al, 9
je 0x401d22
cmp al, 9
je 0x401e58
cmp al, 0xd
je 0x401e50
cmp al, 0xa
je 0x401e50
test al, al
je 0x401e50
mov edi, esi
add edi, 1
movzx eax, byte [edi]
cmp al, 0x20
je 0x401dc0
cmp al, 9
je 0x401dc0
cmp al, 0xa
je 0x401d6c
cmp al, 0xd
je 0x401d6c
test al, al
jne 0x401d52
cmp esi, edi
mov byte [edi], 0
jb 0x401e20
movzx eax, byte [ebx + 1]
add ebp, 1
lea esi, [ebx + 1]
test al, al
jne 0x401cf0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
cmp byte [ebx + 1], 0xa
mov byte [ebx], 0
sete al
add ebx, eax
jmp 0x401d17
xor eax, eax
cmp byte [ebx + 1], 0xd
mov byte [ebx], 0
sete al
add ebx, eax
jmp 0x401d17
cmp al, 0xa
je 0x401d6c
cmp al, 0xd
je 0x401d6c
test al, al
je 0x401d6c
movzx ecx, byte [edi + 1]
lea eax, [edi + 1]
cmp cl, 9
je 0x401de0
cmp cl, 0x20
jne 0x401df0
lea esi, [esi]
add eax, 1
movzx ecx, byte [eax]
cmp cl, 0x20
je 0x401de0
cmp cl, 9
je 0x401de0
cmp cl, 0xd
jbe 0x401e40
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], ebp
mov dword [esp], str._s:_d:_Ignoring_rubbish_found_on_this_line
mov dword [esp + 4], eax
call fcn.0041ec10
cmp esi, edi
mov byte [edi], 0
jae 0x401d77
nop
lea esi, [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004a7890
mov dword [eax], esi
jmp 0x401d77
mov eax, 0x2401
bt eax, ecx
jb 0x401d6c
jmp 0x401df5
mov byte [esi], 0
jmp 0x401d77
mov edi, esi
jmp 0x401dcc
mov dword [esp + 4], ebp
mov dword [esp], str._s:_fread_failed
call fcn.0041ebe0
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp], str.cannot_open__s:__s
call fcn.0041ebe0
lea esi, [esi]
lea edi, [edi]
Function at 0x401ea0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov dword [esp + 4], 0x4b5727
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
test eax, eax
je 0x401f72
mov dword [esp], 0x1000
mov esi, eax
mov edi, 0x1000
call fcn.004a91f0
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [ecx + 0x10], eax
jmp 0x401f19
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov edx, edi
add eax, ebx
mov dword [esp + 0xc], esi
sub edx, ebx
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_fread
mov dword [esp], esi
mov ebp, eax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x401f5b
add ebx, ebp
mov dword [esp], esi
call sub.msvcrt.dll_feof
test eax, eax
jne 0x401f44
cmp ebx, edi
jne 0x401ee4
mov ebp, dword [esp + 0x1c]
lea edi, [ebx + ebx]
mov dword [esp + 4], edi
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.004a9270
mov dword [ebp + 0x10], eax
jmp 0x401eeb
mov eax, dword [esp + 0x1c]
mov dword [eax + 0xc], ebx
mov dword [esp], esi
call sub.msvcrt.dll_fclose
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov dword [esp], str._s:_fread_failed
mov dword [esp + 4], eax
call fcn.0041ebe0
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov dword [esp], str.cannot_open:__s:__s
mov dword [esp + 4], eax
call fcn.0041ebe0
lea esi, [esi]
Function at 0x406460
Capabilities:
Delete file
Move file

Disassembly:
push edi
push esi
push ebx
sub esp, 0x40
mov ebx, dword [esp + 0x54]
lea eax, [esp + 0x10]
mov edi, dword [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__stati64]
test eax, eax
je 0x4064d0
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_rename
test eax, eax
mov esi, eax
je 0x4064c1
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], str.unable_to_rename__s__reason:__s
call fcn.0041ec10
mov dword [esp], edi
call sub.msvcrt.dll__unlink
add esp, 0x40
mov eax, esi
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
call sub.msvcrt.dll_remove
jmp 0x406483

Function at 0x4065a0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x21
mov dword [esp + 4], 1
mov dword [esp], str.Last_stabs_entries_before_error:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1e
mov dword [esp + 4], 1
mov dword [esp], str.n_type_n_desc_n_value__string_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov ebx, dword [0x4e4100]
jmp 0x40669f
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.__6s
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [edi + 4]
mov dword [esp + 4], str.___6d
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [edi + 8]
mov dword [esp + 4], 0x4b7977
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esi + 0x4e4120]
test eax, eax
jne 0x406700
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
add ebx, 1
mov eax, ebx
sar eax, 0x1f
shr eax, 0x1c
add ebx, eax
and ebx, 0xf
sub ebx, eax
cmp ebx, dword [0x4e4100]
je 0x406745
mov esi, ebx
shl esi, 4
lea edi, [esi + 0x4e4120]
mov edx, dword [edi + 0xc]
test edx, edx
je 0x406681
mov eax, dword [esi + 0x4e4120]
mov dword [esp], eax
call fcn.0042b530
test eax, eax
jne 0x406601
mov eax, dword [esi + 0x4e4120]
test eax, eax
jne 0x406724
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], str.HdrSym
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x40661d
mov eax, dword [edi + 0xc]
mov dword [esp + 4], 0x4b797d
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x406669
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.__6d
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x40661d
add esp, 0x10
pop ebx
pop esi
pop edi
ret