joyce8/EMBER2024-capa huggingface dataset:
Function at 0x587210
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x40
mov ecx, dword [0x619e38]
mov eax, dword [0x644904]
mov edx, dword [0x619e3c]
xor eax, esp
mov dword [esp + 4], ecx
mov ecx, dword [0x619e24]
mov dword [esp + 0x10], ecx
mov cx, word [0x619e30]
push ebx
push esi
push edi
mov word [esp + 0x28], cx
mov ecx, 6
mov esi, 0x619e08
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x48], eax
mov eax, dword [0x619e34]
mov dword [esp + 0xc], eax
mov al, byte [0x619e40]
mov dword [esp + 0x14], edx
mov edx, dword [0x619e28]
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x18], al
mov eax, dword [0x619e2c]
mov dword [esp + 0x20], edx
mov esi, 0x7f
lea edx, [esp + 0xc]
xor ecx, ecx
mov dword [esp + 0x24], eax
sub esi, edx
mov edi, edi
lea eax, [esp + ecx + 0xc]
lea edx, [esi + eax]
and edx, 0x800000ff
jns 0x5872a7
dec edx
or edx, 0xffffff00
inc edx
mov bl, byte [eax]
xor bl, dl
inc ecx
cmp ecx, 0xc
mov byte [eax], bl
jl 0x587290
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov ebx, eax
xor ecx, ecx
lea eax, [esp + ecx + 0xc]
lea edx, [esi + eax]
and edx, 0x800000ff
jns 0x5872d9
dec edx
or edx, 0xffffff00
inc edx
xor byte [eax], dl
inc ecx
cmp ecx, 0xc
jl 0x5872c2
test ebx, ebx
jne 0x5872f9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005c8895
add esp, 0x40
ret
mov edi, 0x7f
lea eax, [esp + 0x1c]
xor ecx, ecx
sub edi, eax
jmp 0x587310
lea eax, [esp + ecx + 0x1c]
lea edx, [edi + eax]
and edx, 0x800000ff
jns 0x587327
dec edx
or edx, 0xffffff00
inc edx
xor byte [eax], dl
inc ecx
cmp ecx, 0xd
jl 0x587310
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetProcAddress]
lea eax, [esp + 0x20]
push eax
push ebx
call ebp
mov esi, eax
neg esi
sbb esi, esi
neg esi
xor edx, edx
jmp 0x587350
lea ecx, [esp + edx + 0x20]
lea eax, [edi + ecx]
and eax, 0x800000ff
jns 0x587365
dec eax
or eax, 0xffffff00
inc eax
xor byte [ecx], al
inc edx
cmp edx, 0xd
jl 0x587350
test esi, esi
jne 0x587386
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005c8895
add esp, 0x40
ret
mov esi, 0x7f
lea edx, [esp + 0x30]
xor ecx, ecx
sub esi, edx
lea eax, [esp + ecx + 0x30]
lea edx, [esi + eax]
and edx, 0x800000ff
jns 0x5873aa
dec edx
or edx, 0xffffff00
inc edx
xor byte [eax], dl
inc ecx
cmp ecx, 0x18
jl 0x587393
lea eax, [esp + 0x30]
push eax
push ebx
call ebp
mov edi, eax
xor edx, edx
mov edi, edi
lea ecx, [esp + edx + 0x30]
lea eax, [esi + ecx]
and eax, 0x800000ff
jns 0x5873d5
dec eax
or eax, 0xffffff00
inc eax
mov bl, byte [ecx]
xor bl, al
inc edx
cmp edx, 0x18
mov byte [ecx], bl
jl 0x5873c0
mov cl, byte [edi]
pop ebp
pop edi
xor eax, eax
cmp cl, 0xcc
mov ecx, dword [esp + 0x44]
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.005c8895
add esp, 0x40
ret
Function at 0x587400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
call fcn.00587210
test eax, eax
je 0x587483
mov ecx, dword [0x6437e4]
mov edx, dword [0x656b80]
mov eax, ecx
shr ecx, 2
mov esi, 0x6437a0
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x6437e4]
xor eax, eax
test ecx, ecx
jle 0x587448
mov edi, edi
xor byte [eax + edx], al
inc eax
cmp eax, ecx
jl 0x587440
mov dword [edx + 0x1e], edx
add edx, 0x1d
mov dword [ebp - 4], edx
call dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [0x6437e4]
mov edi, dword [0x656b80]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 8]
xor eax, eax
test ecx, ecx
sete al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x5874b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x3000
push 0x80
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [0x656b80], eax
ret

Function at 0x58e6d0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x590020
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50c
mov eax, dword [0x644904]
xor eax, ebp
mov dword [esp + 0x508], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0x10], eax
xor al, al
xor esi, esi
push edi
mov byte [esp + 0xf], al
mov dword [esp + 0x10], esi
test al, al
jne 0x590213
mov byte [esp + 0x28], al
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x128], 0
xor eax, eax
mov ecx, 0xf9
lea edi, [esp + 0x129]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
lea ecx, [esp + 0x2c]
push 0x61a5a4
push ecx
stosb byte es:[edi], al
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x590201
push 0x2710
push 8
mov dword [esp + 0x20], 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x5901f6
push edi
lea ecx, [esp + 0x1c]
push ecx
push 0x2710
push esi
push 0xc
xor eax, eax
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push 0x2d1400
push ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
je 0x59016a
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x59016a
lea ecx, [esp + 0x128]
push ecx
add eax, esi
push eax
call fcn.00590a60
lea edx, [esp + 0x130]
push edx
call fcn.00590c50
mov eax, dword [esp + 0x134]
add esp, 0xc
push eax
call dword [sym.imp.user32.dll_IsCharAlphaNumericA]
test eax, eax
je 0x59016a
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x12c]
push edx
push eax
jmp 0x5901d8
xor eax, eax
push eax
mov ecx, 0x9c4
mov edi, esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push ecx
push 0x2710
push esi
push eax
push eax
push 0x2d0c10
push ebx
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
je 0x5901e6
lea edx, [esi + 0x10]
push edx
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.kernel32.dll_lstrcpy]
lea ecx, [esp + 0x128]
push ecx
call fcn.00590c50
mov edx, dword [esp + 0x12c]
add esp, 4
push edx
call dword [sym.imp.user32.dll_IsCharAlphaNumericA]
test eax, eax
je 0x5901e6
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x12c]
push ecx
push edx
call dword [sym.imp.msvcr71.dll_memmove]
add esp, 0xc
mov byte [esp + 0xf], 1
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov al, byte [esp + 0xf]
inc esi
cmp esi, 0x10
mov dword [esp + 0x10], esi
jl 0x590050
mov ecx, dword [esp + 0x514]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c8895
mov esp, ebp
pop ebp
ret
Function at 0x590750
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x644904]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call sub.ws2_32.dll_WSAStartup
test eax, eax
jne 0x59079b
mov eax, dword [0x656ba0]
test eax, eax
jne 0x5907b2
push 0x61a638
call dword [sym.imp.kernel32.dll_LoadLibraryA]
cmp eax, 0x20
mov dword [0x656ba0], eax
jae 0x5907b2
mov dword [0x656ba0], 0
xor al, al
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.005c8895
add esp, 0x194
ret
mov ecx, dword [fcn.00656ba4]
test ecx, ecx
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
jne 0x5907ec
push 0x61a624
push eax
call esi
test eax, eax
mov dword [fcn.00656ba4], eax
jne 0x5907ec
xor al, al
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.005c8895
add esp, 0x194
ret
push 0x656b98
push 0x656b94
call dword [sym.imp.kernel32.dll_GetTickCount]
push eax
call dword [fcn.00656ba4]
mov eax, dword [0x656ba8]
test eax, eax
jne 0x590823
mov ecx, dword [0x656ba0]
push 0x61a610
push ecx
call esi
test eax, eax
mov dword [0x656ba8], eax
je 0x5907d4
mov eax, dword [fcn.00656bac]
test eax, eax
jne 0x590843
mov edx, dword [0x656ba0]
push 0x61a5fc
push edx
call esi
test eax, eax
mov dword [fcn.00656bac], eax
je 0x5907d4
mov eax, dword [0x656bb0]
test eax, eax
jne 0x590866
mov eax, dword [0x656ba0]
push 0x61a5e8
push eax
call esi
test eax, eax
mov dword [0x656bb0], eax
je 0x5907d4
mov ecx, dword [esp + 0x194]
pop esi
xor ecx, esp
mov al, 1
call fcn.005c8895
add esp, 0x194
ret

Function at 0x5adb37
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e0ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.005731f0
mov dword [esi], 0x61ea44
xor eax, eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea ecx, [esi + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], ebx
mov byte [esi + 0x2c], bl
call fcn.005adba0
lea ecx, [esi + 0x870]
call fcn.004eba00
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x8dc], ebx
mov byte [esi + 0x8e0], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x5aeca7
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e0ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.005731f0
mov dword [esp + 0x18], 0
mov dword [esi], 0x61ed5c
lea edi, [esi + 0x34]
mov ebp, 6
lea ebx, [ebx]
mov ecx, edi
call fcn.0055e640
add edi, 0x7c
dec ebp
jne 0x5aecd0
mov byte [esi + 0xd], 0
xor eax, eax
lea ecx, [esi + 0xe]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov word [ecx + 0x1c], ax
mov ecx, dword [esp + 0x10]
mov byte [esi + 0x30], al
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x67f5ea
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x67f607
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x67f5f8
add dl, dl
jne 0x67f612
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x67f65e
xor eax, eax
add dl, dl
jne 0x67f61f
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x67f6fb
add dl, dl
jne 0x67f62e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x67f639
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x67f644
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x67f64f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x67f659
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x67f5fe
mov eax, 1
add dl, dl
jne 0x67f66c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x67f677
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x67f663
sub eax, 2
jne 0x67f6a6
mov ecx, 1
add dl, dl
jne 0x67f68c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x67f697
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x67f683
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x67f5fe
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x67f6bd
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x67f6c8
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x67f6b4
cmp eax, 0x7d00
jae 0x67f6eb
cmp eax, 0x500
jb 0x67f6e6
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x67f5fe
cmp eax, 0x7f
ja 0x67f6ee
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x67f5fe
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x67f717
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x67f5fe
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8

Function at 0x401c2e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x100]
push 0x404008
push eax
call fcn.00401ca0
mov ecx, 0x401bdc
mov eax, 0x4017fd
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00401d18
push 0x100
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004020d0
add esp, 0x24
call fcn.00401846
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10001010
Capabilities:
Link many functions at runtime
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10009008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 0
call ebx
push 0
mov esi, eax
call ebx
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
push esi
push 0x100062a8
push str.CONIN_
push eax
call edi
push 1
call ebx
push 1
mov esi, eax
call ebx
push esi
push 0x100062b4
push str.CONOUT_
push eax
call edi
add esp, 0x30
push str.Mene_Obistiav_Zhyvchyk__
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [ebp + 0xc], 1
je 0x1000108e
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100047b0
mov esp, ebp
pop ebp
ret 0xc
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100011cb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlAdjustPrivilege
push eax
call esi
test eax, eax
je 0x100011cb
lea ecx, [ebp - 5]
push ecx
push 0
push 1
push 0x14
call eax
push 0x10
call fcn.100047be
add esp, 4
mov dword [0x10009794], eax
mov dword [eax], 0
push str.ADVAPI32.dll
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100011cb
push str.RegCloseKey
push edi
call esi
mov ecx, dword [0x10009794]
push str.RegOpenKeyExA
push edi
mov dword [ecx + 8], eax
call esi
mov ecx, dword [0x10009794]
push str.RegQueryValueExA
push edi
mov dword [ecx], eax
call esi
mov ecx, dword [0x10009794]
push str.RegSetValueExA
push edi
mov dword [ecx + 4], eax
call esi
mov ecx, dword [0x10009794]
push 1
mov dword [ecx + 0xc], eax
call fcn.100047be
add esp, 4
xor edi, edi
call fcn.10002580
cmp dword [0x10009790], edi
jne 0x100011c2
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
test eax, eax
mov dword [0x10009790], eax
mov ecx, 9
mov ebx, 0x1000978c
cmove edi, ecx
xor eax, eax
xchg dword [ebx], eax
test edi, edi
jne 0x100011cb
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100011cb
push str.CreateProcessW
push eax
call esi
test eax, eax
je 0x100011cb
push ecx
mov ecx, eax
call fcn.100025d0
test eax, eax
jne 0x100011cb
call fcn.10002580
cmp dword [0x10009790], edi
je 0x100011bc
call fcn.100023f0
xor eax, eax
xchg dword [ebx], eax
jmp 0x100011cb
xor eax, eax
mov ecx, 0x1000978c
xchg dword [ecx], eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100047b0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100022a0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10009008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000239a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10002393
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x10002379
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10002379
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10002379
mov edx, dword [esi]
test edx, edx
jne 0x10002342
push 0x200
push edx
push dword [0x10009790]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10002393
jmp 0x1000236d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1000236d
shl eax, 3
push eax
push edx
push 0
push dword [0x10009790]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10002393
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10002301
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x100023df
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x100023df
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100023d9
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.10002130
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100023a6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100047b0
mov esp, ebp
pop ebp
ret
Function at 0x100023f0
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10009008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x100097a4]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x10002564
mov eax, dword [0x1000979c]
add eax, 0x14
nop
test byte [eax], 2
je 0x1000243f
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10002420
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100047b0
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10002564
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.100022a0
mov edx, dword [0x100097a4]
add esp, 4
cmp esi, edx
jae 0x10002517
imul ecx, esi, 0x2c
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov edi, dword [0x1000979c]
add edi, ecx
test byte [edi + 0x14], 2
jne 0x100024fe
mov eax, dword [edi]
mov cl, byte [edi + 0x14]
and cl, 1
lea ebx, [eax - 5]
cmove ebx, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000250f
mov byte [ebx], 0xe9
mov eax, dword [edi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [edi + 0x14], 1
je 0x100024ca
mov eax, dword [edi]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
xor ebx, ebx
mov edx, dword [0x100097a4]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
inc esi
add ecx, 0x2c
mov dword [ebp - 0x14], ecx
cmp esi, edx
jb 0x10002470
jmp 0x10002517
mov ebx, 0xa
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10002563
xor esi, esi
cmp dword [ebp - 0x18], esi
jbe 0x10002554
mov ebx, eax
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10002548
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x10002527
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
push eax
push 0
push dword [0x10009790]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.100047b0
mov esp, ebp
pop ebp
ret
Function at 0x10003280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x100032ac
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x100032d4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x100032da
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10003342
jg 0x100032f1
test esi, esi
je 0x10003342
test ecx, ecx
jl 0x1000333d
jg 0x100032fb
test eax, eax
je 0x1000333d
cmp edi, ecx
jg 0x1000330f
jl 0x10003305
cmp esi, eax
jae 0x1000330f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10003345
mov ecx, dword [ebp + 8]
jmp 0x1000334f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10003369
jg 0x1000334f
test esi, esi
je 0x10003369
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10003369
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc