joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c2340
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x100c2351
test eax, eax
jne 0x100c23a1
test eax, eax
jne 0x100c2367
mov ecx, dword [0x10139014]
test ecx, ecx
je 0x100c2367
call dword [section..00cfg]
call ecx
cmp dword [0x1013900c], 0
je 0x100c23a1
mov esi, dword [0x10139010]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x100c23a7
test esi, esi
je 0x100c23a1
mov ecx, dword [0x1013900c]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x100c238f
jmp 0x100c23a1

Function at 0x100c23c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x10123014]
xor eax, ebp
mov dword [esp + 0x28], eax
movzx eax, byte [ebp + 0x10]
movzx eax, al
lea ebx, [eax + eax]
add ebx, 4
mov esi, dword [ebp + 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test eax, eax
jne 0x100c241a
call fcn.100c2130
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test eax, eax
je 0x100c2467
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
movdqa xmmword [esp], xmm0
mov eax, esp
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [esp + 0xc]
sub ecx, edi
add ecx, dword [esp + 4]
test eax, eax
cmove ecx, eax
mov esi, dword [ebp + 8]
mov byte [esi], 1
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.100dea63
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
call fcn.100c2130
mov esi, dword [ebp + 8]
mov byte [esi], 0
jmp 0x100c2450

Function at 0x100c2550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [0x10123014]
xor edx, ebp
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x14]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x10]
push edx
push esi
push edi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x100c25b8
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x100c25b8
cmp dword [ebp - 0x14], 4
jne 0x100c25b8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.100dea63
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8
Function at 0x100c25d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.100df380
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x10123014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x810]
push 0x800
push 0xff
push ebx
call fcn.100e17d0
add esp, 0xc
mov dword [ebp - 0x1014], 1
mov dword [ebp - 0x1018], 0x800
lea eax, [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
push eax
push ebx
push ecx
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x100c26a6
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 2
je 0x100c2659
mov edi, 0x3f4
cmp eax, 1
jne 0x100c26a6
mov ecx, esi
push ebx
jmp 0x100c269f
lea edi, [ebp - 0x1010]
push 0x800
push 0xff
push edi
call fcn.100e17d0
add esp, 0xc
push 0x400
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x100c26a6
mov ecx, esi
lea eax, [ebp - 0x1010]
push eax
call fcn.10057cbe
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dea63
mov eax, edi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x100d1250
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x101390a0]
mov ecx, dword [0x10126eb8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100d127b
mov ecx, 0x10139098
pop ebp
jmp fcn.100694a0
push 0x101390a0
call fcn.100de107
add esp, 4
cmp dword [0x101390a0], 0xffffffff
jne 0x100d1270
mov dword [0x1013909c], 0
mov dword [0x10139098], 0
mov ecx, 0x10139098
push 0
call fcn.10069510
push 0x101390a0
call fcn.100de17d
add esp, 4
jmp 0x100d1270

Function at 0x100d2040
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x10123014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
jne 0x100d215d
mov dword [ebp - 0x14], 0x100d2200
lea eax, [ebp - 0x14]
push 0
push eax
push 0x100d2000
push 0x101390e8
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x100d2171
cmp dword [0x101390ec], 0
jne 0x100d215d
push dword [0x101390f0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100d215d
mov esi, eax
push 0x101390f4
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x101390f8]
mov ebx, dword [0x101390fc]
mov eax, dword [0x10139100]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x10139104]
mov dword [ebp - 0x20], eax
mov eax, dword [0x10139108]
mov dword [ebp - 0x24], eax
push 0x101390f4
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x100d20fb
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov ecx, edi
call dword [section..00cfg]
push dword [ebp - 0x18]
call edi
add esp, 4
test ebx, ebx
je 0x100d2110
mov edi, dword [esi + 4]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100d2126
mov edi, dword [esi + 8]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov ebx, dword [ebp - 0x24]
je 0x100d213f
mov edi, dword [esi + 0xc]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x100d2154
mov edi, dword [esi + 0x10]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
push esi
call fcn.100a1120
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dea63
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.100f18b0
int3
Function at 0x100d2180
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x10123014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x100d2200
lea eax, [ebp - 0x14]
push 0
push eax
push 0x100d2000
push 0x101390e8
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x100d21fa
xor esi, esi
cmp dword [0x101390ec], 0
jne 0x100d21e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x101390f0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x100d21e6
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dea63
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.100f18b0
int3

Function at 0x100d2220
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x10123014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x100d2200
lea eax, [ebp - 0x14]
push 0
push eax
push 0x100d2000
push 0x101390e8
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x100d2318
mov esi, dword [ebp + 0x10]
cmp dword [0x101390ec], 0
je 0x100d2278
mov ecx, esi
call dword [section..00cfg]
push dword [ebp + 0xc]
call esi
add esp, 4
xor esi, esi
jmp 0x100d22c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x101390f0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x100d22d8
mov ebx, dword [ebp + 8]
push 0x101390f4
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [ebx*4 + 0x101390f8], esi
push 0x101390f4
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp + 0xc]
mov dword [edi + ebx*4], eax
mov esi, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dea63
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x14
call fcn.100a10e0
add esp, 4
test eax, eax
je 0x100d2264
mov edi, eax
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
push eax
push dword [0x101390f0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100d2299
push edi
call fcn.100a1120
add esp, 4
jmp 0x100d2264
call fcn.100f18b0
int3
Function at 0x100d9db0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, ecx
xor eax, eax
xor ecx, ecx
cpuid
test eax, eax
jle 0x100d9ebb
mov esi, eax
mov dword [ebp - 0x14], edi
mov eax, 1
xor ecx, ecx
cpuid
mov edi, eax
mov dword [ebp - 0x10], ecx
mov ecx, 0
cmp esi, 7
mov ebx, 0
jb 0x100d9e01
mov eax, 7
xor ecx, ecx
mov esi, edx
cpuid
mov edx, esi
and ebx, 0x20
shr cl, 3
and cl, 1
mov esi, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edi
mov eax, edi
and eax, 0xf
mov dword [ecx + 8], eax
shr edi, 0xc
and edi, 3
mov dword [ecx + 4], edi
mov edi, ecx
mov eax, edx
shr eax, 0x17
and al, 1
mov byte [ecx + 0xc], al
mov eax, edx
shr eax, 0x19
and al, 1
mov byte [ecx + 0xd], al
shr edx, 0x1a
and dl, 1
mov byte [ecx + 0xe], dl
mov ecx, dword [ebp - 0x10]
mov eax, ecx
and al, 1
mov byte [edi + 0xf], al
mov eax, ecx
shr eax, 9
and al, 1
mov byte [edi + 0x10], al
mov eax, ecx
shr eax, 0x13
and al, 1
mov byte [edi + 0x11], al
mov eax, ecx
shr eax, 0x14
and al, 1
mov byte [edi + 0x12], al
mov eax, ecx
shr eax, 0x17
and al, 1
mov byte [edi + 0x13], al
mov eax, ecx
shr eax, 0x1f
mov byte [edi + 0x1a], al
mov eax, ecx
not eax
test eax, 0x1c000000
jne 0x100d9e8b
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
jmp 0x100d9e8d
xor eax, eax
mov byte [edi + 0x14], al
mov edx, dword [ebp - 0x10]
mov ecx, edx
shr ecx, 0x19
and cl, 1
mov byte [edi + 0x17], cl
shr edx, 0xc
and dl, 1
mov byte [edi + 0x15], dl
test al, al
setne al
test ebx, ebx
setne cl
and cl, al
mov byte [edi + 0x16], cl
mov eax, esi
mov byte [edi + 0x18], al
mov eax, 0x80000000
xor ecx, ecx
cpuid
cmp eax, 0x80000006
jle 0x100d9ee0
mov eax, 0x80000007
xor ecx, ecx
cpuid
and dh, 1
mov byte [edi + 0x19], dh
test dh, dh
jne 0x100d9f12
jmp 0x100d9ee7
mov dh, byte [edi + 0x19]
test dh, dh
jne 0x100d9f12
cmp byte [edi + 0x1a], 0
je 0x100d9f12
mov eax, 0x40000000
xor ecx, ecx
cpuid
cmp ebx, 0x7263694d
jne 0x100d9f12
cmp ecx, 0x666f736f
jne 0x100d9f12
cmp edx, 0x76482074
jne 0x100d9f12
mov byte [edi + 0x19], 1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100da580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x10123014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x100da5fc
mov eax, dword [ebp + 8]
cmp dword [0x10139150], eax
jg 0x100da5fc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
mov dword [ebp - 0x1c], esi
add esi, ebx
nop dword [eax]
cmp ebx, esi
jae 0x100da5eb
mov dword [ebp - 0x18], 0
mov eax, esi
sub eax, ebx
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100da5eb
mov eax, dword [ebp - 0x18]
add ebx, eax
test eax, eax
jne 0x100da5c0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
mov eax, dword [ebp + 0xc]
je 0x100da5fc
cmp byte [ecx + eax - 1], 0xa
jne 0x100da614
cmp dword [ebp + 8], 3
je 0x100da661
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dea63
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0x10112f80
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
lea ebx, [ebp - 0x14]
nop word cs:[eax + eax]
cmp edi, 0x10112f81
jae 0x100da5fc
mov dword [ebp - 0x14], 0
mov eax, 0x10112f81
sub eax, edi
push 0
push ebx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100da5fc
mov eax, dword [ebp - 0x14]
add edi, eax
test eax, eax
jne 0x100da630
jmp 0x100da5fc
int3

Function at 0x100dad30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x100dad68
mov edx, dword [ebp + 0xc]
xor esi, esi
nop word cs:[eax + eax]
movzx edi, al
movzx ebx, byte [edx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x1011c69c]
inc esi
cmp ecx, esi
jne 0x100dad50
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100dc370
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x101391e8]
mov ecx, dword [0x10126eb8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100dc3e3
mov ecx, 0x101391e0
call fcn.100694a0
test eax, eax
jne 0x100dc3d6
push 4
call fcn.100de068
add esp, 4
mov edi, eax
mov dword [eax], 0
mov ecx, 0x101391e0
call fcn.100694a0
mov esi, eax
mov ecx, 0x101391e0
push edi
call fcn.100694d0
test esi, esi
je 0x100dc3d6
push esi
call fcn.100de098
add esp, 4
mov ecx, 0x101391e0
pop esi
pop edi
pop ebp
jmp fcn.100694a0
push 0x101391e8
call fcn.100de107
add esp, 4
cmp dword [0x101391e8], 0xffffffff
jne 0x100dc392
mov dword [0x101391e4], 0
mov dword [0x101391e0], 0
mov ecx, 0x101391e0
push 0x1001be60
call fcn.10069510
push 0x101391e8
call fcn.100de17d
add esp, 4
jmp 0x100dc392
Function at 0x100f1470
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 + 0x10127780]
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 0x100f14b0
cmp byte [ebx], 0xa
jne 0x100f14b0
or byte [eax + edi + 0x28], 4
jmp 0x100f14b5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100f15b3
mov al, byte [edx]
cmp al, 0x1a
je 0x100f1595
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100f14e4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100f1509
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100f1513
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 0x100f14c6
jmp 0x100f15b3
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 0x100f1590
cmp dword [ebp - 0xc], 0
je 0x100f1590
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10127780]
test byte [eax + edi + 0x28], 0x48
je 0x100f156a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100f1555
mov byte [esi], dl
jmp 0x100f1566
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10127780]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100f15b3
cmp byte [ebp - 1], 0xa
jne 0x100f1579
cmp esi, ebx
jne 0x100f1579
mov byte [esi], 0xa
jmp 0x100f15b2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100fbb10
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100f15b3
mov byte [esi], 0xd
jmp 0x100f15b2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10127780]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100f15af
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100f15b3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100f15bc
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 + 0x10127780]
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 0x100f15ff
cmp word [esi], dx
jne 0x100f15ff
or byte [edi + eax + 0x28], 4
jmp 0x100f1604
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 0x100f173d
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 0x100f171d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100f1646
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100f167c
cmp eax, edx
jae 0x100f1688
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 0x100f161e
jmp 0x100f173d
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 0x100f1719
cmp dword [ebp - 0x14], 0
je 0x100f1719
mov eax, dword [ebx*4 + 0x10127780]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100f16f1
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x100f1737
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10127780]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x10127780]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10127780]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x100f173a
pop ebx
cmp word [ebp - 4], bx
jne 0x100f1702
cmp esi, dword [ebp + 0xc]
jne 0x100f1702
mov word [esi], bx
jmp 0x100f173a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100fbb10
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100f173d
push 0xd
jmp 0x100f1736
mov ecx, dword [ebx*4 + 0x10127780]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100f1734
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100f173d
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 0x100f92f6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1010b5d8
push 0x1010b5d0
push 0x1010b5d8
push 0x1e
call fcn.100f9852
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100f932a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x100f9330
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100f9374
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1010b5fc
push 0x1010b5f4
push 0x1010b5fc
push 0x20
call fcn.100f9852
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100f93ab
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 0x100ff511
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 0x100ff5ae
push ebx
push esi
call fcn.100ff5ff
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.100ff45a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100ff55b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100ff5ad
push edi
push eax
call fcn.1006d800
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100ff57b
call fcn.1006d850
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100ff5ac
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100ff45a
add esp, 0x20
test eax, eax
jne 0x100ff59a
push edi
call fcn.1006d850
jmp 0x100ff5a2
push ebx
call fcn.1006d850
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 0x100ff5b1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100ff5c2
pop esi
ret
push ebx
push edi
push esi
call fcn.100ff5ff
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1006d800
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100ff5ea
push ebx
push esi
push edi
call fcn.100e1250
add esp, 0xc
push 0
call fcn.1006d850
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100ff641
Capabilities:
Set environment variable

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

Function at 0x10101fd0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10101fdb
Function at 0x7b68e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x29e000]
push edi
jmp 0x7b68fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7b6901
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b68f0
mov eax, 1
add ebx, ebx
jne 0x7b6913
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7b6924
jne 0x7b6943
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b6943
dec eax
add ebx, ebx
jne 0x7b6930
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7b6908
add ebx, ebx
jne 0x7b693f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7b6995
xor ecx, ecx
sub eax, 3
jb 0x7b695b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7b69ca
sar eax, 1
mov ebp, eax
jmp 0x7b6966
add ebx, ebx
jne 0x7b6966
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b6934
inc ecx
add ebx, ebx
jne 0x7b6974
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b6934
add ebx, ebx
jne 0x7b6981
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7b6976
jne 0x7b6992
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7b6976
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7b69b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7b69a6
jmp 0x7b68f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7b69b4
add edi, ecx
jmp 0x7b68f6
pop esi
mov edi, esi
mov ecx, 0x85df
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7b69d2
cmp byte [edi], 0x1a
jne 0x7b69d2
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 0x7b69d7
lea edi, [esi + 0x3b2000]
mov eax, dword [edi]
or eax, eax
je 0x7b6a4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3c8074]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3c81a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7b6a04
mov ecx, edi
jns 0x7b6a33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3c81a4]
or eax, eax
je 0x7b6a49
mov dword [ebx], eax
add ebx, 4
jmp 0x7b6a21
call dword [esi + 0x3c81b4]
mov ebp, dword [esi + 0x3c81a8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0x7b6a83
sub esp, 0xffffff80
jmp section.UPX0