joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41acb0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 4]
push 0
push eax
mov eax, dword [ebp + 0x10]
push edi
push 0x20000013
mov dword [ebp - 4], 4
push dword [eax]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x41ace1
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0xc8
jne 0x41acf0
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], 0
mov eax, dword [edi]
sub eax, 0x12c
cmp eax, 0x63
ja 0x41ad33
push esi
xor esi, esi
nop dword [eax]
mov eax, dword [ebp + 0x10]
push ebx
push edi
push dword [ebp + 0x14]
push dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041aa10
add esp, 0x18
test al, al
je 0x41ad32
inc esi
cmp esi, 5
jl 0x41ad10
pop esi
cmp dword [ebx], 0
pop ebx
sete al
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x41b4e0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push 0
push 4
mov esi, ecx
push esi
push 0x41b520
push 0
push 0
call fcn.004262d1
add esp, 0x18
test eax, eax
jne 0x41b511
push 0x44a78c
push eax
push 0xc
mov ecx, esi
call fcn.0041b560
or eax, 0xffffffff
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
Function at 0x41bba0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d218
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x45604c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 3
lea esi, [ecx + 0x10]
mov dword [ecx], vtable.t_ipcServerTaskReplySGT.0
push 3
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp + 8], esi
call fcn.0040eb40
mov dword [esi], vtable.t_taskMsgReplySGT.0
xorps xmm0, xmm0
mov dword [esi + 0x10], 0xffffffff
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
movups xmmword [esi + 0x1c], xmm0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
movups xmmword [esi + 0x34], xmm0
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 7
mov word [esi + 0x34], ax
movups xmmword [esi + 0x4c], xmm0
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], 7
mov word [esi + 0x4c], ax
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x1c]
mov byte [ebp - 4], 1
mov dword [esi + 0x74], eax
lea ecx, [esi + 0x2c]
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], eax
call fcn.004066d0
push dword [ebp + 0x20]
lea ecx, [esi + 0x44]
call fcn.004066d0
push dword [ebp + 0x24]
lea ecx, [esi + 0x5c]
call fcn.004066d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x41d5e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d584
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45604c]
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 dword [ebp - 0x2c], ecx
call fcn.00414390
mov ebx, dword [ebp + 8]
mov edi, eax
test ebx, ebx
js 0x41d753
test edi, edi
je 0x41d753
lea esi, [edi + 8]
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 4], 0
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x41d664
nop dword [eax]
cmp dword [eax + 0x10], ebx
jge 0x41d65a
mov eax, dword [eax + 8]
jmp 0x41d65e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x41d650
cmp byte [ecx + 0xd], 0
jne 0x41d6c4
cmp ebx, dword [ecx + 0x10]
jl 0x41d6c4
cmp edx, ecx
je 0x41d6c4
cmp dword [ecx + 0x14], 1
jne 0x41d680
mov edi, 2
jmp 0x41d6c9
mov dword [ecx + 0x14], 1
cmp dword [ecx + 0x18], 0xffffffff
je 0x41d6a9
push 0
push 0
push dword [ebp - 0x2c]
push 0x41d920
push 0
push 0
call fcn.004262d1
add esp, 0x18
test eax, eax
jne 0x41d6ad
xor edi, edi
jmp 0x41d6c9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x41d755
mov edi, 1
lea ecx, [ebp - 0x28]
call fcn.00411330
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004113e0
push edi
lea ecx, [ebp - 0x28]
call fcn.004113f0
mov ebx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push dword [ebx + 8]
call fcn.0040ee30
test eax, eax
je 0x41d73e
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x41d73e
push eax
call fcn.00414560
push 0x14
call fcn.00422276
add esp, 4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x41d727
push dword [ebx + 0x18]
mov ecx, eax
call fcn.0041b9f0
jmp 0x41d729
xor eax, eax
mov byte [ebp - 4], 1
test eax, eax
je 0x41d73a
mov ecx, dword [ebx + 0x18]
push eax
call fcn.00417cb0
mov bl, 1
jmp 0x41d740
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.0040eb70
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x41d755
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422505
mov esp, ebp
pop ebp
ret 4
Function at 0x41e2f0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push ecx
push 0x41e310
push 0
push 0
call fcn.004262d1
add esp, 0x18
mov eax, 1
ret
Function at 0x41f420
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push 8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call fcn.00422276
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x41f45d
push 0
call fcn.00429f9d
add esp, 4
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x41f45f
xor ebx, ebx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41f4b8
push edi
mov edi, dword [ebp + 0xc]
nop word [eax + eax]
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x41f4b0
push 0
call fcn.00429f9d
sub eax, dword [ebx]
add esp, 4
mov ecx, dword [ebp - 0xc]
imul eax, eax, 0x3e8
cmp eax, dword [ecx + 0x24]
ja 0x41f4a7
add edi, dword [ebp - 8]
sub esi, dword [ebp - 8]
jne 0x41f470
jmp 0x41f4b7
mov dword [ebp - 4], 0xfffffffe
jmp 0x41f4b7
mov dword [ebp - 4], 0xffffffff
pop edi
push 8
push ebx
call fcn.004222a6
mov eax, dword [ebp - 4]
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41f7d0
Capabilities:
Check os version
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d7e5
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [0x458ac8]
test al, al
jne 0x41f9a4
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41f9a2
cmp dword [ebp - 0x198], 5
ja 0x41f83f
cmp dword [ebp - 0x194], 1
jbe 0x41f9a2
lea eax, [ebp - 0x28]
push eax
call fcn.0041f5a0
add esp, 4
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0
cmovae esi, dword [ebp - 0x28]
call fcn.00404170
push esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00404330
test eax, eax
jne 0x41f98e
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
mov edi, eax
call fcn.00404320
test edi, edi
je 0x41f99a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SGTInitialize
push edi
call esi
push str.SGTUninitialize
push edi
mov dword [0x458a88], eax
call esi
push str.SGTInitParams
push edi
mov dword [0x458a8c], eax
call esi
push str.SGTCreateTask
push edi
mov dword [0x458a90], eax
call esi
push str.SGTResumeTask
push edi
mov dword [0x458a94], eax
call esi
push str.SGTPauseTask
push edi
mov dword [0x458a98], eax
call esi
push str.SGTSetTaskUploadLimit
push edi
mov dword [0x458a9c], eax
call esi
push str.SGTSetTaskDownloadLimit
push edi
mov dword [0x458aa0], eax
call esi
push str.SGTReady
push edi
mov dword [0x458aa4], eax
call esi
push str.SGTIsMemoryTask
push edi
mov dword [0x458aa8], eax
call esi
push str.SGTProgress
push edi
mov dword [0x458aac], eax
call esi
push str.SGTGetTaskStatus
push edi
mov dword [0x458ab0], eax
call esi
push str.SGTGetFileContent
push edi
mov dword [0x458ab4], eax
call esi
push str.SGTGetFilePath
push edi
mov dword [0x458ab8], eax
call esi
push str.SGTRemoveTask
push edi
mov dword [0x458abc], eax
call esi
push str.SetCRTExceptionHandler
push edi
mov dword [0x458ac0], eax
call esi
mov dword [0x458ac4], eax
test eax, eax
je 0x41f978
push 0x4134b0
call eax
lea ecx, [ebp - 0x28]
mov byte [0x458ac8], 1
call fcn.00405540
mov al, byte [0x458ac8]
jmp 0x41f9a4
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
call fcn.00404320
lea ecx, [ebp - 0x28]
call fcn.00405540
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422505
mov esp, ebp
pop ebp
ret
Function at 0x4203e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x458acc]
test eax, eax
jne 0x42047f
push esi
push 0x30
call fcn.00422276
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x42043f
push esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x18], eax
mov byte [esi + 0x2c], 0
mov dword [esi + 0x1c], 0
jmp 0x420441
xor esi, esi
cmp byte [esi + 0x2c], 0
mov dword [0x458acc], esi
jne 0x42047c
push 0
push 0
push esi
push 0x4206f0
push 0
push 0
mov byte [esi + 0x2c], 1
call fcn.004262d1
add esp, 0x18
mov dword [esi + 0x1c], eax
test eax, eax
mov eax, dword [0x458acc]
jne 0x42047e
mov byte [esi + 0x2c], 0
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x420610
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2c], 0
jne 0x420641
push 0
push 0
push esi
push 0x4206f0
push 0
push 0
mov byte [esi + 0x2c], 1
call fcn.004262d1
add esp, 0x18
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x420641
mov byte [esi + 0x2c], al
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x4231f2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x423231
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x423231
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x423231
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x423231
cmp dword [ecx + 0x74], 0xe
jbe 0x423231
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42e583
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442fb8
push 0x442fb0
push str.FlsAlloc
push 0x1f
call fcn.0042e47e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e5b7
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e29c]
call esi
jmp 0x42e5bd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42e601
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442fc8
push 0x442fc0
push str.FlsGetValue
push 0x21
call fcn.0042e47e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e638
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e29c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42e640
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442fd0
push 0x442fc8
push str.FlsSetValue
push 0x22
call fcn.0042e47e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e67a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43e29c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x430770
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x459640]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4307b0
cmp byte [ebx], 0xa
jne 0x4307b0
or byte [edi + eax + 0x28], 4
jmp 0x4307b5
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4308b4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x430897
inc eax
cmp dl, 0xd
je 0x4307e1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x430807
cmp eax, ecx
jae 0x430815
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4307c9
jmp 0x4308b4
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430892
cmp dword [ebp - 0x10], 0
je 0x430892
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x459640]
test byte [eax + edi + 0x28], 0x48
je 0x43086c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x430857
mov byte [esi], dl
jmp 0x430868
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x459640]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4308b4
cmp byte [ebp - 1], 0xa
jne 0x43087b
cmp esi, ebx
jne 0x43087b
mov byte [esi], 0xa
jmp 0x4308b3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00433623
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4308b4
mov byte [esi], 0xd
jmp 0x4308b3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x459640]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4308b1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4308b4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4308bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x459640]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x430903
cmp word [ebx], dx
jne 0x430903
or byte [eax + edi + 0x28], 4
jmp 0x430908
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x430a6b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x430a4b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x430949
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43097f
cmp eax, edx
jae 0x43098d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x430924
jmp 0x430a6b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430a46
cmp dword [ebp - 0x18], 0
je 0x430a46
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x459640]
test byte [eax + edi + 0x28], 0x48
je 0x430a1c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4309e0
mov word [esi], cx
jmp 0x430a17
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x459640]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x459640]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x459640]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x430a6b
pop eax
cmp word [ebp - 4], ax
jne 0x430a2c
cmp esi, ebx
jne 0x430a2c
mov word [esi], ax
jmp 0x430a68
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00433623
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x430a6b
push 0xd
pop eax
jmp 0x430a27
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x459640]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x430a65
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x430a6b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x436124
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45604c]
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 0x43616f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004362bf
test al, al
jne 0x436169
sub edx, 2
cmp edx, edi
jne 0x43614f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x436191
lea eax, [edi + 2]
cmp edx, eax
je 0x436191
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00436070
add esp, 0x10
jmp 0x43628b
push esi
lea ecx, [ebp - 0x255]
call fcn.004362bf
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 0x4361d4
push dword [ebp - 0x25c]
jmp 0x436181
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 0x436211
cmp word [ebp - 0x226], 0
je 0x436232
cmp word [ebp - 0x226], ax
jne 0x436211
cmp word [ebp - 0x224], 0
je 0x436232
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00436070
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43627e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4361eb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x436266
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43628b
push 0x435ea0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042bfc0
add esp, 0x10
jmp 0x43625b
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.00422505
leave
ret
Function at 0x43942b
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004393a7
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43959a
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43959a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43954f
jg 0x439487
test eax, eax
je 0x439545
push 1
push 0x1000
call fcn.0042e2e8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4394aa
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43953c
push 0x8000
push ebx
call fcn.0042dba8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4394d3
jg 0x4394ce
cmp ecx, 0x1000
jb 0x4394d3
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00438363
add esp, 0x10
cmp eax, 0xffffffff
je 0x439518
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4394ce
jl 0x4394ff
test ecx, ecx
jne 0x4394c0
push dword [ebp - 0xc]
push ebx
call fcn.0042dba8
push esi
call fcn.0042e345
add esp, 0xc
xor ebx, ebx
jmp 0x4395a8
cmp byte [edi + 0x24], 0
je 0x43952f
cmp dword [edi + 0x20], 5
jne 0x43952f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43953a
mov ebx, dword [edi + 0x18]
jmp 0x43953c
xor ebx, ebx
push esi
call fcn.0042e345
pop ecx
jmp 0x4395a8
test ecx, ecx
jg 0x439511
jl 0x43954f
test eax, eax
jae 0x439511
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00433623
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43956f
cmp byte [edi + 0x1c], 0
je 0x439511
jmp 0x4395a0
push ebx
call fcn.00433b5b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x439511
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4395a8
cmp byte [edi + 0x1c], 0
je 0x4395a5
mov ebx, dword [edi + 0x18]
jmp 0x4395a8
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00433623
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret