joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x1d405985
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x52013346
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40217c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x42e180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x8c], eax
call fcn.00422453
pop ecx
pop ecx
push ebx
push 0x80000080
push 2
push ebx
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x94], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x88], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x90], eax
call esi
push dword [ebp - 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x98], eax
call esi
push dword [ebp - 0x88]
push 0xfffffffffffffff4
call esi
mov ecx, 0x4306e0
call fcn.00401b9e
mov edi, eax
cmp edi, ebx
jne 0x40223d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x84]
push str.Cant_load_Python_for_pre_install_script___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x84]
push eax
call fcn.004016e5
add esp, 0x10
or eax, 0xffffffff
jmp 0x402322
push dword [ebp - 0x8c]
call fcn.004020ed
pop ecx
push edi
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x90]
push 0xfffffffffffffff5
call esi
push dword [ebp - 0x98]
push 0xfffffffffffffff4
call esi
cmp dword [ebp - 0x8c], ebx
je 0x402304
push ebx
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40228f
mov edi, 0x1000
lea eax, [edi + 0x2d]
push eax
call fcn.00408512
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4022f9
mov eax, str.Running_the_pre_installation_script_failed_r_n
mov edx, esi
mov dword [ebp - 0x90], ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4022ae
push ebx
push ebx
push ebx
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x90]
push eax
push edi
lea eax, [esi + 0x2c]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x90]
push esi
mov byte [eax + esi + 0x2c], bl
call fcn.004016e5
push esi
call fcn.00408499
pop ecx
jmp 0x402303
push str.Out_of_memory_
call fcn.004016e5
pop ecx
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407e15
leave
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x510024
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edx], al
add al, byte [eax]
add byte [eax], al
cld
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, byte [eax]
add byte [eax], al
cld
invalid
stc
jb 0x51002e
pop ds
xor esi, dword [ecx - 0x49]
jno 0x50ffe2
cwde
leave
jmp 0x51008f
pushal
jmp 0x510034
call 0x51003f
dec ecx
stc
mov dl, 0xed
pop ecx
pop ebx
jb 0x510049
jne 0x50ffd9
jge 0x510029
sbb dword [edx - 0x383c7edc], 0xffffffff
invalid
add ebx, 0xffffffc7
jmp 0x510058
cmp dword [ebx], 0
stc
jmp 0x510067
je 0x5100ed
jmp 0x510076
mov ecx, ebx
jmp 0x510081
add ebx, 4
jmp 0x510089
mov edx, dword [ebx]
jmp 0x510097
and eax, 0x8ced9cec
in eax, dx
cmp ebp, dword [ebx + 3]
sar ecx, cl
add edx, ebx
stc
jb 0x5100a3
mov ah, 0xb1
mov ebx, 0xc91a740d
mov eax, dword [ebx + 4]
jmp 0x5100ac
sub dword [edx], 0x3c62176a
jmp 0x5100b6
add edx, 4
jmp 0x5100bf
sub eax, 1
jmp 0x5100c6
jne 0x5100a6
jmp 0x5100d0
add ebx, 8
jmp 0x5100d7
sub dword [ecx], 1
stc
jb 0x5100de
and ecx, dword [edi]
test dword [eax + 0x72ffffff], esp
add dh, byte [ecx + 0xee83b]
add byte [eax], al
jne 0x510084
jb 0x5100e8
mov cl, 0x3b
call 0x5100fb
jmp 0x5100f1
popal
jmp 0x5100f6
jmp 0x50ed00

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 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 0x438860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x438882
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x438889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x438878
mov eax, 1
add ebx, ebx
jne 0x43889b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x438890
jne 0x4388ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438890
xor ecx, ecx
sub eax, 3
jb 0x4388c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438932
mov ebp, eax
add ebx, ebx
jne 0x4388cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4388d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4388fc
inc ecx
add ebx, ebx
jne 0x4388e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4388dd
jne 0x4388f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4388dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43891c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43890d
jmp 0x43887e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43891c
add edi, ecx
jmp 0x43887e
pop esi
mov edi, esi
mov ecx, 0xe0e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43893a
cmp byte [edi], 0xa
jne 0x43893a
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 0x43893f
lea edi, [esi + 0x36000]
mov eax, dword [edi]
or eax, eax
je 0x4389b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3820c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x382ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43896c
mov ecx, edi
jns 0x43899b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x382b0]
or eax, eax
je 0x4389b1
mov dword [ebx], eax
add ebx, 4
jmp 0x438989
call dword [esi + 0x382b4]
popal
jmp 0x41be59
Function at 0x401010
Capabilities:
Terminate process

Disassembly:
mov edi, ebx
test bh, bh
call 0x401019
ror ebp, cl
imul edi, eax
pop edx
rcl eax, 0x85
call fcn.00401400
rol byte [edx], 0x89
inc ebp
cld
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x420bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x420bbf
pop dword [ebp - 0x28]
mov eax, 0x4be4713c
sub eax, 0x4ba2657d
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3f712
push 0
mov eax, 0x2f76feb
sub eax, 0x2b51dd3
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x4d5b
mov esi, eax
mov edx, 0x435400
add edx, dword [ebp - 0x28]
mov ebx, 0x9b9f6d9b
mov edi, dword [edx]
xor dword [ebp - 4], edx
sub edi, ebx
sub dword [ebp - 0x18], eax
mov dword [esi], edi
add dword [ebp - 0x20], 0xf6d51315
add esi, 0xda49099d
sub esi, 0xda490999
add edx, 0x2fd9c67a
add edx, 0xd026398a
loop 0x420c0c
add eax, 0x1283f
xor ebx, ebx
add ebx, eax
add eax, 0xadb44b0a
add eax, 0x524bb4fb
mov ecx, 0x3d4d491e
add ecx, 0xc2f2b6e2
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x4012c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4066c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 4]
call fcn.004052d0
lea ecx, [esi + 0x30]
mov dword [esp + 0x10], 0
call fcn.00403470
lea ecx, [esi + 0x64]
mov byte [esp + 0x10], 1
call fcn.00405cd0
lea ecx, [esi + 0x98]
mov byte [esp + 0x10], 2
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 8]
mov dword [esi], 0x407258
mov dword [esi + 0x8c], 0xffffffff
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 1
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401370
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4066ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x407258
mov dword [esp + 0x10], 3
call fcn.00401820
lea ecx, [esi + 0x98]
mov byte [esp + 0x10], 2
call fcn.004063b2
lea ecx, [esi + 0x64]
mov byte [esp + 0x10], 1
call fcn.00405d10
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 0
call fcn.004034d0
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00405480
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402bd0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4067b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
lea eax, [esp + 4]
add ecx, 4
push eax
call fcn.00405ac0
mov ecx, dword [esp + 0x18]
lea edx, [esp]
push ecx
push eax
push edx
mov dword [esp + 0x1c], 0
call sub.MFC42u.DLL_operator_1
lea ecx, [esp + 4]
mov byte [esp + 0x10], 2
call fcn.004063b2
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call fcn.004063b2
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x4052d0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4068ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
lea edi, [esi + 4]
mov ecx, edi
call sub.MFC42u.DLL_CString::CString
mov al, byte [esp + 0x17]
push 0xc
mov dword [esp + 0x230], 0
mov byte [esi + 8], al
call sub.MFC42u.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
lea ecx, [esi + 0x14]
mov byte [esp + 0x22c], 1
push ecx
mov dword [esi], 0x4072b4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edx, [esp + 0x1c]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x1c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
lea ecx, [esp + 0x1c]
mov word [eax], 0
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_1
lea edx, [esp + 0xc]
push 1
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], 2
call sub.MFC42u.DLL_CString::Right
mov eax, dword [eax]
push 0x409380
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
setne bl
call fcn.004063b2
test bl, bl
je 0x4053e8
lea ecx, [esp + 0x10]
push 0x409380
lea edx, [esp + 0x10]
push ecx
push edx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x230], 3
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x22c], 2
call fcn.004063b2
lea eax, [esp + 0x10]
push str.AutoPai
lea ecx, [esp + 0x10]
push eax
push ecx
call sub.MFC42u.DLL_operator_1
push eax
mov ecx, edi
mov byte [esp + 0x230], 4
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x22c], 2
call fcn.004063b2
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x409380
mov ecx, edi
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x22c], 1
call fcn.004063b2
mov ecx, dword [esp + 0x224]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret

Function at 0x405560
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
add ecx, 4
push str.user.ini
lea eax, [esp + 8]
push ecx
push eax
call sub.MFC42u.DLL_operator_1
mov eax, dword [eax]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
push 0x409384
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 4]
mov esi, eax
call fcn.004063b2
mov eax, esi
pop esi
pop ecx
ret 4

Function at 0x4055a0
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
add ecx, 4
push str.user.ini
lea eax, [esp + 8]
push ecx
push eax
call sub.MFC42u.DLL_operator_1
mov eax, dword [eax]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 4]
mov esi, eax
call fcn.004063b2
mov eax, esi
pop esi
pop ecx
ret 4
Function at 0x405c50
Capabilities:
Check mutex on windows
Print debug messages

Disassembly:
push esi
push str.GlobalBUYI_AutoPai_Server
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x405c89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405c89
push 0x4090d0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x405d50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
push esi
mov edx, ecx
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0x44
mov esi, dword [edx + 0xc]
rep stosd dword es:[edi], eax
mov ecx, 0x11
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ax, word [esp + 0x154]
mov dword [esp + 0x1c], 0x64
mov word [esp + 0x38], ax
mov eax, dword [esp + 0x150]
mov dword [esp + 0x20], 0xc8
mov dword [esp + 0x24], 0x190
lea ecx, [eax + eax*4]
mov dword [esp + 0x34], 7
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
shl ecx, 1
mov dword [esp + 0x18], ecx
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
shl ecx, 1
sub ecx, eax
shl ecx, 4
mov edi, dword [ecx + esi + 0xc]
cmp edi, 1
pop edi
pop esi
jne 0x405de9
mov edx, dword [edx + 8]
push edx
push eax
lea eax, [esp + 0x4c]
push str._SrCalc.exe____d:_d_
push eax
jmp 0x405df8
mov ecx, dword [edx + 8]
lea edx, [esp + 0x44]
push ecx
push eax
push str._SvCalc.exe____d:_d_
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [esp + 0x160]
add esp, 0x10
lea ecx, [esp]
lea edx, [esp + 0x44]
push eax
push ecx
push 0
push 0
push 0x10
push 1
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
add esp, 0x144
ret 0xc

Function at 0x405fb0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x5b
push eax
call ebx
mov edi, eax
add esp, 8
test edi, edi
jne 0x405fd7
pop edi
pop esi
xor al, al
pop ebx
ret 4
push 0x3a
push edi
call ebx
add esp, 8
test eax, eax
jne 0x405feb
pop edi
pop esi
xor al, al
pop ebx
ret 4
mov ebx, dword [sym.imp.MSVCRT.dll__wtoi]
add eax, 2
push eax
call ebx
add edi, 2
mov dword [esi + 8], eax
push edi
call ebx
add esp, 8
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x406032
mov dword [esi + 8], eax
call fcn.00405c90
pop edi
pop esi
xor al, al
pop ebx
ret 4
mov eax, dword [esi + 4]
xor ebx, ebx
test eax, eax
jle 0x406072
push ebp
mov ebp, dword [esp + 0x14]
xor edi, edi
mov ecx, dword [esi + 0xc]
cmp word [ecx + edi + 0x230], 0
lea eax, [ecx + edi + 0x230]
je 0x406063
mov edx, dword [ebp + 8]
push eax
push edx
mov ecx, ebp
call sub.MFC42u.DLL_CStringArray::SetAtGrow
mov eax, dword [esi + 4]
inc ebx
add edi, 0x350
cmp ebx, eax
jl 0x406042
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
ret 4
Function at 0x406080
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
xor dl, dl
xor eax, eax
test esi, esi
push edi
jle 0x4060bb
mov edi, dword [ecx + 0xc]
mov ebx, dword [esp + 0x14]
lea ecx, [edi + 0x330]
cmp dword [ecx - 0x324], ebx
jne 0x4060ac
mov ebp, dword [ecx]
mov dl, 1
test ebp, ebp
jne 0x4060cf
inc eax
add ecx, 0x350
cmp eax, esi
jl 0x40609c
test dl, dl
jne 0x4060c6
push 0x409478
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
shl ecx, 1
sub ecx, eax
shl ecx, 4
mov edx, dword [ecx + edi]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4

Function at 0x4060f0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x100
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x406115
push str.m_lpMap__NULL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop edi
add esp, 0x100
ret
push esi
mov esi, dword [edi + 4]
test esi, esi
jl 0x406135
push ebx
lea ecx, [esp + 0xc]
lea edx, [esi + 1]
mov ebx, dword [eax]
add eax, 0x350
mov dword [ecx], ebx
add ecx, 4
dec edx
jne 0x406125
pop ebx
push 0xffffffffffffffff
lea eax, [esp + 0xc]
push 0
inc esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, eax
pop esi
cmp ecx, 0xffffffff
jne 0x40615d
call fcn.00405c90
xor eax, eax
pop edi
add esp, 0x100
ret
cmp ecx, dword [edi + 4]
jne 0x40616c
xor eax, eax
pop edi
add esp, 0x100
ret
lea eax, [ecx + ecx*2]
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ecx
mov ecx, dword [edi + 0xc]
shl eax, 4
add eax, ecx
pop edi
add esp, 0x100
ret

Function at 0x40652b
Capabilities:
Encode data using xor

Disassembly:
mov ebp, 0xbab4be6f
push edi
movsx esi, bp
xchg ebx, edi
test bh, 0xce
adc esi, 0x7abb980b
neg ebp
lea ebx, [0x30f820b]
mov bh, cl
add edi, ebp
mov esi, edx
push 0xfff623bb
imul esi, ecx, 0x4d5f9690
pop esi
lea edi, [0xfffff946]
add edi, 0x6ba
mov edi, esi
test ebp, 0xf744c7eb
add edi, 0xbdf9
mov esi, esi
mov ebx, edi
add ebx, 0xfc
lea ecx, [ebx]
movzx edi, bl
xor ecx, 0xde
mov esi, ebp
xchg ecx, ebp
dec esi
xor ebp, 0x53f
dec edi
xchg esi, ecx
bswap ebx
push 0
movzx ecx, cx
pop eax
imul edi, esi
mov ebx, esi
xadd eax, ebp
lea esi, [0x94fc04f]
add eax, 0x9194d
lea edx, [eax]
mov bl, 0xda
add edx, 0x7b1
mov ebp, 0x3ba
mov bh, 0xe8
xor ebp, 0x1ae
test ah, ch
sub edx, ebp
add cl, ch
add edx, 0x213
and ah, al
inc ebx
lea esi, [0xa0ce0914]
cmp edx, 0x26d
jae 0x4065be
cmp eax, 0x4e3aa5e2
call 0x4065f2
bswap ebx
jmp 0x4065fd
not edi
mov ebp, 0xffff1dba
movzx eax, cl
xor ebp, 0xe609
add ebp, 0x44d
Function at 0x4010b2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4010ff
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x804]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x404]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x40170c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40171b
pop dword [ebp - 0x14]
mov eax, 0x40171b
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x66c6d4
sub dword [ebp - 0x24], 0xb2148189
mov dword [ebp - 0x20], 0x6d1f2cab
sub dword [ebp - 0x20], 0x3aebe066
mov dword [ebp - 0x1c], 0x3a50fba2
add dword [ebp - 0x1c], 0x11fb488c
mov dword [ebp - 0x18], 0x55c9b722
add dword [ebp - 0x18], 0xaa3648de
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xfa31d480
sub dword [ebp - 0x24], 0x85bf6b2a
mov dword [ebp - 0x20], 0xf810cbe2
add dword [ebp - 0x20], 0x495b9593
mov dword [ebp - 0x1c], 0x2b039782
add dword [ebp - 0x1c], 0x386bd4ea
mov dword [ebp - 0x18], 0xb5b4e067
add dword [ebp - 0x18], 0x4a4b1f99
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x8eab2749
add eax, 0x7195a903
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3750e
push 0
call eax
mov ecx, 0x3e56
xor esi, esi
add esi, eax
mov edi, 0x41b000
add edi, dword [ebp - 0x14]
mov edx, 0x876c93f4
sub edx, 0x854da58b
xor dword [ebp - 0xc], 0x7f8eae3a
mov ebx, dword [edi]
add dword [ebp - 0xc], 0xffe29a68
xor ebx, edx
sub dword [ebp - 0xc], 0xaea2c5ee
mov dword [esi], ebx
mov dword [ebp - 0xc], 0x9d680617
add esi, 4
add edi, 0x765de1c5
sub edi, 0x765de1c1
loop 0x401829
add eax, 0xec2b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53