joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4054a0
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x4b2c48], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x4054e0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [0x4a8508]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4a850c]
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00405499
mov eax, dword [0x4a8510]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4a8514]
add ebx, 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x4b2c48], 0xc
mov dword [ebp - 4], eax
jne 0x405576
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x834]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x4b2c48]
cmp eax, 0xfa9
jne 0x405592
mov dword [0x4b21e4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40559f
mov dword [0x4b1b90], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x4b21e0], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x4b2c48], 0x213
mov dword [ebp - 0x14], edx
jne 0x4055d9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00405493
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x24]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x40551c
cmp dword [0x4b2c48], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x405642
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x40564b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b2c48]
mov ecx, dword [0x4b1b98]
sub esp, 0x944
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4056bb
mov edi, ecx
mov ebx, eax
cmp dword [0x4b2c48], 0x959
jne 0x4056af
push esi
lea eax, [ebp - 0x940]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
call fcn.004054a0
add edi, 8
dec ebx
jne 0x40566f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4059af
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x4b2c48], 0x400
push edi
jne 0x405a16
push esi
push esi
call fcn.00405ee5
push esi
push esi
call fcn.00405ee5
push esi
push esi
call fcn.00406148
push esi
push esi
push esi
call fcn.00406569
add esp, 0x20
mov dword [esp], esi
call fcn.00405417
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004053f4
fstp st(0)
push esi
call fcn.0040661f
pop ecx
push esi
push esi
call fcn.00405dd9
pop ecx
pop ecx
mov eax, dword [0x4a8b94]
mov dword [0x4b2c48], eax
mov eax, dword [0x4a8b6c]
mov dword [0x4b2c4c], eax
call fcn.004056da
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x405a7d
cmp dword [esp + 0x18], 0x785074d5
jne 0x405a8b
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x405a38
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x405174
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x405abc
cmp dword [esp + 0x18], 0x785074d5
jne 0x405ac5
inc edi
cmp edi, 0x11915
jl 0x405a8d
mov eax, dword [0x4b1b98]
mov dword [0x4b21dc], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406f90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a7118]
jne 0x406f9a
repz ret
jmp fcn.0040b5d2
Function at 0x40b2f5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040905d
and dword [ebp - 4], 0
cmp dword [0x4a9440], 0
mov ebx, eax
jne 0x40b3a6
push 0x4025c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b457
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4025b4
push edi
call esi
test eax, eax
je 0x40b457
push eax
call fcn.00408feb
mov dword [esp], 0x4025a4
push edi
mov dword [0x4a9440], eax
call esi
push eax
call fcn.00408feb
mov dword [esp], 0x402590
push edi
mov dword [0x4a9444], eax
call esi
push eax
call fcn.00408feb
mov dword [esp], 0x402574
push edi
mov dword [0x4a9448], eax
call esi
push eax
call fcn.00408feb
pop ecx
mov dword [0x4a9450], eax
test eax, eax
je 0x40b3a6
push 0x40255c
push edi
call esi
push eax
call fcn.00408feb
pop ecx
mov dword [0x4a944c], eax
mov eax, dword [0x4a944c]
cmp eax, ebx
je 0x40b3fe
cmp dword [0x4a9450], ebx
je 0x40b3fe
push eax
call fcn.00409066
push dword [0x4a9450]
mov esi, eax
call fcn.00409066
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b3fe
test edi, edi
je 0x40b3fe
call esi
test eax, eax
je 0x40b3f5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b3f5
test byte [ebp - 0xc], 1
jne 0x40b3fe
or dword [ebp + 0x10], 0x200000
jmp 0x40b437
mov eax, dword [0x4a9444]
cmp eax, ebx
je 0x40b437
push eax
call fcn.00409066
pop ecx
test eax, eax
je 0x40b437
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b437
mov eax, dword [0x4a9448]
cmp eax, ebx
je 0x40b437
push eax
call fcn.00409066
pop ecx
test eax, eax
je 0x40b437
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a9440]
call fcn.00409066
pop ecx
test eax, eax
je 0x40b457
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b459
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401290
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
and esp, 0xfffffff0
mov eax, 0
add eax, 0xf
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0xbec], eax
mov eax, dword [ebp - 0xbec]
call fcn.004018c0
call sym.___main
lea ecx, [ebp - 0xbe8]
mov edx, section..data
mov eax, 0x7d0
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call sym._memcpy
mov dword [esp + 4], str.Name
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sym._strcpy
mov dword [esp + 4], str._tAge
lea eax, [ebp - 0x218]
add eax, 0x64
mov dword [esp], eax
call sym._strcpy
mov dword [esp + 4], str._tCGPA_n_n
lea eax, [ebp - 0x218]
add eax, 0xc8
mov dword [esp], eax
call sym._strcpy
mov dword [esp + 4], str.Ahmad
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._strcpy
mov dword [esp + 4], str.Malisa
lea eax, [ebp - 0x418]
add eax, 0x64
mov dword [esp], eax
call sym._strcpy
mov dword [esp + 4], str.Naim
lea eax, [ebp - 0x418]
add eax, 0xc8
mov dword [esp], eax
call sym._strcpy
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 2
jg 0x4013ba
lea ecx, [ebp - 0x218]
mov edx, dword [ebp - 0xc]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
lea eax, [ecx + eax]
mov dword [esp + 4], eax
mov dword [esp], 0x403024
call sym._printf
lea eax, [ebp - 0xc]
inc dword [eax]
jmp 0x40137e
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 2
jg 0x40146b
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 1
jg 0x401461
mov edx, dword [ebp - 0xc]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 4
lea edx, [ebp - 8]
add eax, edx
sub eax, 0xbdc
fld dword [eax]
fstp qword [esp + 0x10]
mov edx, dword [ebp - 0xc]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 4
lea edx, [ebp - 8]
add eax, edx
sub eax, 0xbe0
fld dword [eax]
fstp qword [esp + 8]
lea ecx, [ebp - 0x418]
mov edx, dword [ebp - 0xc]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
lea eax, [ecx + eax]
mov dword [esp + 4], eax
mov dword [esp], str._s_t_.f_t_.2f_n_n
call sym._printf
lea eax, [ebp - 0x10]
inc dword [eax]
jmp 0x4013d2
lea eax, [ebp - 0xc]
inc dword [eax]
jmp 0x4013c1
mov dword [esp], str.pause
call sub.msvcrt.dll_system
mov eax, 0
leave
ret

Function at 0x401a90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x40219e
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
test edx, edx
jne 0x4021af
mov eax, 0xffffffff
jmp 0x4021e2
mov eax, dword [0x406020]
mov esi, dword [esp + 0x10]
mov ecx, esi
dec esi
test ecx, ecx
je 0x4021e2
movzx ecx, byte [edx]
xor ecx, eax
mov edi, dword [0x407430]
shr eax, 8
and ecx, 0xff
inc edx
mov ecx, dword [edi + ecx*4]
xor ecx, eax
mov eax, ecx
mov ecx, esi
dec esi
test ecx, ecx
jne 0x4021bf
pop edi
mov dword [0x406020], eax
not eax
pop esi
ret 8
Function at 0x402b8f
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
xor bx, bx
push edi
mov esi, dword [esp + 0x10]
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [esi + eax - 1]
cmp byte [edi], 0x5c
je 0x402bb6
inc edi
movzx eax, bx
inc bx
push eax
push str.GLC_04x.TMP
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push esi
call fcn.00403190
add esp, 8
test eax, eax
je 0x402bb6
pop edi
pop esi
pop ebx
ret

Function at 0x403090
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4062f8], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x4030ae
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4062f4], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4062f0], bl
jne 0x403108
cmp dword [0x407570], 0
je 0x4030f6
mov edi, dword [0x40756c]
sub edi, 4
cmp edi, dword [0x407570]
jb 0x4030f6
mov eax, dword [edi]
test eax, eax
je 0x4030eb
call eax
sub edi, 4
cmp edi, dword [0x407570]
jae 0x4030e3
push 0x406014
push 0x406010
call fcn.00403140
add esp, 8
push 0x40601c
push 0x406018
call fcn.00403140
add esp, 8
test ebx, ebx
jne 0x40312f
mov dword [0x4062f8], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret

Function at 0x403160
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x40317a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40318d
push eax
call fcn.00403b80
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4031b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403b80
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x4031da
test byte [esp + 8], 2
je 0x4031da
mov dword [0x4062b0], 0xd
mov dword [0x4062b4], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4031e0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x404880
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 [0x4062bc], eax
xor eax, eax
mov al, byte [0x4062bd]
mov dword [0x4062c8], eax
mov eax, dword [0x4062bc]
shr dword [0x4062bc], 0x10
and eax, 0xff
mov dword [0x4062c4], eax
shl eax, 8
add eax, dword [0x4062c8]
mov dword [0x4062c0], eax
call fcn.004033e0
test eax, eax
jne 0x403254
push 0x1c
call fcn.00403380
add esp, 4
mov dword [ebp - 4], 0
call fcn.004046a0
call fcn.00404690
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x407568], eax
call fcn.00404240
mov dword [0x4062fc], eax
test eax, eax
je 0x403287
cmp dword [0x407568], 0
jne 0x403291
push 0xffffffffffffffff
call fcn.00403050
add esp, 4
call fcn.00403fc0
call fcn.00403ed0
call fcn.00403020
mov esi, dword [0x407568]
mov al, byte [esi]
cmp al, 0x22
je 0x4032b8
cmp al, 0x20
jbe 0x4032e5
inc esi
cmp byte [esi], 0x20
ja 0x4032b0
jmp 0x4032e5
inc esi
cmp byte [esi], 0x22
je 0x4032e4
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4032df
xor eax, eax
mov al, bl
push eax
call fcn.00403e70
add esp, 4
test eax, eax
je 0x4032d9
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4032c1
cmp byte [esi], 0x22
jne 0x4032e5
inc esi
cmp byte [esi], 0
je 0x4032f5
cmp byte [esi], 0x20
ja 0x4032f5
inc esi
cmp byte [esi], 0
jne 0x4032ea
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 0x403319
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.00403050
jmp 0x40335a
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 0x404240
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x406d40], ebx
jne 0x40428f
call esi
cmp eax, ebx
mov edi, eax
je 0x40426d
mov dword [0x406d40], 1
jmp 0x40428f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x404285
mov dword [0x406d40], 2
jmp 0x40428f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x406d40], 1
jne 0x40433e
test edi, edi
jne 0x4042b2
call esi
mov edi, eax
test edi, edi
jne 0x4042b2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x4042cc
add esi, 2
cmp word [esi], 0
jne 0x4042ba
add esi, 2
cmp word [esi], 0
jne 0x4042ba
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 0x40432d
push ebp
call fcn.00402d70
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40432d
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 0x40431c
push ebx
call fcn.00402e20
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 [0x406d40], 2
jne 0x4043c2
test ebx, ebx
jne 0x404361
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x404361
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x404376
inc ebp
cmp byte [ebp], 0
jne 0x404368
inc ebp
cmp byte [ebp], 0
jne 0x404368
sub ebp, ebx
inc ebp
push ebp
call fcn.00402d70
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x40439b
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 0x4049a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x406f68
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x4049c7
add eax, 8
inc ecx
cmp eax, 0x406ff8
jb 0x4049b8
cmp dword [ecx*8 + 0x406f68], edx
lea ebx, [ecx*8]
jne 0x404b8b
cmp dword [0x406308], 1
je 0x404b47
cmp dword [0x406308], 0
jne 0x4049fe
cmp dword [0x40630c], 1
je 0x404b47
cmp edx, 0xfc
je 0x404b8b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x404a3b
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 0x404a7f
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 0x4052e0
push ebp
call fcn.00404c40
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, 0x4052c0
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 + 0x406f6c]
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.00404ba0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x407460], 0
je 0x404b5d
mov eax, dword [0x407460]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404b67
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x406f6c]
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 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x319e6eac
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x10ae28a5
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4013cf
Capabilities:
Encode data using xor

Disassembly:
jmp 0x411f5d
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x41207c
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.Soviet_aristo_baristo
mov ebp, 0x4f9448
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
sub byte [esi + edi], 0x32
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xa4
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xbc
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x9f
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x99
push ebx
push ebp
call fcn.00403490
add esp, 0x44
push eax
call fcn.004013b6
xor byte [esi + edi], 0x10
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x79
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x32
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x70
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 1
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x7d
add esp, 0x40
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xa6
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x4d
add esp, 0x24
inc esi
cmp esi, dword [esp + 0x18]
jb 0x411f7b
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x402946
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x41266f
sub esp, 0x20
mov eax, dword [0x4f7024]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + esi + 0x78]
add edi, esi
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
add ebx, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4126ee
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401e2e
push str.Hardline
push 0x4f9530
call fcn.00402d60
push eax
call fcn.00406082
lea eax, [esp + 0x20]
push 0x36c
push eax
call fcn.00402cc5
add esp, 0x14
cmp eax, dword [esp + 0x38]
je 0x412708
lea ecx, [esp + 0x14]
add ebx, 4
call fcn.00402982
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x4126a0
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403030
add esp, 0x20
ret 8
mov eax, dword [edi + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402982
jmp 0x4126f0