joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1026d4c2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
call fcn.1000106e
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
jne 0x1026d61a
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.1026c183
lea ecx, [0x1026cf71]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x58], edx
mov dword [0x102b0728], 0x1082
mov dword [esp + 0x7c], 0x113c00
mov edx, dword [0x102b0710]
mov dword [esp + 0x88], edx
mov edx, dword [0x102b0714]
mov dword [esp + 0x8c], edx
mov edx, dword [0x102b0718]
mov dword [esp + 0x94], edx
mov edx, dword [0x102b071c]
mov dword [esp + 0x70], edx
mov edx, dword [0x102b0720]
mov dword [esp + 0x44], edx
mov dword [0x102b0724], 0xffffe113
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x1026d588
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], ecx
je 0x1026d59c
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x18], eax
jmp 0x1026d565
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
mov dword [0x102b0724], 0x1516
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x54], edx
mov dword [0x102b0728], 0x3a6
call fcn.1026c918
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x1026d612
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
lea eax, [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 8]
mov dword [esp + 4], eax
call fcn.1026c7ba
mov dword [0x102b0728], 0x2491
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x40144e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.open_file
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [ebp - 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sym._fread
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 4]
leave
ret

Function at 0x4014ac
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sym._strcpy
lea eax, [ebp - 0x108]
mov dword [ebp - 4], eax
mov dword [esp + 4], 0x2f
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sym._strchr
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401505
mov dword [esp + 4], 0x5c
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sym._strchr
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401530
mov eax, dword [ebp - 8]
mov byte [eax], 0
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sym._mkdir
mov eax, dword [ebp - 8]
mov byte [eax], 0x2f
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x4014d3
leave
ret

Function at 0x40160f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
jmp 0x4016a4
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
movzx eax, al
movzx edx, byte [eax + section..data]
mov eax, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
add eax, 1
movzx eax, byte [eax]
movzx eax, al
movzx eax, byte [eax + section..data]
mov byte [edx], al
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov eax, dword [ebp + 8]
add eax, 2
movzx eax, byte [eax]
movzx eax, al
movzx eax, byte [eax + section..data]
mov byte [edx], al
mov eax, dword [ebp + 8]
lea edx, [eax + 3]
mov eax, dword [ebp + 8]
add eax, 3
movzx eax, byte [eax]
movzx eax, al
movzx eax, byte [eax + section..data]
mov byte [edx], al
call dbg.get_key
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor eax, dword [ebp - 4]
mov dword [edx], eax
add dword [ebp + 8], 4
add dword [ebp - 8], 4
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jb 0x401621
leave
ret
Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x69b51b81
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..didat
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x115972b3
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
mov al, byte [edx + section..data]
mov cl, dl
add al, dl
xor al, 0xcd
ror al, 3
sub cl, al
add cl, 0x11
rol cl, 1
not cl
add cl, dl
xor cl, dl
ror cl, 2
mov byte [edx + section..data], cl
inc edx
cmp edx, 0x1a05
jb 0x10001002
push 0
push 0
push section..data
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x2f5239e9
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42f314
mov ecx, 0x798e65b9
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x425ec0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426030
push eax
mov dword fs:[0], esp
sub esp, 0x814
lea ecx, [ebp - 0x50]
push ebx
push esi
push edi
push 1
call fcn.00445370
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call fcn.004435c0
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x425f25
mov dword [ebp - 4], 0xffffffff
call fcn.0042603a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00446570
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x425f05
mov eax, dword [0x4525a8]
lea ecx, [ebp - 0x50]
push eax
push 1
push str.syndos.env
call fcn.00445510
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x48], 6
jne 0x42601d
lea eax, [ebp + eax - 0x50]
test eax, eax
je 0x42601d
mov edi, 1
mov ebx, 6
mov byte [0x4631c0], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 4]
test dword [ebp + ecx - 0x48], edi
jne 0x425fea
push 0xa
lea eax, [ebp - 0x820]
push 0x7d0
lea ecx, [ebp - 0x50]
push eax
inc dword [ebp - 0x4c]
call fcn.004457c0
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 4]
test dword [ebp + ecx - 0x48], ebx
jne 0x425fea
push esi
lea eax, [ebp - 0x820]
push eax
call fcn.00446340
add esp, 8
test eax, eax
je 0x425f78
push 0x3d
lea eax, [ebp - 0x820]
push eax
call fcn.004449b0
add esp, 8
test eax, eax
je 0x425f78
push 0x4631c0
inc eax
push 0x45b4f0
push eax
call fcn.00445770
add esp, 0xc
cmp eax, edi
jne 0x425f78
lea ecx, [ebp - 0x50]
call fcn.00445550
cmp byte [0x4631c0], 0
mov dword [ebp - 4], 0xffffffff
je 0x426011
call fcn.0042603a
mov eax, 0x4631c0
jmp 0x425f14
call fcn.0042603a
xor eax, eax
jmp 0x425f14
mov dword [ebp - 4], 0xffffffff
call fcn.0042603a
xor eax, eax
jmp 0x425f14

Function at 0x428170
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov eax, dword [esp + 8]
push esi
push edi
mov esi, dword [edx]
and esi, 0x3ff
mov ecx, dword [eax]
and ecx, 0xfffffc00
mov edi, esi
or edi, ecx
lea ebx, [edx + esi*4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], edi
lea edx, [ecx + esi*4]
lea ecx, [eax + esi*4]
mov edi, dword [edx]
sub ebx, 4
sub edx, 4
sub ecx, 4
xor edi, dword [ebx + 4]
dec esi
mov dword [ecx + 4], edi
test esi, esi
jg 0x4281a0
pop edi
pop esi
pop ebx
ret
Function at 0x436ac0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, dword [0x4633e4]
push esi
push edi
mov esi, dword [eax]
mov edi, dword [esp + 0x14]
push edi
call fcn.0043c010
add esp, 4
test eax, eax
jl 0x436b50
mov ecx, dword [0x4633e0]
mov edx, dword [edi]
and edx, 0x3ff
mov eax, dword [ecx + eax*4]
mov ecx, dword [esi]
mov ebx, edx
and ecx, 0xfffffc00
or ebx, ecx
mov dword [esi], ecx
lea ecx, [eax + edx*4]
mov dword [esi], ebx
lea ebx, [edi + edx*4]
lea eax, [esi + edx*4]
mov edi, dword [ecx]
sub ebx, 4
sub ecx, 4
sub eax, 4
xor edi, dword [ebx + 4]
dec edx
mov dword [eax + 4], edi
test edx, edx
jg 0x436b05
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edi, ecx
and ecx, 0xfffffc00
and edi, 0x3ff
mov dword [eax], ecx
mov edx, edi
or edx, ecx
lea ecx, [eax + edi*4]
mov dword [eax], edx
lea edx, [esi + edi*4]
mov esi, dword [edx]
sub edx, 4
and dword [ecx], esi
sub ecx, 4
dec edi
test edi, edi
jg 0x436b3d
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
ret

Function at 0x446180
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452650
push 0x44aae0
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x45fa9c], eax
xor eax, eax
mov al, byte [0x45fa9d]
mov dword [0x45faa8], eax
mov eax, dword [0x45fa9c]
shr dword [0x45fa9c], 0x10
and eax, 0xff
mov dword [0x45faa4], eax
shl eax, 8
add eax, dword [0x45faa8]
mov dword [0x45faa0], eax
call fcn.004498a0
mov dword [ebp - 4], 0
call fcn.00447b20
call fcn.0044b6c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4645fc], eax
call fcn.0044b260
mov dword [0x45fa70], eax
test eax, eax
je 0x446219
cmp dword [0x4645fc], 0
jne 0x446223
push 0xffffffffffffffff
call fcn.004463f0
add esp, 4
call fcn.0044afe0
call fcn.0044af00
call fcn.004463c0
mov esi, dword [0x4645fc]
mov al, byte [esi]
cmp al, 0x22
je 0x44624a
cmp al, 0x20
jbe 0x446277
inc esi
cmp byte [esi], 0x20
ja 0x446242
jmp 0x446277
inc esi
cmp byte [esi], 0x22
je 0x446276
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x446271
xor eax, eax
mov al, bl
push eax
call fcn.0044aea0
add esp, 4
test eax, eax
je 0x44626b
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x446253
cmp byte [esi], 0x22
jne 0x446277
inc esi
cmp byte [esi], 0
je 0x446287
cmp byte [esi], 0x20
ja 0x446287
inc esi
cmp byte [esi], 0
jne 0x44627c
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4462ab
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.004463f0
jmp 0x4462ec
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446430
Capabilities:
Terminate process

Disassembly:
cmp dword [0x45fad8], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x44644e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x45fad4], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x45fad0], bl
jne 0x4464a8
cmp dword [0x4645f8], 0
je 0x446496
mov edi, dword [0x4645f4]
sub edi, 4
cmp dword [0x4645f8], edi
ja 0x446496
mov eax, dword [edi]
test eax, eax
je 0x44648b
call eax
sub edi, 4
cmp dword [0x4645f8], edi
jbe 0x446483
push 0x45503c
push 0x455034
call fcn.004464e0
add esp, 8
push 0x455044
push 0x455040
call fcn.004464e0
add esp, 8
test ebx, ebx
jne 0x4464cf
mov dword [0x45fad8], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x4475c0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp edx, dword [0x4645f0]
push ebx
push esi
push edi
push ebp
jae 0x4477c7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x4644f0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x4477c7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x447629
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x44763a
push 2
push 0
push edx
call fcn.00447a60
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x4476d6
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x44770f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x44769d
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x44768b
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x447672
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x447705
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp edi, eax
jle 0x44765d
jmp 0x44770f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x447705
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x44770f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x4477b6
cmp dword [esp + 0x10], 0
je 0x447768
cmp dword [esp + 0x10], 5
jne 0x44774b
mov dword [0x45fa90], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x45fa94], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0044d140
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x447792
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x447792
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x45fa90], 0x1c
mov dword [0x45fa94], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x45fa90], 9
mov dword [0x45fa94], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x44b260
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x45fe20], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x44b2ac
call esi
mov edi, eax
test edi, edi
je 0x44b28a
mov dword [0x45fe20], 1
jmp 0x44b2b0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x44b2a2
mov dword [0x45fe20], 2
jmp 0x44b2b4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
cmp dword [0x45fe20], 1
jne 0x44b363
test edi, edi
jne 0x44b2d7
call esi
mov edi, eax
test edi, edi
jne 0x44b2d7
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x44b2f1
add esi, 2
cmp word [esi], 0
jne 0x44b2df
add esi, 2
cmp word [esi], 0
jne 0x44b2df
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x44b352
push ebp
call fcn.00446800
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x44b352
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x44b341
push ebx
call fcn.00444e70
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x45fe20], 2
jne 0x44b3e7
test ebx, ebx
jne 0x44b386
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x44b386
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x44b39b
inc ebp
cmp byte [ebp], 0
jne 0x44b38d
inc ebp
cmp byte [ebp], 0
jne 0x44b38d
sub ebp, ebx
inc ebp
push ebp
call fcn.00446800
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x44b3c0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x44b710
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x460040
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x44b737
add eax, 8
inc ecx
cmp eax, 0x4600c8
jb 0x44b728
cmp dword [ecx*8 + 0x460040], edx
lea ebx, [ecx*8]
jne 0x44b8f2
cmp dword [0x45fa7c], 1
je 0x44b8b7
cmp dword [0x45fa7c], 0
jne 0x44b76e
cmp dword [0x45fa80], 1
je 0x44b8b7
cmp edx, 0xfc
je 0x44b8f2
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x44b7ab
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x44b7ef
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x452a30
push ebp
call fcn.00445aa0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x457478
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x460044]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0044e040
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4644f0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x44b8ce
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x460044]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x44efc0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00444540
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp esi, dword [0x4645f0]
jae 0x44f10d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x4644f0]
test byte [edx + ecx*8 + 4], 1
je 0x44f10d
push 1
push ebx
push esi
call fcn.00447a60
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x44f0fd
push 2
push ebx
push esi
call fcn.00447a60
add esp, 0xc
cmp eax, 0xffffffff
je 0x44f0fd
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x44f0a3
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.0044d0b0
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x44f066
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004475c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x44f082
sub ebp, eax
test ebp, ebp
jg 0x44f05b
jmp 0x44f097
cmp dword [0x45fa94], 5
jne 0x44f095
mov dword [0x45fa90], 0xd
mov ebx, eax
push edi
push esi
call fcn.0044d0b0
add esp, 8
jmp 0x44f0e0
jge 0x44f0e0
push 0
push ecx
push esi
call fcn.00447a60
add esp, 0xc
push esi
call fcn.0044d3b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x44f0e0
mov dword [0x45fa90], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x45fa94], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.00447a60
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x45fa90], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret