joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469300
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x4873a4]
test eax, eax
je 0x469347
push esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push 0x4a4e74
push 0
push esi
push 0x469400
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push esi
mov dword [0x4a4e80], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x469ee0
Capabilities:
Enumerate pe sections
Get disk information

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 4
mov esi, dword [ebp + 0x3c]
push eax
push ebp
add esi, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [esp + 0x20]
mov ecx, ebx
and ecx, 0x1f
cmp cl, 0x1f
je 0x469f3b
cmp byte [esp + 0x10], 0x5c
je 0x469f3b
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea edx, [esp + 0x10]
push edx
mov byte [esp + 0x17], 0
call edi
lea eax, [esp + 0x10]
push eax
call edi
lea ecx, [eax - 2]
mov eax, 1
shl eax, cl
and eax, 0x1f
jmp 0x469f40
mov eax, 0xd
xor ecx, ecx
test eax, eax
sete cl
test ebx, ecx
jne 0x469fe7
push str.WIN:_Loading_executable_file_into_memory
call fcn.0045d3a0
mov edx, dword [esi + 0x54]
add esp, 4
push edx
push ebp
call fcn.0046a000
add esp, 8
test eax, eax
jne 0x469f75
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor ebx, ebx
cmp word [esi + 6], bx
jbe 0x469fe7
xor edi, edi
xor ecx, ecx
lea eax, [esi + edi]
mov cx, word [esi + 0x14]
mov edx, dword [eax + ecx + 0x24]
lea ecx, [eax + ecx + 0x18]
cmp dword [esi + 0x88], edx
jne 0x469fa4
mov eax, dword [esp + 0x20]
shr eax, 7
and eax, 1
jmp 0x469fa9
mov eax, 1
test eax, eax
je 0x469fc2
mov eax, dword [ecx + 8]
lea ecx, [ebp + edx]
push eax
push ecx
call fcn.0046a000
add esp, 8
test eax, eax
je 0x469fdd
xor edx, edx
inc ebx
mov dx, word [esi + 6]
add edi, 0x28
cmp ebx, edx
jl 0x469f7f
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x46a000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
mov eax, dword [0x4a4e88]
sub esp, 0x24
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x46a025
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x14]
mov dword [0x4a4e88], ecx
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
lea ebp, [edx + edi]
cmp edi, ebp
jae 0x46a124
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x10]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
jne 0x46a11a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
lea esi, [eax + ecx]
cmp esi, ebp
jbe 0x46a066
mov esi, ebp
cmp dword [esp + 0x20], 0x1000
jne 0x46a0eb
mov ecx, dword [esp + 0x24]
test ch, 1
jne 0x46a0e9
cmp ecx, 1
je 0x46a0e9
cmp ecx, 8
je 0x46a0b5
cmp ecx, 0x80
je 0x46a0b5
lea edx, [esp + 0x38]
mov ecx, esi
push edx
sub ecx, eax
push 0x40
push ecx
push eax
call ebx
test eax, eax
je 0x46a11a
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jne 0x46a100
mov eax, dword [esp + 0x10]
mov edx, 1
jmp 0x46a0b7
xor edx, edx
cmp eax, esi
jae 0x46a0d3
mov ecx, dword [eax]
mov dword [eax], ecx
mov edi, dword [0x4a4e88]
add eax, edi
cmp eax, esi
jb 0x46a0bb
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
test edx, edx
je 0x46a0e9
lea edx, [esp + 0x38]
push edx
push ecx
mov ecx, esi
sub ecx, eax
push ecx
push eax
call ebx
test eax, eax
je 0x46a11a
mov edi, esi
cmp edi, ebp
jb 0x46a03e
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x18]
sub esi, eax
push esi
push eax
call ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret
Function at 0x4723ac
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
xor ebx, ebx
mov cl, byte [0x4a6e48]
and ecx, 0xff
je 0x4724dd
push ebx
push ecx
cmp dword [ebx + 0x4a5338], 0xffffffff
jne 0x4724cf
cmp byte [ebx + 0x4a5326], 0xff
jne 0x4724cf
cmp byte [ebx + 0x4a5325], 0xff
jne 0x4724cf
mov esi, dword [ebx + 0x4a52fc]
mov edi, dword [ebx + 0x4a52f4]
mov ecx, dword [ebx + 0x4a52f8]
sub ecx, edi
sub esi, edi
shr ecx, 1
cmp esi, ecx
jae 0x472407
add edi, ecx
cmp dword [ebx + 0x4a52f0], edi
je 0x4724cf
mov dword [ebx + 0x4a52f0], edi
lea eax, [ebx + 0x4a52ec]
mov ebp, edi
test byte [ebx + 0x4a5310], 0x40
je 0x472434
shl ecx, 1
mov edi, dword [ebx + 0x4a52f8]
add edi, ecx
test byte [ebx + 0x4a5310], 4
je 0x472443
shl ecx, 1
shl edi, 1
shl ebp, 1
pushal
push ecx
push edi
push eax
call dword [0x4a6ee4]
add esp, 0xc
popal
test byte [ebx + 0x4a5310], 0x40
jne 0x472477
test byte [ebx + 0x4a5310], 2
je 0x4724cf
test byte [ebx + 0x4a5310], 4
jne 0x4724cf
xor byte [edi], 0x80
add edi, 1
dec ecx
jne 0x47246c
jmp 0x4724cf
mov ecx, dword [ebx + 0x4a52f8]
sub ecx, dword [ebx + 0x4a52f4]
mov edx, ecx
shr ecx, 1
mov esi, edi
mov edi, ebp
test byte [ebx + 0x4a5310], 4
jne 0x4724ba
xor bp, bp
test byte [ebx + 0x4a5310], 2
je 0x4724a4
mov bp, 0x8080
mov ax, word [esi]
add esi, 2
xor ax, bp
mov byte [edi], al
mov byte [edi + edx], ah
add edi, 1
dec ecx
jne 0x4724a4
jmp 0x4724cf
mov eax, dword [esi]
add esi, 4
mov word [edi], ax
shr eax, 0x10
mov word [edi + edx*2], ax
add edi, 2
dec ecx
jne 0x4724ba
pop ecx
pop ebx
add ebx, 0x50
loop 0x4724d8
jmp 0x4724dd
jmp 0x4723c0
ret
Function at 0x4724de
Capabilities:
Packed with generic packer

Disassembly:
pushal
inc dword [0x4a6e9c]
cmp byte [0x4a6e8c], 1
jne 0x4726f4
test byte [0x4a6e8e], 2
jne 0x4725f1
cmp byte [0x4a6dfa], 0x3f
je 0x4725e7
mov word [0x4a6df0], 0
xor eax, eax
push eax
push eax
push eax
call dword [0x4a6ee4]
add esp, 0xc
test eax, eax
je 0x472538
mov byte [0x4a6dfa], 0x3f
mov dword [0x4a6dec], eax
jmp 0x4725e7
xor ebx, ebx
mov bl, byte [0x4a6df8]
cmp bl, 0xff
je 0x472561
cmp bl, byte [0x4a6e3d]
jb 0x4725a5
mov byte [0x4a6e8c], 0
cmp byte [0x4a6e8d], 1
jne 0x4726f4
mov al, byte [0x4a6e89]
mov byte [0x4a6df7], al
mov byte [0x4a6dfb], al
mov al, byte [0x4a6e8a]
mov byte [0x4a6df6], al
xor edx, edx
imul eax, dword [0x4a6e90], 0x3c
movzx ebx, byte [0x4a6e8a]
movzx ebp, byte [0x4a6e89]
imul ebp, ebx
div ebp
mov word [0x4a6e96], ax
mov byte [0x4a6e8c], 1
mov bl, 0xff
inc bl
mov byte [0x4a6df8], bl
cmp byte [ebx + 0x4a68ec], 0xfe
je 0x472538
cmp byte [ebx + 0x4a68ec], 0xff
je 0x47254d
mov dword [0x4a6dec], 0
mov byte [0x4a6dfa], 0x3f
mov bl, byte [ebx + 0x4a68ec]
mov esi, dword [ebx*4 + 0x4a69ec]
test esi, esi
je 0x4725e7
mov dword [0x4a6dec], esi
call fcn.0047131b
jmp 0x4726f4
dec byte [0x4a6dfb]
jne 0x4726f4
mov al, byte [0x4a6df7]
mov byte [0x4a6dfb], al
dec byte [0x4a6df9]
jns 0x4726f4
inc byte [0x4a6df9]
mov al, byte [0x4a6df4]
sub al, byte [0x4a6dfa]
and al, byte [0x4a6df5]
jne 0x4726ef
mov byte [0x4a6df4], 0xff
mov byte [0x4a6df5], 0xff
xor ebx, ebx
mov bl, byte [0x4a6df8]
cmp bl, 0xff
je 0x472667
cmp bl, byte [0x4a6e3d]
jb 0x4726a7
mov byte [0x4a6e8c], 0
cmp byte [0x4a6e8d], 1
jne 0x4726f4
mov al, byte [0x4a6e89]
mov byte [0x4a6df7], al
mov byte [0x4a6dfb], al
mov al, byte [0x4a6e8a]
mov byte [0x4a6df6], al
mov eax, dword [0x4a6e90]
lea eax, [eax + eax*4]
movzx ebp, byte [0x4a6df6]
shld edx, eax, 0x10
shl ebp, 1
div bp
mov word [0x4a6e96], ax
mov byte [0x4a6e8c], 1
mov bl, 0xff
inc bl
mov byte [0x4a6df8], bl
cmp byte [ebx + 0x4a68ec], 0xfe
je 0x47263e
cmp byte [ebx + 0x4a68ec], 0xff
je 0x472653
mov dword [0x4a6dec], 0
mov byte [0x4a6dfa], 0x3f
mov bl, byte [ebx + 0x4a68ec]
mov esi, dword [ebx*4 + 0x4a69ec]
test esi, esi
je 0x4726ef
lodsb al, byte [esi]
mov dword [0x4a6dec], esi
mov byte [0x4a6dfa], al
call fcn.0047159f
call fcn.0047186f
call fcn.004720b6
call fcn.00472313
call fcn.004723ac
popal
ret
Function at 0x472f4e
Capabilities:
Packed with generic packer

Disassembly:
enter 0, 0
push es
push dword [0x4a52e2]
pushal
mov eax, dword [ebp + 8]
mov dword [0x4a52e2], eax
mov ax, word [ebp + 0xc]
cmp ax, 0x800
jbe 0x472f70
mov ax, 0x800
sub word [ebp + 0xc], ax
mov word [0x4a6ea0], ax
push ebp
call fcn.00472be3
mov eax, dword [0x48acda]
movzx ebx, word [0x4a6ea0]
mov ecx, dword [0x4a6ec0]
mov edx, 0x48acde
mov esi, dword [0x4a6ea8]
add esi, 0x4000
mov edi, dword [0x4a6ea8]
mov ebp, dword [0x48acd6]
call dword [0x4a6eb8]
mov dword [0x48acd6], ebp
mov dword [0x48acda], eax
call fcn.00472eae
pop ebp
xor eax, eax
mov ax, word [0x4a6ea0]
mov cl, byte [0x4a6ed7]
and cl, 1
shl eax, cl
mov cl, byte [0x4a52c1]
and cl, 2
shr cl, 1
shl eax, cl
add dword [0x4a52e2], eax
cmp word [ebp + 0xc], 0
jne 0x472f62
mov dword [esp + 0x1c], 0
popal
pop dword [0x4a52e2]
pop es
leave
ret
Function at 0x47b220
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483070
push 0x47ee68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4a88a8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4a88a4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4a88a0], ecx
shr eax, 0x10
mov dword [0x4a889c], eax
call fcn.0047ed30
test eax, eax
jne 0x47b28a
push 0x1c
call fcn.0047b3f0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0047eb30
call fcn.0047eb20
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x58d04c], eax
call fcn.0047e500
mov dword [0x4a8884], eax
test eax, eax
je 0x47b2bd
mov eax, dword [0x58d04c]
test eax, eax
jne 0x47b2c7
push 0xffffffffffffffff
call fcn.0047b790
add esp, 4
call fcn.0047e250
call fcn.0047e160
call fcn.0047b760
mov esi, dword [0x58d04c]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x47b3a6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x47b30e
test al, al
je 0x47b30e
and eax, 0xff
push eax
call fcn.0047e100
add esp, 4
test eax, eax
je 0x47b2e8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x47b2e8
cmp byte [esi], 0x22
jne 0x47b317
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x47b327
cmp al, 0x20
ja 0x47b327
inc esi
mov dword [ebp - 0x64], esi
jmp 0x47b317
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x47b348
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x47b34d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0047b790
jmp 0x47b38b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x47b317
inc esi
mov dword [ebp - 0x64], esi
jmp 0x47b3a6

Function at 0x47b3f0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4a888c], 1
jne 0x47b3fe
call fcn.0047ef40
mov eax, dword [esp + 4]
push eax
call fcn.0047ef80
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x47b7d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4a88d8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x47b7ef
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x4a88d4], 1
mov byte [0x4a88d0], bl
jne 0x47b849
mov ecx, dword [0x58d048]
test ecx, ecx
je 0x47b837
mov esi, dword [0x58d044]
sub esi, 4
cmp esi, ecx
jb 0x47b837
mov eax, dword [esi]
test eax, eax
je 0x47b830
call eax
mov ecx, dword [0x58d048]
sub esi, 4
cmp esi, ecx
jae 0x47b822
push 0x48401c
push 0x484014
call fcn.0047b880
add esp, 8
push 0x484024
push 0x484020
call fcn.0047b880
add esp, 8
test ebx, ebx
jne 0x47b870
push ebp
mov dword [0x4a88d8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x47da20
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x58d040]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x47dbcd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x58cf40]
lea edi, [ecx*4 + 0x58cf40]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x47dbcd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x47da8e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x47da9f
push 2
push ebp
push eax
call fcn.0047fbd0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x47dbfe
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x47db49
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x47dafa
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x47dae7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x47daca
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47dbef
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x47db45
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x47dac6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x47dbbe
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47db92
cmp eax, 5
jne 0x47db7b
mov dword [0x4a8894], eax
mov dword [0x4a8890], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00480d00
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x47dbb2
cmp byte [ebp], 0x1a
jne 0x47dbb2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4a8890], 0x1c
jmp 0x47dbd7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4a8890], 9
pop edi
pop esi
pop ebp
mov dword [0x4a8894], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x47db45
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47dc2f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x47db49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x47db49
Function at 0x47e500
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4a89f8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x47e542
call edi
mov esi, eax
test esi, esi
je 0x47e52c
mov eax, 1
jmp 0x47e53d
call ebp
mov ebx, eax
test ebx, ebx
je 0x47e64f
mov eax, 2
mov dword [0x4a89f8], eax
cmp eax, 1
jne 0x47e5e2
test esi, esi
jne 0x47e55b
call edi
mov esi, eax
test esi, esi
je 0x47e64f
cmp word [esi], 0
mov eax, esi
je 0x47e575
add eax, 2
cmp word [eax], 0
jne 0x47e563
add eax, 2
cmp word [eax], 0
jne 0x47e563
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x47e5d4
push edi
call fcn.0047be70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47e5d4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x47e5c6
push ebx
call fcn.0047be20
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x47e64f
test ebx, ebx
jne 0x47e5f3
call ebp
mov ebx, eax
test ebx, ebx
je 0x47e64f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x47e60b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x47e5fb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x47e5fb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0047be70
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x47e62d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x47ef80
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x49b570
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x47efa4
add eax, 8
inc ebp
cmp eax, 0x49b600
jb 0x47ef95
cmp ecx, dword [ebp*8 + 0x49b570]
jne 0x47f14b
mov eax, dword [0x4a888c]
cmp eax, 1
je 0x47f10d
test eax, eax
jne 0x47efd0
cmp dword [0x49b3a4], 1
je 0x47f10d
cmp ecx, 0xfc
je 0x47f14b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47f00b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x47f054
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x483404
add ebx, ecx
push ebx
call fcn.0047b120
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4833e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x49b574]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00481530
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x58cf40]
test eax, eax
je 0x47f11e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x47f128
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x49b574]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor 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 edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x482350
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004828a0
mov eax, dword [0x58d040]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x4824b2
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x58cf40]
test byte [edx + ecx*8 + 4], 1
je 0x4824b2
push 1
push ebp
push ebx
call fcn.0047fbd0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x4824bc
push 2
push ebp
push ebx
call fcn.0047fbd0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4824bc
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x482458
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00482820
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4823ff
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0047da20
add esp, 0xc
cmp eax, 0xffffffff
je 0x48241b
sub esi, eax
test esi, esi
jle 0x482431
jmp 0x4823f0
cmp dword [0x4a8894], 5
jne 0x48242e
mov dword [0x4a8890], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00482820
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0047fbd0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x482499
push 0
push ecx
push ebx
call fcn.0047fbd0
add esp, 0xc
push ebx
call fcn.00480f80
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x482499
mov dword [0x4a8890], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4a8894], eax
push 0
push edi
push ebx
call fcn.0047fbd0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x4a8890], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x492ece
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xd391475
sar byte [ebx + 0x74], 1
add dword [esi + 0xc], edi
mov dword [esi + 0x21a0], ebx
mov dword [esi + 0x2198], ebx
cmp dword [esi + 0x2198], ebx
je 0x49314b
mov edx, dword [esi + 0x21c4]
lea eax, [esi + 0x2178]
mov dword [eax], edx
mov edx, dword [esi + 0x21c8]
push ebx
push eax
mov eax, dword [esi + 0x94]
mov dword [esi + 0x217c], edx
mov edx, dword [esi + 0x48]
mov dword [esi + 0x2180], ecx
mov ecx, dword [esi + 0x44]
push ebx
mov dword [esi + 0x2184], esi
mov dword [esi + 0x2188], ecx
mov dword [esi + 0x218c], edx
mov dword [esi + 0x2190], ebx
mov dword [esi + 0x2194], ebx
mov dword [esi + 0x21dc], ebx
mov dword [esi + 0x21e8], ebx
call fcn.0056579e
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x38]
mov ebp, dword [esi + 0x58]
add esp, 0xc
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x34]
push 0x10
push 0x1c
mov dword [esp + 0x24], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
call dword [0x60c4b4]
mov edi, eax
mov eax, dword [esp + 0x2c]
add eax, 0xf
add ebp, 0xf
add esp, 8
and eax, 0xfffffff0
and ebp, 0xfffffff0
cmp edi, ebx
je 0x493142
mov ecx, dword [esp + 0x74]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
lea edx, [ecx - 0x65]
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
cmp edx, 0x11
ja 0x493142
movzx edx, byte [edx + 0x409318]
jmp dword [edx*4 + 0x4092fc]
push ds
aad 0xfa
pop ecx
sbb ch, byte [ecx + 0x77]
pop es
pop ds
sal ebx, 1
clc
lds edi, [esi + 3]
cmp cl, al
movsd dword es:[edi], dword [esi]
pop esp
invalid