joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4169ab
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
xor edi, edi
mov esi, eax
cmp dword [ebp + 8], edi
je 0x416a57
cmp dword [ebp + 0xc], edi
jl 0x416a57
cmp dword [esi + 0xc], edi
je 0x416a57
mov eax, dword [esi + 4]
push 0xfc
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x104]
push edi
push eax
mov dword [ebp - 8], 0xf
mov dword [ebp - 4], edi
mov dword [ebp - 0x10c], 1
call fcn.00450bc0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or eax, 0xffffffff
cmp ebx, eax
je 0x416a5a
cmp ebx, edi
je 0x416a5a
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, edi
jne 0x416a4c
call fcn.00416993
jmp 0x416a53
or eax, 0xffffffff
cmp ebx, eax
je 0x416a5a
mov eax, ebx
jmp 0x416a5a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x416b34
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
xor eax, eax
push edi
xor edi, edi
inc eax
cmp dword [ebp + 8], edi
je 0x416bbb
cmp dword [ebp + 0xc], eax
jl 0x416bbb
cmp dword [esi + 0xc], edi
jne 0x416b56
xor eax, eax
jmp 0x416bbb
mov dword [ebp - 0x10c], eax
mov eax, dword [esi + 4]
push 0xfc
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x104]
push edi
push eax
mov dword [ebp - 8], 0x1e
mov dword [ebp - 4], edi
call fcn.00450bc0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
push edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x416b52
cmp eax, edi
je 0x416b52
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
leave
ret 8
Function at 0x41968c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
jne 0x4196a4
push 3
pop eax
jmp 0x41973d
push dword [ebp + 8]
xor edi, edi
inc edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 0x80
push edi
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x419732
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jl 0x41971e
mov esi, dword [ebp + 0xc]
jg 0x4196df
cmp esi, ebx
jbe 0x41971e
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x419720
cmp eax, esi
jne 0x419720
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jne 0x419720
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xfffffffe
inc edi
inc edi
jmp 0x419720
xor edi, edi
cmp dword [ebp - 8], ebx
je 0x41972e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x41973b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x419742
Capabilities:
Terminate thread

Disassembly:
push edi
xor edi, edi
inc edi
test esi, esi
je 0x41976b
cmp esi, 0xffffffff
je 0x41976b
push dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41976b
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, edi
pop edi
ret
Function at 0x419ddf
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push 0x14
mov eax, 0x46eb17
call fcn.00450afd
and dword [ebp - 0x20], 0
mov ebx, dword [esi + 0x14]
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], ebx
call fcn.0040d809
and dword [ebp - 4], 0
push ebx
mov ecx, edi
mov dword [ebp - 0x20], 1
call fcn.00419ef1
xor edi, edi
test ebx, ebx
jbe 0x419ee8
mov eax, esi
call fcn.00419f1e
movzx eax, byte [eax]
mov al, byte [eax*4 + 0x47ee10]
mov byte [ebp - 0x10], al
inc edi
mov eax, esi
call fcn.00419f1e
movzx eax, byte [eax]
mov bl, byte [eax*4 + 0x47ee10]
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0x18], bl
sar bl, 4
shl al, 2
and bl, 3
or bl, al
mov byte [ebp - 0x10], bl
push dword [ebp - 0x10]
push 1
call fcn.0041634c
inc edi
cmp edi, dword [ebp - 0x1c]
jae 0x419ea6
mov eax, esi
call fcn.00419f1e
cmp byte [eax], 0x3d
je 0x419ee8
mov eax, esi
call fcn.00419f1e
movzx eax, byte [eax]
mov bl, byte [eax*4 + 0x47ee10]
mov al, byte [ebp - 0x18]
mov cl, bl
sar cl, 2
and cl, 0xf
shl al, 4
or cl, al
mov byte [ebp - 0x18], cl
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push 1
call fcn.0041634c
inc edi
cmp edi, dword [ebp - 0x1c]
jae 0x419ede
mov eax, esi
call fcn.00419f1e
cmp byte [eax], 0x3d
je 0x419ee8
mov eax, esi
call fcn.00419f1e
movzx eax, byte [eax]
mov al, byte [eax*4 + 0x47ee10]
mov ecx, dword [ebp - 0x14]
shl bl, 6
or bl, al
mov byte [ebp - 0x10], bl
push dword [ebp - 0x10]
push 1
call fcn.0041634c
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x419e1c
mov eax, dword [ebp - 0x14]
call fcn.00450b9c
ret
Function at 0x41a229
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, eax
push edi
call fcn.0041c233
test eax, eax
je 0x41a276
push 0x10
call fcn.0044f620
xor edx, edx
pop ecx
cmp eax, edx
je 0x41a254
mov dword [eax + 0xc], edx
jmp 0x41a256
xor eax, eax
or dword [eax], 0xffffffff
mov dword [eax + 8], 7
mov dword [eax + 0xc], edx
mov ecx, dword [edi + 0x70]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0x74]
cmp ecx, edx
je 0x41a276
mov esi, dword [ecx]
push edx
push eax
call dword [esi]
mov eax, dword [edi + 0xfc]
sub eax, dword [edi + 0xf8]
push 0x30
cdq
pop ecx
idiv ecx
test eax, eax
jbe 0x41a2a1
mov eax, dword [edi + 0xfc]
sub eax, dword [edi + 0xf8]
cdq
idiv ecx
test eax, eax
jle 0x41a2ab
jmp 0x41a2a4
push 8
pop eax
mov ecx, edi
call fcn.0041a1eb
lea esi, [edi + 0x9c]
mov eax, esi
call fcn.00410c0e
test al, al
jne 0x41a2db
mov dword [edi + 0x6c], 1
cmp dword [esi + 0x18], 8
jb 0x41a2ce
mov esi, dword [esi + 4]
jmp 0x41a2d1
add esi, 4
push esi
lea eax, [edi + 0x78]
push eax
call fcn.00401a3d
and dword [esp + 0x18], 0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x10], 3
call fcn.0041b118
mov dword [esp + 0x14], eax
test eax, eax
je 0x41a322
cmp eax, 1
je 0x41a41c
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.0041b8cb
cmp eax, 0xd
je 0x41a432
cmp eax, 0xa
je 0x41a432
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x41a383
mov eax, edi
call fcn.0041c2aa
mov dword [esp + 0x14], eax
test eax, eax
jne 0x41a36a
xor ecx, ecx
cmp dword [edi + 0x50], ecx
jle 0x41a358
mov eax, dword [edi + 0x58]
add eax, 0x120
cmp dword [eax], 0
je 0x41a362
inc ecx
add eax, 0x128
cmp ecx, dword [edi + 0x50]
jl 0x41a348
push 1
push edi
call fcn.0041c26f
jmp 0x41a36a
mov dword [esp + 0x14], 0xe
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.0041b8cb
cmp eax, 0xd
je 0x41a432
mov esi, dword [esp + 0x14]
cmp esi, 0xc
je 0x41a38d
cmp esi, 0xb
jne 0x41a3b6
push dword [edi + 0x44]
call ebx
mov eax, dword [edi + 0x44]
cmp dword [eax - 0xc], 0
je 0x41a3b6
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0041b409
push dword [eax]
call ebx
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00401464
call fcn.0041af81
cmp dword [esp + 0x10], 0xd
je 0x41a436
test esi, esi
je 0x41a436
cmp esi, 0xb
jne 0x41a3e1
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 2
jl 0x41a3e1
and dword [edi + 0x6c], 0
mov byte [0x48b1d4], 0
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x41a40a
push 0x64
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41a432
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [esp + 0x10]
jl 0x41a3e9
add dword [esp + 0x10], 5
cmp dword [esp + 0x10], 0x12
jl 0x41a2ee
jmp 0x41a44f
push 1
push edi
call fcn.0041c26f
push edi
call fcn.0041c233
test eax, eax
je 0x41a44f
push 0
jmp 0x41a441
xor eax, eax
jmp 0x41a452
push edi
call fcn.0041c233
test eax, eax
je 0x41a44f
push esi
push 2
push dword [edi + 0x70]
mov eax, edi
push 0xffffffffffffffff
call fcn.0041c6b3
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a815
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push ebx
push edi
test eax, eax
jl 0x41a9b0
cmp eax, dword [esi + 0x50]
jge 0x41a9b0
mov edx, dword [ebp + 0x10]
test edx, edx
jl 0x41a9b0
mov edi, dword [ebp + 0xc]
jg 0x41a849
test edi, edi
jb 0x41a9b0
test edx, edx
jl 0x41a861
jg 0x41a853
test edi, edi
jbe 0x41a861
mov ecx, dword [esi + 0x60]
imul eax, eax, 0x18
mov dword [ecx + eax + 0x10], edi
mov dword [ecx + eax + 0x14], edx
lea ebx, [esi + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x14]
add dword [esi + 0x10], eax
mov eax, dword [ebp + 0x18]
push ebx
adc dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call fcn.0041c233
test eax, eax
je 0x41a9b0
push edi
push 5
push dword [esi + 0x70]
mov eax, esi
push dword [ebp + 8]
call fcn.0041c6b3
xor edi, edi
cmp dword [esi + 0x54], edi
je 0x41a9b0
cmp dword [esi + 0x50], edi
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x10], edi
jle 0x41a902
mov dword [ebp + 8], edi
mov eax, dword [esi + 0x58]
add eax, dword [ebp + 8]
call fcn.0041d821
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
sub ebx, eax
mov eax, dword [esi + 0x58]
sbb edi, edx
add eax, dword [ebp + 8]
call fcn.0041d8af
add eax, ebx
adc edx, edi
inc dword [ebp + 0x10]
add dword [ebp + 8], 0x128
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [esi + 0x50]
mov dword [ebp + 0x18], edx
jl 0x41a8c4
xor edi, edi
mov eax, esi
call fcn.0041c0e6
cmp edx, edi
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
jl 0x41a9b0
jg 0x41a921
cmp eax, edi
jbe 0x41a9b0
mov ebx, eax
sub ebx, dword [ebp + 0x14]
mov eax, edx
sbb eax, dword [ebp + 0x18]
push 0x20
mov dword [ebp + 0x18], eax
call fcn.0044f620
pop ecx
cmp eax, edi
je 0x41a94d
mov dword [eax + 0x18], edi
mov dword [eax], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov edi, eax
mov eax, dword [esi + 0x70]
mov dword [edi], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0xc], eax
call ebx
sub eax, dword [esi + 0x38]
jne 0x41a979
and dword [edi + 0x18], eax
jmp 0x41a990
push 0
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045d130
imul eax, eax, 0x3e8
mov dword [edi + 0x18], eax
call ebx
mov ecx, dword [esi + 0x7c]
add ecx, 0x64
cmp eax, ecx
jbe 0x41a9b0
push edi
push 3
push dword [esi + 0x70]
mov eax, esi
push 0xffffffffffffffff
call fcn.0041c6b3
call ebx
mov dword [esi + 0x7c], eax
pop edi
pop ebx
leave
ret 0x14
Function at 0x41afa8
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.00453c80
mov eax, dword [0x489c20]
xor eax, ebp
mov dword [ebp + 0x3f8c], eax
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00450bc0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x41b043
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41b043
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x47cf18
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41b043
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
mov eax, edi
call fcn.00401419
xor eax, eax
add esp, 0x14
inc eax
jmp 0x41b045
xor eax, eax
mov ecx, dword [ebp + 0x3f8c]
xor ecx, ebp
call fcn.0044eff8
add ebp, 0x3f90
leave
ret
Function at 0x41b64a
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x470570
call fcn.00450afd
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0041b409
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
mov dword [ebp - 4], ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x10], edi
cmp edi, 0xffffffff
je 0x41b77e
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41b77e
push 0xfffffffffffffffc
pop eax
push 2
lea edx, [ebp - 0x30]
push edx
or ecx, 0xffffffff
push ecx
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
call edi
test eax, eax
je 0x41b77e
push 0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
push 4
lea ebx, [esi + 0x5c]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b77e
cmp dword [ebp - 0x14], 4
jne 0x41b77e
mov eax, dword [ebx]
test eax, eax
jbe 0x41b77e
cmp eax, 0x3f
ja 0x41b77e
test eax, eax
jle 0x41b70b
mov ecx, esi
call fcn.0041a1eb
jmp 0x41b70d
xor eax, eax
test eax, eax
je 0x41b77e
mov ecx, esi
call fcn.0041ad8e
test eax, eax
je 0x41b77e
mov ecx, dword [esi + 0x50]
imul ecx, ecx, 0x18
push 0xfffffffffffffffc
pop eax
push 2
sub eax, ecx
cdq
lea ecx, [ebp - 0x38]
push ecx
push edx
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x41b77e
xor edi, edi
push edi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi + 0x50]
imul eax, eax, 0x18
push eax
push dword [esi + 0x60]
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [esi + 0x50]
je 0x41b76e
imul eax, eax, 0x18
cmp dword [ebp - 0x18], eax
jne 0x41b771
mov dword [ebp - 0x20], 1
jmp 0x41b77e
imul eax, eax, 0x18
push eax
push edi
push dword [esi + 0x60]
call fcn.00450bc0
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x41b793
cmp dword [ebp - 0x10], 0xffffffff
je 0x41b793
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401464
mov eax, dword [ebp - 0x20]
call fcn.00450b9c
ret
Function at 0x41b7a7
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x54]
sub esp, 0x28
push ebx
xor ebx, ebx
push edi
cmp eax, ebx
je 0x41b8c5
cmp dword [eax + 0x74], ebx
jne 0x41b7c9
xor eax, eax
inc eax
jmp 0x41b8c7
lea eax, [ebp - 8]
push eax
push esi
call fcn.0041b409
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
je 0x41b8ba
cmp dword [esi + 0x5c], ebx
je 0x41b8af
cmp dword [esi + 0x60], ebx
je 0x41b8af
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41b891
push 0xfffffffffffffffc
pop eax
push 2
lea edx, [ebp - 0x20]
push edx
or ecx, 0xffffffff
push ecx
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
call edi
test eax, eax
je 0x41b891
push ebx
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [esi + 0x5c]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
call ebx
mov ecx, dword [esi + 0x50]
imul ecx, ecx, 0x18
push 0xfffffffffffffffc
pop eax
push 2
sub eax, ecx
cdq
lea ecx, [ebp - 0x28]
push ecx
push edx
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x41b88f
and dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x50]
imul eax, eax, 0x18
push eax
push dword [esi + 0x60]
push dword [ebp - 4]
call ebx
mov dword [ebp - 0xc], 1
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x41b89f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401464
mov eax, dword [ebp - 0xc]
jmp 0x41b8c7
cmp edi, ebx
je 0x41b8ba
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401464
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x41b8cb
Capabilities:
Clear file content
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46efd8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x489c20]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x18], edi
cmp dword [eax], edi
je 0x41b912
mov esi, ebx
call fcn.0041b7a7
jmp 0x41baaf
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.0041b409
push edi
mov esi, 0x80
push esi
push 3
push edi
push 3
mov dword [esp + 0x44], edi
push 0xc0000000
push dword [esp + 0x34]
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41b98c
mov eax, dword [ebx + 0x54]
mov ecx, dword [eax + 0x88]
mov eax, dword [eax + 0x8c]
push 0
push 0
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41b97a
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x41b97a
mov dword [esp + 0x14], 1
test edi, edi
je 0x41b985
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], 0
jne 0x41b99a
mov eax, dword [ebp + 8]
mov dword [eax], 9
jmp 0x41baa1
lea edi, [ebx + 0x44]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
push dword [esp + 0x20]
call fcn.00457cb5
pop ecx
pop ecx
test eax, eax
jne 0x41b98c
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebx + 0x6c], 0
je 0x41b9f2
lea esi, [esp + 0x14]
mov eax, ebx
call fcn.0041c471
mov byte [esp + 0x30], 1
push eax
mov ecx, 0x47cfd0
mov dword [esp + 0x1c], 1
call fcn.00401e71
mov byte [esp + 0x13], 1
test eax, eax
jne 0x41b9f7
mov byte [esp + 0x13], 0
and dword [esp + 0x30], 0
test byte [esp + 0x18], 1
je 0x41ba0f
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00401464
cmp byte [esp + 0x13], 0
je 0x41baa1
and dword [esp + 0x14], 0
mov esi, edi
call fcn.00414226
push eax
lea ecx, [esp + 0x1c]
call fcn.0041c48a
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x41ba7d
lea esi, [esp + 0x20]
mov eax, ebx
call fcn.0041c471
mov byte [esp + 0x30], 3
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00401e71
mov ebx, eax
mov eax, dword [esp + 0x20]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00401464
test bl, bl
je 0x41ba7d
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00401464
cmp dword [esp + 0x14], 0
jne 0x41baa1
mov eax, dword [ebp + 8]
mov dword [eax], 0xb
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00401464
xor edi, edi
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx], edi
sete al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41c48a
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x120
mov eax, 0x46ef7f
call fcn.00450b66
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x12c], ebx
call fcn.00401236
xor edi, edi
inc edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x12c], edi
cmp dword [ebp - 0xfc], ebx
je 0x41c69a
push ebx
push 0x80
push 3
push ebx
push edi
push SysReAllocString
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xfc], eax
cmp eax, 0xffffffff
je 0x41c69a
lea ecx, [ebp - 0x128]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41c68e
mov esi, 0x4000000
push esi
call fcn.0044e4ef
pop ecx
mov dword [ebp - 0x110], eax
cmp eax, ebx
je 0x41c68e
push esi
push ebx
push eax
call fcn.00450bc0
add esp, 0xc
lea esi, [ebp - 0xf8]
call fcn.0041fd60
mov dword [ebp - 4], edi
xor eax, eax
mov byte [ebp - 0x20], bl
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x98]
call fcn.0041fdb4
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x128]
xor edi, edi
cmp eax, ebx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x11c], ebx
jl 0x41c616
jg 0x41c58d
cmp ecx, ebx
jbe 0x41c616
push ebx
push ebx
push dword [ebp - 0x11c]
push edi
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41c616
push ebx
lea eax, [ebp - 0x114]
push eax
push 0x4000000
push dword [ebp - 0x110]
mov dword [ebp - 0x114], ebx
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c616
mov esi, dword [ebp - 0x114]
cmp esi, ebx
je 0x41c616
push dword [ebp - 0x110]
mov eax, esi
lea ecx, [ebp - 0x98]
call fcn.0041fdd8
add edi, esi
adc dword [ebp - 0x11c], ebx
sub dword [ebp - 0x108], esi
sbb dword [ebp - 0x104], ebx
cmp dword [ebp - 0x104], ebx
jg 0x41c58d
jl 0x41c616
cmp dword [ebp - 0x108], ebx
ja 0x41c58d
cmp edi, dword [ebp - 0x128]
jne 0x41c674
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 0x124]
jne 0x41c674
lea eax, [ebp - 0x20]
push eax
lea edi, [ebp - 0x98]
lea ecx, [ebp - 0xf8]
call fcn.0042054b
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004205cc
mov byte [ebp - 4], 2
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x41c65d
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x10c]
call fcn.00414019
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.004032a5
push dword [ebp - 0x110]
call fcn.0044efed
pop ecx
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], bl
call fcn.0041fda1
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10c]
call fcn.0041c6f8
mov eax, dword [ebp - 0x10c]
call fcn.00450bb0
ret 4