joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f515
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47f62d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47f62d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004979c9
mov esi, eax
test esi, esi
je 0x47f62d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47f62d
mov ecx, esi
call fcn.0047f4a0
cmp edi, eax
jge 0x47f62d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x47f5b3
mov dword [esp + 0x34], 1
jmp 0x47f60e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47f62d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0047ea50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x49836d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4983a5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00496424
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004963fc
jmp 0x4983b1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x499a62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x499aa4
call fcn.0049fc23
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x499aa4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x499a9b
xor eax, eax
jmp 0x499aac
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00499ab2
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a0153
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a0181
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a019f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a00b9
jmp 0x4a019f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a019f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a00b9
test edi, edi
mov eax, edi
jne 0x4a0189
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x5c0000
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x5c0db7
call fcn.005c000f
jmp fcn.00484dd0
Function at 0x5c0693
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x5c06c1
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x5c06b8
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x5c06b0
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x5c06e2
mov esp, ebp
pop ebp
ret

Function at 0x5c06e6
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x5c0752
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x5c077f
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x5c076e
xor ecx, eax
xor edx, ebx
dec edi
jne 0x5c075f
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x5c07a5
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x5c0746
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x5c07d1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b5b1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x41b5c0
pop dword [ebp - 0x48]
mov eax, 0x41b5c0
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xfe413131
sub dword [ebp - 0x58], 0xafeeebe6
mov dword [ebp - 0x54], 0x6eb91509
add dword [ebp - 0x54], 0xc37a373c
mov dword [ebp - 0x50], 0x40c6fa86
sub dword [ebp - 0x50], 0xf47ab658
mov dword [ebp - 0x4c], 0xa0dff2e4
add dword [ebp - 0x4c], 0x5f200d1c
lea eax, [ebp - 0x58]
push eax
mov eax, 0x9fe23423
add eax, 0x605f8c2d
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x2f6cacee
sub dword [ebp - 0x58], 0xbafa4398
mov dword [ebp - 0x54], 0x909fa6e1
sub dword [ebp - 0x54], 0x4f33456c
mov dword [ebp - 0x50], 0x1aef1f61
sub dword [ebp - 0x50], 0xb77fb2f5
mov dword [ebp - 0x4c], 0x22f578e9
add dword [ebp - 0x4c], 0xdd0a8717
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x7b274ac1
sub eax, 0x7ae58a75
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3dcf3
push 0
call eax
mov ecx, 0xa456ac70
sub ecx, 0xa4565b5c
mov ebx, eax
mov esi, 0xedfd6871
add esi, 0x1245c18f
add esi, dword [ebp - 0x48]
mov edx, 0x2990506
add edx, 0xa88477be
mov edi, dword [esi]
xor dword [ebp - 0x34], 0x143b087
add edi, edx
sub dword [ebp - 0x34], eax
mov dword [ebx], edi
add dword [ebp - 0x3c], 0x4f86563f
add ebx, 0x3ed1f6d4
add ebx, 0xc12e0930
add esi, 0xdb84d92c
add esi, 0x247b26d8
loop 0x41b6dd
add eax, 0xb245003b
sub eax, 0xb243c918
mov ebx, eax
add eax, 5
mov ecx, 0x70be140d
sub ecx, 0x707e140d
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401407
Capabilities:
Terminate process

Disassembly:
push ebx
mov eax, 0xfa93
mov ebx, 0x12345678
mov ecx, 0x12345678
mov edx, 0x12345678
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [section..data], eax
jmp loc.0047b432
Function at 0x10004750
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100047ad
call fcn.10009630
test eax, eax
jne 0x100047b7
mov eax, dword [0x10025d2c]
test eax, eax
je 0x1000477d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100047ad
push 8
push 0
push 0x100268c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0x1000fd60
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x14
push 8
push dword [0x10025d40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x100047f5
xor ecx, ecx
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov word [eax + 0xc], cx
cmp dword [0x10025d30], ecx
jne 0x10004805
push eax
push ecx
push dword [0x10025d40]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [esi], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10005870
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [esi + 0x138]
test edi, edi
je 0x1000588c
movzx eax, word [edi + 6]
jmp 0x1000588e
xor eax, eax
mov ecx, dword [ebp + 8]
movzx eax, ax
cmp ecx, eax
jle 0x100058c3
mov edx, ecx
mov ecx, edi
call fcn.1000fb40
test eax, eax
jne 0x100058c0
push eax
push eax
push 0x28
push eax
push eax
lea ecx, [esi + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x138]
test eax, eax
jne 0x100058d1
xor esi, esi
jmp 0x100058d4
mov esi, dword [eax + 8]
lea edi, [ebx + 0x24]
add esi, 0x10
lea ebx, [ebx]
dec ecx
mov ebx, edi
mov dword [ebp + 8], ecx
mov edx, 0x1f
mov eax, esi
sub ebx, esi
nop
lea ecx, [edx + 0x7fffffdf]
test ecx, ecx
je 0x1000590c
mov cl, byte [ebx + eax - 0x24]
test cl, cl
je 0x1000590c
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x100058f0
jmp 0x10005910
test edx, edx
jne 0x10005911
dec eax
mov byte [eax], 0
movzx eax, word [edi - 4]
mov word [esi - 8], ax
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [esi - 4], eax
movzx eax, word [edi + 4]
mov word [esi + 0x20], ax
mov eax, dword [edi + 8]
mov dword [esi + 0x24], eax
movzx eax, word [edi + 0xc]
mov word [esi + 0x28], ax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x2c], eax
movzx eax, word [edi + 0x14]
mov word [esi + 0x30], ax
movzx eax, word [edi + 0x16]
mov word [esi + 0x32], ax
movzx eax, word [edi + 0x18]
mov word [esi + 0x34], ax
mov eax, dword [edi + 0x1c]
add edi, 0x44
mov dword [esi + 0x38], eax
sub esi, 0xffffff80
test ecx, ecx
jne 0x100058e0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x1000bc10
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10023f34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0x104
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1000bca6
cmp eax, 0x104
ja 0x1000bca6
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.msvcrt.dll__tempnam]
mov esi, eax
add esp, 8
test esi, esi
je 0x1000bca6
push edi
push 0x1b6
push 0x8342
push esi
call dword [sym.imp.msvcrt.dll__open]
push esi
mov edi, eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x10
cmp edi, 0xffffffff
je 0x1000bc93
push 0x10001e38
push edi
call dword [sym.imp.msvcrt.dll__fdopen]
add esp, 8
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10021b20
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.10021b20
mov esp, ebp
pop ebp
ret

Function at 0x1000c520
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, 1
mov word [ebp - 4], ax
mov ecx, dword [esi + 0x2a8]
test ecx, ecx
je 0x1000c591
lea eax, [edx - 1]
imul eax, dword [esi + 0x2b0]
push 0
push eax
push ecx
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000c572
push dword [esi + 0x2a8]
lea eax, [ebp - 4]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
jne 0x1000c591
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [esi + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000c700
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
push 0
mov dword [ebp - 0x14], ebx
lea eax, [ebx - 1]
imul eax, dword [edi + 0x2b0]
push eax
push dword [edi + 0x2a8]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000c899
cmp dword [edi + 0x168], 1
jne 0x1000c748
movzx esi, word [edi + 0x144]
jmp 0x1000c75d
mov eax, dword [edi + 0x138]
test eax, eax
je 0x1000c758
movzx eax, word [eax + 6]
jmp 0x1000c75a
xor eax, eax
movzx esi, ax
xor eax, eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], eax
jbe 0x1000c871
mov edi, edi
push dword [edi + 0x2a8]
lea ecx, [eax + eax]
mov eax, dword [edi + 0x148]
push 1
add eax, ecx
mov dword [ebp - 0x10], ecx
push 2
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000c899
xor edx, edx
mov ecx, edi
xor ebx, ebx
call fcn.10005370
xor ecx, ecx
cmp cx, si
jge 0x1000c85e
lea esi, [eax + 0x68]
cmp dword [edi + 0x168], 3
jne 0x1000c80e
push dword [edi + 0x2a8]
mov eax, dword [esi - 4]
add eax, dword [ebp - 0x10]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000c899
push dword [edi + 0x2a8]
lea eax, [ebp - 4]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000c899
mov ecx, dword [esi]
test ecx, ecx
je 0x1000c80e
mov edx, dword [ebp - 0x10]
mov ax, word [ebp - 4]
mov word [ecx + edx], ax
movzx eax, word [esi - 0x1c]
cmp ax, 8
je 0x1000c827
cmp ax, 0x18
je 0x1000c827
mov eax, dword [esi - 0x18]
test eax, eax
je 0x1000c84d
jmp 0x1000c82c
mov eax, 8
push dword [edi + 0x2a8]
push 1
push eax
mov eax, dword [esi - 0x14]
imul eax, dword [ebp - 0xc]
add eax, dword [esi - 8]
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000c899
inc ebx
sub esi, 0xffffff80
cmp bx, word [ebp - 8]
jl 0x1000c7b3
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp + 8]
jb 0x1000c770
mov ebx, dword [ebp - 0x14]
mov dword [edi + 0x15c], eax
dec eax
add eax, ebx
mov dword [edi + 0x160], ebx
mov dword [edi + 0x164], eax
xor eax, eax
mov dword [edi + 0x154], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [edi + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c8c0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0xc], esi
cmp dword [esi + 0x15c], 0
lea edi, [esi + 0x168]
lea ebx, [esi + 0x2a8]
mov dword [ebp - 0x14], edi
je 0x1000ca86
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1000c90f
push ebx
mov edx, edi
mov ecx, esi
call fcn.1000c5e0
movzx eax, ax
add esp, 4
test ax, ax
jne 0x1000ca88
mov ecx, dword [ebx]
jmp 0x1000c91e
mov eax, dword [esi + 0x164]
cmp eax, dword [ebx + 4]
jbe 0x1000ca86
mov eax, dword [esi + 0x160]
dec eax
imul eax, dword [ebx + 8]
push 0
push eax
push ecx
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000ca92
cmp dword [edi], 1
jne 0x1000c94f
movzx ecx, word [esi + 0x144]
mov dword [ebp - 0x10], ecx
jmp 0x1000c967
mov eax, dword [esi + 0x138]
test eax, eax
je 0x1000c95f
movzx eax, word [eax + 6]
jmp 0x1000c961
xor eax, eax
movzx eax, ax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [esi + 0x15c], eax
jbe 0x1000ca78
jmp 0x1000c980
push dword [ebx]
lea ecx, [eax + eax]
mov eax, dword [esi + 0x148]
push 1
add eax, ecx
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000ca92
xor edx, edx
mov ecx, esi
xor edi, edi
call fcn.10005370
xor ecx, ecx
cmp cx, word [ebp - 0x10]
jge 0x1000ca65
lea esi, [eax + 0x68]
lea ecx, [ecx]
mov eax, dword [ebp - 0x14]
cmp dword [eax], 3
jne 0x1000ca19
push dword [ebx]
mov eax, dword [esi - 4]
mov edx, dword [ebp - 8]
push 1
push 2
lea eax, [eax + edx*2]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000ca8f
mov eax, dword [esi]
test eax, eax
je 0x1000c9fb
mov edx, dword [ebp - 8]
lea ecx, [edx + edx]
movzx eax, word [eax + ecx]
jmp 0x1000c9fe
or eax, 0xffffffff
push dword [ebx]
mov word [ebp - 4], ax
lea eax, [ebp - 4]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000ca8f
movzx eax, word [esi - 0x1c]
cmp ax, 8
je 0x1000ca32
cmp ax, 0x18
je 0x1000ca32
mov eax, dword [esi - 0x18]
test eax, eax
je 0x1000ca54
jmp 0x1000ca37
mov eax, 8
push dword [ebx]
push 1
push eax
mov eax, dword [esi - 0x14]
imul eax, dword [ebp - 8]
add eax, dword [esi - 8]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000ca8f
inc edi
sub esi, 0xffffff80
cmp di, word [ebp - 0x10]
jl 0x1000c9c0
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [esi + 0x15c]
jb 0x1000c980
mov eax, dword [esi + 0x164]
cmp dword [ebx + 4], eax
jae 0x1000ca86
mov dword [ebx + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc]
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [esi + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d930
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x138]
mov dword [ebp - 4], edi
test eax, eax
je 0x1000d952
movzx ecx, word [eax + 6]
jmp 0x1000d954
xor ecx, ecx
movzx edx, word [ebx + 0x144]
sub ecx, edx
movzx ecx, cx
test eax, eax
jne 0x1000d968
xor esi, esi
jmp 0x1000d971
movsx esi, dx
shl esi, 7
add esi, dword [eax + 8]
test cx, cx
je 0x1000dab9
lea ebx, [ebx]
movzx eax, word [esi + 8]
dec ecx
mov dword [ebp - 0x1c], ecx
cmp ax, 8
je 0x1000d998
cmp ax, 0x18
jne 0x1000daad
cmp dword [esi + 0x7c], 0
jne 0x1000d9b3
mov ecx, 0x10001e64
call fcn.1000bc10
mov dword [esi + 0x7c], eax
test eax, eax
je 0x1000dadb
test edi, edi
jne 0x1000d9d6
push 0x10000
push edi
push dword [0x10025d40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x1000daf7
push 2
push 0
push dword [esi + 0x7c]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000dadb
push dword [esi + 0x7c]
call dword [sym.imp.msvcrt.dll_ftell]
add esp, 4
mov dword [ebp - 0x18], eax
xor edx, edx
mov edi, 0x7fffffff
mov dword [ebp - 8], edx
jmp 0x1000da10
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xc], 0xffff
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
cmp edi, 0xffff
jg 0x1000da2b
mov dword [ebp - 0xc], edi
movsx eax, word [esi + 0x44]
movzx ecx, word [esi]
push edx
lea edx, [ebp - 0x10]
push edx
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push ecx
push dword [ebx + 0x1c]
push 7
push 0x15
push dword [ebx]
call fcn.1000fde0
add esp, 0x28
test ax, ax
jne 0x1000db34
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 4]
jne 0x1000db18
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x1000da99
push dword [esi + 0x7c]
push 1
push eax
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000dadb
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
sub edi, dword [ebp - 0x10]
jne 0x1000da10
jmp 0x1000da9c
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x60]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
sub esi, 0xffffff80
test cx, cx
jne 0x1000d980
xor esi, esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000dad1
push eax
push 0
push dword [0x10025d40]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ax, si
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [ebx + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
or esi, 0xffffffff
jmp 0x1000dabb
push 0
push 0
push 0x28
push 0
push 0
lea ecx, [ebx + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x55
push 0
push 0
lea ecx, [ebx + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
or esi, 0xffffffff
jmp 0x1000dabb
push dword [ebx]
mov edx, dword [ebx + 0x1c]
lea ecx, [ebx + 8]
call fcn.10009fa0
add esp, 4
or esi, 0xffffffff
jmp 0x1000dabb
Function at 0x10010630
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 0x4e4]
test eax, eax
je 0x10010648
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x10010660
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x4e4], eax
test eax, eax
je 0x100106cc
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x10010673
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x1001068b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x4e8], eax
test eax, eax
je 0x100106cc
cmp dword [esi + 0x4ec], 0
jne 0x100106c8
lea eax, [esi + 0x4f0]
push eax
push 0
push esi
push 0x10010200
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x4ec], eax
test eax, eax
je 0x100106cc
push 0xffffffffffffffff
push dword [esi + 0x4e8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x4e4]
test eax, eax
je 0x100106e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4e4], 0
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x10010702
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4e8], 0
or eax, 0xffffffff
pop esi
ret