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

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x452ec3
push esi
call fcn.00461230
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x452ebc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x452f49
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x452f32
mov eax, dword [esi + 8]
test eax, eax
je 0x452ee7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x452f2e
cmp eax, 2
je 0x452f32
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x452eda
cmp eax, 3
je 0x452f0d
cmp eax, 1
jne 0x452eda
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x452eda
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x452eda
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00452f70
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x452f58
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00452f70
add esp, 4
pop esi
ret

Function at 0x4537e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x453801
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x453801
mov eax, dword [eax + 0x44]
test eax, eax
je 0x453801
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46d9c0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x46da63
test eax, eax
jbe 0x46da63
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x46da63
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46da0e
xor esi, esi
jmp 0x46da14
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46da3f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0046f990
add esi, eax
push esi
mov ebx, esi
call fcn.0046f990
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x46da20
pop ebp
test edi, edi
pop edi
jne 0x46da63
test ebx, ebx
je 0x46da63
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0048ac20
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x46db85
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 0x46dc9d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46dc9d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049c0ca
mov esi, eax
test esi, esi
je 0x46dc9d
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 0x46dc9d
mov ecx, esi
call fcn.0046db10
cmp edi, eax
jge 0x46dc9d
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 0x46dc23
mov dword [esp + 0x34], 1
jmp 0x46dc7e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46dc9d
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.0046d110
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 0x474c60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4f5f14]
xor edx, edx
cmp eax, edx
jne 0x474c86
xor eax, eax
mov byte [eax + 0x4f5e14], al
inc eax
cmp eax, 0x100
jl 0x474c6e
mov dword [0x4f5f14], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4f5e14
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x474d17
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x474cea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x474cb8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x474d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x474d73
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x474d5a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47b710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a8bae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0047c030
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4b4474
call fcn.0049a40b
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x47b7a3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049a40b
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47b79c
push 0
mov ecx, eax
call fcn.00472890
mov dword [esi + 0xc], eax
jmp 0x47b7a5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x47b7a5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x49ca6e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49caa6
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.0049ab25
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049aafd
jmp 0x49cab2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49e15c
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 0x49e19e
call fcn.004a3c13
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49e19e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49e195
xor eax, eax
jmp 0x49e1a6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049e1ac
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a4143
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 0x4a4171
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a418f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a40a9
jmp 0x4a418f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a418f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a40a9
test edi, edi
mov eax, edi
jne 0x4a4179
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x418010
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x634042]
mov ecx, dword [0x634034]
sub esp, 0x14
mov edx, dword [0x63403c]
and ecx, 4
and edx, 0xc
push ebx
mov bl, byte [0x634049]
xor bl, al
mov eax, dword [0x634030]
add eax, ecx
mov ecx, dword [0x634038]
mov dword [0x634030], eax
mov eax, dword [0x634048]
and eax, 0xff
push esi
imul edx, eax
xor ecx, edx
push 0
mov byte [0x634049], bl
mov dword [0x634038], ecx
call sub.comdlg32.dll_FindTextW
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x637c2c
mov esi, eax
call fcn.00629c44
add esp, 4
test eax, eax
je 0x418089
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ecx, dword [0x634030]
mov eax, dword [0x634034]
mov dword [esp + 0x18], 0
mov ebx, 1
lea edx, [ecx + ecx]
mov dword [esp + 8], 0
or edx, eax
lea eax, [esp + 8]
mov dword [esp + 0x14], edx
push eax
fild qword [esp + 0x18]
push ebx
push 0
push str.CLSIDa893aa73_054f_4dbc_9e53_f4ee5fe07fd3InProcServer32
push SysReAllocStringLen
fadd qword [0x634058]
fstp qword [0x634058]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [0x63cf4c], eax
jne 0x418152
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push 0x637c2c
push edx
push eax
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], 0x208
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [0x63cf4c], eax
jne 0x41811a
cmp dword [esp + 0xc], ebx
je 0x41811c
xor bl, bl
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x418133
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
mov eax, dword [0x63cf4c]
test eax, eax
jne 0x418152
test esi, esi
jle 0x41814c
and esi, 0xffff
or esi, 0x80070000
mov dword [0x63cf4c], esi
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x14
ret
Function at 0x62b031
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6343d8
cmp edx, dword [eax]
je 0x62b053
add eax, 8
inc ecx
cmp eax, 0x634468
jl 0x62b044
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6343d8]
jne 0x62b181
mov eax, dword [0x63cf64]
cmp eax, 1
je 0x62b15b
test eax, eax
jne 0x62b084
cmp dword [0x634304], 1
je 0x62b15b
cmp edx, 0xfc
je 0x62b181
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62b0bb
lea eax, [ebp - 0x1a4]
push 0x630b78
push eax
call fcn.0062ba10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062bea0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62b0fe
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062bea0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x630b74
push edi
call fcn.0062dd70
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x630b58
push eax
call fcn.0062ba10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062ba20
lea eax, [ebp - 0xa0]
push 0x630b54
push eax
call fcn.0062ba20
push dword [esi + 0x6343dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062ba20
push 0x12010
lea eax, [ebp - 0xa0]
push 0x630b2c
push eax
call fcn.0062dce4
add esp, 0x2c
pop edi
jmp 0x62b181
lea eax, [ebp + 8]
lea esi, [esi + 0x6343dc]
push 0
push eax
push dword [esi]
call fcn.0062bea0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00431219
Function at 0x10005144
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10026040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edi, [eax + 1]
neg edi
sbb edi, edi
and edi, eax
mov ecx, edi
add ecx, 1
setb al
movsx eax, al
neg eax
or eax, ecx
push eax
call fcn.1000c4fb
and dword [ebp - 8], 0
mov ebx, eax
pop ecx
push 0
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000519f
mov byte [edi + ebx], 0
jmp 0x100051a2
mov byte [ebx], 0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100075fb
leave
ret

Function at 0x10005912
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10026040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x10005a1d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10005a16
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x100059da
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x100059da
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100059da
mov edx, dword [esi]
test edx, edx
jne 0x100059a3
push 0x200
push edx
push dword [0x10027ec0]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100059ff
lea ebx, [esi + 8]
jmp 0x100059cd
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x100059cd
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x10027ec0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10005a2e
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1000595b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10005a16
xor edi, edi
cmp dword [esi], edi
je 0x10005a16
push dword [esi]
push edi
push dword [0x10027ec0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100075fb
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0x100059ff
Function at 0x10005a33
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.10005912
test eax, eax
jne 0x10005a5b
push 9
pop esi
jmp 0x10005add
cmp dword [edi], esi
je 0x10005add
mov dword [ebp - 0xc], esi
cmp dword [edi + 8], esi
jbe 0x10005add
mov edx, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], edx
push ebx
mov eax, dword [edi]
push dword [eax + edx]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
mov dword [ebp - 8], esi
test ebx, ebx
je 0x10005ab4
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x10005aa8
push dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov ecx, ebx
mov dword [ebp - 8], 1
call fcn.100057bd
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x10005abe
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], esi
jmp 0x10005ac1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add ecx, 4
mov edx, dword [ebp - 0x10]
inc eax
add edx, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], ecx
cmp eax, dword [edi + 8]
jb 0x10005a70
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x10005ae3
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x10005b46
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10005b35
xor ecx, ecx
mov dword [ebp - 4], ecx
push edi
mov eax, dword [esi]
mov eax, dword [ecx + eax]
test eax, eax
je 0x10005b28
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10005b25
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 8]
jb 0x10005afd
pop edi
push dword [esi]
push 0
push dword [0x10027ec0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop esi
leave
ret
Function at 0x10005b49
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
imul esi, ecx, 0x2c
push edi
mov edi, edx
mov dword [ebp - 0x10], edi
add esi, dword [0x10027ef0]
mov dword [ebp - 8], esi
mov al, byte [esi + 0x14]
mov ebx, dword [esi]
and al, 1
je 0x10005b6f
sub ebx, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10005b96
push 0xa
pop eax
jmp 0x10005c16
test edi, edi
je 0x10005bb7
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0x10005bd6
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10005bd6
test byte [esi + 0x14], 1
je 0x10005bcb
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
jmp 0x10005bd6
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [esi + 0x14], dl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000625d
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x10027ee8]
push esi
xor esi, esi
jmp 0x1000626f
cmp dword [edx + 4], esi
jne 0x100062bb
mov edx, dword [edx]
test edx, edx
jne 0x10006268
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x100062c8
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x10006296
mov eax, dword [0x10027ee8]
pop edi
mov dword [edx], eax
mov dword [0x10027ee8], edx
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
xor eax, eax
pop esi
ret

Function at 0x10006a88
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10006aaf
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10006ab2
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10006a64
pop esi
leave
ret 8
Function at 0x1000d9af
Capabilities:
Parse pe header

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

Function at 0x10010ec7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001f298
push 0x1001f290
push str.FlsAlloc
push 0x1f
call fcn.10010d8f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010efb
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c19c]
call esi
jmp 0x10010f01
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10010f45
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001f2a8
push 0x1001f2a0
push str.FlsGetValue
push 0x21
call fcn.10010d8f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010f7c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c19c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10010f84
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001f2b0
push 0x1001f2a8
push str.FlsSetValue
push 0x22
call fcn.10010d8f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010fbe
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c19c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]