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

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4bb6de
mov eax, ebx
call fcn.004bc164
cmp dword [ebx + 0x40], 0
je 0x4bb6d7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4bb74f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4bb741
cmp dword [ebx + 8], 0
je 0x4bb700
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4bb712
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4bb741
cmp dword [ebx + 8], 0
je 0x4bb6f3
cmp eax, 3
je 0x4bb725
dec eax
jne 0x4bb6f3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4bb6f3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4bb6f3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4bb76d
cmp dword [ebx + 0x14], 0xcc
je 0x4bb76d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004bb778
pop ebx
ret

Function at 0x4ce9d0
Capabilities:
Create thread

Disassembly:
test al, al
je 0x4ce9f8
mov byte [0x509a18], 0
push 0x509a14
push 0
push 0
push 0x4ce8cc
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x509a10], eax
ret
call fcn.004ce990
ret

Function at 0x4cf2a8
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4cf2ba
add esp, 0xfffffff0
call fcn.004049e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420700
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4cc060]
call fcn.004cc5e8
mov esi, eax
mov dword [ebx + 0x30], esi
mov dword [esi + 0x4bc], ebx
mov dword [esi + 0x4b8], 0x4cfad4
mov dword [esi + 0x4cc], ebx
mov dword [esi + 0x4c8], 0x4cf0b0
mov dword [esi + 0x4ec], ebx
mov dword [esi + 0x4e8], 0x4cf494
mov dword [esi + 0x4dc], ebx
mov dword [esi + 0x4d8], 0x4cf254
mov dword [esi + 0x6c], 0x3c
lea eax, [ebx + 0x38]
mov edx, 0x4cf3b4
call fcn.00405540
lea eax, [ebx + 0x34]
mov edx, 0x4cf3d0
call fcn.00405540
lea eax, [ebx + 0x88]
mov edx, 0x4cf3f4
call fcn.00405540
xor eax, eax
mov dword [ebx + 0x78], eax
mov byte [ebx + 0x5c], 1
mov dl, 1
mov eax, dword [0x417c50]
call fcn.00404690
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417c50]
call fcn.00404690
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0x94], 0xffffffff
mov dword [ebx + 0x98], 0xffffffff
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4cf3a4
call fcn.00404a3c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4d0ec4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, 0x509a4c
xor eax, eax
push ebp
push 0x4d1048
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, fcn.0046e63c
mov edx, dword [0x4ea498]
mov dword [edx], eax
mov eax, edi
mov edx, 0x104
call fcn.00405c0c
push 0x104
mov eax, dword [edi]
call fcn.0040597c
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov eax, edi
call fcn.004059dc
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.004056e4
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0046b438
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, 0x4d1060
call fcn.00405804
mov eax, dword [edi]
call fcn.0040310c
call fcn.004030ec
mov eax, dword [0x4ea35c]
cmp dword [eax], 0
je 0x4d0f64
mov esi, 0x66
lea eax, [ebp - 4]
mov edx, 0x4d107c
call fcn.00405584
jmp 0x4d0f94
mov eax, dword [0x4ea6e0]
cmp byte [eax], 0
je 0x4d0f82
mov esi, 0x65
lea eax, [ebp - 4]
mov edx, 0x4d1094
call fcn.00405584
jmp 0x4d0f94
mov esi, 0x64
lea eax, [ebp - 4]
mov edx, 0x4d10ac
call fcn.00405584
push dword [edi]
push 0x4d10c4
push dword [ebp - 4]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405880
mov eax, dword [ebp - 0x10]
call fcn.0046b0d4
test al, al
jne 0x4d0fd8
push dword [edi]
push 0x4d10c4
push dword [ebp - 4]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405880
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.004a6654
mov dl, 1
mov eax, dword [0x484464]
call fcn.004844ec
mov ebx, eax
lea eax, [ebx + 0x30]
mov edx, dword [edi]
call fcn.00405540
mov eax, ebx
call fcn.004845cc
mov eax, ebx
call fcn.004046c0
xor eax, eax
mov edx, dword [0x4ea41c]
test byte [edx + 1], 2
jne 0x4d1020
mov ecx, dword [0x4ea66c]
movzx ecx, byte [ecx]
mov edx, eax
mov eax, esi
call fcn.004a93fc
jmp 0x4d102d
mov eax, dword [0x4ea66c]
movzx eax, byte [eax]
call fcn.004a9518
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d104f
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00405510
ret
Function at 0x4d4d88
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d4ea5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x4d4ec0
call fcn.00405914
jne 0x4d4dea
cmp edi, 0xfffffffe
jne 0x4d4dea
mov esi, dword [ebx + 0x44]
push esi
mov eax, dword [ebx + 0x1c]
push eax
call sub.KERNEL32.DLL_FindNextFileW
test eax, eax
je 0x4d4ddd
mov eax, ebx
call fcn.004d4cd8
mov dword [ebp - 8], eax
jmp 0x4d4e8f
call sub.KERNEL32.DLL_GetLastError_1
mov dword [ebp - 8], eax
jmp 0x4d4e8f
mov eax, esi
mov edx, 0x4d4ec0
call fcn.00405914
jne 0x4d4e1b
cmp edi, 0xfffffffd
jne 0x4d4e1b
mov esi, dword [ebx + 0x44]
mov eax, dword [ebx + 0x1c]
push eax
call sub.KERNEL32.DLL_FindClose_1
test esi, esi
je 0x4d4e14
mov eax, esi
call fcn.00402efc
xor eax, eax
mov dword [ebx + 0x44], eax
jmp 0x4d4e8f
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040765c
mov eax, 0x250
call fcn.00402ee0
mov esi, eax
lea eax, [ebx + 0x20]
xor ecx, ecx
mov edx, 0x140
call fcn.00403b08
mov dword [ebx + 0x44], esi
not edi
and edi, 0x1e
mov dword [ebx + 0x18], edi
push esi
mov eax, dword [ebp - 4]
call fcn.00405e54
push eax
call sub.KERNEL32.DLL_FindFirstFileW
mov edi, eax
mov dword [ebx + 0x1c], edi
cmp edi, 0xffffffff
je 0x4d4e87
mov eax, ebx
call fcn.004d4cd8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4d4e8f
mov ecx, ebx
mov edx, 0xfffffffd
mov eax, 0x4d4ec0
call fcn.004d4d88
jmp 0x4d4e8f
call sub.KERNEL32.DLL_GetLastError_1
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4eac
lea eax, [ebp - 4]
call fcn.00405cc8
ret
Function at 0x40d6b8
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
cmp dword [edi], 0
je 0x40d717
push ebx
lea ebx, [esi + 0x34]
push dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp eax, 0x1f6
je 0x40d716
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1f6
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.0040d3b8
push 0x1f6
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
ret

Function at 0x40d833
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x428d2f
call fcn.00417869
mov edi, ecx
lea esi, [edi + 0x34]
push 0x1f5
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xffff
call fcn.00412718
mov ebx, eax
mov eax, 0xffff
push eax
mov dword [edi + 0x10], eax
call fcn.00412718
pop ecx
pop ecx
push 0
mov dword [edi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 0xffff
push ebx
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d947
cmp dword [ebp - 0x10], 0
jbe 0x40d944
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x10]
add eax, ecx
cmp dword [edi + 0x10], eax
jae 0x40d903
mov eax, dword [edi + 0xc]
add eax, dword [ebp - 0x10]
mov esi, dword [edi + 8]
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
jns 0x40d8ce
fadd qword [0x4379d8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x4379b8]
call fcn.004280b6
push eax
mov dword [edi + 0x10], eax
call fcn.00412718
push dword [edi + 0xc]
mov dword [edi + 8], eax
push esi
push dword [edi + 8]
call fcn.00412770
push esi
call fcn.00412769
mov ecx, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [edi + 0xc]
add eax, dword [edi + 8]
push ecx
push ebx
push eax
call fcn.00412770
mov eax, dword [ebp - 0x10]
add esp, 0xc
add dword [edi + 0xc], eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea eax, [ebp - 0x10]
push eax
push 0xffff
push ebx
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d88f
mov esi, dword [ebp - 0x18]
push ebx
call fcn.00412769
pop ecx
mov edi, 0x1f6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, edi
call int.00417846
ret
Function at 0x40e388
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
jne 0x40e3a8
and dword [esi + 8], 0
and dword [esi + 0xc], 0
call fcn.0040e367
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x40e3f9
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jne 0x40e3e3
push 0
lea eax, [ebp + 8]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e3f8
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e3f8
and dword [esi + 0xc], 0
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov al, byte [ecx + eax]
mov byte [edi + ebx], al
inc edi
inc dword [esi + 0xc]
cmp edi, dword [ebp + 0xc]
jb 0x40e3b3
pop ebx
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebp
ret 8

Function at 0x40e408
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.0040e439
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40e5f1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x428da0
call fcn.00417869
mov ecx, dword [ebp + 0xc]
call fcn.00401715
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 1
push ebx
push str.SoftwareAutoIt_v3AutoIt
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e629
xor al, al
jmp 0x40e6bc
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push str.Include
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e6b1
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412718
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040290b
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x1c]
push eax
push esi
push ebx
push ebx
push str.Include
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e69c
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
push esi
mov word [esi + eax*2], cx
mov ecx, dword [ebp + 0xc]
call fcn.0040182f
mov bl, 1
mov eax, dword [ebp - 0x18]
dec dword [eax]
jne 0x40e6b1
push eax
call fcn.00412769
push esi
call fcn.00412769
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call int.00417846
ret
Function at 0x40e9b9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x43b034]
xor eax, esp
mov dword [esp + 0x258], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ea02
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40e9f7
or eax, eax
jmp 0x40ea02
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x25c]
pop esi
xor ecx, esp
call fcn.004126e7
mov esp, ebp
pop ebp
ret

Function at 0x40ebf1
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x24
mov eax, 0x428e41
call fcn.00417869
push ecx
lea ecx, [ebp - 0x30]
call fcn.00403a7b
xor ebx, ebx
lea ecx, [ebp - 0x30]
push 0x433988
mov dword [ebp - 4], ebx
call fcn.00408e53
mov esi, dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40eca2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40ec40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ec45
jmp 0x40eca6
cmp eax, 3
jne 0x40eca8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], eax
inc dword [eax]
push 0x433988
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040ed80
cmp eax, 0xffffffff
je 0x40ec98
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x20]
call fcn.0040191a
lea ecx, [ebp - 0x20]
call fcn.0040ebf1
test al, al
je 0x40ec96
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov bl, al
lea ecx, [ebp - 0x20]
call fcn.004015bf
jmp 0x40eca8
test al, 0x10
je 0x40eca8
mov bl, 1
lea ecx, [ebp - 0x30]
call fcn.004015bf
mov al, bl
call int.00417846
ret

Function at 0x410168
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410193
xor eax, eax
jmp 0x4101a6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x5e750be6
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x6e960004
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x6bac1440
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0x6bb083c0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ebx, eax
dec eax
sub esp, 0x20
cmp eax, 0xfffffffd
ja 0x6bac14fd
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push edx
push edx
test eax, eax
je 0x6bac14fd
test esi, esi
jle 0x6bac14e8
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x6bac14f4
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
jmp 0x6bac14fd
mov eax, dword [ebp - 0x1c]
add edi, eax
sub esi, eax
jmp 0x6bac14bd
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6bac1524
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x6bb083c0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
sub esp, 0x1c
xor eax, eax
cmp ebx, 0xffffffff
je 0x6bac15c8
test esi, esi
jle 0x6bac15ae
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x6bac15bf
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, 1
jmp 0x6bac15c8
mov eax, dword [ebp - 0x1c]
add edi, eax
sub esi, eax
jmp 0x6bac1583
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6bac1629
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov dword [esp + 0x28], 0x5c
div ecx
mov dword [esp + 0x24], 0x65
mov dword [esp + 0x20], 0x70
mov dword [esp + 0x1c], 0x69
mov dword [esp + 0x18], 0x70
mov dword [esp + 0x14], 0x5c
mov dword [esp + 0x10], 0x2e
mov dword [esp + 0xc], 0x5c
mov dword [esp + 8], 0x5c
mov dword [esp + 4], str._c_c_c_c_c_c_c_c_cMSSE__d_server
mov dword [esp], 0x6bb083c0
mov dword [esp + 0x2c], edx
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6bac1505
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], 0
sub esp, 0x18
leave
jmp fcn.6bac15d0
Function at 0x6bac16fb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0xc], 1
jne 0x6bac1747
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [0x6bb08400], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6bac16e4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
leave
mov eax, 1
ret 0xc

Function at 0x6bac17b8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
sub esp, 0x10
xor eax, eax
cmp eax, ebx
jge 0x6bac1806
mov ecx, dword [ebp + 0x10]
mov edx, eax
and edx, 3
mov dl, byte [ecx + edx]
mov ecx, dword [ebp + 8]
xor dl, byte [ecx + eax]
mov byte [esi + eax], dl
inc eax
jmp 0x6bac17eb
mov dword [esp], esi
call fcn.6bac1785
lea eax, [ebp - 0xc]
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x6bac177c
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x6bac1b80
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6bac27c0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6bac27c0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x6bac1be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6bb08378]
test esi, esi
jle 0x6bac1ce0
mov eax, dword [0x6bb0837c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x6bac1c10
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6bac1c8f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6bac1c00
mov dword [esp], ebx
call fcn.6bac2330
mov edi, eax
test eax, eax
je 0x6bac1d07
mov eax, dword [0x6bb0837c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6bac2440
mov edx, dword [0x6bb0837c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6bac1ce7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6bac1c88
sub eax, 4
and eax, 0xfffffffb
jne 0x6bac1c96
add dword [0x6bb08378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x6bb0837c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6bac1c88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6bac1b80
xor esi, esi
jmp 0x6bac1c1a
mov eax, dword [0x6bb0837c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6bac1b80
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6bac1b80
lea esi, [esi]
nop

Function at 0x6bac1fa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6bb08388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6bb08380]
sub esp, 4
test ebx, ebx
je 0x6bac1ff5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6bac1fee
test esi, esi
je 0x6bac1fee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6bac1fd0
mov dword [esp], 0x6bb08388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret