joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001630
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 0x18]
push edx
push eax
push eax
push eax
push 1
push eax
push eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x7c]
push eax
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
mov word [esp + 0x6c], 3
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x100016aa
push eax
push str.ERROR
push str.run_failed.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
add esp, 0x54
ret 4
mov ecx, dword [esp]
push esi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
xor eax, eax
pop esi
add esp, 0x54
ret 4

Function at 0x100054a0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
mov dword [esp + 4], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 8]
add esp, 0x20
ret

Function at 0x10005ae0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [0x100258e4], ecx
or ecx, 0xffffffff
push esi
push edi
mov edi, dword [esp + 0xc]
mov dword [0x100258ec], eax
xor eax, eax
mov dword [0x100258f4], 1
mov dword [0x100258e8], 0
mov dword [0x100258fc], 0
repne scasb al, byte es:[edi]
mov eax, dword [0x100258f0]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, 0x10025894
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
je 0x10005b49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x10005b70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x100258f0], eax
xor eax, eax
ret 0xc

Function at 0x10005c10
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [0x100258e4], ecx
or ecx, 0xffffffff
push esi
push edi
mov edi, dword [esp + 0xc]
mov dword [0x100258ec], eax
xor eax, eax
mov dword [0x100258f4], 2
mov dword [0x100258e8], 0
mov dword [0x100258fc], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, 0x10025894
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x100258f0]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
je 0x10005c79
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x10005b70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x100258f0], eax
xor eax, eax
ret 0x10
Function at 0x10005d60
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x440
push ebx
push esi
mov esi, dword [esp + 0x44c]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
lea eax, [esp + 0x350]
push str._s.
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x350]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10005e07
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [esp + 0x3c], 0x2e
je 0x10005df6
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
push esi
push str._s_s
je 0x10005ddf
lea ecx, [esp + 0x15c]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x150]
push edx
call sym.MainDll.dll__DelAllFiles_4
jmp 0x10005df6
lea ecx, [esp + 0x25c]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x250]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10005daa
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x440
ret 4
Function at 0x10006240
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x100258f8]
test eax, eax
je 0x1000624f
or eax, 0xffffffff
ret 0x10
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
push edi
lea edx, [esp + 0xc]
push edx
push 0
push 0
mov ecx, 0x10
mov edi, 0x10025900
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
push 0x10006030
mov ecx, 0x10
mov edi, 0x10025940
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
push 0
push 0
mov dword [0x10025980], eax
mov dword [0x10025984], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [0x100258f8], eax
xor eax, eax
pop esi
ret 0x10

Function at 0x10006340
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xcc
sub eax, 0
push esi
je 0x10006411
dec eax
jne 0x10006474
call dword [0x10010300]
push 0x50
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x5c]
push str._sdoproc.ctl
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x64]
push 0x10021490
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x14
test esi, esi
je 0x100063bb
mov ecx, dword [0x1002143c]
push esi
push 1
push ecx
push 0x1001323c
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
push edi
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.DoProc
push esi
call edi
push str.InitProc
push esi
mov dword [0x10029d18], eax
call edi
mov ecx, dword [sym.MainDll.dll__GetFrameBlockPtr_4]
push ecx
call eax
call sym.MainDll.dll__InitDraw_0
call fcn.10001830
call fcn.10009ec0
call fcn.1000d960
pop edi
mov eax, 1
pop esi
add esp, 0xcc
ret 0xc
mov eax, dword [0x10025bd4]
test eax, eax
je 0x10006474
push 0
push 0x80000020
push 3
push 0
push 0
push 0x40000000
push str.DsaRefMailslotDSA
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10006474
mov dword [esp + 8], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea edx, [esp + 8]
push edx
mov dword [esp + 0x14], eax
push 0x40
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0xcc
ret 0xc
Function at 0x10006f90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x614
mov edx, dword [esp + 0x618]
push ebx
mov ebx, dword [esp + 0x620]
push esi
mov esi, edx
imul esi, ebx
lea eax, [esi + 0x436]
push edi
mov dword [esp + 0x12], eax
xor eax, eax
mov ecx, 0xa
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], edx
mov word [esp + 0x10], 0x4d42
mov word [esp + 0x18], 0
mov word [esp + 0x16], 0
mov dword [esp + 0x1a], 0x436
mov dword [esp + 0x20], 0x28
mov dword [esp + 0x28], ebx
mov word [esp + 0x2c], 1
mov word [esp + 0x2e], 8
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
xor ecx, ecx
lea edx, [esp + 0x48]
mov eax, ecx
and eax, 0xff
mov edi, eax
shl edi, 8
or edi, eax
shl edi, 8
or edi, eax
mov dword [edx], edi
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x1000700c
mov ecx, dword [esp + 0x634]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x10]
push edx
mov edi, eax
push 0xe
lea eax, [esp + 0x1c]
push eax
push edi
call ebx
cmp dword [esp + 0xc], 0xe
jne 0x1000709b
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x428
lea edx, [esp + 0x2c]
push edx
push edi
call ebx
mov ecx, dword [esp + 0x62c]
push 0
lea eax, [esp + 0x10]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x614
ret 0x14

Function at 0x10007520
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x60
push esi
push edi
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call sym.MainDll.dll_void____stdcall_GetDisplayBuf_int___int___int_
mov edx, dword [esp + 8]
mov esi, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push 0x3e8
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], edx
call dword [sym.imp.ProgGrab.dll__ProgGrabSetPara_8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
push eax
push esi
call fcn.1000cc90
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push str.ref.bmp
push 0
push esi
push edx
push eax
call fcn.10006f90
mov eax, dword [0x10025bd4]
test eax, eax
je 0x100075eb
push 0
push 0x80000020
push 3
push 0
push 0
push 0x40000000
push str.DsaRefMailslotDSA
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100075eb
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x40
lea edx, [esp + 0x34]
push edx
push edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
xor eax, eax
pop esi
add esp, 0x60
ret
Function at 0x10008209
Capabilities:
Check for software breakpoints

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, 0xc4
mov ecx, edi
call fcn.100081e7
cmp eax, 0xd7
jg 0x1000826e
cmp eax, 0xd0
jge 0x10008212
cmp eax, esi
jg 0x10008249
je 0x10008240
cmp eax, 1
je 0x10008212
cmp eax, 0xbf
jle 0x10008265
cmp eax, 0xc3
jmp 0x10008263
mov ecx, edi
call fcn.10007fd7
jmp 0x10008212
cmp eax, 0xc5
jl 0x10008265
cmp eax, 0xcb
jle 0x100082b5
cmp eax, 0xcc
jle 0x10008265
cmp eax, 0xcf
jle 0x100082b5
mov ecx, edi
call fcn.10007fc5
jmp 0x10008212
cmp eax, 0xd8
jl 0x10008265
cmp eax, 0xda
jle 0x100082b5
cmp eax, 0xdb
je 0x100082a9
cmp eax, 0xdd
je 0x1000829d
cmp eax, 0xe0
jne 0x10008265
mov ecx, edi
call fcn.100080ec
jmp 0x10008212
mov ecx, edi
call fcn.100080c3
jmp 0x10008212
push 2
call fcn.10007dbc
jmp 0x10008212
pop edi
pop esi
ret
Function at 0x100086d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x30]
cmp ecx, 8
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x2c]
push edi
mov dword [ebp - 0x24], eax
jg 0x10008836
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0xe00]
sub ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x34]
mov dword [ebp - 4], eax
mov ebx, dword [esi + 0xdfc]
mov eax, edi
sub eax, edx
mov dword [ebp - 8], eax
xor eax, eax
inc eax
dec ecx
shl eax, cl
movzx ecx, byte [edi]
sub ecx, eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
test ecx, ecx
mov byte [ebx], al
setl al
sub cl, al
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], ebx
sub dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
sub dword [ebp - 0x14], edi
mov byte [eax], cl
lea ecx, [edi + 1]
mov dword [ebp - 0x20], 7
movzx edx, byte [ecx - 1]
movzx eax, byte [ecx]
sub eax, edx
mov dword [ebp - 0x1c], eax
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x10]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x1c]
test eax, eax
setl dl
sub al, dl
mov edx, dword [ebp - 0x14]
mov byte [edx + ecx], al
inc ecx
dec dword [ebp - 0x20]
jne 0x10008753
push dword [esi + 0x34]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp - 8]
add eax, 8
push eax
mov eax, dword [ebp - 4]
add eax, 8
push eax
lea eax, [ebx + 8]
push eax
call fcn.10008977
push dword [ebp - 0xc]
mov ecx, esi
push dword [ebp - 4]
push ebx
call fcn.10008530
mov eax, dword [esi + 0x34]
mov dword [ebp - 8], edi
add edi, eax
cmp dword [ebp - 0x18], 1
je 0x100087c3
cmp dword [ebp - 0x18], 7
jne 0x10008836
mov ecx, dword [ebp - 0x24]
cmp ecx, 1
jle 0x1000882b
dec ecx
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
movzx ecx, byte [edi]
movzx edx, byte [edx]
push eax
push dword [ebp - 0xc]
sub ecx, edx
cmp dword [ebp - 0x18], 1
push dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
push dword [ebp - 4]
push ebx
jne 0x100087f5
call fcn.10008977
jmp 0x100087fa
call fcn.100089cd
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0xc]
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
test ecx, ecx
mov byte [ebx], al
setl al
sub cl, al
mov eax, dword [ebp - 4]
push eax
mov byte [eax], cl
push ebx
mov ecx, esi
call fcn.10008530
mov eax, dword [esi + 0x34]
mov dword [ebp - 8], edi
add edi, eax
dec dword [ebp - 0x20]
jne 0x100087cf
push 0
push 0
mov ecx, esi
call fcn.10008620
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10008977
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
sub ebx, edi
pcmpeqb mm6, mm6
pxor mm7, mm7
movq mm4, qword [esi + edx]
movq mm0, qword [esi + edx - 1]
movq mm2, mm4
psubusb mm4, mm0
psubusb mm0, mm2
por mm4, mm0
pcmpeqb mm0, mm7
pxor mm0, mm6
pxor mm0, mm4
movq qword [edi], mm4
movq qword [edi + ebx], mm0
add esi, 8
add edi, 8
sub ecx, 8
jg 0x10008994
emms
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x100089cd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
sub ebx, edi
pcmpeqb mm6, mm6
pxor mm7, mm7
movq mm0, qword [esi]
movq mm4, qword [esi + edx]
movq mm2, qword [esi + edx - 1]
movq mm1, mm0
punpcklbw mm0, mm7
movq mm3, mm2
punpcklbw mm2, mm7
punpckhbw mm1, mm7
punpckhbw mm3, mm7
paddw mm0, mm2
paddw mm1, mm3
psrlw mm0, 1
psrlw mm1, 1
packuswb mm0, mm1
movq mm2, mm4
psubusb mm4, mm0
psubusb mm0, mm2
por mm4, mm0
pcmpeqb mm0, mm7
pxor mm0, mm6
pxor mm0, mm4
movq qword [edi], mm4
movq qword [edi + ebx], mm0
add esi, 8
add edi, 8
sub ecx, 8
jg 0x100089ea
emms
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x100097d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx]
imul eax, dword [ebx + 4]
push ebp
push esi
push edi
push 4
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
imul eax, dword [ebx + 4]
add eax, 0x1ff
and eax, 0xfffffe00
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xc]
xor edi, edi
test eax, eax
jle 0x100098de
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + edi*4]
mov ebp, dword [eax + edi*4 + 4]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push 0
sub ebp, ecx
lea ecx, [esp + 0x18]
push ecx
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebp, dword [esp + 0x14]
jne 0x100098de
test edi, edi
push 1
jne 0x10009853
call dword [0x100102f8]
jmp 0x1000985a
push edi
call dword [0x1001031c]
push edi
call dword [0x100102dc]
mov ecx, dword [ebx]
mov esi, eax
mov dword [esi + 4], ecx
mov edx, dword [ebx + 4]
mov dword [esi + 8], edx
mov eax, dword [ebx]
mov edx, dword [esp + 0x10]
lea ecx, [edi + edi*4]
shl ecx, 2
push edx
mov dword [esi + 0xc], eax
mov dword [esi], ecx
call dword [0x10010318]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x1c]
push 0
push ecx
push eax
push ebp
push edx
push 0x10025c3c
mov dword [esi + 0x10], eax
call fcn.10008bf0
mov esi, dword [0x10025c34]
mov eax, dword [esp + 0x10]
add esi, eax
push edi
mov dword [0x10025c34], esi
call dword [0x1001030c]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100098d2
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x28]
push ecx
push edi
push edx
call eax
cmp eax, 0xffffffff
je 0x100098de
mov eax, dword [ebx + 0xc]
inc edi
cmp edi, eax
jl 0x10009816
mov eax, dword [esp + 0x1c]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x14
Function at 0x10009900
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x58]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x18]
push 0x100093a0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 4
push 0x1000
push 0x5200
mov esi, eax
push 0
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
mov ebx, eax
lea eax, [esp + 0x6c]
push eax
push 0x4200
push ebx
push esi
mov dword [esp + 0x7c], 0
call ebp
cmp dword [esp + 0x68], 0x4200
jne 0x10009a68
cmp dword [ebx + 0x68], 1
jne 0x100099b7
push 0
lea ecx, [esp + 0x6c]
push ecx
push 0x1000
lea edi, [ebx + 0x4200]
push edi
push esi
call ebp
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
push edi
push edx
push eax
push esi
push ebx
call fcn.100097d0
jmp 0x10009a68
mov ebp, dword [ebx]
imul ebp, dword [ebx + 4]
mov eax, dword [ebx + 0xc]
add ebp, 0x1ff
and ebp, 0xfffffe00
xor edi, edi
test eax, eax
jle 0x10009a68
test edi, edi
push 1
jne 0x100099e4
call dword [0x100102f8]
jmp 0x100099eb
push edi
call dword [0x1001031c]
push edi
call dword [0x100102dc]
mov ecx, dword [ebx]
mov esi, eax
mov dword [esi + 4], ecx
mov edx, dword [ebx + 4]
mov dword [esi + 8], edx
mov eax, dword [ebx]
lea ecx, [edi + edi*4]
shl ecx, 2
push ebp
mov dword [esi + 0xc], eax
mov dword [esi], ecx
call dword [0x10010318]
push 0
lea edx, [esp + 0x6c]
push edx
push ebp
push eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [0x1001030c]
mov edx, dword [0x10025c34]
mov eax, dword [esp + 0x6c]
add edx, ebp
test eax, eax
mov dword [0x10025c34], edx
je 0x10009a58
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x70]
push ecx
push edi
push edx
call eax
cmp eax, 0xffffffff
je 0x10009a64
mov eax, dword [ebx + 0xc]
inc edi
cmp edi, eax
jl 0x100099d6
mov esi, dword [esp + 0x10]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret 0x10
Function at 0x10009de0
Capabilities:
Enumerate files on windows

Disassembly:
or ecx, 0xffffffff
sub esp, 0x240
push ebx
push esi
push edi
mov edi, dword [esp + 0x250]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x14c]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x10009eb0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [esp + 0x14c]
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10009e6d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x240
ret 4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor edi, edi
mov bl, 0x10
test byte [esp + 0x10], bl
jne 0x10009e82
add edi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
push esi
call ebp
test eax, eax
jne 0x10009e78
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x240
ret 4

Function at 0x1000a710
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x10029d00], eax
lea eax, [esp]
push eax
push 0
push 0
push 0x1000a750
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10029cf4], eax
xor eax, eax
pop ecx
ret
Function at 0x1000c130
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push ebx
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000c161
or eax, eax
pop ebx
add esp, 0xc
ret 4
push ebp
push esi
push edi
push 0x4000
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
add esp, 4
xor eax, eax
push eax
mov ecx, 0x1000
mov edi, ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push 0x4000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], 0x4000
je 0x1000c1a4
or esi, 0xffffffff
jmp 0x1000c249
call dword [0x100102e4]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], eax
mov dword [0x10029d1c], 0
mov dword [0x10029d0c], ebx
jle 0x1000c221
mov dword [esp + 0x20], ebp
push edi
call dword [0x100102dc]
mov edx, dword [0x10029d1c]
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x20]
mov dword [eax], edx
je 0x1000c20d
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x1000c1ed
call fcn.1000c270
mov edx, dword [0x10029d0c]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x124
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [0x10029d1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
inc edi
add ecx, 4
cmp edi, eax
mov dword [esp + 0x20], ecx
jl 0x1000c1c8
mov eax, dword [0x10029d1c]
xor esi, esi
push esi
push esi
push esi
push ebx
mov dword [ebp + edi*4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea ecx, [esp + 0x14]
push ecx
push 0x4000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x1000c2b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x138
mov eax, dword [esp + 0x13c]
push ebx
push 0
push 0x8000080
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
jne 0x1000c2ee
or eax, eax
pop ebx
add esp, 0x138
ret 4
push esi
push edi
push 0x4000
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x4000
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], 0x4000
je 0x1000c326
or esi, 0xffffffff
jmp 0x1000c3ae
push ebp
call dword [0x100102e4]
mov esi, dword [edi + 4]
sub esi, dword [edi]
xor ebp, ebp
test esi, esi
mov dword [esp + 0x1c], eax
jle 0x1000c3ab
mov ebx, edi
mov dword [esp + 0x10], ebx
push ebp
call dword [0x100102dc]
mov edi, eax
test edi, edi
je 0x1000c38e
xor ebx, ebx
test esi, esi
jle 0x1000c38a
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x24]
push edx
push 0x124
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x20], 0x124
jne 0x1000c385
test ebx, ebx
jne 0x1000c385
mov edx, dword [esp + 0x24]
mov dword [edi], edx
inc ebx
cmp ebx, esi
jl 0x1000c355
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
inc ebp
add ebx, 4
cmp ebp, eax
mov dword [esp + 0x10], ebx
jge 0x1000c3a7
mov esi, dword [ebx + 4]
sub esi, dword [ebx]
test esi, esi
jg 0x1000c342
mov ebx, dword [esp + 0x14]
xor esi, esi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x138
ret 4

Function at 0x1000d050
Capabilities:
Create mailslot
Create thread

Disassembly:
push ecx
push 0
push 0xa
push 0x100
push str..MailslotCmd
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov dword [0x1002bd84], eax
mov eax, dword [esp + 8]
push eax
push str._sMailslotCmd
push 0x1002bd34
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp]
push ecx
push 0
push 0
push 0x1000d0a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
pop ecx
ret 4