joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ca0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push esi
mov dword [ebp - 0xc8], 0x94
lea eax, [ebp - 0xc8]
push eax
call dword [0x422028]
mov dword [ebp - 0x28], 1
push str.Checking_free_disk_space
call fcn.00403d90
add esp, 4
cmp dword [ebp - 0xc4], 3
jbe 0x401d17
cmp dword [ebp - 0xb8], 1
jne 0x401d07
mov ecx, dword [ebp - 0xbc]
and ecx, 0xffff
movzx edx, cx
cmp edx, 0x3e8
jle 0x401d05
mov dword [ebp - 0x28], 0
jmp 0x401d17
cmp dword [ebp - 0xb8], 2
jne 0x401d17
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0
je 0x401d65
push str.Old_version_of_Windows_detected__win95a_:_GetDiskFreeSpace__
call fcn.00403d90
add esp, 4
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
call dword [0x422024]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mul ecx
mov ecx, dword [ebp - 0x20]
xor esi, esi
push esi
push ecx
push edx
push eax
call fcn.00412c00
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x401e10
push 0x4229d0
call dword [0x422020]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
jne 0x401d86
xor eax, eax
jmp 0x401e3f
push str.GetDiskFreeSpaceExA
mov edx, dword [ebp - 0xd0]
push edx
call dword [0x42201c]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x401dec
push str.New_version_of_Windows_detected__but_cant_load_latest_functions:_forced_to_use_old_GetDiskFreeSpace__
call fcn.00403d90
add esp, 4
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
call dword [0x422024]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mul ecx
mov ecx, dword [ebp - 0x20]
xor esi, esi
push esi
push ecx
push edx
push eax
call fcn.00412c00
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x401e10
push str.New_version_of_Windows_detected:_GetDiskFreeSpaceEx__
call fcn.00403d90
add esp, 4
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
call dword [ebp - 0xcc]
add esp, 0x10
mov edx, dword [ebp + 8]
push 0
push 0x400
mov eax, dword [edx + 4]
push eax
mov ecx, dword [edx]
push ecx
call fcn.00412b50
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
push str.Free_disk_space:__ld_Kilobytes
call fcn.00403d90
add esp, 8
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403aa0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [0x422054]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x403abb
xor al, al
jmp 0x403aeb
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x403ace
mov edx, dword [ebp - 4]
or edx, 1
mov dword [ebp - 4], edx
jmp 0x403ad7
mov eax, dword [ebp - 4]
and eax, 0xfffffffe
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x422050]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x403af0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, dword [ebp + 0x10]
add eax, 0x2c
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413970
add esp, 4
mov esi, eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.00413970
add esp, 4
lea eax, [esi + eax + 2]
push eax
call fcn.00413282
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x403be5
mov edx, dword [ebp - 0xc]
push edx
push 0x4231ec
mov eax, dword [ebp + 8]
push eax
push 0x4231f0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00412a94
add esp, 0x14
push 0x4231f8
mov edx, dword [ebp - 0xc]
push edx
call fcn.00414051
add esp, 8
test eax, eax
je 0x403be5
push 0x4231fc
mov eax, dword [ebp - 0xc]
push eax
call fcn.00414051
add esp, 8
test eax, eax
je 0x403be5
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x403ba9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
and eax, 1
je 0x403ba9
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00403aa0
add esp, 8
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
and eax, 0x10
je 0x403bd0
mov cl, byte [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00403c10
add esp, 8
test eax, eax
jne 0x403bce
mov dword [ebp - 4], 0
jmp 0x403be5
mov eax, dword [ebp - 8]
push eax
call dword [0x422058]
test eax, eax
jne 0x403be5
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x403bfd
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00412c34
add esp, 4
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403c10
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 4], 1
push 0x140
push 0
lea eax, [ebp - 0x148]
push eax
call fcn.00412c70
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413970
add esp, 4
add eax, 3
push eax
call fcn.00413282
add esp, 4
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
push eax
call fcn.00413970
add esp, 4
add eax, 1
push eax
call fcn.00413282
add esp, 4
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00413870
add esp, 8
cmp dword [ebp - 8], 0
je 0x403d7e
push 0x423200
push 0x423204
mov ecx, dword [ebp + 8]
push ecx
push str._s_s_s
mov edx, dword [ebp - 8]
push edx
call fcn.00412a94
add esp, 0x14
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [0x422064]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0xffffffff
jne 0x403cea
xor eax, eax
jmp 0x403d81
lea edx, [ebp - 0x148]
push edx
mov al, byte [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403af0
add esp, 0xc
test eax, eax
jne 0x403d0c
mov dword [ebp - 4], 0
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x150]
push eax
call dword [0x4220ac]
test eax, eax
je 0x403d48
lea ecx, [ebp - 0x148]
push ecx
mov dl, byte [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00403af0
add esp, 0xc
test eax, eax
jne 0x403d46
mov dword [ebp - 4], 0
jmp 0x403d0c
mov ecx, dword [ebp - 0x150]
push ecx
call dword [0x42205c]
cmp dword [ebp - 4], 0
je 0x403d7e
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00403aa0
add esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [0x42203c]
test eax, eax
jne 0x403d7e
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x403ed0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
movzx eax, byte [0x42a0e8]
test eax, eax
je 0x403f0a
push 0x429da0
push str._siase.log
lea ecx, [ebp - 0x100]
push ecx
call fcn.00412a94
add esp, 0xc
lea edx, [ebp - 0x100]
push edx
call dword [0x422058]
mov esp, ebp
pop ebp
ret

Function at 0x403f60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
push 0xa
push 0x74
push 0
call dword [0x42206c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403f9f
mov eax, dword [ebp - 4]
push eax
push 0
call dword [0x422068]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403f9f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4053e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x18], 0x10
jb 0x405406
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
jmp 0x40540f
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x422054]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
mov esp, ebp
pop ebp
ret

Function at 0x40d372
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [0x422054]
cmp eax, 0xffffffff
jne 0x40d385
xor al, al
jmp 0x40d3a5
cmp byte [esp + 8], 0
je 0x40d391
or eax, 1
jmp 0x40d394
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [0x422050]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x40e0c1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x28]
test ecx, ecx
push edi
mov edi, dword [esi + 4]
je 0x40e0e7
cmp dword [esp + 0x14], 0
mov eax, dword [ecx]
push ebx
push edi
je 0x40e0e4
call dword [eax + 0x10]
jmp 0x40e0e7
call dword [eax + 0xc]
cmp word [esi + 0x20], 0
je 0x40e117
test ebx, ebx
je 0x40e117
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov cl, byte [edi]
xor ecx, eax
sar eax, 8
and ecx, 0xff
and eax, 0xffffff
xor eax, dword [ecx*4 + 0x428118]
inc edi
dec ebx
mov dword [esi + 0x1c], eax
jne 0x40e0f2
pop edi
pop esi
pop ebx
ret 8

Function at 0x40ed91
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x48]
call fcn.0040cad0
push eax
call dword [0x422054]
cmp eax, 0xffffffff
jne 0x40edaf
mov eax, 0xfffff835
pop esi
ret
push edi
mov edx, eax
shr edx, 5
xor ecx, ecx
inc ecx
and edx, ecx
mov edi, eax
shr edi, 1
and edi, ecx
shl edx, 1
or edx, edi
mov edi, eax
shr edi, 2
shl edx, 1
and edi, ecx
or edx, edi
mov edi, dword [esi + 0x44]
shl edx, 1
and edi, 0xffffffe0
or edx, edi
and eax, ecx
or edx, eax
pop edi
mov dword [esi + 0x44], edx
xor eax, eax
pop esi
ret

Function at 0x40ede5
Capabilities:
Set file attributes

Disassembly:
mov edx, dword [ecx + 0x44]
xor eax, eax
test dl, 0x10
jne 0x40ee0f
push esi
mov eax, edx
and eax, 8
shl eax, 1
mov esi, edx
and esi, 2
or eax, esi
mov esi, edx
and esi, 4
shr esi, 1
shl eax, 1
or eax, esi
and edx, 1
or eax, edx
pop esi
push eax
add ecx, 0x48
call fcn.0040cad0
push eax
call dword [0x422050]
ret
Function at 0x415016
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x423e38
call fcn.0041a270
mov edi, 0x94
mov eax, edi
call fcn.00413db0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x422028]
mov ecx, dword [esi + 0x10]
mov dword [0x42bbd0], ecx
mov eax, dword [esi + 4]
mov dword [0x42bbdc], eax
mov edx, dword [esi + 8]
mov dword [0x42bbe0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42bbd4], esi
cmp ecx, 2
je 0x415076
or esi, 0x8000
mov dword [0x42bbd4], esi
shl eax, 8
add eax, edx
mov dword [0x42bbd8], eax
xor esi, esi
push esi
mov edi, dword [0x4220e4]
call edi
cmp word [eax], 0x5a4d
jne 0x4150b1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4150b1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4150c9
cmp eax, 0x20b
je 0x4150b6
mov dword [ebp - 0x1c], esi
jmp 0x4150dd
cmp dword [ecx + 0x84], 0xe
jbe 0x4150b1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4150d7
cmp dword [ecx + 0x74], 0xe
jbe 0x4150b1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00418e2e
pop ecx
test eax, eax
jne 0x415109
cmp dword [0x42bb9c], 1
jne 0x4150f6
call fcn.00419be8
push 0x1c
call fcn.00419a71
push 0xff
call fcn.00415691
pop ecx
pop ecx
call fcn.0041a1e6
mov dword [ebp - 4], esi
call fcn.00416dcd
test eax, eax
jge 0x415122
push 0x1b
call fcn.00414ff1
pop ecx
call dword [0x422030]
mov dword [0x42c390], eax
call fcn.0041a0c4
mov dword [0x42bb94], eax
call fcn.0041a022
test eax, eax
jge 0x415148
push 8
call fcn.00414ff1
pop ecx
call fcn.00419def
test eax, eax
jge 0x415159
push 9
call fcn.00414ff1
pop ecx
push 1
call fcn.004156c1
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41516f
push eax
call fcn.00414ff1
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x4220e8]
call fcn.00419d92
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x415190
movzx eax, word [ebp - 0x40]
jmp 0x415193
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call section..text
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4151b1
push edi
call fcn.004157ec
call fcn.0041580e
jmp 0x4151e3
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041a2ab
ret
Function at 0x41572b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x42bc10], esi
push edi
jne 0x41574b
push dword [ebp + 8]
call dword [0x4220f8]
push eax
call dword [0x4220f4]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x42bc0c], esi
mov byte [0x42bc08], al
jne 0x4157b1
mov ecx, dword [0x42c388]
test ecx, ecx
je 0x415792
mov eax, dword [0x42c384]
sub eax, 4
cmp eax, ecx
jmp 0x41578b
mov eax, dword [eax]
test eax, eax
je 0x41577d
call eax
mov eax, dword [0x42c384]
sub eax, 4
cmp eax, dword [0x42c388]
mov dword [0x42c384], eax
jae 0x415775
mov eax, 0x428048
mov esi, 0x428050
cmp eax, esi
mov edi, eax
jae 0x4157b1
mov eax, dword [edi]
test eax, eax
je 0x4157aa
call eax
add edi, 4
cmp edi, esi
jb 0x4157a2
mov eax, 0x428054
mov esi, 0x42805c
cmp eax, esi
mov edi, eax
jae 0x4157d0
mov eax, dword [edi]
test eax, eax
je 0x4157c9
call eax
add edi, 4
cmp edi, esi
jb 0x4157c1
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4157ea
push dword [ebp + 8]
mov dword [0x42bc10], 1
call fcn.00415691
pop ebp
ret
Function at 0x416bdd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x42c260]
mov eax, dword [0x428f58]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x416da3
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x42c280]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x416da3
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x416c47
xor eax, eax
jmp 0x416db7
test al, 0x20
je 0x416c58
push 2
push edi
push edi
push ecx
call fcn.0041ace9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x416d2d
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x416d74
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x416cba
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x416cab
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x416c8d
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [0x422108]
test eax, eax
je 0x416cfa
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x416d06
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x416c81
jmp 0x416d08
call dword [0x422034]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x416d9e
cmp dword [ebp + 0x3a4], edi
je 0x416d74
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x416d66
mov dword [0x42bbc8], eax
jmp 0x416daa
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [0x422108]
test eax, eax
je 0x416d58
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x416d08
call dword [0x422034]
mov dword [ebp + 0x3a4], eax
jmp 0x416d08
push dword [ebp + 0x3a4]
call fcn.0041a2bc
pop ecx
jmp 0x416db4
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x416d8c
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x416c40
mov dword [0x42bbc4], 0x1c
mov dword [0x42bbc8], edi
jmp 0x416db4
sub eax, dword [ebp - 0x7c]
jmp 0x416db7
and dword [0x42bbc8], 0
mov dword [0x42bbc4], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0041a58e
add ebp, 0x39c
leave
ret
Function at 0x4171c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x42c260]
push edi
jae 0x417395
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x42c280]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x417395
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x41726b
test dl, 2
jne 0x41726b
test dl, 0x48
je 0x417235
cmp byte [eax + 5], 0xa
je 0x417235
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [0x422118]
test eax, eax
jne 0x41727e
call dword [0x422034]
push 5
pop ecx
cmp eax, ecx
jne 0x417266
mov dword [0x42bbc8], ecx
jmp 0x41739c
cmp eax, 0x6d
jne 0x417272
xor eax, eax
jmp 0x4173a9
push eax
call fcn.0041a2bc
pop ecx
jmp 0x4173a6
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x417390
test eax, eax
je 0x4172a5
cmp byte [ebx], 0xa
jne 0x4172a5
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4172ae
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x41738a
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x41737a
cmp al, 0xd
je 0x4172e0
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x41736c
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4172fa
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4172f5
add dword [ebp - 8], 2
jmp 0x41734e
mov dword [ebp - 8], eax
jmp 0x417368
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [0x422118]
test eax, eax
jne 0x417322
call dword [0x422034]
test eax, eax
jne 0x417368
cmp dword [ebp - 0x10], 0
je 0x417368
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x417343
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41734e
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41736b
cmp ebx, dword [ebp + 0xc]
jne 0x417353
cmp byte [ebp - 1], 0xa
jne 0x417353
mov byte [ebx], 0xa
jmp 0x41736b
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416f78
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41736c
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x4172c4
jmp 0x41738a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41738a
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x4173a9
and dword [0x42bbc8], 0
mov dword [0x42bbc4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41836c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41839a
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4183a1
cmp ebx, dword [eax + 4]
jae 0x4183a1
xor eax, eax
jmp 0x418591
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4183b2
xor eax, eax
inc eax
jmp 0x418590
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4183c8
cmp ecx, edx
jae 0x41850d
cmp dword [eax + 4], 0
je 0x4183d1
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4183b9
cmp dword [ebp + 8], 0
je 0x4183f3
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41850d
cmp eax, esi
jae 0x41850d
mov eax, dword [0x42bc60]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x418418
cmp dword [esi*4 + 0x42bc68], edi
je 0x418511
inc esi
cmp esi, eax
jl 0x418406
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x42212c]
test eax, eax
je 0x41858d
cmp dword [ebp - 8], 0x1000000
jne 0x41858d
test byte [ebp - 0xc], 0xcc
je 0x418496
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41858d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41858d
cmp word [eax + 0x18], 0x10b
jne 0x41858d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41858d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x418496
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x418496
test byte [ecx + 0x27], 0x80
jne 0x41850d
push 1
push 0x42bca8
call dword [0x422128]
test eax, eax
jne 0x4183aa
mov ecx, dword [0x42bc60]
test ecx, ecx
mov edx, ecx
jle 0x4184ca
lea eax, [ecx*4 + 0x42bc64]
cmp dword [eax], edi
je 0x4184ca
dec edx
sub eax, 4
test edx, edx
jg 0x4184be
test edx, edx
jne 0x4184fb
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4184d7
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4184ef
lea eax, [edx*4 + 0x42bc68]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4184dd
cmp ecx, 0x10
jge 0x4184fb
inc ecx
mov dword [0x42bc60], ecx
push 0
push 0x42bca8
call dword [0x422128]
jmp 0x4183aa
xor eax, eax
jmp 0x418590
test esi, esi
jle 0x4183aa
mov ebx, dword [0x422128]
push 1
push 0x42bca8
call ebx
test eax, eax
jne 0x4183aa
cmp dword [esi*4 + 0x42bc68], edi
je 0x418567
mov eax, dword [0x42bc60]
lea esi, [eax - 1]
test esi, esi
jl 0x418555
cmp dword [esi*4 + 0x42bc68], edi
je 0x418551
dec esi
jns 0x418545
test esi, esi
jge 0x418565
cmp eax, 0x10
jge 0x418560
inc eax
mov dword [0x42bc60], eax
lea esi, [eax - 1]
jmp 0x418567
je 0x41857f
xor ecx, ecx
test esi, esi
jl 0x41857f
lea eax, [ecx*4 + 0x42bc68]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41856d
push 0
push 0x42bca8
call ebx
jmp 0x4183aa
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419a71
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x428f58]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x428f88]
je 0x419aa6
inc eax
cmp eax, 0x13
jb 0x419a97
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x428f88]
jne 0x419bcc
mov eax, dword [0x42bb9c]
cmp eax, 1
je 0x419ba4
cmp eax, edx
jne 0x419ad6
cmp dword [0x428d20], 1
je 0x419ba4
cmp ecx, 0xfc
je 0x419bcc
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [0x422038]
test eax, eax
jne 0x419b0c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00413870
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00413970
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x419b40
mov eax, edi
push eax
call fcn.00413970
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4248f0
push edi
call fcn.00415bc0
add esp, 0x10
push edi
call fcn.00413970
push dword [esi + 0x428f8c]
mov ebx, eax
call fcn.00413970
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00413db0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00413870
push edi
push ebx
call fcn.00413880
push 0x4248d0
push ebx
call fcn.00413880
push dword [esi + 0x428f8c]
push ebx
call fcn.00413880
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041bc33
add esp, 0x2c
jmp 0x419bcc
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x428f8c]
push dword [esi]
call fcn.00413970
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [0x422110]
push eax
call dword [0x422108]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041a58e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret