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

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x10112bf7
mov edi, dword [esp + 0x10]
push edi
call fcn.10162aeb
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [ecx]
push eax
push edi
push 1
push ecx
call fcn.1012b411
sub eax, edi
add esp, 0x14
neg eax
sbb eax, eax
pop edi
and eax, 0x21
pop esi
ret 0xc
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x10112c2b
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10112c2b
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x10112c15
mov eax, dword [esi + 0x7c]
test eax, eax
jg 0x10112c2b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.10112cf0
pop edi
pop esi
ret 0xc
mov ecx, dword [esi + 0x18]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x14]
mov edi, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, 0x5a
jle 0x10112c5e
cmp edi, 0x5a
jle 0x10112c5e
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
je 0x10112c5e
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi + 0x7c]
imul eax, dword [esi + 0x3c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x1fff
add eax, edx
mov edi, eax
mov eax, dword [esi + 0x40]
sar edi, 0xd
cmp edi, eax
jbe 0x10112c8d
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov al, byte [esp + 0x18]
test al, al
je 0x10112cd3
cmp ebx, 1
jge 0x10112cd3
mov ecx, dword [esi + 0x18]
mov edx, edi
shr edx, 1
cmp dword [ecx + 0xc], edx
jae 0x10112cd3
mov al, byte [esi + 0x1d]
test al, al
jne 0x10112cd3
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0xc], edi
jae 0x10112cd3
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0x5a
jg 0x10112cd3
mov al, byte [esi + 0x1d]
test al, al
je 0x10112cb3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.10112cf0
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x10113ea0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, ecx
mov al, byte [ebp + 0x24]
test al, al
jne 0x10113ec7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push 1
push edx
call fcn.1012b411
add esp, 0x10
pop ebp
ret 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.1012b692
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
push 1
push ebx
call fcn.1012b411
mov esi, eax
add esp, 0x14
test esi, esi
jbe 0x10113efb
push esi
push ebx
push edi
mov ecx, ebp
call fcn.101140c0
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x10113f10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x102ff924]
xor edx, edx
cmp eax, edx
jne 0x10113f36
xor eax, eax
mov byte [eax + 0x102ff824], al
inc eax
cmp eax, 0x100
jl 0x10113f1e
mov dword [0x102ff924], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x102ff824
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10113fc7
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 0x10113f9a
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 0x10113f68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10114040
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 0x10114093
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 0x1011407a
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 0x1011aa60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1017695e
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.1011b380
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x1019f5f0
call fcn.10162aeb
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x1011aaf3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10162aeb
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x1011aaec
push 0
mov ecx, eax
call fcn.10111b60
mov dword [esi + 0xc], eax
jmp 0x1011aaf5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x1011aaf5
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 0x10134da3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102a8e34]
jne 0x10134dad
repz ret
jmp fcn.1013c739
Function at 0x1013d9c9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x102a8e34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1012f907
and dword [ebp - 0x14], 0
cmp dword [0x10312510], 0
mov dword [ebp - 0x18], eax
jne 0x1013da7c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1013db24
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1013db24
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x101a88ec
push ebx
mov dword [0x10312510], eax
call edi
push eax
call esi
push 0x101a88d8
push ebx
mov dword [0x10312514], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10312518], eax
call edi
push eax
call esi
mov dword [0x10312520], eax
test eax, eax
je 0x1013da7c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1031251c], eax
mov eax, dword [0x1031251c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1013dad5
cmp dword [0x10312520], ecx
je 0x1013dad5
push eax
call esi
push dword [0x10312520]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1013dad5
test ebx, ebx
je 0x1013dad5
call edi
test eax, eax
je 0x1013dacc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1013dacc
test byte [ebp - 8], 1
jne 0x1013dad5
or dword [ebp + 0x10], 0x200000
jmp 0x1013db08
mov eax, dword [0x10312514]
cmp eax, dword [ebp - 0x18]
je 0x1013db08
push eax
call esi
test eax, eax
je 0x1013db08
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1013db08
mov eax, dword [0x10312518]
cmp eax, dword [ebp - 0x18]
je 0x1013db08
push eax
call esi
test eax, eax
je 0x1013db08
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10312510]
call esi
test eax, eax
je 0x1013db24
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1013db26
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10134da3
leave
ret
Function at 0x10143bd4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x10143cf5
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x10143cd9
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x10143c2b
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x10143c09
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x1014473d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10144794
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x10144794
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x10144794
xor eax, eax
inc eax
jmp 0x10144796
xor eax, eax
leave
ret 0x10
Function at 0x101447bf
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x1014482d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x101abfb4
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10144824
cmp dword [ebp - 0xc], 4
jne 0x10144824
cmp dword [ebp - 0x10], edi
je 0x10144824
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x102aaf70], edi
xor eax, eax
jmp 0x1014486c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x102aaf70], edi
jge 0x10144867
lea eax, [ebp - 0x34]
push eax
mov dword [0x102aaf70], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x10144867
cmp word [ebp - 0x14], 5
jb 0x10144867
call fcn.1014479a
test eax, eax
je 0x10144867
emms
mov dword [0x102aaf70], 1
mov eax, dword [0x102aaf70]
pop edi
leave
ret

Function at 0x101651f3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1016522b
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.10163205
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.101631dd
jmp 0x10165237
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x10166b74
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 0x10166bb6
call fcn.1016d393
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10166bb6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10166bad
xor eax, eax
jmp 0x10166bbe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10166bc4
pop edi
pop esi
pop ebx
ret 4
Function at 0x401910
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41a430
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, ecx
push edi
xor edi, edi
mov al, byte [esi + 0x2e]
mov dword [esp + 0xc], edi
test al, al
je 0x4019a2
mov al, byte [esi + 0xddc]
mov cl, byte [esi + 0xddd]
cmp al, cl
jne 0x401954
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov cl, byte [esi + 0xddc]
mov al, byte [esi + 0xddd]
cmp cl, al
je 0x4019b8
mov ecx, dword [esp + 0x24]
xor edx, edx
mov dl, byte [esi + 0xddd]
mov al, byte [edx + esi + 0xcdc]
mov edx, dword [esp + 0xc]
mov byte [edx + ebp], al
mov edx, dword [esp + 0xc]
mov al, byte [esi + 0xddd]
inc edx
inc al
dec ecx
mov dword [esp + 0xc], edx
mov byte [esi + 0xddd], al
je 0x4019b8
cmp byte [esi + 0xddc], al
jne 0x401968
jmp 0x4019b8
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x10]
lea eax, [esp + 0xc]
push edi
push eax
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], edi
je 0x401ad1
mov al, byte [esi + 0x2c]
test al, al
je 0x401ab9
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [esi + 0x1a4]
mov byte [esp + 0x18], 1
test edi, edi
jne 0x401a02
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [esi + 0x1a4], edi
jmp 0x401a0e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x1a4], eax
mov eax, dword [esi + 0x1a4]
lea ecx, [esp + 0x24]
sub eax, edi
push eax
push str._r_nIN___4d__:
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 0xc
xor edi, edi
test eax, eax
jle 0x401a84
xor edx, edx
lea eax, [esp + 0x20]
mov dl, byte [edi + ebp]
push edx
push str._02X
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::operator
mov edx, edi
and edx, 0x8000000f
jns 0x401a68
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 0xf
jne 0x401a7b
push 0x42d6c0
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0xc]
inc edi
cmp edi, eax
jl 0x401a33
mov eax, dword [esp + 0x24]
mov byte [esi + 0x2d], 1
push eax
push esi
call fcn.004016d0
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esi + 0x2d], 0
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x401af0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41a450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x2c]
test al, al
je 0x401c0f
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [esi + 0x1a4]
mov byte [esp + 0x1c], 1
test edi, edi
jne 0x401b58
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [esi + 0x1a4], edi
jmp 0x401b64
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x1a4], eax
mov eax, dword [esi + 0x1a4]
lea ecx, [esp + 0x28]
sub eax, edi
push eax
push str._r_nOUT__4d__:
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
xor edi, edi
test ebp, ebp
mov dword [esp + 0x24], ebp
jle 0x401bda
xor edx, edx
lea eax, [esp + 0x10]
mov dl, byte [edi + ebx]
push edx
push str._02X
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
mov edx, edi
and edx, 0x8000000f
jns 0x401bbe
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 0xf
jne 0x401bd1
push 0x42d6c0
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x24]
inc edi
cmp edi, eax
jl 0x401b89
mov eax, dword [esp + 0x28]
mov byte [esi + 0x2d], 1
push eax
push esi
call fcn.004016d0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esi + 0x2d], 0
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, byte [esi + 0x2e]
test al, al
je 0x401c42
mov edx, dword [esi + 0x10]
lea edi, [esi + 0xcb4]
lea ecx, [esp + 0x24]
push edi
push ecx
push ebp
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x24]
push 1
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x401c83
mov eax, dword [esi + 0x184]
test eax, eax
jne 0x401c61
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x24]
push 0
push edx
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401c83
xor edi, edi
test ebp, ebp
jle 0x401c83
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [edi + ebx]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, ebp
jl 0x401c67
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x40f930
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov esi, dword [ebp + 0x170]
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
mov dword [esp + 0x14], 0
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x18]
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f9e8
cmp dword [esp + 0x14], esi
jne 0x40f9e8
cmp byte [ebx + 1], 0x46
jne 0x40f9e8
cmp byte [ebx + 2], 0xb9
jne 0x40f9e8
cmp byte [ebx + 3], 0x68
jne 0x40f9e8
mov al, byte [ebx + 4]
test al, al
jne 0x40f9e8
xor edx, edx
push 3
mov dl, byte [ebx + 5]
mov ecx, ebp
mov esi, edx
sub esi, 6
lea eax, [esi + 3]
push eax
push ebx
call fcn.004017e0
mov dl, byte [esi + ebx + 6]
xor ecx, ecx
mov cl, ah
cmp dl, cl
jne 0x40f9e8
cmp byte [esi + ebx + 7], al
jne 0x40f9e8
cmp byte [esi + ebx + 8], 0x16
jne 0x40f9e8
mov edi, dword [esp + 0x1c]
mov ecx, esi
mov edx, ecx
mov dword [esp + 0x10], esi
lea esi, [ebx + 6]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 0x1a8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x40fa10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [ecx + 0x174]
push edi
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
call sub.MFC42.DLL_operatornew
mov edi, eax
push pe_nt_image_headers32
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov ebx, dword [esp + 0x2c]
and ecx, 3
mov esi, dword [esp + 0x30]
rep stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
mov edi, ebp
add esp, 8
rep stosd dword es:[edi], eax
mov byte [ebp + 3], al
mov ecx, ebx
mov al, bl
mov edx, ecx
add al, 6
lea edi, [ebp + 5]
shr ecx, 2
mov byte [ebp], 0x46
mov byte [ebp + 1], 0xb9
mov byte [ebp + 2], 0x6a
mov byte [ebp + 4], al
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebx + 3]
and ecx, 3
push 2
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push eax
push ebp
call fcn.004017e0
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov cl, ah
mov byte [ebx + ebp + 5], cl
mov byte [ebx + ebp + 6], al
mov byte [ebx + ebp + 7], 0x16
lea eax, [edx + 8]
xor ebx, ebx
mov dword [esp + 0x24], eax
test eax, eax
jle 0x40fb0f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
lea esi, [ebx + ebp]
push 0
lea ecx, [eax - 1]
lea edi, [edx + 1]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x18]
mov esi, eax
lea eax, [edx - 1]
add ebx, eax
mov eax, dword [esp + 0x24]
cmp ebx, eax
jl 0x40fac0
jmp 0x40fb13
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push eax
call sub.MFC42.DLL_operatordelete
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x40fb40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x5c
xor eax, eax
push ebp
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x18], eax
mov ebp, ecx
mov dword [esp + 0x1c], eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x20], eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
stosb byte es:[edi], al
push ecx
mov ecx, dword [ebp + 0x10]
push edx
lea eax, [esp + 0x2c]
push 0x41
push eax
push ecx
mov dword [ebp + 0x1a8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40fc01
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x40fbbd
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x5c
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov al, byte [ebp + 0x1b]
test al, al
je 0x40fbeb
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0xc]
push 0
lea eax, [esp + 0x14]
push edx
push eax
push ecx
call esi
test eax, eax
jne 0x40fc01
call edi
cmp eax, 0x3e4
jne 0x40fc01
jmp 0x40fbc3
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x5c
ret 4
mov eax, dword [esp + 0x26]
mov edi, dword [esp + 0x6c]
push ebx
mov ebx, dword [esp + 0x2b]
and eax, 0xff
and ebx, 0xff
test edi, edi
mov dword [ebp + 0x1a0], eax
je 0x40fc37
mov ecx, ebx
lea esi, [esp + 0x2c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x1a8], ebx
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x5c
ret 4