joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100092b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002738d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10033040]
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 [0x1003676c], 0
je 0x100093f7
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
call esi
sub eax, dword [0x100367e0]
sbb edx, dword [0x100367e4]
mov dword [ebp - 0x34], edx
jne 0x1000930e
cmp eax, 0x3e8
jb 0x1000940e
call esi
push ecx
lea ecx, [ebp - 0x2c]
mov dword [0x100367e0], eax
mov dword [0x100367e4], edx
call fcn.100076b0
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.10007890
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 0x100093ca
mov ecx, dword [ebp - 0x20]
inc ecx
cmp esi, ecx
jae 0x100093c0
mov eax, dword [ebp - 0x14]
sub eax, edx
cmp ecx, eax
jbe 0x100093a9
push ecx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10007710
jmp 0x100093bd
sub ecx, esi
push ecx
push 0
push edi
lea esi, [edi + ecx]
call fcn.1000fb90
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.100096f0
push ebx
mov ecx, eax
call fcn.100096d0
lea ecx, [ebp - 0x2c]
call fcn.10009760
mov edx, dword [ebp - 0x18]
mov ecx, eax
sub edx, dword [ebp - 0x1c]
call fcn.10009270
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.1000dd45
mov esp, ebp
pop ebp
ret
Function at 0x10009910
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 [0x10033040]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 0x38
mov dword [ebp - 0x2f8], 0x544c6a38
mov dword [ebp - 0x2f4], 0x5c595774
xor eax, eax
mov dword [ebp - 0x2f0], 0x514a4c6b
mov word [ebp - 0x2ec], 0x5f56
mov byte [ebp - 0x2ea], 0
xor byte [ebp + eax - 0x2f7], cl
inc eax
cmp eax, 0xd
jae 0x1000996a
mov cl, byte [ebp - 0x2f8]
jmp 0x10009955
push ebx
mov byte [ebp - 0x2e8], 0x6d
mov al, 3
xor al, byte [ebp - 0x2e8]
mov bl, 1
mov ah, bl
mov byte [ebp - 0x2e7], al
mov al, byte [ebp - 0x2e8]
mov dl, 9
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, 0x19
mov byte [ebp - 0x2e0], bh
xor cl, al
mov byte [ebp - 0x2de], 0
mov ch, 0x43
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 0x10009ae2
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 0x10009ae2
push 0x2c8
lea eax, [ebp - 0x2d4]
push 0
push eax
call fcn.1000fb90
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 0x10009ae2
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x10009ae2
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10009ae2
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x10001e30
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x10009ae2
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.1000dd45
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1000dd45
mov esp, ebp
pop ebp
ret
Function at 0x10009b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov byte [ebp - 0x10], 0x13
mov al, 0x7d
xor al, byte [ebp - 0x10]
mov bl, 0x7f
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 0x77
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, 0x67
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 8], bh
mov ch, 0x3d
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 0x10009bd3
movaps xmm0, xmmword [0x10030060]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x7b615d67
mov dword [ebp - 0x14], 0x6d686c
nop word [eax + eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x10009b90
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 0x10009bd3
test esi, esi
jne 0x10009bbe
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 0x10009be0
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 0x10009c1e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10009c22
cmp edx, esi
jne 0x10009c07
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 0x10009c42
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10009c46
cmp edx, esi
jne 0x10009c2b
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 0x10009c66
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10009c6a
cmp edx, esi
jne 0x10009c4f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1000b240
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000b14d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10033014]
jb 0x1000b0ba
mov eax, dword [ebp - 4]
cmp eax, dword [0x10033018]
ja 0x1000b0ba
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000b08a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1000fb90
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000b0df
jmp 0x1000b14d
cmp dword [ebp - 0x14], 0x10000
jne 0x1000b133
cmp dword [ebp - 0x18], 0x10000
jb 0x1000b133
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000b116
mov eax, dword [ebp - 8]
jmp 0x1000b14f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000b126
xor eax, eax
jmp 0x1000b14f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000b148
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000b240
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000b08a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000b160
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000b270
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000b235
mov edx, dword [ebp - 4]
cmp edx, dword [0x10033014]
jb 0x1000b1a5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10033018]
ja 0x1000b1a5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000b175
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1000fb90
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000b1ca
jmp 0x1000b235
cmp dword [ebp - 0x14], 0x10000
jne 0x1000b21e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000b21e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000b201
mov eax, dword [ebp - 8]
jmp 0x1000b237
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000b211
xor eax, eax
jmp 0x1000b237
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000b230
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000b270
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000b175
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000b2a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000b690
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100357e4], 0
jne 0x1000b2dd
cmp dword [0x100357e0], 0
je 0x1000b2dd
mov eax, dword [0x100357e0]
mov dword [0x100357e4], eax
cmp dword [0x100357e4], 0
je 0x1000b35a
mov ecx, dword [0x100357e4]
cmp dword [ecx + 8], 0
je 0x1000b35a
mov edx, dword [0x100357e4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000b35a
mov ecx, dword [0x100357e4]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000b35a
mov eax, dword [0x100357e4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1000b329
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000b330
xor eax, eax
jmp 0x1000b479
mov ecx, dword [0x100357e4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1000fb90
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000b479
mov edx, dword [0x100357e0]
mov dword [0x100357e4], edx
jmp 0x1000b376
mov eax, dword [0x100357e4]
mov ecx, dword [eax + 4]
mov dword [0x100357e4], ecx
cmp dword [0x100357e4], 0
je 0x1000b3b6
cmp dword [0x100357e4], 0
je 0x1000b3b4
mov edx, dword [0x100357e4]
cmp dword [edx + 8], 0
je 0x1000b3b4
mov eax, dword [0x100357e4]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000b3b4
mov edx, dword [0x100357e4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000b3b4
jmp 0x1000b30e
jmp 0x1000b368
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000b480
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000b477
mov eax, dword [ebp - 0x18]
mov dword [0x100357e4], eax
mov ecx, dword [0x100357e4]
mov dword [ecx], 0x52727464
mov edx, dword [0x100357e4]
mov dword [edx + 8], 0
mov eax, dword [0x100357e4]
mov ecx, dword [0x100357e0]
mov dword [eax + 4], ecx
mov edx, dword [0x100357e4]
mov dword [0x100357e0], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100357e4]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1000b447
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000b467
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1000b43e
mov eax, dword [0x100357e4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000b30e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000c1c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100357e0]
mov dword [ebp - 4], eax
jmp 0x1000c1d9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000c200
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000c1fe
call sub.KERNEL32.dll_GetLastError
jmp 0x1000c202
jmp 0x1000c1d0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000c6a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100357f0], eax
je 0x1000c6c4
mov eax, 0x10dd
jmp 0x1000c86c
cmp dword [0x100357f4], 0
je 0x1000c6d7
mov eax, dword [0x100357f4]
jmp 0x1000c86c
cmp dword [ebp + 0xc], 0
jne 0x1000c6e7
mov eax, 0x57
jmp 0x1000c86c
cmp dword [ebp + 8], 0
jne 0x1000c6f7
mov eax, 6
jmp 0x1000c86c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1000c720
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x100357f4], ecx
mov edx, dword [ebp + 8]
mov dword [0x100357f8], edx
mov eax, dword [ebp - 8]
jmp 0x1000c86c
push 0x18
call fcn.1000dd53
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000c77b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x100357f4], ecx
cmp dword [ebp - 4], 0
je 0x1000c76a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1000dda6
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x100357f8], ecx
mov eax, dword [ebp - 8]
jmp 0x1000c86c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1000c680
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000c680
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1000c7bb
cmp dword [ebp - 0xc], 0x1e
jbe 0x1000c7d7
mov dword [ebp - 8], 9
cmp dword [0x100357e8], 0
je 0x1000c7d2
jmp 0x1000c749
jmp 0x1000c740
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1000c7fe
mov dword [ebp - 8], 9
cmp dword [0x100357e8], 0
je 0x1000c7f9
jmp 0x1000c749
jmp 0x1000c740
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000c829
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000c740
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10035800]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10035800], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1000c880
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100357f0], eax
je 0x1000c89d
mov eax, 0x10dd
jmp 0x1000c980
mov eax, dword [0x10035800]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000c91c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000c8f8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000c8f8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000b720
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000dda6
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1000c8a5
mov dword [0x10035800], 0
call fcn.1000c000
mov ecx, dword [0x100357fc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1000c96a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000dda6
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1000c934
mov dword [0x100357fc], 0
mov dword [0x100357f0], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000ce60
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100357f4], 0
je 0x1000ce79
mov eax, dword [0x100357f4]
jmp 0x1000cf18
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1000ce8a
xor eax, eax
jmp 0x1000cf18
push 8
call fcn.1000dd53
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000cee2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000cecb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000dda6
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100357f4], eax
mov dword [0x100357f8], 0
mov eax, dword [ebp - 8]
jmp 0x1000cf18
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000cefa
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000ceaa
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100357fc]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100357fc], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10012e88
Capabilities:
Parse pe header

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

Function at 0x1001a562
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002c070
push 0x1002c068
push str.FlsAlloc
push 0x1f
call fcn.1001a42a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a596
push dword [ebp + 8]
mov ecx, esi
call dword [0x100281bc]
call esi
jmp 0x1001a59c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001a5e0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002c080
push 0x1002c078
push str.FlsGetValue
push 0x21
call fcn.1001a42a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a617
push dword [ebp + 8]
mov ecx, esi
call dword [0x100281bc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001a61f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002c088
push 0x1002c080
push str.FlsSetValue
push 0x22
call fcn.1001a42a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a659
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100281bc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001eada
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 0x1001eb77
push ebx
push esi
call fcn.1001eaa3
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.1001d96b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001eb24
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001eb76
push edi
push eax
call fcn.1001ac11
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001eb44
call fcn.10019c2a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001eb75
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d96b
add esp, 0x20
test eax, eax
jne 0x1001eb63
push edi
call fcn.10019c2a
jmp 0x1001eb6b
push ebx
call fcn.10019c2a
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 0x10020cae
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100181cc
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 0x10020d1d
cmp esi, dword [ebp - 4]
je 0x10020d18
cmp dword [ebp + 0xc], 0
je 0x10020d18
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10020cf5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10020800
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10020d1f
xor eax, eax
inc eax
jmp 0x10020d1f
xor eax, eax
pop edi
pop esi
leave
ret