joyce8/EMBER2024-capa huggingface dataset:
Function at 0x631180
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x193000]
push edi
or ebp, 0xffffffff
jmp 0x6311a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6311a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x631198
mov eax, 1
add ebx, ebx
jne 0x6311bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6311cc
jne 0x6311dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6311dc
dec eax
add ebx, ebx
jne 0x6311d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6311b0
xor ecx, ecx
sub eax, 3
jb 0x6311f4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x631266
sar eax, 1
mov ebp, eax
jmp 0x6311ff
add ebx, ebx
jne 0x6311ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x63120c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x631230
inc ecx
add ebx, ebx
jne 0x63121c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x631211
jne 0x63122d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x631211
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x631250
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x631241
jmp 0x63119e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x631250
add edi, ecx
jmp 0x63119e
pop esi
mov edi, esi
mov ecx, 0xb9cc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x63126e
cmp byte [edi], 0x28
jne 0x63126e
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 0x631273
lea edi, [esi + 0x22d000]
mov eax, dword [edi]
or eax, eax
je 0x6312e2
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x239470]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x239574]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6312a0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x239578]
or eax, eax
je 0x6312dc
mov dword [ebx], eax
add ebx, 4
jmp 0x6312bd
call dword [esi + 0x23957c]
popal
jmp 0x580a7c
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4ebb58cf
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x7a74155d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4014f0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406d39
push eax
mov dword fs:[0], esp
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
lea ecx, [esp + 0x14]
setne bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 4]
mov al, bl
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x406d62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
mov eax, dword [0x40b130]
xor eax, esp
push esi
mov dword [esp + 0x25c], eax
push edi
mov esi, ecx
lea eax, [esp + 8]
push eax
push 0x258
mov dword [esp + 0x274], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x274]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.CSMInfo.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40176e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push str.GetCsmInfoCount
push edi
call ebx
lea ecx, [esp + 0x27c]
mov ebp, eax
mov dword [esi + 0xe8], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
lea ecx, [esp + 0x284]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
call ebp
lea ecx, [eax + eax*2]
shl ecx, 9
push ecx
mov dword [esi + 0xe8], eax
call sub.MFC71.DLL_operator_new
mov dword [esi + 0xf4], eax
mov eax, dword [esi + 0xe8]
add esp, 4
test eax, eax
je 0x40174c
push str.GetCsmInfo
push edi
call ebx
mov ebp, eax
test ebp, ebp
je 0x40174c
mov edx, dword [esi + 0xe8]
mov eax, dword [esi + 0xf4]
push edx
push eax
lea ecx, [esp + 0x288]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
call ebp
push str.CleanUp
push edi
call ebx
test eax, eax
pop ebp
pop ebx
je 0x40175c
call eax
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x274]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x278]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x264]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x25c]
pop esi
xor ecx, esp
call fcn.004064a1
add esp, 0x268
ret 8
Function at 0x4017c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406d79
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [0x4081c0]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406d79
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::StringLength]
add esp, 4
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [0x4081c0]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402660
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40b130]
xor eax, esp
push esi
mov dword [esp + 0x20c], eax
push 0x104
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402690
sub eax, edx
mov byte [esp + eax], cl
lea ecx, [esp + 4]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_strrchr]
add esp, 8
inc eax
push eax
lea ecx, [esi + 0xd8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
lea ecx, [esi + 0xd0]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
lea edx, [esp + 0x114]
push str._sInstalliccIccdata_s_sLoc.dll
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x14
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40273c
push ebx
push edi
call sub.MFC71.DLL_AfxGetModuleState
mov edi, dword [eax + 4]
mov ecx, edi
call fcn.00401100
lea ecx, [esp + 0x110]
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40273a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
mov ecx, edi
call fcn.00401110
call sub.MFC71.DLL_AfxGetModuleState
push esi
push 0x40c2d8
mov dword [eax + 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop ebx
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004064a1
add esp, 0x20c
ret
Function at 0x405ad0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
push 2
push 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405b14
mov eax, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [esp + 0x1c]
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405b20
mov ecx, dword [esp + 0x18]
sub eax, esi
push eax
push edx
mov edx, dword [esp + 0xc]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x405b60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x407624
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x40b130]
xor eax, esp
push ebx
push ebp
mov ebp, dword [esp + 0x140]
push esi
mov esi, dword [esp + 0x13c]
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x138]
push edi
mov edi, dword [esp + 0x144]
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebx
push edi
push esi
mov dword [esp + 0x148], ebx
mov dword [esp + 0x34], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x405c29
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x405c29
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov byte [esp + 0x134], 1
jmp 0x405c40
push 0x408d5a
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov byte [esp + 0x134], 2
lea ecx, [esp + 0x14]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call dword [0x4081c0]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x12c]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x11c]
pop ebx
xor ecx, esp
call fcn.004064a1
add esp, 0x128
ret
Function at 0x405ca0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x407654
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [0x40b130]
xor eax, esp
push ebx
mov dword [esp + 0x218], eax
push esi
mov esi, dword [esp + 0x230]
lea eax, [esp + 0x10]
push eax
xor ebx, ebx
push 0x209
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x22c], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
push 0x5c
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x22c], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x5c
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x22c], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [0x4081c0]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x220]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x218]
pop ebx
xor ecx, esp
call fcn.004064a1
add esp, 0x224
ret
Function at 0x405dd0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x407683
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push esi
xor esi, esi
lea ecx, [esp + 4]
mov dword [esp + 4], esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xa0], esi
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp dword [esp + 0xc], 2
jne 0x405e9c
lea ecx, [esp + 0x14]
push edi
mov edi, dword [esi + 4]
mov dword [esp + 0x14], ecx
call dword [0x40b030]
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00405a60
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
cmp eax, ecx
mov byte [esp + 0xa0], 3
pop edi
je 0x405e75
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0xa4]
lea edx, [esp + 8]
push edx
mov ecx, esi
call dword [0x4081c0]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x405eb7
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0xa4]
push 0x408d5a
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x94]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x9c
ret
Function at 0x40671d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x408ee8
call fcn.0040691c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40675d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40675d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406775
cmp eax, 0x20b
je 0x406762
mov dword [ebp - 0x1c], ebx
jmp 0x406789
cmp dword [ecx + 0x84], 0xe
jbe 0x40675d
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x406783
cmp dword [ecx + 0x74], 0xe
jbe 0x40675d
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40c314], 0xffffffff
or dword [0x40c318], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40c2cc]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40c2c8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40c310], eax
call fcn.00406a1a
call fcn.00406aba
cmp dword [0x40b150], ebx
jne 0x4067e9
push fcn.00406aba
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00406aa8
push 0x40b02c
push 0x40b028
call sub.MSVCR71.dll__initterm
push 0x406a5e
call fcn.004064d5
mov eax, dword [0x40c2c4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40c2c0]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x40683d
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40b024
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4068bb
cmp al, bl
je 0x406867
cmp dword [ebp - 0x20], ebx
jne 0x4068bb
mov al, byte [esi]
cmp al, bl
je 0x406877
cmp al, 0x20
ja 0x406877
inc esi
mov dword [ebp - 0x24], esi
jmp 0x406867
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x406893
movzx eax, word [ebp - 0x54]
jmp 0x406896
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00406be4
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4068b3
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x406910
cmp al, 0x22
jne 0x4068ca
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x4068dd
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x406855
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00406957
ret
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 0x408929
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
call fcn.00408957
sub ecx, edi
mov ecx, ecx
xor dword [esi], ebx
add edi, ecx
add edi, edi
inc esi
add ecx, 0x14d06611
cmp esi, eax
jne fcn.00408929
sub ecx, 0x282f14fa
add edi, 0xd5473193
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x72872cec
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x27997df5
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219