joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219

Function at 0x419d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x419d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419d48
mov eax, 1
add ebx, ebx
jne 0x419d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419d60
jne 0x419d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419d60
xor ecx, ecx
sub eax, 3
jb 0x419d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419e02
mov ebp, eax
add ebx, ebx
jne 0x419d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419dcc
inc ecx
add ebx, ebx
jne 0x419db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419dad
jne 0x419dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419ddd
jmp 0x419d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419dec
add edi, ecx
jmp 0x419d4e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419e0a
cmp byte [edi], 5
jne 0x419e0a
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 0x419e0f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419e87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419e3c
mov ecx, edi
jns 0x419e6b
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 + 0x19090]
or eax, eax
je 0x419e81
mov dword [ebx], eax
add ebx, 4
jmp 0x419e59
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x419ebb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x401530
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x401564
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401580
Capabilities:
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
push 0
push 0x25
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x4015b7
push str.driversetchosts
lea eax, [ebp - 0x104]
push eax
call fcn.004017f0
add esp, 8
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x4070b1
lea eax, [ebp - 0x104]
push eax
call fcn.00401820
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x40168d
push 2
push 0
push ebx
call fcn.00401850
add esp, 0xc
push ebx
call fcn.00401880
pop ecx
mov esi, eax
push ebx
call fcn.00401890
pop ecx
push esi
call fcn.00401e10
pop ecx
mov edi, eax
push ebx
push esi
push 1
push edi
call fcn.00401e70
add esp, 0x10
push str.potplayertv
push edi
call fcn.00401f40
add esp, 8
test eax, eax
jne 0x40167f
push 2
push 0
push ebx
call fcn.00401850
add esp, 0xc
push ebx
push str.127.0.0.1__potplayertv.daum.net_n
call fcn.00401fc0
add esp, 8
push ebx
push str.127.0.0.1__play.kakao.com_n
call fcn.00401fc0
add esp, 8
push ebx
push str.127.0.0.1__t1.daumcdn.net_n
call fcn.00401fc0
add esp, 8
push ebx
push str.127.0.0.1__p1_play.edge4k.com_n
call fcn.00401fc0
add esp, 8
push ebx
push str.127.0.0.1__p2_play.edge4k.com_n
call fcn.00401fc0
add esp, 8
push ebx
call fcn.00402030
pop ecx
push edi
call fcn.00402450
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4016a0
Capabilities:
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x99c
push ebx
push esi
push 0
push 0x25
lea eax, [ebp - 0x1cc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x4016d6
push str.driversetchosts
lea eax, [ebp - 0x1cc]
push eax
call fcn.004017f0
add esp, 8
push pe_nt_image_headers32
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x40700e
lea eax, [ebp - 0x1cc]
push eax
call fcn.00401820
add esp, 8
mov esi, eax
test esi, esi
je 0x4017ac
mov byte [ebp - 0x99c], 0
xor bl, bl
jmp 0x40175b
push str..daum
lea eax, [ebp - 0xc8]
push eax
call fcn.00401f40
add esp, 8
test eax, eax
jne 0x401759
push str.play.
lea eax, [ebp - 0xc8]
push eax
call fcn.00401f40
add esp, 8
test eax, eax
jne 0x401759
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x99c]
push eax
call fcn.004017f0
add esp, 8
jmp 0x40175b
mov bl, 1
push esi
push 0xc8
lea eax, [ebp - 0xc8]
push eax
call fcn.00402480
add esp, 0xc
test eax, eax
jne 0x401711
push esi
call fcn.00402030
pop ecx
test bl, bl
je 0x4017ac
push section..rdata
lea eax, [ebp - 0x1cc]
push eax
call fcn.00401820
add esp, 8
mov esi, eax
push esi
lea eax, [ebp - 0x99c]
push eax
call fcn.00401fc0
add esp, 8
push esi
call fcn.00402030
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4024d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407548
push 0x403519
push dword fs:[0]
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x2000000
call fcn.00405920
pop ecx
mov dword [0x4093d8], eax
call fcn.00402d50
test al, al
je 0x4025dc
mov dword [ebp - 4], 0
call fcn.00403730
call fcn.004038c0
call fcn.004039b0
call fcn.00403d40
call fcn.00403de0
mov esi, 0x407d14
cmp esi, 0x407d14
jae 0x40254d
call dword [esi]
add esi, 4
cmp esi, 0x407d14
jb 0x402540
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
call fcn.00403eb0
movzx edx, word [ebp - 0x34]
mov ecx, 0xa
test dword [ebp - 0x38], 1
cmove edx, ecx
push edx
push eax
push 0
push esi
call section..text
mov esi, eax
mov edi, 0x407d14
cmp edi, 0x407d14
jae 0x4025a6
call dword [edi]
add edi, 4
cmp edi, 0x407d14
jb 0x402599
push esi
call fcn.00403ef0
jmp 0x4025e4
push 0xfffffffffffffffe
call fcn.00402c60
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403d40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
cmp word [ebx], 0
jne 0x403d74
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ebx, [ebp - 0x210]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00403b50
add esp, 0x14
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, eax
lea eax, [eax + esi*4]
push eax
call fcn.00401e10
pop ecx
mov edi, eax
test edi, edi
je 0x403dc8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [edi + esi*4]
push eax
push edi
push ebx
call fcn.00403b50
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x4093e0], eax
mov dword [0x4093e4], edi
jmp 0x403dd0
push 0xfffffffffffffffc
call fcn.00402c60
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403de0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], eax
test eax, eax
je 0x403e86
mov eax, dword [ebp - 4]
xor edx, edx
cmp word [eax], 0
je 0x403e22
or ecx, 0xffffffff
inc ecx
cmp word [eax + ecx*2], 0
jne 0x403e08
inc ecx
cmp word [eax], 0x3d
je 0x403e19
add edx, ecx
lea eax, [eax + ecx*2]
cmp word [eax], 0
jne 0x403e05
add edx, edx
add edx, 2
push edx
call fcn.00401e10
pop ecx
mov dword [0x4093e8], eax
test eax, eax
je 0x403e99
mov edx, eax
mov eax, dword [ebp - 4]
mov ebx, eax
cmp word [ebx], 0
je 0x403e76
or eax, 0xffffffff
inc eax
cmp word [ebx + eax*2], 0
jne 0x403e47
lea esi, [eax + 1]
cmp word [ebx], 0x3d
je 0x403e6d
xor ecx, ecx
mov ax, word [ebx + ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x403e5a
lea edx, [edx + esi*2]
lea ebx, [ebx + esi*2]
cmp word [ebx], 0
jne 0x403e44
mov word [edx], 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x403ea1
push 2
push 1
call fcn.00405ca0
add esp, 8
mov dword [0x4093e8], eax
jmp 0x403ea1
push 0xfffffffffffffffc
call fcn.00402c60
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403eb0
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp word [eax], 0x22
jne 0x403ed8
add eax, 2
mov dx, word [eax]
cmp dx, 0x22
je 0x403ecd
test dx, dx
jne 0x403ebc
cmp word [eax], 0x22
jne 0x403ee3
add eax, 2
jmp 0x403ee3
cmp word [eax], 0x20
jbe 0x403ee3
add eax, 2
jmp 0x403ed8
cmp word [eax], 0
je 0x403eef
cmp word [eax], 0x20
jbe 0x403ed3
ret
Function at 0x404780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
mov edi, eax
mov ebx, edi
cmp ebx, dword [ebp - 0xc]
jae 0x4048c1
cmp byte [ebx], 0x1a
je 0x40486c
cmp byte [ebx], 0xd
jne 0x4047cf
lea eax, [ebx + 1]
cmp eax, dword [ebp - 0xc]
jae 0x4047dc
cmp byte [ebx + 1], 0xa
jne 0x4047cf
mov byte [edi], 0xa
inc edi
add ebx, 2
jmp 0x4048b8
inc edi
inc ebx
mov al, byte [ebx - 1]
mov byte [edi - 1], al
jmp 0x4048b8
inc ebx
push esi
call fcn.00404270
pop ecx
push 0
lea edx, [ebp - 8]
push edx
push 1
lea edx, [ebp - 1]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4048dd
cmp dword [ebp - 8], 0
je 0x4048dd
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x4095e4]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx + 4], 0x48
je 0x40485c
cmp byte [ebp - 1], 0xa
je 0x404867
mov byte [edi], 0xd
inc edi
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x4095e4]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
mov cl, byte [ebp - 1]
mov byte [eax + edx + 6], cl
jmp 0x4048b8
inc edi
jmp 0x4048b8
cmp byte [ebp - 1], 0xa
jne 0x4048c8
cmp edi, dword [ebp + 0xc]
jne 0x4048c8
mov byte [edi], 0xa
jmp 0x404859
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x4095e4]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx + 4], 0x40
jne 0x4048b0
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x4095e4]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
or byte [eax + edx + 4], 2
jmp 0x4048c1
inc edi
mov al, byte [ebx]
mov byte [edi - 1], al
jmp 0x4048c1
cmp ebx, dword [ebp - 0xc]
jb 0x4047a7
mov eax, edi
sub eax, dword [ebp + 0xc]
jmp 0x4048e5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call fcn.00404460
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4048b8
mov byte [edi], 0xd
jmp 0x404859
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4048f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
mov edi, eax
mov ebx, edi
cmp ebx, dword [ebp - 0xc]
jae 0x404a74
cmp word [ebx], 0x1a
je 0x404a1b
cmp word [ebx], 0xd
jne 0x404946
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x404959
cmp word [ebx + 2], 0xa
jne 0x404946
mov word [edi], 0xa
add edi, 2
add ebx, 4
jmp 0x404a6b
add edi, 2
add ebx, 2
mov ax, word [ebx - 2]
mov word [edi - 2], ax
jmp 0x404a6b
add ebx, 2
push esi
call fcn.00404270
pop ecx
push 0
lea edx, [ebp - 8]
push edx
push 2
lea edx, [ebp - 2]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404a94
cmp dword [ebp - 8], 0
je 0x404a94
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x4095e4]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx + 4], 0x48
je 0x404a08
cmp word [ebp - 2], 0xa
je 0x404a14
mov word [edi], 0xd
add edi, 2
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x4095e4]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
mov cl, byte [ebp - 2]
mov byte [eax + edx + 6], cl
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x4095e4]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
movzx ecx, word [ebp - 2]
sar ecx, 8
mov byte [eax + edx + 7], cl
jmp 0x404a6b
add edi, 2
jmp 0x404a6b
cmp word [ebp - 2], 0xa
jne 0x404a7b
cmp edi, dword [ebp + 0xc]
jne 0x404a7b
mov word [edi], 0xa
jmp 0x404a03
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x4095e4]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx + 4], 0x40
jne 0x404a5f
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x4095e4]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
or byte [eax + edx + 4], 2
jmp 0x404a74
add edi, 2
mov ax, word [ebx]
mov word [edi - 2], ax
jmp 0x404a74
cmp ebx, dword [ebp - 0xc]
jb 0x404917
mov eax, edi
sub eax, dword [ebp + 0xc]
jmp 0x404a9e
push 1
push 0xffffffffffffffff
push 0xfffffffe
push esi
call fcn.00404460
add esp, 0x10
cmp word [ebp - 2], 0xa
je 0x404a6b
mov word [edi], 0xd
jmp 0x404a03
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404b90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x4095e4]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx + 4], 0x48
jne 0x404bcd
mov dword [ebp - 8], 0
jmp 0x404be1
push ebx
push edi
push esi
call fcn.00404b30
add esp, 0xc
mov edx, eax
mov dword [ebp - 8], edx
add edi, eax
sub ebx, eax
push esi
call fcn.00404270
pop ecx
push 0
lea edx, [ebp - 4]
push edx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404c03
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404c0b
mov edx, dword [ebp - 4]
add dword [ebp - 8], edx
xor eax, eax
mov edx, dword [ebp - 8]
xchg edx, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, edx
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0x808], edx
xor edi, edi
mov dword [ebp - 0x80c], 0
cmp esi, dword [ebp - 0x808]
jae 0x405331
lea eax, [ebp - 0x804]
cmp byte [esi], 0xa
jne 0x4052ad
add dword [ebp - 0x80c], 1
mov byte [eax], 0xd
inc eax
inc eax
inc esi
mov dl, byte [esi - 1]
mov byte [eax - 1], dl
lea edx, [ebp - 5]
cmp eax, edx
jae 0x4052c4
cmp esi, dword [ebp - 0x808]
jb 0x40529d
lea edx, [ebp - 0x804]
mov ebx, eax
sub ebx, edx
push dword [ebp + 0xc]
call fcn.004042e0
pop ecx
test al, al
je 0x405306
push dword [ebp + 0xc]
call fcn.00404270
pop ecx
push ebx
lea edx, [ebp - 0x804]
push edx
push eax
call fcn.00406010
add esp, 0xc
test al, al
je 0x405335
add edi, ebx
inc esi
cmp esi, dword [ebp - 0x808]
jb 0x405297
jmp 0x405331
push dword [ebp + 0xc]
call fcn.00404270
pop ecx
push 0
lea edx, [ebp - 4]
push edx
push ebx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40533c
mov eax, dword [ebp - 4]
add edi, eax
cmp eax, ebx
jae 0x4052fb
xor esi, esi
jmp 0x405344
mov esi, 0x1d
jmp 0x405344
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x80c]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov dword [eax + 8], esi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, edx
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0x80c], edx
mov dword [ebp - 0x808], 0
xor edi, edi
cmp esi, dword [ebp - 0x80c]
jae 0x405437
lea eax, [ebp - 0x804]
cmp word [esi], 0xa
jne 0x4053be
add edi, 2
mov word [eax], 0xd
add eax, 2
add eax, 2
add esi, 2
mov dx, word [esi - 2]
mov word [eax - 2], dx
lea edx, [ebp - 6]
cmp eax, edx
jae 0x4053db
cmp esi, dword [ebp - 0x80c]
jb 0x4053ad
lea edx, [ebp - 0x804]
mov ebx, eax
sub ebx, edx
push dword [ebp + 0xc]
call fcn.004042e0
pop ecx
test al, al
je 0x405451
push dword [ebp + 0xc]
call fcn.00404270
pop ecx
push 0
lea edx, [ebp - 4]
push edx
mov edx, ebx
shr edx, 1
push edx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x405443
shl dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add dword [ebp - 0x808], eax
cmp eax, ebx
jb 0x405437
add esi, 2
cmp esi, dword [ebp - 0x80c]
jb 0x4053a7
mov dword [ebp - 0x810], 0
jmp 0x40547f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x810], eax
jmp 0x40547f
push dword [ebp + 0xc]
call fcn.00404270
pop ecx
push 0
lea edx, [ebp - 4]
push edx
push ebx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40541b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x810], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x808]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x810]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4054b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ebx, edx
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0xc0c], edx
mov dword [ebp - 0xc08], 0
cmp ebx, dword [ebp - 0xc0c]
jae 0x405562
lea eax, [ebp - 0x404]
cmp word [ebx], 0xa
jne 0x4054f9
mov word [eax], 0xd
add eax, 2
add eax, 2
add ebx, 2
mov dx, word [ebx - 2]
mov word [eax - 2], dx
lea edx, [ebp - 6]
cmp eax, edx
jae 0x405516
cmp ebx, dword [ebp - 0xc0c]
jb 0x4054eb
push 0
push 0
push 0x800
lea edx, [ebp - 0xc04]
push edx
lea edx, [ebp - 0x404]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x40556e
lea esi, [ebp + eax - 0xc04]
lea eax, [ebp - 0xc04]
cmp esi, eax
jbe 0x4055c7
lea edi, [ebp - 0xc04]
jmp 0x4055a0
mov dword [ebp - 0xc10], 0
jmp 0x40557a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc08]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc10]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
jmp 0x40560a
push dword [ebp + 0xc]
call fcn.00404270
pop ecx
push 0
lea edx, [ebp - 4]
push edx
mov edx, esi
sub edx, edi
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4055e6
add edi, dword [ebp - 4]
cmp edi, esi
jb 0x4055a0
mov eax, ebx
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0xc08], eax
add ebx, 2
cmp ebx, dword [ebp - 0xc0c]
jb 0x4054e5
jmp 0x405562
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc08]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406770
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4095e0]
cmp dword [ebp + 8], eax
jae 0x406863
mov eax, dword [ebp + 8]
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x4095e4]
mov edx, dword [ebp + 8]
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx + 4], 1
je 0x406863
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.00404460
add esp, 0x10
mov esi, eax
mov edi, edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
cmp edx, 0xffffffff
jne 0x4067d8
cmp eax, 0xffffffff
je 0x40686d
push 2
push 0
push 0
push dword [ebp + 8]
call fcn.00404460
add esp, 0x10
cmp edx, 0xffffffff
jne 0x4067f3
cmp eax, 0xffffffff
je 0x40686d
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
test edi, edi
jg 0x406875
jl 0x406807
test esi, esi
ja 0x406875
test edi, edi
jg 0x406903
jl 0x406819
test esi, esi
jae 0x406903
push 0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push edx
push eax
push dword [ebp + 8]
call fcn.00404460
add esp, 0x10
cmp edx, 0xffffffff
jne 0x40683c
cmp eax, 0xffffffff
je 0x4068fe
push dword [ebp + 8]
call fcn.00404270
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x406903
mov dword [0x4093d4], 0xd
jmp 0x4068fe
mov dword [0x4093d4], 9
or eax, 0xffffffff
jmp 0x40691c
push 0x1000
push 1
call fcn.00405ca0
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4068fe
push 0x8000
push dword [ebp + 8]
call fcn.00406930
add esp, 8
mov dword [ebp - 0xc], eax
test edi, edi
jl 0x4068b2
jg 0x4068ab
cmp esi, 0x1000
jb 0x4068b2
mov eax, 0x1000
jmp 0x4068b4
mov eax, esi
push eax
push ebx
push dword [ebp + 8]
call fcn.00405680
add esp, 0xc
cmp eax, 0xffffffff
je 0x4068e4
cdq
neg eax
adc edx, 0
neg edx
add eax, esi
adc edx, edi
mov esi, eax
mov edi, edx
test edx, edx
jg 0x40689d
jl 0x4068e0
test eax, eax
ja 0x40689d
xor esi, esi
jmp 0x4068e7
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00406930
add esp, 8
push ebx
call fcn.00402450
pop ecx
jmp 0x406905
or esi, 0xffffffff
jmp 0x406905
xor esi, esi
push 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
push edx
push eax
push dword [ebp + 8]
call fcn.00404460
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret