joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002cce0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006fed7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10091018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebx + 0x60]
mov dword [ebx], 0x100825e0
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [eax + 8], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [ebp - 4], 0
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 1
lea edi, [ebx + 0x10]
mov eax, dword [ebx]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ecx
push edi
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.1002dee0
mov dword [ebp - 4], 4
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], edi
lea eax, [ecx - 0x60]
mov dword [ecx + ebx - 4], eax
mov ecx, edi
call fcn.1002de50
mov byte [ebp - 4], 5
mov ebx, dword [ebp + 8]
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp + 8], ebx
cmp dword [ebx + 0x14], 0x10
jb 0x1002cdd8
mov eax, dword [ebx]
mov dword [ebp + 8], eax
mov ebx, dword [ebx + 0x10]
mov eax, 2
cmp ebx, 0x7fffffff
ja 0x1002ce48
test ebx, ebx
je 0x1002ce20
push ebx
lea ecx, [edi + 0x40]
call fcn.100175f0
push ebx
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.10048e90
lea ecx, [esi + ebx]
add esp, 0xc
mov dword [edi + 0x38], ecx
mov ecx, dword [edi + 0xc]
mov dword [ecx], esi
mov eax, dword [edi + 0x1c]
mov dword [eax], esi
mov eax, dword [edi + 0x2c]
mov dword [eax], ebx
mov eax, 3
jmp 0x1002ce27
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.10045e2c
int3
Function at 0x10039de0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071a6f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10091018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 5
lea ecx, [esi + 0x7c]
call fcn.10006410
mov byte [ebp - 4], 4
lea ecx, [esi + 0x64]
call fcn.10006410
mov byte [ebp - 4], 3
lea ecx, [esi + 0x4c]
call fcn.10006410
mov byte [ebp - 4], 2
lea ecx, [esi + 0x30]
call fcn.10006410
mov byte [ebp - 4], 1
lea ecx, [esi + 0x14]
call fcn.10006410
mov byte [ebp - 4], 0
lea ecx, [esi + 8]
call fcn.100372f0
mov dword [ebp - 4], 0xffffffff
test byte [ebp + 8], 1
mov dword [esi], vtable.Json::StreamWriter.0
je 0x10039e75
push 0xa0
push esi
call fcn.10047395
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1003e8f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072640
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x10091018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10093948], 0x3c
jl 0x1003e948
push 0x1009394c
call fcn.100433c0
mov edx, dword [0x10093944]
add esp, 4
test edx, edx
je 0x1003e93a
mov eax, dword [edx]
mov dword [0x10093944], eax
mov dword [0x1009394c], 1
test edx, edx
jne 0x1003e95f
push 0x3c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x1003e9b2
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0
mov dword [edx], vtable.CVolObject.0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov byte [ebp - 4], 1
lea ecx, [edx + 0x10]
mov dword [edx], vtable.CVolException.0
call fcn.10002c10
mov byte [ebp - 4], 2
mov dword [edx + 0xc], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.1004f89d
int3

Function at 0x1003eb00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100726c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10091018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [0x10093948], 0x3c
jl 0x1003eb5d
push 0x1009394c
call fcn.100433c0
mov edi, dword [0x10093944]
add esp, 4
test edi, edi
je 0x1003eb4f
mov eax, dword [edi]
mov dword [0x10093944], eax
mov dword [0x1009394c], 1
test edi, edi
jne 0x1003eb78
push 0x3c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1003ec05
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov dword [edi], vtable.CVolObject.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 1
lea ecx, [edi + 0x10]
mov dword [edi], vtable.CVolException.0
call fcn.10002c10
mov byte [ebp - 4], 2
mov dword [edi + 0xc], 0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x20]
mov dword [edi], vtable.CVolException.0
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x20]
call dword [eax + 0x44]
lea eax, [ebx + 0x20]
push eax
lea ecx, [edi + 0x20]
call fcn.10003f90
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.1004f89d
int3
Function at 0x1003f010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067c7d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10091018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x10093948], 0xc
jl 0x1003f06b
push 0x1009394c
call fcn.100433c0
mov ecx, dword [0x10093944]
add esp, 4
test ecx, ecx
je 0x1003f05d
mov eax, dword [ecx]
mov dword [0x10093944], eax
mov dword [0x1009394c], 1
test ecx, ecx
jne 0x1003f082
push 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x1003f0df
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ecx], vtable.CVolObject.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
mov dword [ecx], vtable.CVolUserApp.0
mov dword [0x10093970], ecx
mov byte [ebp - 4], 2
mov dword [ecx], vtable.CVolUserApp.0
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.1004f89d
int3
Function at 0x1003f3a0
Capabilities:
Get system information on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100728eb
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x10091018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x800000
mov dword [0x10093930], 0x10082f2c
mov dword [0x10093938], 0x100830f8
push 0
mov dword [ebp - 0x14], 0x10093930
mov dword [0x1009394c], 1
mov dword [0x10093948], 0x100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x1003f638
lea eax, [ecx + 0x800000]
mov dword [0x10093944], ecx
mov dword [0x10093940], eax
mov edx, 0x7fff
mov eax, dword [0x10093948]
mov dword [0x1009393c], ecx
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x10093948]
add ecx, eax
sub edx, 1
jne 0x1003f434
mov dword [ecx], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0x10093950
mov dword [ebp - 0x18], 0x10093950
mov dword [ebp - 0x1c], 0x10093950
mov dword [0x10093950], 0x1008034c
mov dword [0x10093954], edx
mov dword [0x10093958], edx
mov byte [ebp - 4], 1
mov dword [0x10093950], 0x10080250
mov dword [0x1009395c], edx
mov dword [0x10093964], edx
mov dword [0x10093960], edx
mov dword [0x10093968], 0x40
mov byte [ebp - 4], 2
mov dword [0x10093968], 0x80
mov byte [ebp - 4], 5
mov dword [0x1009396c], edx
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10093980
mov dword [ebp - 0x20], 0x10093980
call esi
mov byte [ebp - 4], 7
mov dword [0x10093998], 0
mov byte [ebp - 4], 8
push 0x100939a4
mov dword [ebp - 0x24], 0x100939a4
call esi
mov byte [ebp - 4], 9
mov dword [0x100939bc], 0x3e8
mov dword [ebp - 0x28], 0x100939d0
mov dword [ebp - 0x2c], 0x100939d0
mov dword [0x100939d0], 0x1008034c
mov dword [0x100939d4], 0
mov dword [0x100939d8], 0
mov byte [ebp - 4], 0xa
mov dword [0x100939d0], 0x10080250
mov dword [0x100939dc], 0
mov dword [0x100939e4], 0
mov dword [0x100939e0], 0
mov dword [0x100939e8], 0x40
mov byte [ebp - 4], 0xb
mov dword [0x100939e8], 0x80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
mov dword [0x100939c4], 0x3e80
mov dword [0x100939c8], 1
mov dword [0x100939cc], 0
lea eax, [eax*2 + 2]
mov dword [0x100939c0], eax
mov byte [ebp - 4], 0xe
push 0x100939ec
call esi
mov byte [ebp - 4], 0xf
push ecx
mov ecx, 0x10093a04
call fcn.10003120
mov byte [ebp - 4], 0x10
mov dword [0x10093970], 0
mov dword [0x10093a2c], 0
movsd xmm0, qword [0x10083158]
movsd qword [0x10093978], xmm0
xorps xmm0, xmm0
mov dword [0x10093a30], 0
mov dword [0x10093a34], 0
mov dword [0x10093a38], 0
mov dword [0x10093974], 0
movq qword [0x1009399c], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x10093930
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.1004f89d
int3
Function at 0x10040190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
test ebx, ebx
jne 0x100401b2
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax]
mov ecx, eax
movzx eax, bx
push 0xa
push eax
push ecx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x10040287
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x10040287
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1004027e
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], edi
jl 0x10040262
cmp edi, 1
jne 0x10040227
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x10040279
cmp edi, 2
jne 0x1004023a
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x10040279
cmp edi, 4
jne 0x1004024b
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x10040279
cmp edi, 8
jne 0x10040262
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x14], edi
jmp 0x10040279
test edi, edi
jle 0x10040279
push edi
mov ecx, esi
call fcn.10042be0
push edi
push ebx
push eax
call fcn.10048e90
add esp, 0xc
mov edi, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100405e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x10093948]
jg 0x1004061b
push 0x1009394c
call fcn.100433c0
mov ecx, dword [0x10093944]
add esp, 4
test ecx, ecx
je 0x1004060d
mov eax, dword [ecx]
mov dword [0x10093944], eax
mov dword [0x1009394c], 1
test ecx, ecx
jne 0x10040631
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x10040638
mov eax, ecx
pop esi
pop ebp
ret 4
push 0xffffffffffffffff
call fcn.1004f89d
int3

Function at 0x100406a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x1009393c]
jb 0x10040714
cmp esi, dword [0x10093940]
jae 0x10040714
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x10093948]
jle 0x10040729
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1004072d
push dword [0x10093948]
push esi
push edi
call fcn.10048e90
push 0x1009394c
call fcn.100433c0
mov eax, dword [0x10093944]
add esp, 0x10
mov dword [esi], eax
mov dword [0x10093944], esi
mov esi, edi
mov dword [0x1009394c], 1
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
push dword [ebp + 0xc]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
jne 0x1004070d
push 0xffffffffffffffff
call fcn.1004f89d
int3
Function at 0x10041ac0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072c25
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
mov eax, dword [0x10091018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x10041c54
cmp word [esi], 0
je 0x10041c54
lea ecx, [ebp - 0x38]
call fcn.10002c10
mov dword [ebp - 4], 0
cmp word [esi], 0
je 0x10041c2e
cmp word [esi + 2], 0
je 0x10041b6b
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10041b20
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x10041b6b
cmp word [esi + ecx*2 - 4], 0x3a
je 0x10041b6b
lea eax, [ecx - 1]
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.10043fe0
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x10041b5f
cmp dword [ebp - 0x14], esi
je 0x10041c2e
mov esi, dword [ebp - 0x1c]
mov eax, esi
cmp word [eax], 0
je 0x10041c2e
cmp word [esi + 2], 0x3a
jne 0x10041b7d
cmp word [esi + 4], 0
je 0x10041c2e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10041c2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10041c2e
cmp eax, 3
jne 0x10041c2a
push 0x5c
push esi
call fcn.10048ccd
mov edx, eax
add esp, 8
test edx, edx
je 0x10041c2a
cmp word [edx + 2], 0
jne 0x10041bd8
sub edx, 2
cmp edx, esi
jb 0x10041c2a
cmp word [edx], 0x5c
je 0x10041bd8
sub edx, 2
cmp edx, esi
jae 0x10041bc7
xor esi, esi
jmp 0x10041c33
lea ecx, [ebp - 0x64]
call fcn.10002c10
mov byte [ebp - 4], 1
sub edx, esi
sar edx, 1
lea ecx, [ebp - 0x64]
push edx
push esi
call fcn.10043fe0
lea ecx, [ebp - 0x64]
call fcn.10016010
mov ecx, eax
call fcn.10041ac0
test eax, eax
je 0x10041c1e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.100039d0
jmp 0x10041c33
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.100039d0
xor esi, esi
jmp 0x10041c33
mov esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100039d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10041c70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072c6d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
mov eax, dword [0x10091018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x10041dcc
cmp word [esi], 0
je 0x10041dcc
push 0x44
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.10049420
or dword [ebp - 0x50], 1
xor eax, eax
mov dword [ebp - 0x38], vtable.CVolCommonBaseWithMemManager.0
add esp, 0xc
mov dword [ebp - 0x7c], 0x44
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x38], vtable.CVolObject.0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x38]
push esi
call fcn.10042ca0
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp dword [ebp - 0x24], ecx
cmove eax, ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10041d39
xor esi, esi
jmp 0x10041d5c
push 0x1f4
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10041d97
mov eax, dword [ebp - 0x38]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x10041d92
mov ecx, 0x10093938
call fcn.10043590
jmp 0x10041d97
lea ecx, [ebp - 0x38]
call eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov dword [ebp - 0x38], vtable.CVolObject.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10041de0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x10091018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x10041f48
cmp word [esi], 0
je 0x10041f48
lea ecx, [ebp - 0x244]
call fcn.10002c10
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x238], 0
test eax, eax
je 0x10041e57
push eax
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call dword [eax + 0xc]
movzx eax, word [esi]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
cmp eax, 0x5c
je 0x10041e90
test ax, ax
je 0x10041ec2
cmp word [esi + 2], 0x3a
jne 0x10041ec2
cmp word [esi + 4], 0x5c
jne 0x10041ec2
push 0x5c
push esi
call fcn.10048ccd
add esp, 8
test eax, eax
je 0x10041ec2
cmp eax, esi
jbe 0x10041eae
cmp word [eax - 2], 0x3a
lea ecx, [eax - 2]
cmovne eax, ecx
sub eax, esi
lea ecx, [ebp - 0x244]
add eax, 2
sar eax, 1
push eax
push esi
call fcn.10043fe0
mov edi, dword [ebp - 0x238]
test edi, edi
jne 0x10041ede
cmp dword [ebp - 0x220], edi
je 0x10041f29
mov edi, dword [ebp - 0x228]
test edi, edi
je 0x10041f29
cmp word [edi], 0
je 0x10041f29
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x10041f29
cmp word [edi], 0
je 0x10041f07
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp word [ebp - 0x218], 0
mov esi, eax
je 0x10041f32
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x10041f32
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.100039d0
mov eax, esi
jmp 0x10041f4a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10046e38
mov esp, ebp
pop ebp
ret
Function at 0x100431b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ecx + 0xc]
push esi
mov esi, dword [ecx + 0x14]
test eax, eax
je 0x1004320b
cmp word [eax], 0
je 0x1004320b
test esi, esi
js 0x1004320b
push edi
push 0x10083000
push eax
call fcn.10053d86
mov edi, eax
add esp, 8
test edi, edi
jne 0x100431e8
pop edi
pop esi
pop ebx
pop ebp
ret 8
push edi
push esi
push 1
push ebx
call fcn.10053c6d
xor ebx, ebx
cmp eax, esi
push edi
sete bl
call fcn.100534d5
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8

Function at 0x401206
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.Mig1
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x4030c0], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401325
push 1
push dword [0x4030c0]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Gendalf
push str.Mig1
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x4030c8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4030c8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401325
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x401308
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000128e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 1
push 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov dword [ebp - 8], 0
push 0
push dword [ebp - 8]
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100014be
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100012e0
push ebx
call fcn.100311b7
add esp, 4
push OleUIBusyA
push 0
push 0x100542cc
push OleUIBusyA
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x10001301
mov eax, 0x100542cf
push eax
push OleUIBusyA
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x10001317
mov eax, 0x100542cf
push eax
push OleUIBusyA
push 0
push str.__s____s_s
push 4
mov ebx, 0x30
mov eax, 0x10039660
call fcn.10031f10
add esp, 0x34
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
nop
cmp dword [ebp - 8], esp
je 0x1000136a
push 0x49
push 0x401dda5
push 6
call fcn.100311c9
add esp, 0xc
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000137a
push ebx
call fcn.100311b7
add esp, 4
mov esp, ebp
pop ebp
ret 8