joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433203
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x44800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x424]
mov dword [ebp - 0x42c], 0
push eax
push 0x1a
push 0
mov dword [ebp - 0x424], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00420c30
mov eax, dword [ebp - 0x424]
add esp, 0xc
test eax, eax
je 0x4054a7
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4054a7
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00420c30
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, dword [sym.imp.LxBase.dll_allocStringFromWideChars]
lea eax, [ebp - 0x420]
push eax
call ebx
mov esi, eax
mov byte [ebp - 0x42c], 1
add esp, 4
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x4053d4
mov edx, dword [ecx]
call dword [edx + 0x98]
mov dword [edi], esi
mov byte [edi + 4], 1
push 0x440600
call ebx
mov esi, eax
mov byte [ebp - 0x434], 1
add esp, 4
mov dword [ebp - 0x438], esi
mov dword [ebp - 4], 2
test esi, esi
jne 0x405406
mov dword [ebp - 0x428], eax
jmp 0x405426
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 0x42c], eax
call dword [edx + 0x44]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x42c]
mov ecx, dword [edi]
push eax
push 0
push dword [ebp - 0x428]
mov edx, dword [ecx]
call dword [edx + 0x5c]
mov dword [ebp - 4], 3
test esi, esi
je 0x40544b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x98]
push 0x440590
call ebx
mov esi, eax
mov byte [ebp - 0x434], 1
add esp, 4
mov dword [ebp - 0x438], esi
mov dword [ebp - 4], 4
test esi, esi
jne 0x405473
xor ebx, ebx
jmp 0x405483
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esi]
mov ecx, esi
mov ebx, eax
call dword [edx + 0x44]
mov ecx, dword [edi]
push ebx
push 0
push eax
mov edx, dword [ecx]
call dword [edx + 0x5c]
mov dword [ebp - 4], 5
test esi, esi
je 0x4054a3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x98]
mov al, 1
jmp 0x4054a9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408856
mov esp, ebp
pop ebp
ret
Function at 0x4055b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x44800c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x44b19f], 0
je 0x4055df
mov al, byte [0x44b19e]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408856
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x20c]
mov byte [0x44b19f], 1
push 0
push eax
call fcn.00420c30
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.front_end.dat
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
mov byte [0x44b19e], al
call fcn.00408856
mov esp, ebp
pop ebp
ret

Function at 0x405660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x44800c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x44b19d], 0
je 0x40568f
mov al, byte [0x44b19c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408856
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x20c]
mov byte [0x44b19d], 1
push 0
push eax
call fcn.00420c30
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.lx_test.dat
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
mov byte [0x44b19c], al
call fcn.00408856
mov esp, ebp
pop ebp
ret
Function at 0x405940
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4332cf
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x44800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x48
mov dword [ebx + 4], 1
call fcn.0040888a
mov edi, eax
mov dword [ebp - 0x10], edi
push 0x48
push 0
push edi
mov dword [ebp - 4], 0
call fcn.00420c30
mov ecx, dword [ebx + 8]
lea esi, [edi + 0x10]
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [edi], vtable.LanxinAppContext.0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ecx
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004049b0
mov dword [esi], eax
lea eax, [edi + 0x18]
push 2
push eax
call fcn.00407eea
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov ecx, dword [ebx + 8]
mov dword [ebx + 0x10], edi
mov edx, dword [edi]
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push 0x4408e0
mov ecx, edi
call dword [edx + 4]
push 0x44
call fcn.0040888a
push 0x44
mov edi, eax
push 0
push edi
mov dword [ebp + 8], edi
call fcn.00420c30
mov esi, dword [ebx + 8]
push 2
push edi
call fcn.00407eea
mov dword [edi + 0x30], 0
add esp, 0x18
mov dword [edi + 0x34], 0
mov ecx, edi
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], esi
mov dword [edi + 0x40], ebx
mov dword [ebx + 0xc], edi
call fcn.00403310
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a303
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
nop
mov ecx, 0x26c4dfb
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x39ef302b
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401000
Capabilities:
Hash data with crc32

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
push 0x10000
push 2
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov dword [0x405434], eax
call edi
push 0x8040
push 2
mov dword [0x405430], eax
call esi
push eax
mov dword [0x40546c], eax
call edi
push 0x400
push 2
mov dword [0x40545c], eax
call esi
push eax
mov dword [0x40544c], eax
call edi
mov dword [0x405438], eax
and dword [eax], 0
push 1
pop eax
pop edi
pop esi
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x40106c
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x40106e
shr ecx, 1
dec edx
jne 0x40105d
mov edx, dword [0x405438]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, 0x100
jl 0x401058
ret
Function at 0x402a70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x402af5
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
call edi
cmp eax, 1
jne 0x402af5
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call ebx
add esp, 8
test eax, eax
je 0x402b0f
lea eax, [ebp - 0x230]
push eax
push esi
call edi
cmp eax, 1
je 0x402ad0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b3a
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00404b3a
mov esp, ebp
pop ebp
ret
Function at 0x403a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x403a2c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x403a54
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x403a5a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x403ac2
jg 0x403a71
test esi, esi
je 0x403ac2
test ecx, ecx
jl 0x403abd
jg 0x403a7b
test eax, eax
je 0x403abd
cmp edi, ecx
jg 0x403a8f
jl 0x403a85
cmp esi, eax
jae 0x403a8f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x403ac5
mov ecx, dword [ebp + 8]
jmp 0x403acf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x403ae9
jg 0x403acf
test esi, esi
je 0x403ae9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x403ae9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403b00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x403b2c
jl 0x403b20
test ecx, ecx
jne 0x403b2c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x403b45
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x403b93
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x403b99
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x403b99
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x403c06
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x403bc2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x403bf4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x403c06
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x403bd0
test edi, edi
je 0x403c06
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x403fc0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b3a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x403ffc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x403ffc
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b3a
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4040d3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x404024
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x404030
movsx eax, bl
jmp 0x404068
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x404092
sub eax, 1
je 0x404092
sub eax, 2
jne 0x4040d3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b3a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4040b0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4040d3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b3a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b3a
mov esp, ebp
pop ebp
ret 4
Function at 0x404550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40460c
cmp byte [esi + 0x3d], 0
je 0x40460c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4045fa
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4045c1
sub eax, 1
je 0x4045c5
sub eax, 2
jne 0x4045fa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b3a
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4045e3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4045fa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b3a
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b3a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00404b3a
mov esp, ebp
pop ebp
ret

Function at 0x4053e2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405421
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405421
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405421
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405421
cmp dword [ecx + 0x74], 0xe
jbe 0x405421
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401ce0
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push edi
push 8
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401d21
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [esi + 0xc]
jae 0x401d27
mov ecx, dword [esi]
push 0
push edi
push 8
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401d00
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401d30
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi]
push 0
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401d75
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [esi + 0x10]
jae 0x401d7d
mov edx, dword [ebp + 8]
mov eax, dword [esi]
push 0
push edi
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401d52
xor eax, eax
mov esp, ebp
pop ebp
ret 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x401e20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4168dd
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x421018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebp - 4], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x70], eax
lea esi, [ebx + 0x78]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
mov byte [ebp - 4], 6
mov ecx, dword [0x4185d8]
mov edx, dword [0x4185dc]
mov eax, dword [0x4185e0]
mov dword [ebx + 4], ecx
mov ecx, dword [0x4185e4]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
xor edi, edi
mov eax, 0x4185e8
mov dword [ebx + 0x10], ecx
call fcn.00401580
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00416410
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [esi + 0x24], 0
je 0x404267
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x1004]
push 0x1000
push edx
call dword [sym.imp.MSVCR100.dll__vsnprintf]
lea eax, [ebp - 0x1004]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404243
push 0
sub eax, edx
lea ecx, [ebp - 0x1008]
push ecx
push eax
mov eax, dword [esi + 0x20]
lea edx, [ebp - 0x1004]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415aec
mov esp, ebp
pop ebp
ret
Function at 0x404280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4167bb
mov eax, dword fs:[0]
push eax
mov eax, 0x10bc
call fcn.00416410
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x24], 0
mov dword [ebp - 0x10c0], eax
je 0x404440
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.MSVCR100.dll_sprintf]
push eax
lea eax, [ebp - 0x90]
push str._r_n_PID:_04d___TID:_04d_
push eax
call ebx
lea eax, [ebp - 0x90]
add esp, 0x10
mov dword [ebp - 0x10a8], 0xf
mov dword [ebp - 0x10ac], 0
mov byte [ebp - 0x10bc], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404310
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x90]
lea esi, [ebp - 0x10bc]
call fcn.00401580
lea ecx, [ebp - 0x10a0]
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x1092]
movzx eax, word [ebp - 0x1094]
movzx ecx, word [ebp - 0x1096]
push edx
movzx edx, word [ebp - 0x1098]
push eax
movzx eax, word [ebp - 0x109a]
push ecx
movzx ecx, word [ebp - 0x109e]
push edx
movzx edx, word [ebp - 0x10a0]
push eax
push ecx
push edx
lea eax, [ebp - 0x90]
push str.___02d__02d__02d__02d:_02d:_02d::_04d_
push eax
call ebx
lea eax, [ebp - 0x90]
add esp, 0x24
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404392
sub eax, edx
push eax
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x10bc]
call fcn.00404460
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
push edx
lea eax, [ebp - 0x1090]
push 0x1000
push eax
call dword [sym.imp.MSVCR100.dll__vsnprintf]
lea eax, [ebp - 0x1090]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4043d3
sub eax, edx
push eax
lea eax, [ebp - 0x1090]
lea ecx, [ebp - 0x10bc]
call fcn.00404460
mov eax, dword [ebp - 0x10bc]
mov esi, 0x10
cmp dword [ebp - 0x10a8], esi
jae 0x404407
lea eax, [ebp - 0x10bc]
mov edx, dword [ebp - 0x10ac]
push 0
lea ecx, [ebp - 0x10c4]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x10c0]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x10a8], esi
jb 0x404440
mov edx, dword [ebp - 0x10bc]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415aec
mov esp, ebp
pop ebp
ret