joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x407dbe
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x407dc5
cmp ebx, dword [eax + 4]
jae 0x407dc5
xor eax, eax
jmp 0x407fb5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x407dd6
xor eax, eax
inc eax
jmp 0x407fb4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407dec
cmp ecx, edx
jae 0x407f31
cmp dword [eax + 4], 0
je 0x407df5
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x407ddd
cmp dword [ebp + 8], 0
je 0x407e17
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x407f31
cmp eax, esi
jae 0x407f31
mov eax, dword [0x4135a0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x407e3c
cmp dword [esi*4 + 0x4135a8], edi
je 0x407f35
inc esi
cmp esi, eax
jl 0x407e2a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x40f108]
test eax, eax
je 0x407fb1
cmp dword [ebp - 8], 0x1000000
jne 0x407fb1
test byte [ebp - 0xc], 0xcc
je 0x407eba
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x407fb1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407fb1
cmp word [eax + 0x18], 0x10b
jne 0x407fb1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x407fb1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x407eba
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x407eba
test byte [ecx + 0x27], 0x80
jne 0x407f31
push 1
push 0x4135e8
call dword [0x40f0c4]
test eax, eax
jne 0x407dce
mov ecx, dword [0x4135a0]
test ecx, ecx
mov edx, ecx
jle 0x407eee
lea eax, [ecx*4 + 0x4135a4]
cmp dword [eax], edi
je 0x407eee
dec edx
sub eax, 4
test edx, edx
jg 0x407ee2
test edx, edx
jne 0x407f1f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x407efb
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x407f13
lea eax, [edx*4 + 0x4135a8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x407f01
cmp ecx, 0x10
jge 0x407f1f
inc ecx
mov dword [0x4135a0], ecx
push 0
push 0x4135e8
call dword [0x40f0c4]
jmp 0x407dce
xor eax, eax
jmp 0x407fb4
test esi, esi
jle 0x407dce
mov ebx, dword [0x40f0c4]
push 1
push 0x4135e8
call ebx
test eax, eax
jne 0x407dce
cmp dword [esi*4 + 0x4135a8], edi
je 0x407f8b
mov eax, dword [0x4135a0]
lea esi, [eax - 1]
test esi, esi
jl 0x407f79
cmp dword [esi*4 + 0x4135a8], edi
je 0x407f75
dec esi
jns 0x407f69
test esi, esi
jge 0x407f89
cmp eax, 0x10
jge 0x407f84
inc eax
mov dword [0x4135a0], eax
lea esi, [eax - 1]
jmp 0x407f8b
je 0x407fa3
xor ecx, ecx
test esi, esi
jl 0x407fa3
lea eax, [ecx*4 + 0x4135a8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x407f91
push 0
push 0x4135e8
call ebx
jmp 0x407dce
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4056c0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x424040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
mov esi, dword [esp + 0x360]
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
push esi
mov dword [esp + 0x14], edi
call fcn.0040c9d0
add esp, 4
test eax, eax
je 0x42420e
mov ebx, dword [esp + 0x368]
test ebx, ebx
je 0x42420e
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0x18]
push esi
push eax
call edi
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0040ce70
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 8
lea edx, [esp + 0x18]
push ebx
push edx
call ebp
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x424137
call fcn.004246e0
lea edx, [esp + 0x11c]
push esi
push edx
call edi
lea eax, [esp + 0x11c]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
lea ecx, [esp + 0x24c]
lea edx, [esp + 0x11c]
push ecx
push edx
call ebp
test byte [esp + 0x220], 0x10
jne 0x42411d
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x11c]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jl 0x42411d
inc dword [esp + 0x10]
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4240c3
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esp + 0x18]
push esi
push ecx
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.0040ce70
add esp, 8
lea eax, [esp + 0x18]
push 0x42b1bc
push eax
call ebp
lea ecx, [esp + 0x220]
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4241fd
call fcn.004246e0
test byte [esp + 0x220], 0x10
je 0x4241e3
cmp byte [esp + 0x24c], 0x2e
je 0x4241e3
lea eax, [esp + 0x11c]
push esi
push eax
call edi
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call fcn.0040ce70
add esp, 8
lea edx, [esp + 0x24c]
lea eax, [esp + 0x11c]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00424040
add dword [esp + 0x10], eax
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x42417b
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412cf0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412e9a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x1c
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x2b
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xaf
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xab
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x84
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc8
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1d
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x83
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x80
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x5e
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x11
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf9
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x7a
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x70
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x5d
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d10
pop ebx
pop edi
pop esi
ret

Function at 0x4035d5
Capabilities:
Terminate process

Disassembly:
jmp 0x451b59
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451b6a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058fd
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403706
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b002
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b013
pop esi
ret
push ebx
push edi
push esi
call fcn.0049aee9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fd0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b03b
push ebx
push esi
push edi
call fcn.004056f0
add esp, 0xc
push 0
call fcn.0040623a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
invalid
invalid

Function at 0x4ca248
Capabilities:
Encode data using xor

Disassembly:
push 0x4c9fca
pop edi
add ecx, 0x1a2ba331
call fcn.004ca282
mov ecx, ecx
add ecx, esi
xor dword [edx], edi
push ecx
pop ecx
inc esi
dec ecx
add edx, 1
or ecx, ecx
cmp edx, ebx
jne fcn.004ca248
mov ecx, 0xa4795a92
ret
Function at 0x10001000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Initialize winsock library

Disassembly:
push ebx
push edi
push esi
sub esp, 0x1a0
mov esi, ecx
lea edi, [esp + 0x1b0]
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x10001079
lea ebx, [esp + 4]
mov word [ebx - 4], 2
movzx eax, word [edi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx - 2], ax
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10001059
mov eax, dword [edi]
push ebx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
mov eax, esp
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
setne bl
jmp 0x1000107b
xor ebx, ebx
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x1000108f
inc eax
push eax
push dword [edi]
call fcn.100061be
add esp, 8
mov eax, ebx
add esp, 0x1a0
pop esi
pop edi
pop ebx
ret 0x1c

Function at 0x100010c8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x2018
call fcn.10014d40
mov esi, ecx
mov edi, dword [esp + 0x202c]
mov eax, dword [0x10044b54]
xor eax, esp
mov dword [esp + 0x2014], eax
call fcn.1001eeae
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
xor edi, edi
mov dword [esp + 0x10], eax
sar eax, 0x1f
mov dword [esp + 0xc], eax
mov ebp, ecx
test ecx, ecx
je 0x100011c0
mov eax, 0x1ff0
cmp ebp, eax
mov ebx, 0x1ff0
cmovl ebx, ebp
mov ecx, dword [esi + 8]
call fcn.100011e2
mov ecx, dword [esp + 0x202c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ebx
add eax, edi
push ebx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.1001a660
add esp, 0xc
mov eax, ebx
add eax, 0x10
je 0x1000118e
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
lea edi, [esp + 0x14]
mov dword [esp], eax
mov ebp, eax
push 0
push ebp
push edi
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10001197
add edi, eax
sub ebp, eax
jne 0x10001174
jmp 0x1000119d
mov dword [esp], 0
jmp 0x100011a5
xor eax, eax
dec eax
mov dword [esp], eax
mov edi, dword [esp + 8]
mov ebp, dword [esp + 4]
push dword [esi + 8]
call fcn.10016f0f
add esp, 4
add edi, ebx
mov ecx, ebp
sub ecx, ebx
cmp dword [esp], 0xffffffff
jne 0x10001104
test ebp, ebp
sete bl
mov ecx, dword [esp + 0x2014]
xor ecx, esp
call fcn.10014c77
mov eax, ebx
add esp, 0x2018
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10001456
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10014280
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov dword [eax + 8], 0
push 0x10
call fcn.10014c0c
add esp, 4
xor esi, esi
inc esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax], vtable.std::_Ref_count_obj2_struct_std::atomic_bool__.0
mov ecx, eax
add ecx, 0xc
mov byte [eax + 0xc], 0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x4c]
mov dword [edx], ecx
lea ecx, [ebp + 8]
add ecx, 0x30
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x48]
mov esi, dword [ebp - 0x20]
mov dword [eax], esi
lea esi, [ebp - 0x28]
push ecx
push edx
push eax
lea eax, [ebp + 0x10]
push eax
push 3
push esi
call fcn.1000b920
add esp, 0x18
xor eax, eax
lea edx, [ebp - 0x3c]
mov dword [edx - 8], eax
mov dword [edx - 4], eax
mov ecx, dword [ebp - 0x34]
lock inc dword [ecx + 4]
movsd xmm0, qword [ebp - 0x30]
movsd qword [edx - 8], xmm0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [edx], ecx
mov byte [edx + 4], 1
mov ecx, dword [ebp - 0x20]
add ecx, 0x20
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x54]
lea edx, [ebp + 8]
push edx
push eax
call fcn.1000b7f2
mov esi, dword [ebp - 0x54]
lea ecx, [esi + 0x18]
lea edi, [ebp - 0x44]
push edi
call fcn.1000655a
add esi, 0x20
mov ecx, esi
lea esi, [ebp - 0x3c]
push esi
call fcn.10006598
mov ecx, esi
call fcn.1000161c
mov esi, dword [edi + 4]
test esi, esi
je 0x10001568
lock dec dword [esi + 4]
jne 0x10001568
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock dec dword [esi + 8]
jne 0x10001568
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.1000161c
mov esi, dword [ebp - 0x2c]
test esi, esi
lea edi, [ebp + 0x10]
lea ebx, [ebp + 8]
je 0x10001596
lock dec dword [esi + 4]
jne 0x10001596
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock dec dword [esi + 8]
jne 0x10001596
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x100015aa
xor eax, eax
cmp ecx, edi
setne al
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret 0x34
Function at 0x100030cc
Capabilities:
Get graphical window text

Disassembly:
push edi
push esi
sub esp, 0x200
mov esi, dword [esp + 0x20c]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x10003111
mov edi, esp
push 0x100
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
push edi
call fcn.10021549
add esp, 4
mov ecx, esi
push eax
push edi
jmp 0x10003127
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov ecx, esi
push eax
push 0x1003ba14
call fcn.10007902
mov eax, esi
add esp, 0x200
pop esi
pop edi
ret
Function at 0x1000839e
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, 1
mov eax, ecx
sbb eax, 0
jl 0x100083cd
cmp dword [ebx + 0x38], 0
je 0x100083d6
mov ecx, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_32
xor eax, eax
xor edx, edx
jmp 0x10008480
mov dword [esp], ecx
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 4], esi
je 0x10008411
mov ecx, dword [ebx + 0x2c]
mov edi, dword [ecx]
test edi, edi
je 0x10008411
cmp edi, esi
cmovae edi, esi
push edi
push eax
push ebp
call fcn.1001a660
add esp, 0xc
add ebp, edi
sub esi, edi
mov eax, dword [ebx + 0x2c]
sub dword [eax], edi
mov eax, dword [ebx + 0x1c]
add dword [eax], edi
cmp dword [ebx + 0x4c], 0
je 0x10008474
mov eax, dword [ebx + 0xc]
lea ecx, [ebx + 0x3c]
cmp dword [eax], ecx
jne 0x10008435
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x54]
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edi, 0xfff
cmp esi, 0x1000
jb 0x1000845b
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.1001f8ed
add esp, 0x10
add ebp, eax
sub esi, eax
cmp eax, edi
je 0x1000843a
jmp 0x10008474
test esi, esi
je 0x10008472
push dword [ebx + 0x4c]
push esi
push 1
push ebp
call fcn.1001f8ed
add esp, 0x10
sub esi, eax
jmp 0x10008474
xor esi, esi
mov eax, dword [esp + 4]
sub eax, esi
mov edx, dword [esp]
sbb edx, 0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push ebp
push ebx
push edi
push esi
push eax
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
cmp ebp, 1
mov eax, esi
sbb eax, 0
jl 0x10008a15
mov ebx, ecx
mov edi, dword [esp + 0x18]
mov dword [esp], ecx
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x100089f3
mov ecx, dword [ebx + 0x2c]
mov ecx, dword [ecx]
test ecx, ecx
jle 0x100089f3
cmp ebp, ecx
mov ebx, esi
mov esi, edi
mov edi, ecx
cmovb edi, ebp
test ebx, ebx
cmovne edi, ecx
push edi
push eax
push esi
call fcn.1001a660
add esp, 0xc
add esi, edi
sub ebp, edi
sbb ebx, 0
mov eax, dword [esp]
mov eax, dword [eax + 0x2c]
sub dword [eax], edi
mov eax, dword [esp]
mov eax, dword [eax + 0x1c]
add dword [eax], edi
mov edi, esi
mov esi, ebx
mov ebx, dword [esp]
jmp 0x10008a08
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x10008a15
mov byte [edi], al
inc edi
add ebp, 0xffffffff
adc esi, 0xffffffff
mov eax, ebp
neg eax
mov eax, 0
sbb eax, esi
jl 0x100089a6
mov eax, dword [esp + 0x1c]
sub eax, ebp
mov edx, dword [esp + 0x20]
sbb edx, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x10008dd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10014450
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
xor ebx, ebx
mov ecx, edi
push ebx
call fcn.10015085
mov dword [edi + 4], ebx
mov byte [edi + 8], bl
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov dword [edi + 0x14], ebx
mov word [edi + 0x18], bx
mov dword [edi + 0x1c], ebx
mov word [edi + 0x20], bx
mov dword [edi + 0x24], ebx
mov byte [edi + 0x28], bl
mov dword [edi + 0x2c], ebx
mov byte [edi + 0x30], bl
test esi, esi
mov dword [ebp - 0x20], edi
je 0x10008e5f
mov dword [ebp - 0x10], 0
push esi
push edi
call fcn.100153e5
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], 0
push str.bad_locale_name
call fcn.10015bd9
add esp, 4
nop
push ebp
sub esp, 8
add ebp, 0xc
mov eax, dword [ebp - 0x20]
mov esi, eax
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x10008e90
push eax
call fcn.1001fae3
add esp, 4
mov eax, esi
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10008ea9
push eax
call fcn.1001fae3
add esp, 4
mov eax, esi
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10008ec2
push eax
call fcn.1001fae3
add esp, 4
mov eax, esi
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10008edb
push eax
call fcn.1001fae3
add esp, 4
mov eax, esi
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10008ef4
push eax
call fcn.1001fae3
add esp, 4
mov eax, esi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10008f0d
push eax
call fcn.1001fae3
add esp, 4
mov ecx, esi
mov dword [esi + 4], 0
call fcn.100150b6
add esp, 8
pop ebp
ret
Function at 0x1000998c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10014310
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov esi, dword [ebp + 8]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
push 0x24
call fcn.10014c0c
add esp, 4
mov ecx, dword [edi]
mov dword [eax], ecx
lea ecx, [eax + 4]
xor edi, edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
movups xmmword [eax + 4], xmm0
mov edx, dword [esi + 0x10]
cmp dword [esi + 0x14], 0x10
jb 0x100099f2
mov esi, dword [esi]
mov dword [ebp - 0x10], edi
push edx
push esi
call fcn.1000743c
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x1c], eax
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp - 0x2c]
lea esi, [edi + 4]
xor eax, eax
push esi
push eax
push ecx
push 0x10009e42
push eax
push eax
call fcn.1001d62c
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x10009a4b
lea ecx, [ebp - 0x24]
mov dword [ecx], 0
call fcn.10009eb8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 0
mov dword [ebp - 0x10], 1
push 6
call fcn.10015abc
add esp, 4
push ebp
sub esp, 0x18
add ebp, 0xc
lea ecx, [ebp - 0x24]
call fcn.10009eb8
add esp, 0x18
pop ebp
ret