joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401100
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
jmp 0x401120
push 0xffffffffffffffff
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4016d0
Capabilities:
Create thread
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x450240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov esi, eax
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.0042ba00
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x401749
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
nop word [eax + eax]
cmp dword [ebp - 0x228], edi
je 0x401749
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401730
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x218]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
mov esi, eax
call fcn.0042a4ff
add esp, 4
test eax, eax
je 0x401777
mov dword [eax], esi
jmp 0x401779
xor eax, eax
lea ecx, [ebp - 0x238]
push ecx
push 0
push eax
push 0x4010c0
push 0
push 0
call fcn.0043107e
add esp, 0x18
mov dword [ebp - 0x23c], eax
test eax, eax
je 0x40186e
mov ecx, dword [ebp - 0x238]
test ecx, ecx
je 0x40187f
push ecx
push eax
call fcn.00429731
add esp, 8
test eax, eax
jne 0x40187f
mov eax, dword [ebp + 8]
push 0x4c
mov dword [ebp - 0x234], eax
call fcn.0042a4ff
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x401811
push 1
sub esp, 0x24
xorps xmm0, xmm0
mov eax, esp
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
call fcn.00401bd0
mov edi, eax
mov esi, edi
test edi, edi
je 0x401815
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 4]
add ecx, 4
add ecx, edi
mov eax, dword [ecx]
call dword [eax]
jmp 0x401815
xor esi, esi
xor edi, edi
push 0
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x40182f
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax]
lea eax, [ebp - 0x234]
push eax
call fcn.004075d0
xor ebx, ebx
add esp, 0xc
test eax, eax
cmovns ebx, eax
test esi, esi
je 0x401859
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 4]
add ecx, 4
add ecx, esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a53d
mov esp, ebp
pop ebp
ret 0x10
push 6
mov dword [ebp - 0x238], 0
call fcn.0042991d
push 1
call fcn.0042991d
int3

Function at 0x42b2e9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42b328
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b328
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b328
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42b328
cmp dword [ecx + 0x74], 0xe
jbe 0x42b328
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x436231
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4495fc
push 0x4495f4
push str.FlsAlloc
push 0x1e
call fcn.004360da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x436265
push dword [ebp + 8]
mov ecx, esi
call dword [0x4431c4]
call esi
jmp 0x43626b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4362af
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44960c
push 0x449604
push str.FlsGetValue
push 0x20
call fcn.004360da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4362e6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4431c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x439dd9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x450240]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x439e24
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00439f78
test al, al
jne 0x439e1e
sub edx, 2
cmp edx, edi
jne 0x439e04
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x439e46
lea eax, [edi + 2]
cmp edx, eax
je 0x439e46
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00439d25
add esp, 0x10
jmp 0x439f40
push esi
lea ecx, [ebp - 0x255]
call fcn.00439f78
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x439e89
push dword [ebp - 0x25c]
jmp 0x439e36
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x439ec6
cmp word [ebp - 0x226], 0
je 0x439ee7
cmp word [ebp - 0x226], ax
jne 0x439ec6
cmp word [ebp - 0x224], 0
je 0x439ee7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00439d25
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x439f33
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x439ea0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x439f1b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x439f40
push 0x439b55
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00440680
add esp, 0x10
jmp 0x439f10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a53d
leave
ret
Function at 0x442870
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401146
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [esp + 8]
test bl, bl
jne 0x401153
xor al, al
pop ebx
ret
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
cmp bl, 0x41
jb 0x401192
cmp bl, 0x5a
ja 0x401192
push 0x10
call esi
mov edi, 0x8000
test edi, eax
jne 0x40117a
push 0x14
call esi
test al, 1
je 0x40118a
push 0x10
call esi
test edi, eax
je 0x401192
push 0x14
call esi
test al, 1
je 0x401192
movsx eax, bl
add eax, 0x20
jmp 0x4011f8
push ebp
mov ebp, dword [sym.imp.USER32.dll_MapVirtualKeyA]
movzx ebx, bl
push 2
push ebx
call ebp
movsx eax, al
push eax
mov edi, 0x45c6d0
push edi
call fcn.00447970
pop ecx
pop ecx
test eax, eax
je 0x4011de
push 0x10
call esi
test eax, 0x8000
je 0x4011de
push 2
push ebx
call ebp
movsx eax, al
push eax
push edi
call fcn.00447970
pop ecx
pop ecx
mov ecx, 0x45c6e8
sub ecx, edi
mov al, byte [eax + ecx]
jmp 0x4011f7
mov al, byte [esp + 0x14]
lea ecx, [eax - 0x41]
cmp cl, 0x19
jbe 0x4011f7
lea ecx, [eax - 0x30]
cmp cl, 9
jbe 0x4011f7
push 2
push ebx
call ebp
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4011fc
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
mov ecx, dword [ebp + 0xa4]
push esi
mov esi, dword [ebp + 0xa8]
push edi
xor edi, edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], edi
cmp eax, edi
jne 0x401242
mov eax, reloc.ODBC32.dll_SQLAllocConnect
lea edx, [ebp - 0x70]
push edx
push 0x2001f
push edi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40132a
push ebx
push 0x7f
mov byte [ebp - 0x6c], al
lea eax, [ebp - 0x6b]
push edi
push eax
call fcn.00448090
add esp, 0xc
cmp byte [esi], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x7c], edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x45c800
jne 0x4012e4
cmp dword [ebp - 0x7c], 0
jne 0x4012e4
push 0x7f
lea eax, [ebp - 0x6c]
push eax
push 0
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x4012dc
cmp byte [ebp - 0x6c], al
je 0x4012dc
push dword [ebp - 0x78]
lea eax, [ebp + 0x14]
push eax
call edi
push ebx
lea eax, [ebp + 0x14]
push eax
call esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x14]
push eax
call esi
mov eax, dword [ebp - 0x80]
test eax, eax
jne 0x4012d1
mov eax, reloc.ODBC32.dll_SQLAllocConnect
lea ecx, [ebp + 0x14]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [ebp - 0x74]
cmp byte [eax], 0
je 0x401288
push dword [ebp - 0x74]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x78]
lea eax, [ebp + 0x14]
push eax
call edi
push ebx
lea eax, [ebp + 0x14]
push eax
call esi
push dword [ebp - 0x74]
lea eax, [ebp + 0x14]
push eax
call esi
mov eax, dword [ebp - 0x80]
pop ebx
test eax, eax
jne 0x401316
mov eax, reloc.ODBC32.dll_SQLAllocConnect
lea ecx, [ebp + 0x14]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x94]
pop edi
xor ecx, ebp
pop esi
call fcn.00448080
add ebp, 0x98
leave
ret
Function at 0x401341
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x103
xor ebx, ebx
push edi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.00448090
add esp, 0xc
cmp esi, ebx
je 0x401380
cmp byte [esi], bl
jne 0x401396
push edi
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, ebx
je 0x40139e
cmp byte [esi], bl
jne 0x4013a4
lea esi, [ebp - 0x108]
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
lea eax, [edi + 1]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
leave
ret

Function at 0x40225d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x3ff
mov dword [ebp - 0x608], eax
lea eax, [ebp - 0x603]
push ebx
push eax
mov byte [ebp - 0x604], bl
call fcn.00448090
mov esi, 0xff
push esi
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.00448090
push esi
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.00448090
add esp, 0x24
cmp edi, ebx
je 0x402383
cmp byte [edi], bl
je 0x402383
cmp byte [0x4775a1], bl
je 0x402360
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push edi
call fcn.00401aaa
push 0x478938
cmp dword [ebp - 0x608], ebx
je 0x402332
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp - 0x608]
push 0x45c970
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp - 0x608]
call fcn.0040109c
pop ecx
jmp 0x402385
push 0x3ff
lea eax, [ebp - 0x604]
push eax
push 0x45c970
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x604]
push eax
jmp 0x40232a
push edi
cmp dword [ebp - 0x608], ebx
je 0x40237c
push dword [ebp + 0x10]
push dword [ebp - 0x608]
call fcn.004460ee
add esp, 0xc
jmp 0x402385
call fcn.00445ef2
jmp 0x40232f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
leave
ret 0xc
Function at 0x40682d
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x58c]
sub esp, 0x60c
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp + 0x588], eax
push ebx
push esi
mov esi, dword [ebp + 0x594]
push edi
mov edi, 0xff
push edi
xor ebx, ebx
lea eax, [ebp + 0x389]
push ebx
push eax
mov byte [ebp + 0x388], 0
call fcn.00448090
push edi
lea eax, [ebp + 0x489]
push ebx
push eax
mov byte [ebp + 0x488], bl
call fcn.00448090
mov edi, 0x3ff
push edi
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.00448090
add esp, 0x24
cmp esi, ebx
je 0x406944
cmp byte [esi], bl
je 0x406944
cmp byte [0x4775a1], bl
je 0x406934
lea eax, [ebp + 0x388]
push eax
lea eax, [ebp + 0x488]
push eax
push esi
call fcn.00401aaa
mov esi, 0x478938
push esi
push ebx
lea eax, [ebp + 0x388]
push eax
lea eax, [ebp + 0x488]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
mov dword [ebp - 0x7c], eax
push edi
lea eax, [ebp - 0x78]
push eax
push 0x45c970
lea eax, [ebp + 0x388]
push eax
lea eax, [ebp + 0x488]
push eax
call ebx
push esi
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
push eax
push 0x45c970
push 0
lea eax, [ebp + 0x488]
push eax
call ebx
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x7c], ecx
jge 0x406930
cmp dword [ebp - 0x80], ecx
jge 0x406930
cmp eax, ecx
jl 0x406944
mov eax, ecx
jmp 0x406946
push esi
push ebx
push ebx
push ebx
push 1
call fcn.00442f38
add esp, 0x14
jmp 0x406946
xor eax, eax
mov ecx, dword [ebp + 0x588]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
add ebp, 0x58c
leave
ret 4
Function at 0x408768
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4087a2
cmp edi, 0xffffffff
je 0x4087a2
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
xor eax, eax
inc eax
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
leave
ret 8

Function at 0x4087a7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x408816
cmp dword [ebp + 8], 0xffffffff
je 0x408816
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push edi
push edi
push dword [ebp + 8]
mov byte [ebp + 0xf], bl
call esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
inc eax
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xf]
push eax
push dword [ebp + 8]
call edi
sar ebx, 8
push 2
mov byte [ebp + 0xf], bl
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
call esi
push ebx
xor eax, eax
inc eax
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xf]
push eax
push dword [ebp + 8]
call edi
pop esi
pop ebx
pop edi
leave
ret 8

Function at 0x408851
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40888b
cmp edi, 0xffffffff
je 0x40888b
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 8
pop eax
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
leave
ret 0xc

Function at 0x408890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4088cf
cmp edi, 0xffffffff
je 0x4088cf
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
leave
ret 8
Function at 0x40d00f
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x103
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00448090
add esp, 0xc
test edi, edi
je 0x40d1a3
cmp byte [edi], 0
je 0x40d1a3
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
inc eax
cmp eax, esi
jle 0x40d069
mov eax, esi
jmp 0x40d06d
push edi
call ebx
inc eax
push eax
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 1
mov esi, str.__r_n
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.004417cc
push 2
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.004417cc
cmp byte [ebp - 0x108], 0x22
jne 0x40d0c2
push 0
push 0
push 0x45c970
push 0x45ddf8
lea eax, [ebp - 0x108]
push eax
call fcn.0044168f
push 0x140
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.00448090
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d181
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x108]
push 0x45f088
push eax
call fcn.00447a30
pop ecx
pop ecx
test eax, eax
jne 0x40d12b
lea eax, [ebp - 0x108]
push 0x45f084
push eax
call fcn.00447a30
pop ecx
pop ecx
test eax, eax
je 0x40d174
push 0x45e8e0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40d157
push 0x45f080
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40d174
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d16f
push esi
call edi
or esi, 0xffffffff
cmp esi, 0xffffffff
jne 0x40d0fd
cmp esi, 0xffffffff
je 0x40d181
push esi
call edi
xor eax, eax
inc eax
jmp 0x40d1a5
lea eax, [ebp - 0x108]
push eax
call ebx
cmp eax, 0x104
jge 0x40d1a3
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d17c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
leave
ret 4
Function at 0x40dc89
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x210], eax
cmp esi, ebx
je 0x40dd00
cmp edi, ebx
je 0x40dd00
cmp byte [edi], bl
je 0x40dd00
push str.MAIL
push edi
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40dd13
push str.HKEY_LOCAL_MACHINESOFTWAREClientsMail_
mov edi, 0x102
push edi
push esi
push ebx
push 3
call fcn.00442f38
add esp, 0x14
cmp byte [esi], bl
je 0x40dd00
push esi
push str.HKEY_LOCAL_MACHINESOFTWAREClientsMail_s_shellopencommand_
push edi
push esi
push ebx
push 3
call fcn.00442f38
add esp, 0x18
cmp byte [esi], bl
jne 0x40dd62
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
leave
ret 0xc
push edi
push str.HKEY_CLASSES_ROOT_s_
mov edi, 0x103
push edi
push esi
push ebx
push 3
call fcn.00442f38
add esp, 0x18
cmp byte [esi], bl
je 0x40dd00
push esi
push str.HKEY_CLASSES_ROOT_s_shellopencommand_
push edi
push esi
push ebx
push 3
call fcn.00442f38
add esp, 0x18
cmp byte [esi], bl
jne 0x40dd62
cmp dword [ebp - 0x210], ebx
je 0x40dcfc
push esi
push 0x45f444
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_FindExecutableA]
jmp 0x40dcfc
push 0x207
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.00448090
add esp, 0xc
push 0x1f8
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push ebx
push 0x45c970
push 0x45ddf8
push esi
call fcn.0044168f
mov edi, 0x45c85c
push edi
push esi
call fcn.004010ff
pop ecx
pop ecx
test eax, eax
je 0x40ddcd
push edi
push esi
call fcn.004010ff
pop ecx
pop ecx
mov byte [eax], bl
push 2
push str.__r_n
push esi
call fcn.004417cc
xor eax, eax
inc eax
jmp 0x40dd02
Function at 0x40dde2
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
mov ebx, dword [ebp + 0x19c]
push esi
push edi
mov edi, dword [ebp + 0x1a0]
push 0x207
lea eax, [ebp - 0x77]
push 0
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], edi
mov byte [ebp - 0x78], 0
call fcn.00448090
add esp, 0xc
test ebx, ebx
je 0x40df42
cmp byte [ebx], 0
je 0x40df42
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call esi
lea ecx, [eax + 1]
mov eax, 0x103
cmp ecx, eax
jg 0x40de53
push ebx
call esi
inc eax
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x78]
push eax
call ebx
cmp eax, 0xffffffff
je 0x40de7c
test al, 0x10
je 0x40de7c
xor eax, eax
inc eax
jmp 0x40df44
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40def0
mov eax, dword [ebp - 0x80]
cmp byte [eax], 0
je 0x40def0
push eax
call esi
lea ecx, [eax + 1]
mov eax, 0x102
cmp ecx, eax
jg 0x40dea3
push dword [ebp - 0x80]
call esi
inc eax
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x78]
push eax
call esi
cmp byte [ebp + eax - 0x79], 0x5c
je 0x40ded1
mov eax, dword [ebp - 0x7c]
cmp byte [eax], 0x5c
je 0x40ded1
push 0x45c800
lea eax, [ebp - 0x78]
push eax
call edi
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
mov byte [ebp + 0x8b], 0
call ebx
cmp eax, 0xffffffff
je 0x40def0
test al, 0x10
jne 0x40de74
lea eax, [ebp - 0x78]
push eax
push 0x102
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x78]
push eax
call esi
cmp byte [ebp + eax - 0x79], 0x5c
je 0x40df1f
mov eax, dword [ebp - 0x7c]
cmp byte [eax], 0x5c
je 0x40df1f
push 0x45c800
lea eax, [ebp - 0x78]
push eax
call edi
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
mov byte [ebp + 0x8b], 0
call ebx
cmp eax, 0xffffffff
je 0x40df42
test al, 0x10
jne 0x40de74
xor eax, eax
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
add ebp, 0x194
leave
ret 8