joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e03
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareDeskSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407e2d
xor al, al
jmp 0x407e5b
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
leave
ret

Function at 0x407f02
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareDeskSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407f50
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
jne 0x407f57
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 4]
xor eax, eax
inc eax
push eax
call fcn.00418d1c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x407f47
lea eax, [ebp - 4]
push eax
push edi
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x407f87
push edi
call fcn.00418c70
pop ecx
jmp 0x407f47
mov esi, dword [ebp + 0xc]
mov eax, 0x530
cmp dword [ebp - 4], eax
cmovb eax, dword [ebp - 4]
push eax
push edi
push esi
call fcn.0040f410
push edi
call fcn.00418c70
add esp, 0x10
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
cmp word [esi], ax
sete al
jmp 0x407f52

Function at 0x40800f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push ebx
push esi
push 0x426bc4
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x40807e
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40807d
lea eax, [edi + 1]
push eax
push 1
call fcn.00418d1c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40807d
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408074
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x408074
push edi
push eax
push esi
call fcn.0040f410
add esp, 0xc
jmp 0x40807d
push esi
call fcn.00418c70
xor esi, esi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401460
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x60]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0xc], str..jdk_14.0.2_binjava.exe
lea eax, [ebp - 0x164]
mov dword [esp + 4], eax
mov dword [esp], 0x104
call sym._GetCurrentDirectoryA_8
sub esp, 8
lea eax, [ebp - 0x164]
mov dword [esp + 4], eax
lea eax, [ebp - 0x22c]
mov dword [esp], eax
call sym._strcpy
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x22c]
mov dword [esp], eax
call sym._strcat
mov dword [esp], 0xa
call sym._putchar
lea eax, [ebp - 0x1c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x60]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000008
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.java__Xmx1g__cp_lib__Launcher_LauncherObfMan.jar_WordGen
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateProcessA_40
sub esp, 0x28
test eax, eax
je 0x40157a
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, 0
jmp 0x40158b
mov dword [esp], str.create_process_fail
call sym._printf
mov eax, 1
leave
ret
Function at 0x401bf0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401c3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401c34
test esi, esi
je 0x401c34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c10
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401e20
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401f48
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401eae
cmp eax, 4
jne 0x401ed0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401ebe
cmp edx, 4
je 0x401ebe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401e20
Function at 0x439447
Capabilities:
Encode data using xor

Disassembly:
jmp 0xafa6efd5
je 0x43943c
dec ecx
leave
lcall 0xa931, 0xf1c1152c
and eax, 0x6092a72e
and eax, 0x6092a72e
and eax, 0x6092a72e
mov edi, 0xff3eeff5
mov al, 0
mov ebx, 0x3cedac1
or byte [edi - 0xa624c99], ch
push dword [eax - 0x253e4500]
into
add ecx, dword [eax]
scasd eax, dword es:[edi]
mov bl, 0x9d
cmc
push ecx
lahf
out dx, eax
xor esi, dword [esi + edx*4 + 0x72de043f]
sub ebp, dword [edx + 0x5bdde2fe]
cmp dl, byte [edx - 0x4a104e4a]
jge 0x439450
adc dh, byte [edi - 0x4d3842a3]
cmp esp, edx
sahf
sbb eax, 0x31b85a68
ja 0x43948c
imul esi, dword [ebx], 0xc05414b4
jecxz 0x43941a
dec esi
cld
jne 0x4394ff
mov edi, 0x1e6ce8d8
shl ah, cl
mov edi, 0x652fb278
aas
pop esi
sar dword [edx], 1
pop ds
and dword [edx + eax + 0x73], edi
scasd eax, dword es:[edi]
mov eax, 0x9eaabfb0
loope 0x43943b
lodsd eax, dword [esi]
sahf
adc eax, 0xb1bf330c
in eax, dx
and cl, byte [esi + 0x63]
out 0x35, eax
fild qword [eax - 0x18]
int 0x94
dec esi
arpl di, sp
xor eax, 0xcde868df
xchg esp, eax
mov ebx, 0x379c1213
sal dword [ebx + 0x498fa531], 0x78
push edx
out dx, eax
mov edx, 0x21d73b43
push ds
lahf
das
mov al, byte [0x5533b4b7]
aas
mov esi, 0xd53336bf
xchg esi, eax
push cs
mov ebx, 0x750f167e
mov ecx, 0x3edf70a2
loop 0x4394b8
les edi, [eax]
mov ds, word [edi]
das
retf
mov bl, 0x4e
fnstcw word [esp + edi]
xchg ebp, eax
cmc
or al, 0x72
add eax, 0xf712a60f
mov dword [0x86bdb39d], eax
idiv byte [edx + 0x3a46e833]
mov dh, 0x39

Function at 0x446e20
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str.ps_draw_extension_8C7D6F85B251
push 1
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
movsb byte es:[edi], byte [esi]
ror dword [ebx], cl
mov esi, eax
test esi, esi
je 0x446e6d
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x446e70
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, 0x68
jmp 0x446e73
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 8]
test edi, edi
je 0x446e88
mov edx, dword [0x4c0dd4]
lea ecx, [ebp - 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov ecx, 0x41
xor eax, eax
mov edi, 0x4c0b34
rep stosd dword es:[edi], eax
jmp 0x540616
Function at 0x446e3b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str.ps_draw_extension_8C7D6F85B251
push 1
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
movsb byte es:[edi], byte [esi]
ror dword [ebx], cl
mov esi, eax
test esi, esi
je 0x446e6d
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x446e70
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, 0x68
jmp 0x446e73
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 8]
test edi, edi
je 0x446e88
mov edx, dword [0x4c0dd4]
lea ecx, [ebp - 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov ecx, 0x41
xor eax, eax
mov edi, 0x4c0b34
rep stosd dword es:[edi], eax
jmp 0x540616

Function at 0x44e747
Capabilities:
Encode data using xor

Disassembly:
outsd dx, dword [esi]
adc al, 0xb1
and dl, ah
and eax, dword [ebx + 0x72]
add al, 0x46
inc ebx
jb 0x44e72d
inc esi
je 0x44e792
in al, dx
xor dh, byte [esi + eax*4 - 0x30]
invalid
or dh, byte [edi - 0x7e]
cmpsd dword [esi], dword es:[edi]
add al, 0xf3
outsd dx, dword [esi]
jge 0x44e767
fld qword [edi + 0x54bd8284]
and ah, ah
xchg byte [eax + 0x404df202], ah
test dword [eax + 0x14677286], esp
pop ss
outsd dx, dword [esi]
adc dl, byte [edi + 0x7e]
pop ebx
push edi
jle 0x44e7c5
insd dword es:[edi], dx
mov byte [0xeed1ac66], al
imul ebp, ebp, 0x6436c0d0
pop esp
pushfd
ror byte [ebx], cl
mov al, 0xb7
mov al, 0x82
je 0x44e726
inc esp
invalid
int1
rcl byte [ebp - 0x79], 0xbc
pop es
ja 0x44e79e
xchg byte [eax + esi*8 + 0x258076ea], ah
push es
adc bh, dl
and eax, 0xb8bc3756
popal
mov edi, 0x4782c527
and eax, 0xda2ef0ee
faddp st(2)
mov al, 0xc5
mov dl, byte fs:[ecx]
jbe 0x44e720
and eax, 0x25d71006
push esi
aaa
mov esp, 0x27bf61b8
lds eax, [edx - 0xf11dab9]
fcmovu st(0), st(6)
ret 0xc5b0
Function at 0x49caa8
Capabilities:
Encode data using xor

Disassembly:
out 0xaf, al
cmp byte [eax + esi*8 + 0x1b], dl
sbb dh, byte [0xab1a8609]
adc ebp, dword gs:[eax]
adc edx, ebp
outsb dx, byte [esi]
adc byte [ebp + 0x64], cl
inc edx
mov ecx, 0xb1d9ee5a
cmp ebx, dword [edi + esi*2 + 0x1babdd44]
salc
stosd dword es:[edi], eax
jno 0x49cb1e
pushal
or ebx, ecx
jae 0x49cadd
fnstenv [ebx + 9]
mov ah, 0x3e
jg 0x49cb1b
imul esi, dword [ecx + esi*4 + 0x11], 0xffffffd3
stosb byte es:[edi], al
sub bh, byte [edx + edi*4 - 0x73]
jne 0x49cad1
push ebx
popal
nop
iretd
sar byte [0x5ba5e602], 0x78
dec esp
out 0xa5, al
pop ebx
js 0x49cb6f
neg byte [edi]
stosb byte es:[edi], al
dec byte [esi - 0x39]
mov cl, 0x68
mov ah, 0xe4
fnsave dword [ebp*4 - 0x71f6cd75]
fcmovnb st(0), st(7)
jecxz 0x49cb7d
std
fsub qword [eax - 0x3f]
hlt
add byte [eax + 0x28a1f135], 0x59
cwde
jmp 0xf065f1ee
sbb al, 0xf0
xchg ebx, eax
sbb al, byte [edx - 0x23]
dec edx
leave
fstp xword [ebp + ebp*4 + 0x71]
aaa
and edi, dword [edx]
dec dword [esi + ecx + 0x31]
mov ah, 0xb6
jb 0x49cba2
xchg esp, eax
sub esp, dword [ecx + 0x7c9b44b4]
inc esp
and eax, dword [ebx]
or eax, 0xb38df82d
push ss
clc
lea esi, [ebx - 0x110be7ea]
sbb ah, dh
out dx, al
xor eax, 0xa3ed9c76
and ebx, dword [edi + ebp*8 + 0x26]
push ebp
cwde
jno 0x49cb9e
mov dword [ebx - 0x65], edi
sbb eax, dword [0xb58e863c]
jbe 0x49cb7a
iretd

Function at 0x54e508
Capabilities:
Encode data using xor

Disassembly:
cmp byte [edi + edx*8 - 0x7f], bh
inc esi
push es
test ebp, edx
invalid
Function at 0x404a2a
Capabilities:
Terminate process

Disassembly:
call fcn.0040fd47
jmp 0x404a2a
push 0x5c
push 0x4051b0
call fcn.004050b8
xor ebx, ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40673c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x404a7c
cmp eax, esi
jne 0x404a6f
xor esi, esi
inc esi
mov edi, esi
jmp 0x404a7f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404a53
xor esi, esi
inc esi
cmp dword [0x406740], esi
jne 0x404a91
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x404acb
cmp dword [0x406740], ebx
jne 0x404ac5
mov dword [0x406740], esi
push 0x4010e8
push 0x4010dc
call fcn.00404bff
pop ecx
pop ecx
test eax, eax
je 0x404acb
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404bf9
mov dword [0x4060a4], esi
cmp dword [0x406740], esi
jne 0x404aee
push 0x4010d8
push 0x4010d0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x406740], 2
test edi, edi
jne 0x404afb
xor eax, eax
mov ecx, 0x40673c
xchg dword [ecx], eax
cmp dword [0x406744], 0
je 0x404b27
push 0x406744
call fcn.00404f10
pop ecx
test eax, eax
je 0x404b27
push ebx
push 2
push ebx
mov esi, dword [0x406744]
mov ecx, esi
call dword [0x407224]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x404b85
test cl, cl
je 0x404b54
test edi, edi
jne 0x404b85
test cl, cl
je 0x404b54
cmp cl, 0x20
ja 0x404b54
inc esi
mov dword [ebp - 0x20], esi
mov cl, byte [esi]
jmp 0x404b43
test byte [ebp - 0x40], 1
je 0x404b60
movzx eax, word [ebp - 0x3c]
jmp 0x404b63
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4060a0], eax
cmp dword [0x4060b8], 0
jne 0x404bde
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x404b96
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x404ba9
inc esi
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x404b34
cmp dword [0x4060a4], 0
jne 0x404bf2
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4060a0]
mov dword [ebp - 4], 0xfffffffe
call fcn.00405100
ret

Function at 0x404e04
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4051d0
call fcn.00405144
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x404e64
cmp eax, 0xffffffff
je 0x404e64
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x404e5d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x404e5d
cmp edx, 0x10000000
jae 0x404e5d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x404e5a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00405189
ret 4
Function at 0x404ec0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x404efe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x404ef6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x404f00
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x404ee6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404fd0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x404fe6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x405001
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x40a281
Capabilities:
Encode data using xor

Disassembly:
call 0x40a1fa
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x40a22a
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x40a246
xor edx, 0
jmp 0x40a251
xor edx, edx
jmp 0x40a268
jmp 0x40a274
xor eax, eax
push 0x8427d7c0
call 0x40a281
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x40a2bd
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x40a296
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x40a2d4
add eax, 0
jno 0x40a2d9
add esi, 0
ret 0x10
Function at 0x40b042
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x40b064
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x40b206
cmp edi, dword [ebp + 0x10]
jb 0x40b206
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.0040ab2e
inc edi
jmp 0x40b0ed
jmp 0x40b0fa
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.0040ab2e
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.0040ab2e
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x40b14e
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x40b132
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.0040b17c
add dword [eax], 0x39
jle 0x40b158
sub al, 0xf5
mov ch, al
call fcn.0040b191
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x40ce69
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x40ce7f
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x40ce90
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.0040ced1
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx