joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bc079
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100ade30
mov eax, dword [0x10108c80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100caf14
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100bc0bb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100bc217
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100d9ff0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10111c08]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100ccdeb
mov ecx, dword [esi*4 + 0x10111c08]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x100bc210
cmp eax, dword [edi + ecx + 0x24]
jne 0x100bc210
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100bc210
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100ccdeb
add esp, 0x14
test edx, edx
jl 0x100bc210
jg 0x100bc186
test eax, eax
jb 0x100bc210
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100bc210
jl 0x100bc1a0
cmp dword [ebp - 0x1008], eax
ja 0x100bc210
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100bc1be
test ebx, ebx
je 0x100bc1f7
cmp ecx, edi
jae 0x100bc1f7
mov al, byte [ecx]
cmp al, 0xd
jne 0x100bc1d8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100bc1e4
cmp byte [ecx + 1], 0xa
jne 0x100bc1e4
inc ecx
jmp 0x100bc1e4
movzx eax, al
movsx eax, byte [eax + 0x10109100]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100bc1be
cmp edx, ebx
jne 0x100bc1be
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100bc215
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100ad4b8
leave
ret

Function at 0x100ca7e8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100f9ab8
push 0x100f9ab0
push str.FlsAlloc
push 0x1e
call fcn.100ca655
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100ca81c
push dword [ebp + 8]
mov ecx, esi
call dword [0x100e0370]
call esi
jmp 0x100ca822
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x100ca866
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100f9ac8
push 0x100f9ac0
push str.FlsGetValue
push 0x20
call fcn.100ca655
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100ca89d
push dword [ebp + 8]
mov ecx, esi
call dword [0x100e0370]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100cc040
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100cbeb1

Function at 0x100cc2a3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10111c08]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100cc2e3
cmp byte [ebx], 0xa
jne 0x100cc2e3
or byte [eax + edi + 0x28], 4
jmp 0x100cc2e8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100cc3e6
mov al, byte [edx]
cmp al, 0x1a
je 0x100cc3c8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100cc317
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100cc33c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100cc346
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100cc2f9
jmp 0x100cc3e6
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100cc3c3
cmp dword [ebp - 0xc], 0
je 0x100cc3c3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10111c08]
test byte [eax + edi + 0x28], 0x48
je 0x100cc39d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100cc388
mov byte [esi], dl
jmp 0x100cc399
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10111c08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100cc3e6
cmp byte [ebp - 1], 0xa
jne 0x100cc3ac
cmp esi, ebx
jne 0x100cc3ac
mov byte [esi], 0xa
jmp 0x100cc3e5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100cce09
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100cc3e6
mov byte [esi], 0xd
jmp 0x100cc3e5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10111c08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100cc3e2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100cc3e6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100cc3ef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10111c08]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100cc432
cmp word [esi], dx
jne 0x100cc432
or byte [edi + eax + 0x28], 4
jmp 0x100cc437
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100cc570
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100cc550
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100cc479
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100cc4af
cmp eax, edx
jae 0x100cc4bb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100cc451
jmp 0x100cc570
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100cc54c
cmp dword [ebp - 0x14], 0
je 0x100cc54c
mov eax, dword [ebx*4 + 0x10111c08]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100cc524
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x100cc56a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10111c08]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x10111c08]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10111c08]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x100cc56d
pop ebx
cmp word [ebp - 4], bx
jne 0x100cc535
cmp esi, dword [ebp + 0xc]
jne 0x100cc535
mov word [esi], bx
jmp 0x100cc56d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100cce09
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100cc570
push 0xd
jmp 0x100cc569
mov ecx, dword [ebx*4 + 0x10111c08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100cc567
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100cc570
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100d18b8
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 0x100d1955
push ebx
push esi
call fcn.100d1881
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.100ca2fd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100d1902
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d1954
push edi
push eax
call fcn.100c7eed
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100d1922
call fcn.100c77a8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d1953
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100ca2fd
add esp, 0x20
test eax, eax
jne 0x100d1941
push edi
call fcn.100c77a8
jmp 0x100d1949
push ebx
call fcn.100c77a8
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 0x100d1958
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100d1969
pop esi
ret
push ebx
push edi
push esi
call fcn.100d1881
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100c7eed
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100d1991
push ebx
push esi
push edi
call fcn.100aea50
add esp, 0xc
push 0
call fcn.100c77a8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100d20dd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d1c04
Function at 0x100d9aef
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100d9a6b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100d9c67
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100d9c67
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100d9c16
jg 0x100d9b48
test eax, eax
je 0x100d9c0c
push 1
push 0x1000
call fcn.100cabda
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100d9b6e
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100d9c03
push 0x8000
push ebx
call fcn.100d999c
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100d9b9a
jg 0x100d9b95
cmp ecx, 0x1000
jb 0x100d9b9a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100cbcb1
add esp, 0x10
cmp eax, 0xffffffff
je 0x100d9bdf
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100d9b95
jl 0x100d9bc6
test ecx, ecx
jne 0x100d9b87
push dword [ebp - 0xc]
push ebx
call fcn.100d999c
push esi
call fcn.100c77a8
add esp, 0xc
xor edi, edi
jmp 0x100d9c78
cmp byte [edi + 0x24], 0
je 0x100d9bf6
cmp dword [edi + 0x20], 5
jne 0x100d9bf6
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100d9c01
mov edi, dword [edi + 0x18]
jmp 0x100d9c03
xor edi, edi
push esi
call fcn.100c77a8
pop ecx
jmp 0x100d9c78
test ecx, ecx
jg 0x100d9bd8
jl 0x100d9c16
test eax, eax
jae 0x100d9bd8
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100cce09
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100d9c39
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100d9bd8
jmp 0x100d9c70
push ebx
call fcn.100d84dd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100d9bd8
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100d9c78
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100d9c75
mov edi, dword [edi + 0x18]
jmp 0x100d9c78
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100cce09
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100d9ef0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100d9f1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100d9f1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10007250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002c2dd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10039140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1001304f
mov edi, eax
add esp, 4
test edi, edi
je 0x100072f4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10012733
add esp, 4
mov dword [edi + 4], eax
jmp 0x100072f6
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.10003d90
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 0x10]
mov bl, al
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x10007350
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x10007350
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x1000736c
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x1000738f
cmp byte [ebp + 0xc], 0
je 0x1000737b
push esi
call fcn.10012c3c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x1000739b
mov esi, str.ios_base::badbit_set
jmp 0x100073ab
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10007590
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.100047e0
push 0x100370f0
lea eax, [ebp - 0x28]
push eax
call fcn.100143ec
int3

Function at 0x100087c0
Capabilities:
Create thread

Disassembly:
push str.BM3_Init
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBegin]
push 0
push 0
push 0
push 0x10008660
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
Function at 0x1000ae40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x10039140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 2
mov dword [ebp - 0x130], eax
or edi, 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1000aec7
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000aec0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push dword [ebp - 0x130]
lea eax, [ebp - 0x108]
push eax
call ebx
test eax, eax
je 0x1000aeb9
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000ae93
jmp 0x1000aebf
mov edi, dword [ebp - 0x124]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10013092
mov esp, ebp
pop ebp
ret

Function at 0x1000c800
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10039140]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000c838
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013092
mov esp, ebp
pop ebp
ret 0xc
mov al, byte [ebp + 0x10]
mov byte [esi], al
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.10013092
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000c870
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10039140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000c932
cmp dword [ebp + 0x1c], 0
mov bl, byte [ebp + 0x10]
jne 0x1000c8f1
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi], eax
test eax, eax
je 0x1000c932
push dword [ebp - 0xc]
push esi
push eax
call fcn.10014810
mov eax, dword [edi]
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov byte [eax + edx + 1], bl
mov eax, esi
mov ecx, dword [edi]
sub eax, ecx
sub eax, 5
mov dword [ecx + edx + 2], eax
lea ecx, [esi + 1]
jmp 0x1000c8fe
mov eax, dword [esi + 1]
lea ecx, [esi + 1]
add eax, 5
add eax, esi
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
sub eax, esi
mov byte [esi], bl
sub eax, 5
mov dword [ecx], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013092
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013092
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1001c006
Capabilities:
Parse pe header

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

Function at 0x10020c99
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10032068
push 0x10032060
push str.FlsAlloc
push 0x1f
call fcn.10020b61
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10020ccd
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d178]
call esi
jmp 0x10020cd3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10020d17
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10032078
push 0x10032070
push str.FlsGetValue
push 0x21
call fcn.10020b61
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10020d4e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d178]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10020d56
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10032080
push 0x10032078
push str.FlsSetValue
push 0x22
call fcn.10020b61
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10020d90
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002d178]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100233a9
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 0x10023446
push ebx
push esi
call fcn.10023372
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.10022186
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100233f3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10023445
push edi
push eax
call fcn.1001ec73
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10023413
call fcn.1001ea49
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10023444
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10022186
add esp, 0x20
test eax, eax
jne 0x10023432
push edi
call fcn.1001ea49
jmp 0x1002343a
push ebx
call fcn.1001ea49
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 0x10025973
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001d03c
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 0x100259e2
cmp esi, dword [ebp - 4]
je 0x100259dd
cmp dword [ebp + 0xc], 0
je 0x100259dd
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100259ba
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100254c5
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100259e4
xor eax, eax
inc eax
jmp 0x100259e4
xor eax, eax
pop edi
pop esi
leave
ret