joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407aa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x407ad4
cmp byte [edi + 1], 0
je 0x407acd
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x407ada
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
je 0x407af9
cmp byte [edi + 1], 0
je 0x407af5
push 1
push 0
push 0
push dword [edi + 4]
call ecx
sub eax, dword [edi + 0xc]
jmp 0x407afc
xor eax, eax
jmp 0x407afc
mov eax, dword [edi + 0x18]
push ebx
mov ebx, 0xffff
mov dword [ebp - 4], eax
cmp eax, ebx
push esi
cmovb ebx, eax
push 0x404
mov dword [ebp - 0x1c], ebx
call fcn.00520fcc
mov esi, eax
add esp, 4
test esi, esi
jne 0x407b28
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0xc], 0
cmp ebx, eax
jbe 0x407c2a
lea esp, [esp]
mov ecx, dword [ebp - 4]
add eax, 0x400
cmp eax, ebx
mov edx, eax
mov eax, 0x404
cmova edx, ebx
mov ebx, dword [ebp - 4]
sub ecx, edx
mov dword [ebp - 0x18], edx
sub ebx, ecx
mov dword [ebp - 0x14], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x407b8e
cmp byte [edi + 1], 0
je 0x407c2a
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x407b91
mov dword [edi + 0x18], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 8], ebx
je 0x407bb9
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407bb4
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x10]
jmp 0x407be2
mov edx, dword [edi + 0x18]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
jbe 0x407bcc
mov ecx, dword [edi + 0x14]
sub ecx, edx
mov dword [ebp - 8], ecx
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edx
push ecx
push esi
call fcn.005244d0
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [edi + 0x18], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x407c2a
lea eax, [ebx - 3]
test eax, eax
jle 0x407c1c
dec eax
cmp byte [eax + esi], 0x50
jne 0x407c0e
cmp byte [eax + esi + 1], 0x4b
jne 0x407c0e
cmp byte [eax + esi + 2], 5
jne 0x407c0e
cmp byte [eax + esi + 3], 6
je 0x407c14
test eax, eax
jg 0x407bf2
jmp 0x407c1c
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jne 0x407c2a
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
cmp eax, ebx
jb 0x407b40
push esi
call fcn.00520f94
mov eax, dword [ebp - 0xc]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x408900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x408989
cmp dword [esi + 4], 0xffffffff
jne 0x408989
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
jmp 0x408930
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x408930
mov eax, dword [0x578880]
push 0x1c
mov dword [edi], eax
mov dword [ebp - 4], 0
call fcn.00409fef
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x14], ecx
mov ecx, eax
mov word [eax], 0x100
mov dword [eax + 0x18], 0
mov dword [eax + 0xc], 0
call fcn.00407c40
mov dword [esi], eax
mov eax, dword [0x5a1234]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409070
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x596120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
mov esi, ecx
test ebx, ebx
je 0x40915a
movzx eax, word [ebx]
test ax, ax
je 0x40915a
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x4090ae
cmp ax, 0x5c
jne 0x4090b0
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4090a2
cmp edi, ebx
je 0x4090fa
sub edi, ebx
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push ebx
push eax
call fcn.005212ae
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x40916a
xor eax, eax
lea edx, [ebp - 0x20c]
mov ecx, esi
mov word [ebp + edi - 0x20c], ax
call fcn.00409070
lea ecx, [ebp - 0x414]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x409102
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x409114
lea edi, [ebp - 0x414]
sub ebx, esi
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409130
mov ecx, ebx
lea eax, [ebp - 0x414]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0051ef35
mov esp, ebp
pop ebp
ret
call fcn.0052098a
int3
Function at 0x4095b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.005241a0
mov eax, dword [0x596120]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1ffc
lea eax, [ebp - 0x2000]
mov dword [ebp - 0x2004], 0
push 0
push eax
call fcn.00521b90
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2004]
push 0xfff
push eax
call fcn.0051f6fe
add esp, 0x1c
test eax, eax
js 0x40960c
cmp eax, 0xfff
ja 0x40960c
jne 0x409612
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051ef35
mov esp, ebp
pop ebp
ret

Function at 0x4096c0
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5375d8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
mov eax, dword [0x596120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x44
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00521b90
add esp, 0xc
mov dword [ebp - 0x68], 0x44
lea eax, [ebp - 0x20]
mov dword [ebp - 0x64], 0
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x3c], 1
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x38], 5
push 0
push 0
push 0
push 0
push 0
push esi
push 0
mov dword [ebp - 0x34], 0
movdqu xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4097df
call fcn.0040ae72
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x409773
push 0x80004005
call fcn.00405120
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.callreg_error___08X___ws
push eax
call fcn.00404b20
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4097cd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4103e9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041082f
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x410425
call fcn.00410608
mov dword [esi + 0xc], 1
jmp 0x41042a
call fcn.00410608
cmp dword [esi], 0
je 0x410473
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x41044d
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0040ab61
jmp 0x41045e
push 0xff
mov ecx, esi
call fcn.004050e0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00404b40
jmp 0x410497
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x410497
push dword [esi]
push dword [ebp - 4]
call fcn.0040f9e1
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41055d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00410608
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4105a5
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ab61
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404b40
jmp 0x4105b0
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0040f9e1
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41460c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x414651
call fcn.0040c9a9
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x414651
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41466d
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041cd92
mov ebx, eax
test edi, edi
je 0x41466b
test esi, esi
je 0x41466b
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41a247
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0040c9a9
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41a27e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0041a29f
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41fb37
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0042f807
call fcn.0040c9f7
cmp dword [eax + 0x14], 0
jne 0x41fb52
mov ecx, esi
pop esi
jmp fcn.0041ef0e
pop esi
ret

Function at 0x42d4c6
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00404970
call fcn.0040c9f7
cmp dword [eax + 0x14], 0
jne 0x42d4e1
mov ecx, esi
pop esi
jmp fcn.0042cdaf
pop esi
ret
Function at 0x531b38
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x596120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00526bd3
mov dword [ebp - 0x14], eax
cmp dword [0x5a1188], esi
jne 0x531c2b
push 0x800
push esi
push 0x573580
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x531bb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x531d0b
push esi
push esi
push 0x573580
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x531d0b
push 0x573598
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x531d0b
push eax
call ebx
push 0x5735a4
push edi
mov dword [0x5a1188], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5735b4
push edi
mov dword [0x5a118c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5a1190], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a1198], eax
test eax, eax
je 0x531c28
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a1194], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x531c50
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x531c43
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x531c65
push 4
pop eax
jmp 0x531d0d
cmp dword [ebp - 0x14], esi
je 0x531c65
push dword [0x5a1188]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x531c4a
mov eax, dword [0x5a1194]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x531cc3
cmp dword [0x5a1198], edi
je 0x531cc3
push eax
call ebx
push dword [0x5a1198]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x531cc3
test eax, eax
je 0x531cc3
call ecx
test eax, eax
je 0x531cb8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x531cb8
test byte [ebp - 8], 1
jne 0x531cc3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x531cf3
mov eax, dword [0x5a118c]
cmp eax, edi
je 0x531cf0
push eax
call ebx
test eax, eax
je 0x531cf0
call eax
mov esi, eax
test esi, esi
je 0x531cf0
mov eax, dword [0x5a1190]
cmp eax, edi
je 0x531cf0
push eax
call ebx
test eax, eax
je 0x531cf0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5a1188]
call ebx
test eax, eax
je 0x531d0b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x531d0d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051ef35
mov esp, ebp
pop ebp
ret
Function at 0x401420
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x413d4d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov al, byte [esp + 3]
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea ebp, [ebx + 8]
xor edi, edi
mov dword [esp + 0x1c], ebx
mov byte [ebp], al
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
mov dl, byte [esp + 0x13]
mov al, byte [esp + 0x13]
lea ecx, [ebx + 0x18]
mov dword [esp + 0x28], edi
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], 0
call fcn.00403e30
mov dl, byte [esp + 0x13]
mov al, byte [esp + 0x13]
lea ecx, [ebx + 0x28]
mov byte [esp + 0x28], 1
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], 0
call fcn.004043a0
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
lea esi, [ebx + 0x38]
push 1
push edi
mov byte [esp + 0x30], 2
mov byte [esi], cl
mov ecx, esi
mov byte [esi + 1], dl
mov byte [esi + 8], 0
call fcn.004049a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
cmp dword [0x41b838], edi
jne 0x4014e2
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], edi
mov dword [0x41b838], eax
mov dword [eax], edi
mov eax, dword [0x41b838]
mov dword [eax + 8], edi
mov edx, dword [0x41b834]
lea ecx, [esp + 0x18]
inc edx
mov dword [0x41b834], edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40150a
push eax
call fcn.004134f0
add esp, 4
mov ecx, dword [0x41b838]
push edi
push ecx
mov ecx, esi
call fcn.004049a0
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
mov edi, 0x41b844
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx], fcn.00401b00
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebp
push esi
mov byte [esp + 0x30], 3
mov dword [esp + 0x1c], esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40157a
mov edi, dword [ebp + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x41b844
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], eax
mov byte [ecx + eax], 0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov byte [ebx + 4], 0
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x409180
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push eax
push edx
push esi
call fcn.004091c0
test al, al
jne 0x40919d
pop esi
ret 0xc
mov eax, dword [esi + 4]
test eax, eax
jne 0x4091a9
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
mov al, 1
pop esi
ret 0xc
Function at 0x40c770
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414b20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1010
call fcn.00413570
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
push 1
lea eax, [esi + 4]
lea ecx, [ebp - 0x20]
push eax
call sub.MFC42.DLL_CSingleLock::CSingleLock
mov dword [ebp - 4], 0
push 0x41b844
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
push ecx
push edx
lea eax, [ebp - 0x1020]
mov ebx, 3
push 0x1000
push eax
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCRT.dll__vsnprintf]
mov ecx, dword [ebp + 0xc]
add esp, 0x10
lea eax, [ecx - 1]
cmp eax, ebx
ja case.default.0x40c801
jmp dword [eax*4 + 0x40c994]
push 0x41b4e4
lea ecx, [ebp - 0x14]
call fcn.004137c6
push 0x41b4dc
lea ecx, [ebp - 0x14]
call fcn.004137c6
push 0x41b4d8
lea ecx, [ebp - 0x14]
call fcn.004137c6
push 0x41b4d4
lea ecx, [ebp - 0x14]
call fcn.004137c6
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1020]
push edx
push eax
lea ecx, [ebp + 8]
push 0x41b4cc
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp + 8]
add esp, 0x10
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40c893
push 0x41b4a8
push 0x41b118
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
mov cl, byte [ecx + eax - 1]
cmp cl, 0xa
je 0x40c893
push 0x41b4a8
lea ecx, [ebp + 8]
call fcn.004137c6
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp + 8]
mov eax, dword [edx - 8]
test eax, eax
je 0x40c8e2
push 0x41b4a8
push 0x41b118
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0xa
je 0x40c8d0
push 0x41b4a8
lea ecx, [ebp + 8]
call fcn.004137c6
push 0x41b118
push 0x41b4a8
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Replace
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
call fcn.0040c6b0
mov ecx, dword [ebp + 0xc]
push 0
mov byte [ebp - 4], 4
mov esi, dword [ecx - 8]
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [0x41b9bc]
push esi
push eax
mov edx, dword [ecx]
call dword [edx + 0x40]
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp + 8]
mov esi, dword [eax - 8]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [0x41b9bc]
push esi
push eax
mov edx, dword [ecx]
call dword [edx + 0x40]
mov ecx, dword [0x41b9bc]
mov eax, dword [ecx]
call dword [eax + 0x50]
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00413760
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00413760
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00413760
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CSingleLock::Unlock
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414e0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4168a4
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x40f1c0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x40f187
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x40f1b1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x40f1c6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x40f1c6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x416890
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x416718
mov dword [esp + 0x1c], 0xffffffff
call fcn.00413a4e
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x410e20
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x415188
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0x41b658
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x7c]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x14], 0
call fcn.004137c6
mov ecx, dword [esp + 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0xc4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x410ed0
mov edx, dword [0x41b5c8]
push 0
push edx
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x410eaa
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00413760
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00413760
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x411e40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x415338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 4]
push ecx
mov ecx, eax
call fcn.00410ce0
add esi, 0x74
lea ecx, [esp + 4]
push esi
mov dword [esp + 0x14], 0
call fcn.00413c5e
mov edx, dword [esp + 4]
push 0x41b350
lea ecx, [esp + 8]
mov esi, dword [edx - 8]
call sub.MFC42.DLL_CString::Find
add esi, 0xfffffffc
cmp eax, esi
pop esi
je 0x411ead
push 0x41b350
lea ecx, [esp + 4]
call fcn.004137c6
mov eax, dword [esp]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp]
mov dword [esp + 0xc], 0xffffffff
call fcn.00413760
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret