joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409280
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x14]
cmp eax, 0xca
jne 0x4092ae
call fcn.0040dfa0
cmp byte [esi + 0x40], 0
je 0x4092a5
pop edi
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
jmp 0x4092b5
cmp eax, 0xcb
jne 0x40932a
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x409318
mov eax, dword [esi + 8]
test eax, eax
je 0x4092d0
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a8]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x409313
cmp eax, 2
je 0x409318
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4092c1
cmp eax, 3
je 0x4092f8
cmp eax, 1
jne 0x4092c1
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x4092c1
mov eax, dword [esi + 0x128]
add eax, edi
mov dword [edx + 8], eax
jmp 0x4092c1
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov ecx, esi
pop edi
mov dword [esi + 0x84], eax
pop esi
jmp 0x409360
cmp eax, 0xcc
je 0x40934c
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
pop edi
mov ecx, esi
pop esi
jmp 0x409360
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0xcc
lea ebx, [esi + 0x78]
je 0x40938d
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [ebx], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
je 0x409412
nop dword [eax]
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x4093e6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4093c5
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x19c]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x409429
cmp eax, dword [esi + 0x60]
jb 0x4093a7
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
jne 0x4093a0
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
Function at 0x40e370
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
mov edx, 0x100
mov dword [esp + 0x18], esi
mov ebp, dword [esi + 0x4c]
cmp ebp, 1
mov ebx, dword [esi + 0x1c0]
sete al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebp
mov byte [ebx + 0x1c], al
mov eax, 0x2fe
push dword [esi + 0x64]
mov ecx, dword [esi + 4]
cmovne eax, edx
push eax
push 1
push esi
mov eax, dword [ecx + 8]
call eax
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov dword [esp + 0xc], ecx
cmp dword [esi + 0x64], ecx
jle 0x40e484
push edi
nop dword [eax + eax]
mov edi, dword [ebx + ecx*4 + 0x20]
cdq
idiv edi
mov dword [esp + 0x14], eax
cmp ebp, 1
jne 0x40e3ea
mov eax, dword [ebx + 0x18]
add dword [eax + ecx*4], 0xff
mov eax, dword [ebx + 0x18]
dec edi
xor ebx, ebx
push edi
push ebx
mov ebp, dword [eax + ecx*4]
call fcn.0040e200
add esp, 8
mov edx, eax
xor esi, esi
cmp esi, edx
jle 0x40e416
inc ebx
push edi
push ebx
call fcn.0040e200
mov edx, eax
add esp, 8
cmp esi, edx
jg 0x40e405
mov ecx, dword [esp + 0x14]
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [esi + ebp], cl
inc esi
cmp esi, 0xff
jle 0x40e401
cmp dword [esp + 0x18], 1
jne 0x40e461
mov ecx, 1
lea edx, [ebp - 1]
nop
movzx eax, byte [ebp]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x40e440
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
inc ecx
mov ebp, dword [esp + 0x18]
cmp ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
jl 0x40e3d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x4238ad
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4238ec
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4238ec
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4238ec
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4238ec
cmp dword [ecx + 0x74], 0xe
jbe 0x4238ec
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43495b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4349a6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00434afa
test al, al
jne 0x4349a0
sub edx, 2
cmp edx, edi
jne 0x434986
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4349c8
lea eax, [edi + 2]
cmp edx, eax
je 0x4349c8
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004348a7
add esp, 0x10
jmp 0x434ac2
push esi
lea ecx, [ebp - 0x255]
call fcn.00434afa
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x434a0b
push dword [ebp - 0x25c]
jmp 0x4349b8
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x434a48
cmp word [ebp - 0x226], 0
je 0x434a69
cmp word [ebp - 0x226], ax
jne 0x434a48
cmp word [ebp - 0x224], 0
je 0x434a69
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004348a7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x434ab5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x434a22
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x434a9d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x434ac2
push 0x434608
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004399d0
add esp, 0x10
jmp 0x434a92
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422fb4
leave
ret
Function at 0x435554
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4355f1
push ebx
push esi
call fcn.0043551d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00435466
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43559e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4355f0
push edi
push eax
call fcn.00433058
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4355be
call fcn.00432362
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4355ef
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00435466
add esp, 0x20
test eax, eax
jne 0x4355dd
push edi
call fcn.00432362
jmp 0x4355e5
push ebx
call fcn.00432362
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x436614
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x440fb0
push 0x440fa8
push str.FlsAlloc
push 0x1e
call fcn.004364d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x436648
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e3b0]
call esi
jmp 0x43664e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x436692
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x440fc0
push 0x440fb8
push str.FlsGetValue
push 0x20
call fcn.004364d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4366c9
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e3b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43d0b0
Capabilities:
Parse pe header

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

Function at 0x1007a58
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
test edx, edx
jbe 0x1007a87
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
movzx si, byte [eax + 1]
mov di, word [eax]
shl di, 8
xor si, di
mov word [ecx], si
inc ecx
inc ecx
inc eax
inc eax
dec edx
jne 0x1007a6c
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
or esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
push esi
pop eax
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
push eax
pop esi
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x408d8d
Capabilities:
Get disk information

Disassembly:
xor eax, eax
lea eax, [eax + 0x40a51c]
call dword [eax]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx - 0x3ca214], cl
jmp dword [sym.imp.kernel32.dll_OpenMutexW]
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1fe646e4
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x598945f2
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4019a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x551aa8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x53e320
push 0x13a3
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401a19
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x11c]
push ecx
push 0
push eax
push ebx
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
mov dword [esi + 0x9f54], eax
test eax, eax
jne 0x401a19
push eax
push 0x53e2f0
push str.Font_add_fails
mov ecx, esi
call dword [sym.imp.mfc100u.dll_CWnd::MessageBoxW]
push 0x5c
lea edx, [ebp - 0x60]
push 0
push edx
call sub.MSVCR100.dll_memset
mov edi, dword [sym.imp.MSVCR100.dll_wcscpy_s]
push str.Roboto
lea eax, [ebp - 0x44]
push 0x20
mov bl, 7
push eax
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x50], 0x190
mov byte [ebp - 0x48], bl
call edi
push 0x5c
lea ecx, [ebp - 0xbc]
push 0
push ecx
call sub.MSVCR100.dll_memset
push str.Roboto
lea edx, [ebp - 0xa0]
push 0x20
push edx
mov dword [ebp - 0xbc], 0x12
mov dword [ebp - 0xac], 0x190
mov byte [ebp - 0xa4], bl
call edi
push 0x5c
lea eax, [ebp - 0x118]
push 0
push eax
call sub.MSVCR100.dll_memset
push str.Roboto
lea ecx, [ebp - 0xfc]
push 0x20
push ecx
mov dword [ebp - 0x118], 0x13
mov dword [ebp - 0x108], 0x190
mov byte [ebp - 0x100], bl
call edi
mov edi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
add esp, 0x48
lea edx, [ebp - 0x60]
push edx
call edi
mov ebx, dword [sym.imp.mfc100u.dll_CGdiObject::Attach]
push eax
lea ecx, [esi + 0xc8]
call ebx
lea eax, [ebp - 0x60]
push eax
call edi
push eax
lea ecx, [esi + 0x7b70]
call ebx
lea ecx, [ebp - 0x60]
push ecx
call edi
push eax
lea ecx, [esi + 0x7b60]
call ebx
lea edx, [ebp - 0x60]
push edx
call edi
push eax
lea ecx, [esi + 0x7b68]
call ebx
lea eax, [ebp - 0xbc]
push eax
call edi
push eax
lea ecx, [esi + 0x7b78]
call ebx
lea ecx, [ebp - 0x118]
push ecx
call edi
push eax
lea ecx, [esi + 0x7b80]
call ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0050bf32
mov esp, ebp
pop ebp
ret
Function at 0x405630
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ef2b
mov eax, dword fs:[0]
push eax
sub esp, 0xa34
mov eax, dword [0x551aa8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x420]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x626]
push ecx
mov word [ebp - 0x628], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call sub.MSVCR100.dll_memset
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x82e]
push edx
mov word [ebp - 0x830], cx
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0xa36]
push ecx
mov word [ebp - 0xa38], ax
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0xa38]
push edx
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x628]
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.MSVCR100.dll__wsplitpath]
add esp, 0x44
lea ecx, [ebp - 0xa3c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x628]
push edx
lea eax, [ebp - 0xa3c]
push str._s_sLog
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x10
lea ecx, [ebp - 0xa3c]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x405789
push 0
lea ecx, [ebp - 0xa3c]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [0x55c33c], 0
jne 0x4057be
push 0x4014
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
mov dword [ebp - 0xa40], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4057b7
mov esi, eax
call fcn.004166f0
jmp 0x4057b9
xor eax, eax
mov dword [0x55c33c], eax
lea ecx, [ebp - 0xa3c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050bf32
mov esp, ebp
pop ebp
ret
Function at 0x408850
Capabilities:
Create thread

Disassembly:
cmp dword [0x55c328], 0
jne 0x4088b8
push esi
push 0xa4
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
test eax, eax
je 0x408875
mov esi, eax
call fcn.0040fa80
jmp 0x408877
xor eax, eax
mov dword [0x55c328], eax
test edi, edi
jne 0x408884
xor ecx, ecx
jmp 0x408887
mov ecx, dword [edi + 0x20]
lea esi, [eax + 4]
mov dword [eax + 0x44], ecx
cmp dword [esi + 4], 0xffffffff
jne 0x4088b7
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x40fa60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x4088b7
mov dword [esi + 0xc], 1
pop esi
ret

Function at 0x408ed0
Capabilities:
Get number of processors

Disassembly:
push ebx
push esi
mov esi, eax
push edi
lea ecx, [esi + 0x7690]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea ecx, [esi + 0x7694]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea ecx, [esi + 0x7698]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea ecx, [esi + 0x769c]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea ecx, [esi + 0x76a0]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea ecx, [esi + 0x76a4]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
mov edi, dword [esi + 0xd4]
xor ebx, ebx
cmp edi, ebx
je 0x408fb5
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408f5c
mov ecx, edi
mov dword [edi + 0x90], ebx
mov dword [edi + 0x94], 0x64
mov dword [edi + 0x98], 1
call fcn.004191c0
mov edi, dword [esi + 0xd4]
test edi, edi
jne 0x408f6a
xor eax, eax
jmp 0x408f6d
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408fb5
mov eax, dword [edi + 0x94]
test eax, eax
jns 0x408f84
mov ebx, eax
mov eax, dword [edi + 0x90]
cmp ebx, eax
jge 0x408f90
mov ebx, eax
mov eax, dword [edi + 0xa8]
cmp ebx, eax
jge 0x408f9c
mov ebx, eax
mov eax, dword [edi + 0xb8]
mov ecx, edi
mov dword [edi + 0xb4], eax
mov dword [edi + 0xb8], ebx
call fcn.004191c0
mov edi, dword [esi + 0xd8]
test edi, edi
je 0x409052
mov eax, dword [edi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
test eax, eax
je 0x408ff8
mov ecx, edi
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0x64
mov dword [edi + 0x98], 1
call fcn.004191c0
mov esi, dword [esi + 0xd8]
xor edi, edi
test esi, esi
jne 0x409008
xor eax, eax
jmp 0x40900b
mov eax, dword [esi + 0x20]
push eax
call ebx
test eax, eax
je 0x409052
mov eax, dword [esi + 0x94]
test eax, eax
jns 0x40901e
mov edi, eax
mov eax, dword [esi + 0x90]
cmp edi, eax
jge 0x40902a
mov edi, eax
mov eax, dword [esi + 0xa8]
cmp edi, eax
jge 0x409036
mov edi, eax
mov ecx, dword [esi + 0xb8]
mov dword [esi + 0xb4], ecx
mov dword [esi + 0xb8], edi
mov ecx, esi
pop edi
pop esi
pop ebx
jmp fcn.004191c0
pop edi
pop esi
pop ebx
ret
Function at 0x40be90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ffac
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x551aa8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x543b34
mov esi, ecx
call fcn.004172c0
add esp, 4
call fcn.0040bfc0
test eax, eax
jns 0x40bedf
mov eax, 0x80004005
jmp 0x40bf9f
mov ecx, esi
call fcn.0040c2f0
test eax, eax
js 0x40bed5
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
add esi, 0x60
push eax
mov ecx, esi
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov ecx, dword [esi]
mov edi, dword [ecx - 0xc]
push edi
mov ecx, esi
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
cmp ax, 0x5c
jne 0x40bf4f
push edi
mov ecx, esi
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
cmp ax, 0x2f
je 0x40bf59
push 0x5c
mov ecx, esi
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_4]
mov edi, dword [0x55c300]
lea edx, [ebp - 0x21c]
push esi
push edx
call fcn.00403130
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [eax]
call fcn.004145f0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push str.PatchInfo_Init_Success_
call fcn.004172c0
add esp, 4
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.0050bf32
mov esp, ebp
pop ebp
ret