joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ffce3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test cl, bh
add byte [eax], al
add byte [ebx - 0x7adfdb94], cl
in eax, dx
je 0x5ffde1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5ffde1
mov edi, dword [esp + 0x28]
test edi, edi
je 0x5ffde1
mov edx, dword [esi]
mov dword [ebx], edx
mov edx, dword [esi + 4]
mov dword [ebp], edx
movzx edx, byte [esi + 0x18]
mov dword [eax], edx
cmp byte [esi + 0x18], 1
push esp
add byte [eax], al
add byte [eax], al
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.00602473
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [esp + 0x24]
mov cx, word [esp + 0x38]
mov word [esi + 0x10], ax
mov word [esi + 0x5a], ax
mov eax, dword [esp + 0x28]
sub esp, 0x10
mov word [esi + 0x12], cx
mov ecx, dword [esp + 0x3c]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, ebp
mov byte [esp + 0x2c], 2
mov dword [esi + 0xc], ebx
mov word [esi + 0x54], 0x83f
mov dword [esi + 0x56], ebx
call fcn.00602563
mov ecx, dword [esp + 0x14]
mov byte [esi + 0x6a], bl
mov word [esi + 0x64], bx
mov dword [esi + 0x66], ebx
mov word [esi + 0x5d], bx
mov dword [esi + 0x5f], ebx
mov dword [esi + 0x6b], ebx
xor edx, edx
mov al, 0xff
mov byte [esi + 0x63], al
mov byte [esi + 0x5c], al
mov dword [edi], edx
mov dword [edi + 4], edx
mov dword [edi + 8], edx
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], edx
pop edi
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x18
Function at 0x2459058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.024591a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x245907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x245906a
add dl, dl
jne 0x2459089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x24590dc
xor eax, eax
add dl, dl
jne 0x2459096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x245917d
add dl, dl
jne 0x24590a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x24590b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x24590bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x24590c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x24590d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x2459075
mov eax, 1
add dl, dl
jne 0x24590ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x24590f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x24590e1
sub eax, ebx
mov ebx, 1
jne 0x2459128
mov ecx, 1
add dl, dl
jne 0x245910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2459119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2459105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2459075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x245913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x245914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2459136
cmp eax, 0x7d00
jae 0x245916d
cmp eax, 0x500
jb 0x2459168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2459075
cmp eax, 0x7f
ja 0x2459170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2459075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x245919e
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 0x2459075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1000be70
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.1000c040
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000bf4d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10039030]
jb 0x1000beba
mov eax, dword [ebp - 4]
cmp eax, dword [0x10039034]
ja 0x1000beba
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000be8a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10014050
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 0x1000bedf
jmp 0x1000bf4d
cmp dword [ebp - 0x14], 0x10000
jne 0x1000bf33
cmp dword [ebp - 0x18], 0x10000
jb 0x1000bf33
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 0x1000bf16
mov eax, dword [ebp - 8]
jmp 0x1000bf4f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000bf26
xor eax, eax
jmp 0x1000bf4f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000bf48
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000c040
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000be8a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000bf60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000c070
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000c035
mov edx, dword [ebp - 4]
cmp edx, dword [0x10039030]
jb 0x1000bfa5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10039034]
ja 0x1000bfa5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000bf75
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10014050
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 0x1000bfca
jmp 0x1000c035
cmp dword [ebp - 0x14], 0x10000
jne 0x1000c01e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000c01e
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 0x1000c001
mov eax, dword [ebp - 8]
jmp 0x1000c037
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000c011
xor eax, eax
jmp 0x1000c037
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000c030
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000c070
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000bf75
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000c0a0
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.1000c490
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1003a0e0], 0
jne 0x1000c0dd
cmp dword [0x1003a0dc], 0
je 0x1000c0dd
mov eax, dword [0x1003a0dc]
mov dword [0x1003a0e0], eax
cmp dword [0x1003a0e0], 0
je 0x1000c15a
mov ecx, dword [0x1003a0e0]
cmp dword [ecx + 8], 0
je 0x1000c15a
mov edx, dword [0x1003a0e0]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000c15a
mov ecx, dword [0x1003a0e0]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000c15a
mov eax, dword [0x1003a0e0]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1000c129
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000c130
xor eax, eax
jmp 0x1000c279
mov ecx, dword [0x1003a0e0]
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.10014050
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000c279
mov edx, dword [0x1003a0dc]
mov dword [0x1003a0e0], edx
jmp 0x1000c176
mov eax, dword [0x1003a0e0]
mov ecx, dword [eax + 4]
mov dword [0x1003a0e0], ecx
cmp dword [0x1003a0e0], 0
je 0x1000c1b6
cmp dword [0x1003a0e0], 0
je 0x1000c1b4
mov edx, dword [0x1003a0e0]
cmp dword [edx + 8], 0
je 0x1000c1b4
mov eax, dword [0x1003a0e0]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000c1b4
mov edx, dword [0x1003a0e0]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000c1b4
jmp 0x1000c10e
jmp 0x1000c168
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.1000c280
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000c277
mov eax, dword [ebp - 0x18]
mov dword [0x1003a0e0], eax
mov ecx, dword [0x1003a0e0]
mov dword [ecx], 0x52727464
mov edx, dword [0x1003a0e0]
mov dword [edx + 8], 0
mov eax, dword [0x1003a0e0]
mov ecx, dword [0x1003a0dc]
mov dword [eax + 4], ecx
mov edx, dword [0x1003a0e0]
mov dword [0x1003a0dc], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1003a0e0]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1000c247
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000c267
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 0x1000c23e
mov eax, dword [0x1003a0e0]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000c10e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000cfc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003a0dc]
mov dword [ebp - 4], eax
jmp 0x1000cfd9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000d000
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 0x1000cffe
call sub.KERNEL32.dll_GetLastError
jmp 0x1000d002
jmp 0x1000cfd0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000d630
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 [0x1003a0ec], eax
je 0x1000d654
mov eax, 0x10dd
jmp 0x1000d7fc
cmp dword [0x1003a0f0], 0
je 0x1000d667
mov eax, dword [0x1003a0f0]
jmp 0x1000d7fc
cmp dword [ebp + 0xc], 0
jne 0x1000d677
mov eax, 0x57
jmp 0x1000d7fc
cmp dword [ebp + 8], 0
jne 0x1000d687
mov eax, 6
jmp 0x1000d7fc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1000d6b0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1003a0f0], ecx
mov edx, dword [ebp + 8]
mov dword [0x1003a0f4], edx
mov eax, dword [ebp - 8]
jmp 0x1000d7fc
push 0x18
call fcn.10012486
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000d70b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1003a0f0], ecx
cmp dword [ebp - 4], 0
je 0x1000d6fa
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.100124b6
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x1003a0f4], ecx
mov eax, dword [ebp - 8]
jmp 0x1000d7fc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1000d610
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000d610
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 0x1000d74b
cmp dword [ebp - 0xc], 0x1e
jbe 0x1000d767
mov dword [ebp - 8], 9
cmp dword [0x1003a0e4], 0
je 0x1000d762
jmp 0x1000d6d9
jmp 0x1000d6d0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1000d78e
mov dword [ebp - 8], 9
cmp dword [0x1003a0e4], 0
je 0x1000d789
jmp 0x1000d6d9
jmp 0x1000d6d0
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 0x1000d7b9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000d6d0
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 [0x1003a0fc]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1003a0fc], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1000d810
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1003a0ec], eax
je 0x1000d82d
mov eax, 0x10dd
jmp 0x1000d910
mov eax, dword [0x1003a0fc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000d8ac
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 0x1000d888
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000d888
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000c520
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.100124b6
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1000d835
mov dword [0x1003a0fc], 0
call fcn.1000ce00
mov ecx, dword [0x1003a0f8]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1000d8fa
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.100124b6
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1000d8c4
mov dword [0x1003a0f8], 0
mov dword [0x1003a0ec], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000ddf0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1003a0f0], 0
je 0x1000de09
mov eax, dword [0x1003a0f0]
jmp 0x1000dea8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1000de1a
xor eax, eax
jmp 0x1000dea8
push 8
call fcn.10012486
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000de72
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000de5b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.100124b6
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1003a0f0], eax
mov dword [0x1003a0f4], 0
mov eax, dword [ebp - 8]
jmp 0x1000dea8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000de8a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000de3a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1003a0f8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1003a0f8], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1000ecc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x1003904c]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
push 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.10014050
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0
jne 0x1000ecfd
push 0x57
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1000edb1
push 0x1c
push 0
lea edx, [ebp - 0x64]
push edx
call fcn.10014050
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_VirtualQueryEx
test eax, eax
jne 0x1000ed2b
xor eax, eax
jmp 0x1000edb1
push 0
push 0x40
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x1000ed48
xor eax, eax
jmp 0x1000edb1
movzx eax, word [ebp - 0x44]
cmp eax, 0x5a4d
jne 0x1000ed61
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x58]
ja 0x1000ed61
cmp dword [ebp - 8], 0x40
jae 0x1000ed6f
push 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1000edb1
push 0
push pe_nt_image_headers32
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x1000ed92
xor eax, eax
jmp 0x1000edb1
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0x4550
je 0x1000edab
push 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1000edb1
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100127e3
mov esp, ebp
pop ebp
ret
Function at 0x10011570
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.1001154c
pop esi
leave
ret 8

Function at 0x1001b606
Capabilities:
Parse pe header

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

Function at 0x10020431
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100317c8
push 0x100317c0
push str.FlsAlloc
push 0x1f
call fcn.100202f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10020465
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d1a0]
call esi
jmp 0x1002046b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100204af
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100317d8
push 0x100317d0
push str.FlsGetValue
push 0x21
call fcn.100202f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100204e6
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d1a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100204ee
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100317e0
push 0x100317d8
push str.FlsSetValue
push 0x22
call fcn.100202f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10020528
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002d1a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10022948
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 0x100229e5
push ebx
push esi
call fcn.10022911
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.100216e6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10022992
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100229e4
push edi
push eax
call fcn.1001eea6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100229b2
call fcn.1001e33b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100229e3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100216e6
add esp, 0x20
test eax, eax
jne 0x100229d1
push edi
call fcn.1001e33b
jmp 0x100229d9
push ebx
call fcn.1001e33b
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 0x10024f12
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001c5fc
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 0x10024f81
cmp esi, dword [ebp - 4]
je 0x10024f7c
cmp dword [ebp + 0xc], 0
je 0x10024f7c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10024f59
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10024a64
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10024f83
xor eax, eax
inc eax
jmp 0x10024f83
xor eax, eax
pop edi
pop esi
leave
ret