joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad77bae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x3ad77bbd
pop dword [ebp - 0x14]
mov eax, 0x4e088599
add eax, 0xeccef624
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3954e
push 0
mov eax, 0x16e5f755
add eax, 0x23f1195f
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x7b325319
sub ecx, 0x7b32042a
mov ebx, eax
mov esi, 0x2d795875
sub esi, 0xf2a0ca75
add esi, dword [ebp - 0x14]
mov edx, 0xf11cde25
add edx, 0x2589bf1e
add dword [ebp - 0x10], 0xdc690c9
mov edi, dword [esi]
sub dword [ebp - 4], 0xb163d57a
xor edi, edx
mov dword [ebp - 4], 0x878ea688
mov dword [ebx], edi
add dword [ebp - 4], esi
add ebx, 0x1370d17f
add ebx, 0xec8f2e85
add esi, 4
loop 0x3ad77c1c
add eax, 0x12e8f
xor ebx, ebx
add ebx, eax
add eax, 0x99c868b8
sub eax, 0x99c868b3
mov ecx, 0x7b65e9ac
sub ecx, 0x408ee9ac
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x41e65d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x432040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41e6a8
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041e7fc
test al, al
jne 0x41e6a2
sub edx, 2
cmp edx, edi
jne 0x41e688
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41e6ca
lea eax, [edi + 2]
cmp edx, eax
je 0x41e6ca
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041e5a9
add esp, 0x10
jmp 0x41e7c4
push esi
lea ecx, [ebp - 0x255]
call fcn.0041e7fc
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41e70d
push dword [ebp - 0x25c]
jmp 0x41e6ba
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41e74a
cmp word [ebp - 0x226], 0
je 0x41e76b
cmp word [ebp - 0x226], ax
jne 0x41e74a
cmp word [ebp - 0x224], 0
je 0x41e76b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041e5a9
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41e7b7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41e724
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41e79f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41e7c4
push 0x41e3d9
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00423fe0
add esp, 0x10
jmp 0x41e794
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040adcd
leave
ret

Function at 0x425f00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425f2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425f2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4abb60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x51000]
push edi
or ebp, 0xffffffff
jmp 0x4abb82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4abb89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4abb78
mov eax, 1
add ebx, ebx
jne 0x4abb9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4abbac
jne 0x4abbbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4abbbc
dec eax
add ebx, ebx
jne 0x4abbb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4abb90
xor ecx, ecx
sub eax, 3
jb 0x4abbd4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4abc46
sar eax, 1
mov ebp, eax
jmp 0x4abbdf
add ebx, ebx
jne 0x4abbdf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4abbec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4abc10
inc ecx
add ebx, ebx
jne 0x4abbfc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4abbf1
jne 0x4abc0d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4abbf1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4abc30
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4abc21
jmp 0x4abb7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4abc30
add edi, ecx
jmp 0x4abb7e
pop esi
mov edi, esi
mov ecx, 0x20c5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4abc4e
cmp byte [edi], 0xd
jne 0x4abc4e
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 eax, ebx
loop 0x4abc53
lea edi, [esi + 0xa8000]
mov eax, dword [edi]
or eax, eax
je 0x4abcc2
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xac28c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xac340]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4abc80
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xac344]
or eax, eax
je 0x4abcbc
mov dword [ebx], eax
add ebx, 4
jmp 0x4abc9d
call dword [esi + 0xac348]
popal
jmp 0x43fe54
Function at 0x401000
Capabilities:
Check mutex on windows
Check os version

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
mov dword [0x4109a8], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.SimpleMindedSUCatReg
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x401038
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401038
xor eax, eax
pop esi
ret 0x10
push 0x412320
mov dword [0x412320], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x412324], 4
jb 0x401097
cmp dword [0x412328], 0xa
jb 0x401097
push 1
call fcn.00401590
add esp, 4
test eax, eax
je 0x401097
mov esi, dword [esp + 0x10]
push esi
call fcn.00401aa0
add esp, 4
push esi
call fcn.004010a0
add esp, 4
call fcn.004011e0
call fcn.004022e0
push 0
call fcn.00401590
add esp, 4
mov eax, 1
pop esi
ret 0x10

Function at 0x4010a0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov edi, dword [esp + 0x218]
xor ebx, ebx
test edi, edi
je 0x4011ce
cmp byte [edi], 0
je 0x4011ce
mov eax, dword [0x4109ac]
test eax, eax
jne 0x4011ce
mov eax, dword [0x4109b0]
test eax, eax
jne 0x4011ce
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
lea ecx, [esp + 0xc]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [esp + 0xc]
test al, al
je 0x4011ce
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [esp + 0xc]
push edx
call esi
test eax, eax
je 0x4011ce
push 0x40e044
call esi
test eax, eax
je 0x4011ce
push str.CATALOG
call esi
test eax, eax
jne 0x401157
push eax
push str.CATALOG
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4011ce
push str.CATALOG
call esi
test eax, eax
je 0x4011ce
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x110]
push edi
push eax
call esi
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x110]
push eax
push edx
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [esp + 0x110]
push 0x40e038
push eax
call fcn.00408ab0
add esp, 8
test eax, eax
je 0x4011c2
add eax, 3
lea ecx, [esp + 0xc]
push eax
push ecx
call esi
lea edx, [esp + 0xc]
push edx
call fcn.00401dd0
add esp, 4
mov ebx, eax
pop edi
pop esi
pop ebx
add esp, 0x208
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x208
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x401590
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor edi, edi
cmp ebp, edi
mov ebx, 1
je 0x401633
push str.MSCAT32.DLL
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x410990], eax
je 0x401638
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminAcquireContext
push eax
call esi
cmp eax, edi
mov dword [0x410994], eax
je 0x401633
mov eax, dword [0x410990]
push str.CryptCATAdminAddCatalog
push eax
call esi
cmp eax, edi
mov dword [0x410998], eax
je 0x401633
mov ecx, dword [0x410990]
push str.CryptCATCatalogInfoFromContext
push ecx
call esi
cmp eax, edi
mov dword [0x41099c], eax
je 0x401633
mov edx, dword [0x410990]
push str.CryptCATAdminReleaseCatalogContext
push edx
call esi
cmp eax, edi
mov dword [0x4109a0], eax
je 0x401633
mov eax, dword [0x410990]
push str.CryptCATAdminReleaseContext
push eax
call esi
cmp eax, edi
mov dword [0x4109a4], eax
je 0x401633
mov ebx, 1
mov eax, dword [0x410990]
cmp ebp, edi
je 0x401640
cmp ebx, edi
jne 0x40166f
cmp eax, edi
je 0x40166f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x410990], edi
mov dword [0x410994], edi
mov dword [0x410998], edi
mov dword [0x41099c], edi
mov dword [0x4109a0], edi
mov dword [0x4109a4], edi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret

Function at 0x4016a0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x518
mov edx, dword [esp + 0x51c]
lea eax, [esp]
push ebx
lea ecx, [esp + 8]
push eax
push ecx
xor ebx, ebx
push 0x104
push edx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x18], bl
mov byte [esp + 0x11c], bl
mov byte [esp + 0x220], bl
mov byte [esp + 0x324], bl
mov byte [esp + 0x428], bl
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [esp + 4]
cmp eax, ebx
je 0x4017a2
cmp byte [eax], bl
je 0x4017a2
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4017a2
mov ecx, dword [esp + 4]
push ecx
call fcn.00402220
add esp, 4
test eax, eax
jne 0x4017a2
lea edx, [esp + 0x210]
push 0xd
push edx
call fcn.00401680
add esp, 8
lea eax, [esp + 0x314]
push 0xe
push eax
call fcn.00401680
add esp, 8
lea ecx, [esp + 8]
lea edx, [esp + 0x10c]
lea eax, [esp + 0x418]
push ecx
push 0x104
push edx
lea ecx, [esp + 0x320]
push eax
lea edx, [esp + 0x220]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, ebx
je 0x4017a2
cmp byte [esp + 0x10c], bl
je 0x4017a2
lea eax, [esp + 0x10c]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00402310
add esp, 8
push eax
call fcn.004021a0
add esp, 4
pop ebx
add esp, 0x518
ret
Function at 0x4017b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
push esi
mov esi, dword [esp + 0x42c]
push edi
lea eax, [esp + 0x11c]
mov edi, dword [esi + 8]
push 0x104
push eax
call ebx
push 0
lea ecx, [esp + 0x10]
push 0
lea edx, [esp + 0x124]
push ecx
push edx
push 0
push 8
push edi
mov dword [esp + 0x28], 0x104
call sub.CFGMGR32.dll_CM_Get_DevNode_Registry_Property_ExA
lea eax, [esp + 0x11c]
push 0x104
push eax
call ebx
push 0
lea ecx, [esp + 0x10]
add esi, 0xc
push 0
push ecx
push esi
push 0
push 0xa
push edi
mov dword [esp + 0x28], 0x104
call sub.CFGMGR32.dll_CM_Get_DevNode_Registry_Property_ExA
test eax, eax
je 0x40183f
lea edx, [esp + 0x11c]
push 0xc
push edx
call fcn.00401680
add esp, 8
test esi, esi
je 0x401924
cmp byte [esi], 0
je 0x401924
lea eax, [esp + 0x18]
push 1
push eax
call fcn.00401680
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 8
lea ecx, [esp + 0x18]
push esi
push ecx
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0x80000002
call ebx
test eax, eax
je 0x4018b4
lea ecx, [esp + 0x18]
push 2
push ecx
call fcn.00401680
add esp, 8
lea edx, [esp + 0x18]
push esi
push edx
call edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x80000002
call ebx
test eax, eax
jne 0x401924
lea edx, [esp + 0x18]
push 3
push edx
mov dword [esp + 0x14], 0x104
call fcn.00401680
add esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401919
lea edx, [esp + 0x11c]
lea eax, [esp + 0x220]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x11c]
push ecx
call fcn.004016a0
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x41c
ret
Function at 0x403d6c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x403db3
cmp edx, 0x10
jl 0x403d9f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x403d8c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x403db3
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x403dab
and edx, 3
cmp edx, 3
jne 0x403dc7
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x403dcc
cmp edx, 2
jne 0x403dd8
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x403ddd
cmp edx, 1
jne 0x403de3
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x409270
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4138e0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40941d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x4137e0]
lea edi, [ecx*4 + 0x4137e0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40941d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4092de
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x4092ef
push 2
push ebp
push eax
call fcn.00409570
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40944e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x409399
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40934a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x409337
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 0x40931a
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 0x40943f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x409395
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x409316
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40940e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4093e2
cmp eax, 5
jne 0x4093cb
mov dword [0x411b44], eax
mov dword [0x411b40], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040a660
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 0x409402
cmp byte [ebp], 0x1a
jne 0x409402
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x411b40], 0x1c
jmp 0x409427
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x411b40], 9
pop edi
pop esi
pop ebp
mov dword [0x411b44], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x409395
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 0x40947f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x409399
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x409399
Function at 0x409630
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d130
push 0x40b4c8
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 [0x411b58], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x411b54], ecx
shl ecx, 8
add ecx, edx
mov dword [0x411b50], ecx
shr eax, 0x10
mov dword [0x411b4c], eax
call fcn.00409920
test eax, eax
jne 0x40969a
push 0x1c
call fcn.00409800
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040a200
call fcn.0040b3c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4138e8], eax
call fcn.0040ada0
mov dword [0x411b28], eax
test eax, eax
je 0x4096cd
mov eax, dword [0x4138e8]
test eax, eax
jne 0x4096d7
push 0xffffffffffffffff
call fcn.0040a700
add esp, 4
call fcn.0040aaf0
call fcn.0040aa00
call fcn.0040a6d0
mov esi, dword [0x4138e8]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4097b6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40971e
test al, al
je 0x40971e
and eax, 0xff
push eax
call fcn.0040a9a0
add esp, 4
test eax, eax
je 0x4096f8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4096f8
cmp byte [esi], 0x22
jne 0x409727
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x409737
cmp al, 0x20
ja 0x409737
inc esi
mov dword [ebp - 0x64], esi
jmp 0x409727
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x409758
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40975d
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.0040a700
jmp 0x40979b
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 0x409727
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4097b6

Function at 0x409800
Capabilities:
Terminate process

Disassembly:
cmp dword [0x411b30], 1
jne 0x40980e
call fcn.0040b5a0
mov eax, dword [esp + 4]
push eax
call fcn.0040b5e0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40a080
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0040b840
mov eax, dword [0x4138e0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x40a1e2
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x4137e0]
test byte [edx + ecx*8 + 4], 1
je 0x40a1e2
push 1
push ebp
push ebx
call fcn.00409570
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40a1ec
push 2
push ebp
push ebx
call fcn.00409570
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a1ec
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x40a188
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.0040b7c0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x40a12f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00409270
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a14b
sub esi, eax
test esi, esi
jle 0x40a161
jmp 0x40a120
cmp dword [0x411b44], 5
jne 0x40a15e
mov dword [0x411b40], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.0040b7c0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00409570
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x40a1c9
push 0
push ecx
push ebx
call fcn.00409570
add esp, 0xc
push ebx
call fcn.0040a610
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 0x40a1c9
mov dword [0x411b40], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x411b44], eax
push 0
push edi
push ebx
call fcn.00409570
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x411b40], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret

Function at 0x40a740
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x411b88]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40a75f
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 [0x411b84], 1
mov byte [0x411b80], bl
jne 0x40a7b9
mov ecx, dword [0x4137bc]
test ecx, ecx
je 0x40a7a7
mov esi, dword [0x4137b8]
sub esi, 4
cmp esi, ecx
jb 0x40a7a7
mov eax, dword [esi]
test eax, eax
je 0x40a7a0
call eax
mov ecx, dword [0x4137bc]
sub esi, 4
cmp esi, ecx
jae 0x40a792
push 0x40e014
push 0x40e010
call fcn.0040a7f0
add esp, 8
push 0x40e01c
push 0x40e018
call fcn.0040a7f0
add esp, 8
test ebx, ebx
jne 0x40a7e0
push ebp
mov dword [0x411b88], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret