joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431f30
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
les eax, [ecx + eax*4]
ror byte [ebp - 0x7efffed7], 0xc0
sub dword [ecx - 0x377f0000], 0xffffffe8
adc eax, dword [eax]
add byte [eax + 0x51], bl

Function at 0x431fb0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
imul edx, ecx, 0
mov eax, dword [ebp - 0x1504]
mov ecx, dword [eax + edx + 0x78]
mov dword [ebp - 0x1508], ecx
cmp dword [ebp - 0x1508], 0
jne 0x431fdd
mov edx, dword [ebp - 0x70c]
mov dword [ebp - 0x4e0], edx
jmp 0x432274
invalid
invalid
invalid

Function at 0x432127
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [ebp - 0x184]
add ecx, 1
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 0x708]
add edx, dword [ebp - 0x184]
movsx eax, byte [edx]
test eax, eax
je 0x43217e
mov ecx, dword [ebp - 0x184]
movsx edx, byte [ebp + ecx - 0x804]
test edx, edx
je 0x43217e
push ebx
push ebx
add esp, 4
and ebx, 0xb834
or ebx, 0xe5b2
xor ebx, 0x1548a
add ebx, 0x28b2
pop ebx
push ebx
call fcn.00432127
add byte [eax + 0x45], dl
xor eax, 0x4a4c4e42
inc edi
inc edx
add esp, 4
pop ebx
mov eax, dword [ebp - 0x708]
add eax, dword [ebp - 0x184]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0x184]
movsx eax, byte [ebp + edx - 0x804]
cmp ecx, eax
je 0x432170
mov ecx, dword [ebp - 0x708]
add ecx, dword [ebp - 0x184]
movsx edx, byte [ecx]
xor edx, 0x20
mov eax, dword [ebp - 0x184]
movsx ecx, byte [ebp + eax - 0x804]
cmp edx, ecx
jne 0x432177
jmp 0x4320bd
jmp 0x43217e
push esi
sub esi, 0xee16
xor esi, 0x56c3
call 0x432198
add byte [eax], bh
dec esp
dec ebx
dec ecx
inc esi
inc esp
cmp eax, 0x8104c483
out dx, al
sub byte [edx + 1], cl
add byte [esi + 0x57], bl
or edi, 0x2255
xor edi, 0x152a6
pop edi
mov edx, dword [ebp - 0x708]
add edx, dword [ebp - 0x184]
movsx eax, byte [edx]
mov ecx, dword [ebp - 0x184]
movsx edx, byte [ebp + ecx - 0x804]
cmp eax, edx
jne 0x4321dd
mov dword [ebp - 0xc40], 0
jmp 0x43224c
push esi
push edx
add esp, 4
add esi, 0x1f3f
pop esi
push eax
push ebx
add esp, 4
add eax, 0x16fdb
sub eax, 0x46d5
pop eax
push eax
and eax, 0xd744
or eax, 0x116ce
xor eax, 0x5383
pop eax
mov eax, dword [ebp - 0x708]
add eax, dword [ebp - 0x184]
movsx ecx, byte [eax]
or ecx, 0x20
mov edx, dword [ebp - 0x184]
movsx eax, byte [ebp + edx - 0x804]
or eax, 0x20
cmp ecx, eax
jge 0x432242
mov dword [ebp - 0xc40], 0xffffffff
jmp 0x43224c
mov dword [ebp - 0xc40], 1
cmp dword [ebp - 0xc40], 0
jne 0x432263
mov ecx, dword [ebp - 0x18cc]
mov dword [ebp - 0x4e0], ecx
jmp 0x432274
jmp 0x43204d
mov eax, dword [ebp - 0x4e0]
mov dword [ebp - 0x738], eax
Function at 0x432198
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [ebp - 0x184]
add ecx, 1
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 0x708]
add edx, dword [ebp - 0x184]
movsx eax, byte [edx]
test eax, eax
je 0x43217e
mov ecx, dword [ebp - 0x184]
movsx edx, byte [ebp + ecx - 0x804]
test edx, edx
je 0x43217e
push ebx
push ebx
add esp, 4
and ebx, 0xb834
or ebx, 0xe5b2
xor ebx, 0x1548a
add ebx, 0x28b2
pop ebx
push ebx
call fcn.00432127
add byte [eax + 0x45], dl
xor eax, 0x4a4c4e42
inc edi
inc edx
add esp, 4
pop ebx
mov eax, dword [ebp - 0x708]
add eax, dword [ebp - 0x184]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0x184]
movsx eax, byte [ebp + edx - 0x804]
cmp ecx, eax
je 0x432170
mov ecx, dword [ebp - 0x708]
add ecx, dword [ebp - 0x184]
movsx edx, byte [ecx]
xor edx, 0x20
mov eax, dword [ebp - 0x184]
movsx ecx, byte [ebp + eax - 0x804]
cmp edx, ecx
jne 0x432177
jmp 0x4320bd
jmp 0x43217e
push esi
sub esi, 0xee16
xor esi, 0x56c3
call 0x432198
add byte [eax], bh
dec esp
dec ebx
dec ecx
inc esi
inc esp
cmp eax, 0x8104c483
out dx, al
sub byte [edx + 1], cl
add byte [esi + 0x57], bl
or edi, 0x2255
xor edi, 0x152a6
pop edi
mov edx, dword [ebp - 0x708]
add edx, dword [ebp - 0x184]
movsx eax, byte [edx]
mov ecx, dword [ebp - 0x184]
movsx edx, byte [ebp + ecx - 0x804]
cmp eax, edx
jne 0x4321dd
mov dword [ebp - 0xc40], 0
jmp 0x43224c
push esi
push edx
add esp, 4
add esi, 0x1f3f
pop esi
push eax
push ebx
add esp, 4
add eax, 0x16fdb
sub eax, 0x46d5
pop eax
push eax
and eax, 0xd744
or eax, 0x116ce
xor eax, 0x5383
pop eax
mov eax, dword [ebp - 0x708]
add eax, dword [ebp - 0x184]
movsx ecx, byte [eax]
or ecx, 0x20
mov edx, dword [ebp - 0x184]
movsx eax, byte [ebp + edx - 0x804]
or eax, 0x20
cmp ecx, eax
jge 0x432242
mov dword [ebp - 0xc40], 0xffffffff
jmp 0x43224c
mov dword [ebp - 0xc40], 1
cmp dword [ebp - 0xc40], 0
jne 0x432263
mov ecx, dword [ebp - 0x18cc]
mov dword [ebp - 0x4e0], ecx
jmp 0x432274
jmp 0x43204d
mov eax, dword [ebp - 0x4e0]
mov dword [ebp - 0x738], eax
Function at 0x432f50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ebp - 0x718]
add eax, 1
mov dword [ebp - 0x718], eax
mov ecx, dword [ebp - 0x714]
mov edx, dword [ebp - 0x718]
cmp edx, dword [ecx + 0x18]
jae 0x432fe7
mov dword [ebp - 0xc5c], 0
jmp 0x432fcb
cmp dword [ebp - 0xc5c], 0
jne 0x432fe2
mov edx, dword [ebp - 0x18ec]
mov dword [ebp - 0x3c8], edx
jmp 0x432dcc
mov eax, dword [ebp - 0x720]
mov dword [ebp - 0x3c8], eax
Function at 0x46c9b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x46c9d6
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov dword [eax + 4], 0
add esp, 0x10
ret
cmp dword [esp + 4], 0
jg 0x46c9e5
jl 0x46c9c1
cmp dword [esp], 0
jbe 0x46c9c1
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
xor esi, esi
call edi
test eax, eax
jne 0x46ca11
nop word [eax + eax]
inc esi
cmp esi, 3
ja 0x46ca5c
lea eax, [esp + 0x10]
push eax
call edi
test eax, eax
je 0x46ca00
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
call fcn.0046d8e0
mulsd xmm0, qword [0x4b0298]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
movsd qword [esp + 0x10], xmm0
call fcn.0046d8e0
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
movaps xmm0, xmm1
call fcn.0046d830
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
mov dword [ecx + 4], edx
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], 0
mov dword [eax + 4], 0
add esp, 0x10
ret
Function at 0x46cb40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f13d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c9124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4c9110]
cmp eax, 0xffffffff
jne 0x46cb74
xor ebx, ebx
jmp 0x46cb7d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x46cc56
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x46cba0
cmp dword [ebx + 0xc], 0
je 0x46cc31
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x46cbec
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x46cbd2
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x46cba7
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x46cb96
mov eax, dword [ebx + 0x14]
mov esi, dword [eax]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x46cc0d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x46cc0d
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea ecx, [ebx + 0x14]
call fcn.0046b830
push 0x20
push eax
call fcn.0046d3a6
mov eax, dword [ebx + 0x18]
add esp, 8
mov byte [ebp - 4], 0
test eax, eax
jne 0x46cbf0
jmp 0x46cb92
push 0x46bdd0
push 0x4ccf6c
call fcn.0046bbb0
mov eax, dword [0x4c9110]
add esp, 8
cmp eax, 0xffffffff
je 0x46cc56
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 2
test ebx, ebx
je 0x46cc83
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x46cc83
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46cca0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x46cd00
push 0
push 0
call fcn.0047de3c
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x46ccc9
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x46cce7
cmp eax, 0xffffffff
je 0x46cce7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x46f520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f375
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4c9124]
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 + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x46f569
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x46f573
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46f593
push dword [ebp - 0x60]
push ebx
push edi
call fcn.0046f430
add esp, 0xc
jmp 0x46f6ba
push esi
push ebx
call fcn.0046f300
add esp, 8
mov ecx, eax
mov dword [ebp - 0x64], ecx
test esi, 0x400
je 0x46f697
push ebx
call fcn.0046f1a0
add esp, 4
test al, al
jne 0x46f5cc
mov eax, dword [ebp - 0x64]
mov dword [edi], 9
mov dword [edi + 4], eax
jmp 0x46f6ba
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x46f5d6
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046e850
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x46f625
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004103c0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x46f651
push dword [ebp - 0x60]
push ebx
push edi
call fcn.0046f430
add esp, 0xc
jmp 0x46f6ba
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x46f67d
push dword [ebp - 0x60]
push ebx
push edi
call fcn.0046f430
add esp, 0xc
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46f6ba
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
push esi
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
and esi, 0x10
je 0x46f6a1
mov edx, dword [ebp - 0x68]
jmp 0x46f6a6
mov edx, ecx
mov ecx, dword [ebp - 0x68]
xor eax, eax
test esi, esi
setne al
add eax, 2
test esi, esi
mov dword [edi], eax
cmove ecx, edx
mov dword [edi + 4], ecx
mov eax, edi
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.0046cddf
mov esp, ebp
pop ebp
ret

Function at 0x48b37d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048b1f3

Function at 0x492473
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00491fc6
Function at 0x402f41
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push 0x2001f
push edi
push 0x4ac85f
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, edi
jne 0x402f9d
push dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
call fcn.004881c0
pop ecx
inc eax
push eax
push dword [ebp + 0x14]
push 1
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010a3
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004010a3
cmp esi, edi
pop edi
sete al
pop esi
leave
ret

Function at 0x403110
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4f1a20]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x4a7603
call fcn.0048894a
mov eax, dword [ebp + 0x218]
mov edi, dword [ebp + 0x214]
mov ebx, dword [ebp + 0x21c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x220]
xor esi, esi
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x10]
push eax
push 0x4de844
push 1
push esi
push 0x4de8b4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x403230
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x4de874
push eax
call dword [ecx]
test eax, eax
jl 0x403227
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
test eax, eax
jge 0x4031a8
xor al, al
jmp 0x403238
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x1c]
cmp eax, esi
jl 0x4031a1
cmp dword [ebp - 0x18], esi
je 0x4031cb
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp eax, esi
jl 0x4031a1
push dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
call fcn.00401aa9
push 0x104
lea eax, [ebp]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
mov dword [ebp - 4], esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push 1
lea edx, [ebp]
push edx
push eax
call dword [ecx + 0x18]
cmp eax, esi
jge 0x40320f
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010a3
jmp 0x4031a1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004010a3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0048893b
add ebp, 0x20c
leave
ret
Function at 0x4061bd
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406233
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x406232
mov eax, dword [edi + 0x3c]
and dword [ebp - 4], 0
add eax, edi
movzx edx, word [eax + 6]
movzx ecx, word [eax + 0x14]
sub esi, edi
push ebx
lea ecx, [ecx + eax + 0x18]
test edx, edx
jbe 0x40622f
lea eax, [ecx + 0x10]
mov edi, dword [eax]
mov ebx, dword [eax - 8]
mov ecx, dword [eax - 4]
cmp edi, ebx
ja 0x40621a
mov edi, ebx
cmp esi, ecx
jb 0x406224
add edi, ecx
cmp esi, edi
jbe 0x406236
inc dword [ebp - 4]
add eax, 0x28
cmp dword [ebp - 4], edx
jb 0x40620c
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
inc eax
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
sub esi, ecx
mov dword [eax], esi
xor eax, eax
inc eax
jmp 0x406231
Function at 0x4063bb
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x2818]
mov eax, 0x2818
call fcn.00489ce0
push 0xffffffffffffffff
push 0x4a7990
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4f1a20]
xor eax, ebp
mov dword [ebp + 0x2814], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x2820]
push str.___r_n
call fcn.0040624b
mov dword [esp], 0x4f4410
push str._s_r_n
call fcn.0040624b
mov esi, dword [edi]
push dword [esi]
call fcn.0040605d
push eax
push dword [esi]
push str.Exception_code:__08X__s_r_n
call fcn.0040624b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
lea eax, [ebp + 0x2710]
push eax
push dword [esi + 0xc]
call fcn.004061bd
lea eax, [ebp + 0x2710]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [esi + 0xc]
push str.Fault_address:___08X__02X:_08X__s_r_n
call fcn.0040624b
add esp, 0x40
push dword [ebp - 0x14]
lea eax, [ebp]
push dword [ebp - 0x10]
push dword [esi + 0xc]
push str._08X__02X:_08X
push eax
call fcn.004895f4
add esp, 0x14
push 0
lea ecx, [ebp - 0x8c]
call fcn.00405fd2
and dword [ebp - 4], 0
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401655
lea ecx, [ebp - 0x8c]
call fcn.00466b57
mov esi, dword [edi + 4]
push str._r_nRegisters:_r_n
call fcn.0040624b
push dword [esi + 0x9c]
push dword [esi + 0xa0]
push dword [esi + 0xa8]
push dword [esi + 0xac]
push dword [esi + 0xa4]
push dword [esi + 0xb0]
push str.EAX:_08X_r_nEBX:_08X_r_nECX:_08X_r_nEDX:_08X_r_nESI:_08X_r_nEDI:_08X_r_n
call fcn.0040624b
push dword [esi + 0xb8]
push dword [esi + 0xbc]
push str.CS:EIP:_04X:_08X_r_n
call fcn.0040624b
push dword [esi + 0xb4]
push dword [esi + 0xc4]
push dword [esi + 0xc8]
push str.SS:ESP:_04X:_08X__EBP:_08X_r_n
call fcn.0040624b
push dword [esi + 0x8c]
push dword [esi + 0x90]
push dword [esi + 0x94]
push dword [esi + 0x98]
push str.DS:_04X__ES:_04X__FS:_04X__GS:_04X_r_n
call fcn.0040624b
add esp, 0x50
push dword [esi + 0xc0]
push str.Flags:_08X_r_n
call fcn.0040624b
pop ecx
pop ecx
push str.IMAGEHLP.DLL_or_its_exported_procs_not_found
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.004062a1
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x8c]
call fcn.0040601e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x2814]
xor ecx, ebp
call fcn.0048893b
add ebp, 0x2818
leave
ret
Function at 0x41415d
Capabilities:
Write file on windows

Disassembly:
push 0x80
mov eax, 0x4a8fb7
call fcn.0048894a
xor ebx, ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
mov byte [ebp - 0xd], bl
call fcn.0046f95b
push ebx
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0046fe5a
test eax, eax
je 0x414305
push ebx
push 0x1000
push 1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0046f350
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.004066a4
push dword [ebp + 0x10]
lea ecx, [ebp - 0x8c]
call fcn.004066a4
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004066a4
mov eax, dword [ebp + 0x10]
cmp eax, ebx
mov byte [ebp - 0xd], 1
jle 0x4142e3
mov dword [ebp - 0x18], eax
call fcn.00464f86
push eax
lea ecx, [ebp + 0x10]
call fcn.00401275
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.0040dbe6
lea ecx, [ebp - 0x44]
call fcn.0047628c
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.004763c5
lea eax, [ebp - 0x44]
push eax
call fcn.00418b78
lea ecx, [ebp - 0x20]
mov dword [esp], 0x4acfb0
call fcn.00401aa9
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 6
call fcn.0040168d
lea ecx, [ebp + 0x10]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 7
call fcn.0040168d
mov ecx, dword [ebp - 0x1c]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.004010a3
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004010a3
push 0x4af82c
push dword [ebp - 0x14]
call fcn.0048aa51
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x4142b1
push esi
push 1
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.0048a90b
push esi
call fcn.0048a72d
add esp, 0x14
jmp 0x4142b4
mov byte [ebp - 0xd], bl
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010a3
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004762a3
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.004010a3
dec dword [ebp - 0x18]
jne 0x4141f2
lea ecx, [ebp - 0x8c]
call fcn.0046f199
lea ecx, [ebp - 0x30]
call fcn.0046f8f5
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.0046f312
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0046fa63
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010a3
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010a3
mov al, byte [ebp - 0xd]
call fcn.00488a22
ret 0xc
Function at 0x4186dc
Capabilities:
Copy file
Delete file

Disassembly:
push 0x38
mov eax, 0x4a93c4
call fcn.0048894a
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 1
call fcn.0047628c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0046f95b
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x10], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 3
xor bl, bl
call fcn.004013d2
call fcn.00418d9d
pop ecx
push 0
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.0046fe5a
test eax, eax
je 0x418871
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x44]
call fcn.004762b3
push esi
push dword [ebp - 0x40]
lea ecx, [ebp - 0x20]
call fcn.0046f64f
lea ecx, [ebp - 0x20]
test eax, eax
je 0x418868
call fcn.0046f8f5
mov ecx, dword [ebp - 0x40]
cmp byte [ecx + 2], 0x53
jne 0x418852
cmp byte [ecx + 1], 0x57
jne 0x418852
cmp byte [ecx], 0x43
jne 0x418852
movzx eax, byte [ecx + 7]
movzx edx, byte [ecx + 6]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 5]
movzx ecx, byte [ecx + 4]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.00463a96
push 8
push dword [ebp - 0x40]
mov esi, eax
push esi
call fcn.0048acb0
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp - 0x40]
add eax, 8
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 8]
push eax
call fcn.0042abc0
add esp, 0x20
test eax, eax
jne 0x4187ff
mov eax, dword [ebp - 0x10]
push 0xffffffffffffffff
add eax, 8
push eax
lea ecx, [ebp - 0x44]
call fcn.004762b3
mov eax, dword [ebp - 0x10]
add eax, 8
push eax
push esi
push dword [ebp - 0x40]
call fcn.0048acb0
mov eax, dword [ebp - 0x40]
add esp, 0xc
mov byte [eax], 0x46
lea ecx, [ebp - 0x30]
call fcn.0046f95b
push 0
push 0x1001
push dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0046fe5a
test eax, eax
je 0x41883d
mov eax, dword [ebp - 0x10]
add eax, 8
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
call fcn.0046f691
lea ecx, [ebp - 0x30]
mov bl, 1
call fcn.0046f8f5
push esi
call fcn.00463a8b
pop ecx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0046fa63
jmp 0x41886d
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x418871
mov bl, 1
jmp 0x41886d
call fcn.0046f8f5
test bl, bl
jne 0x41887a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0046fa63
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.004762a3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010a3
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010a3
mov al, bl
call fcn.00488a22
ret