joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10050740
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 0x100507dd
push ebx
push esi
call fcn.100507e0
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.10050644
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005078a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100507dc
push edi
push eax
call fcn.1004e272
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100507aa
call fcn.1004d74d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100507db
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10050644
add esp, 0x20
test eax, eax
jne 0x100507c9
push edi
call fcn.1004d74d
jmp 0x100507d1
push ebx
call fcn.1004d74d
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 0x401cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop ebp
ret

Function at 0x401cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x100012f0
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
lea eax, [ebp - 0x24]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, ecx
div dword [ebp - 8]
mov ebx, eax
imul ebx, dword [ebp - 8]
sub ecx, ebx
add ecx, 0x40
push ecx
push ebx
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 4], eax
test eax, eax
je 0x10001340
sub eax, ebx
add eax, dword [ebp + 0xc]
mov dword [edi], eax
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi], 0
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10001350
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
lea eax, [ebp - 0x24]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, ecx
div dword [ebp - 8]
mov ebx, eax
imul ebx, dword [ebp - 8]
sub ecx, ebx
add ecx, 0xf8
push ecx
push ebx
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 4], eax
test eax, eax
je 0x100013a3
sub eax, ebx
add eax, dword [ebp + 0xc]
mov dword [edi], eax
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi], 0
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100013d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ecx + 4]
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp dword [ecx + 0xc], edi
jle 0x1000148a
push ebx
push esi
lea ebx, [eax + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], esi
push eax
push 0x40
push 5
push esi
mov dword [ebp - 0x14], 0x40
mov dword [ebp - 0x10], 0
mov byte [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
setne cl
mov byte [ebp - 0xc], cl
test eax, eax
jne 0x1000143c
test cl, cl
jmp 0x10001453
cmp byte [esi], 0xe9
je 0x10001445
test cl, cl
jmp 0x10001453
mov eax, ebx
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
cmp byte [ebp - 0xc], 0
je 0x1000146f
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebp - 8]
inc edi
mov eax, dword [ebp - 4]
sub ebx, 0xffffff80
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp edi, dword [ecx + 0xc]
jl 0x100013f0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10001e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
push 0xf
push str.BlockedDllList
push esi
call edi
push esi
call fcn.100022a0
add esp, 4
lea eax, [ebp - 4]
push 0
push eax
push 1
push 0x10024a08
push esi
call edi
cmp byte [0x1002e97d], 0
je 0x10001e81
push 0
lea eax, [ebp - 4]
push eax
push 0x16
push str.BlocklistInitFailed1_n
push esi
call edi
cmp byte [0x1002e97e], 0
je 0x10001e9a
push 0
lea eax, [ebp - 4]
push eax
push 0x18
push str.User32BeforeBlocklist1_n
push esi
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002cc0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.mozglue.dll_adler32_z
Function at 0x100031b0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.mozglue.dll_crc32_z

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1000358c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.100032e0

Function at 0x100052d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x10
push ebx
push esi
push edx
call fcn.100054b0
add esp, 4
test eax, eax
jne 0x1000546f
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1000546f
mov esi, dword [edx + 0x1c]
mov eax, dword [esi + 0x18]
mov dword [ebp - 8], eax
cmp eax, 2
je 0x1000546f
cmp eax, 1
jne 0x10005318
cmp dword [esi + 4], 0x2a
jne 0x1000546f
cmp dword [esi + 0x74], 0
jne 0x1000546f
push edi
mov edi, dword [ebp + 0x10]
cmp eax, 1
jne 0x10005341
push edi
push ebx
push dword [edx + 0x30]
call sym.mozglue.dll_MOZ_Z_adler32
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x18], 0
cmp edi, dword [esi + 0x2c]
jb 0x10005395
test eax, eax
jne 0x1000538d
mov eax, dword [esi + 0x44]
xor edx, edx
mov ecx, dword [esi + 0x4c]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x16b4], 0
sub edi, dword [esi + 0x2c]
add ebx, edi
mov edi, dword [esi + 0x2c]
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov dword [eax + 4], edi
mov dword [eax], ebx
call fcn.10005560
mov ecx, dword [esi + 0x74]
add esp, 4
cmp ecx, 3
jb 0x10005427
nop dword [eax]
mov ebx, dword [esi + 0x6c]
add ecx, 0xfffffffe
mov dword [ebp - 4], ecx
nop dword [eax]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x34]
and edx, ebx
movzx edi, byte [eax + ebx + 2]
mov eax, dword [esi + 0x48]
shl eax, cl
mov ecx, dword [esi + 0x40]
xor edi, eax
and edi, dword [esi + 0x54]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], edi
mov ax, word [eax + edi*2]
mov word [ecx + edx*2], ax
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2], bx
inc ebx
sub dword [ebp - 4], 1
jne 0x100053d0
push esi
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x74], 2
call fcn.10005560
mov ecx, dword [esi + 0x74]
add esp, 4
cmp ecx, 3
jae 0x100053c0
add dword [esi + 0x6c], ecx
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x16b4], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 0x18], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x14]
mov edx, 0x40000000
push edi
mov edi, dword [ebp + 0x10]
mov dword [esi], 0
nop dword [eax]
mov eax, edi
sub eax, ecx
cmp eax, 0x40000000
cmova eax, edx
push eax
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
push dword [ebx + 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
test eax, eax
jle 0x10006ae4
mov ecx, dword [esi]
mov edx, 0x40000000
add ecx, eax
mov dword [esi], ecx
cmp ecx, edi
jb 0x10006ab0
test eax, eax
jns 0x10006b08
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
push eax
push 0xffffffffffffffff
push ebx
call fcn.10005f20
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
test eax, eax
jne 0x10006b13
mov dword [ebx + 0x40], 1
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x1000791e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + eax*8 + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx
and dword [ebp - 4], 0
jmp 0x10007971
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x100079b6
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x14], edx
push dword [ebp - 0x14]
invalid
invalid

Function at 0x100079bc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
je 0x10007a1c
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x30]
call fcn.100074c1
pop ecx
cmp dword [ebp + 8], eax
jne 0x10007a12
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
jmp 0x10007a1e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x100079eb
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000f240
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 9
jae 0x1000f2f9
cmp esi, 9
jae 0x1000f2c7
lea ecx, [edi - 1]
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
shr eax, 4
bsf edx, eax
je 0x1000f28e
inc edx
jmp 0x1000f290
xor edx, edx
lea ecx, [esi - 1]
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
shr eax, 4
bsf eax, eax
je 0x1000f2c1
inc eax
jmp 0x1000f2c3
xor eax, eax
cmp edx, eax
je 0x1000f345
push dword [0x1002e658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1000f2dc
call fcn.10010570
push 0
push edi
lfence
push eax
cmp edi, 0x800
ja 0x1000f392
call fcn.1000eda0
jmp 0x1000f397
cmp edi, 0x200
ja 0x1000f31b
lea eax, [esi - 9]
cmp eax, 0x1f7
ja 0x1000f2c7
lea ecx, [edi + 0xf]
lea eax, [esi + 0xf]
xor ecx, eax
test ecx, 0xfffffff0
jmp 0x1000f2c5
cmp edi, 0x800
ja 0x1000f364
lea eax, [esi - 0x201]
cmp eax, 0x5ff
ja 0x1000f2c7
push edi
call fcn.10012e80
push esi
mov edx, eax
call fcn.10012e80
add esp, 8
cmp edx, eax
jne 0x1000f2c7
cmp edi, esi
jae 0x1000f35d
sub esi, edi
lea eax, [ebx + edi]
push esi
push 0xe5
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
lea eax, [esi - 0x801]
cmp eax, 0xfe7ff
ja 0x1000f2c7
push esi
push edi
push ebx
lfence
call fcn.1000f3f0
add esp, 0xc
test eax, eax
jne 0x1000f2c7
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
call fcn.1000ed40
add esp, 0xc
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x1000f3a6
pop edi
pop esi
pop ebx
pop ebp
ret
cmp edi, esi
cmovb esi, edi
push esi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, ebx
add esp, 0xc
and eax, 0xfffff
je 0x1000f3d1
push eax
push ebx
call fcn.1000eac0
mov eax, dword [ebp + 0xc]
add esp, 8
pop edi
pop esi
pop ebx
pop ebp
ret
push ebx
call fcn.10011ba0
mov eax, dword [ebp + 0xc]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push dword [0x1002e658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je fcn.10010570
ret
Function at 0x10010570
Capabilities:
Set thread local storage value

Disassembly:
cmp dword [0x1002ea98], 1
push esi
jbe 0x100105d5
push 0x1002eaa0
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov ecx, dword [0x1002ea9c]
mov eax, dword [0x1002ea94]
mov esi, dword [eax + ecx*4]
test esi, esi
jne 0x100105a8
push ecx
call fcn.10010310
mov ecx, dword [0x1002ea9c]
add esp, 4
mov esi, eax
lea eax, [ecx + 1]
xor edx, edx
div dword [0x1002ea98]
push 0x1002eaa0
mov dword [0x1002ea9c], edx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push esi
push dword [0x1002e658]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret
mov eax, dword [0x1002ea94]
mov esi, dword [eax]
push esi
push dword [0x1002e658]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret

Function at 0x10011ea0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lfence
cmp esi, 0xff000
ja 0x10011eec
push dword [0x1002e658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x10011ec7
call fcn.10010570
push 0
push esi
lfence
push eax
cmp esi, 0x800
ja 0x10011ee1
call fcn.1000eda0
add esp, 0xc
pop esi
pop ebp
ret
call fcn.1000ed40
add esp, 0xc
pop esi
pop ebp
ret
push 0
push esi
call fcn.10011c30
add esp, 8
pop esi
pop ebp
ret

Function at 0x10011f60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
imul esi, edi
test esi, esi
jne 0x10011f7b
mov esi, 1
jmp 0x10011fac
mov eax, ecx
or eax, edi
test eax, 0xffff0000
je 0x10011fa4
xor edx, edx
mov eax, esi
div edi
cmp eax, ecx
je 0x10011fa4
xor esi, esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
pop edi
mov dword [eax], 0xc
mov eax, esi
pop esi
pop ebp
ret
cmp esi, 0xff000
ja 0x10011fe4
push dword [0x1002e658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x10011fc1
call fcn.10010570
push 1
push esi
lfence
push eax
cmp esi, 0x800
ja 0x10011fda
call fcn.1000eda0
add esp, 0xc
jmp 0x10011ff2
call fcn.1000ed40
add esp, 0xc
jmp 0x10011ff2
push 1
push esi
lfence
call fcn.10011c30
add esp, 8
mov esi, eax
test esi, esi
jne 0x10012004
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xc
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10012220
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, 1
mov ecx, dword [ebp + 8]
test eax, eax
push esi
cmovne edx, eax
mov eax, 4
cmp ecx, eax
cmovb ecx, eax
mov eax, ecx
neg eax
lea esi, [ecx - 1]
add esi, edx
and esi, eax
cmp esi, edx
jae 0x10012252
xor eax, eax
pop esi
pop ebp
ret
cmp esi, 0x1000
jbe 0x100122ea
cmp ecx, 0x1000
ja 0x1001226e
cmp esi, 0xff000
jbe 0x100122ea
add ecx, 0xfff
lea eax, [edx + 0xfff]
and eax, 0xfffff000
and ecx, 0xfffff000
cmp eax, edx
jb 0x1001224d
lea edx, [eax + ecx]
cmp edx, eax
jb 0x1001224d
cmp eax, ecx
jb 0x1001229c
add edx, 0xfffff000
jmp 0x100122a3
lea edx, [ecx*2 - 0x1000]
lfence
cmp edx, 0xff000
ja 0x100122c2
push edx
push eax
push ecx
call fcn.10010550
push eax
call fcn.1000f010
add esp, 0x10
pop esi
pop ebp
ret
cmp ecx, 0x100000
ja 0x100122db
pop esi
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], eax
pop ebp
jmp fcn.10011c30
push 0
push ecx
push eax
call fcn.10011c50
add esp, 0xc
pop esi
pop ebp
ret
push dword [0x1002e658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x100122ff
call fcn.10010570
push 0
push esi
lfence
push eax
cmp esi, 0x800
ja 0x10012319
call fcn.1000eda0
add esp, 0xc
pop esi
pop ebp
ret
call fcn.1000ed40
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x10012f20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [0x1002ead8]
test al, al
jne 0x10013011
cmp dword [0x1002eadc], 0
jne 0x10012fc5
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x1002eae0], eax
test eax, eax
jne 0x10012f68
push str.CreateEvent
call fcn.10013550
add esp, 4
xor al, al
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x10013870
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [0x1002eadc], ecx
test ecx, ecx
jne 0x10012fb6
push str.CreateThread
call fcn.10013550
add esp, 4
push dword [0x1002eae0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1002eae0], 0
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push ecx
mov dword [0x1002eab4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
push dword [0x1002eae0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10012f62
push dword [0x1002eae0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1002eab8
mov dword [0x1002eadc], 0
mov dword [0x1002eae0], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x1002ead8], 1
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x10014100
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
or esi, 0xffffffff
mov ebx, 0xa
or edi, 0xffffffff
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
mov edx, 0x3e8
sub ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sbb eax, dword [ebp - 0x14]
mul edx
mov dword [ebp - 8], eax
mov eax, ecx
mov ecx, 0x3e8
mul ecx
mov ecx, dword [ebp - 8]
add ecx, edx
cmp ecx, edi
ja 0x1001415a
jb 0x10014156
cmp eax, esi
jae 0x1001415a
mov esi, eax
mov edi, ecx
sub ebx, 1
je 0x10014167
mov eax, esi
or eax, edi
jne 0x10014114
jmp 0x1001416f
test esi, esi
jne 0x10014176
test edi, edi
jne 0x10014176
mov esi, 1
xor edi, edi
push dword [0x1002eb3c]
mov ebx, 0xf4240
mov eax, edi
push dword [0x1002eb38]
mul ebx
mov ecx, eax
mov eax, esi
mul ebx
add ecx, edx
push ecx
push eax
call fcn.100221a0
mov ebx, eax
mov dword [ebp - 8], edx
test ebx, ebx
jne 0x100141af
test edx, edx
jne 0x100141af
mov ebx, 1
mov dword [ebp - 8], edx
mov edi, 1
mov dword [0x1002eaf0], ebx
xor esi, esi
mov dword [0x1002eaf4], edx
cmp edi, ebx
jne 0x100141d0
cmp esi, edx
je 0x1001420b
nop word [eax + eax]
mov eax, edi
mov dword [ebp - 4], esi
mov ecx, esi
mov edx, edi
shld ecx, eax, 2
shl eax, 2
add edx, eax
mov eax, esi
adc eax, ecx
shld eax, edx, 1
mov dword [ebp - 4], eax
add edx, edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, eax
ja 0x1001420b
jb 0x100141ff
cmp edx, ebx
ja 0x1001420b
mov edi, edx
mov esi, ecx
cmp edi, ebx
jne 0x100141d0
cmp esi, eax
jne 0x100141d0
mov dword [0x1002eaf8], edi
pop edi
mov dword [0x1002eafc], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001df00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
push ebx
push esi
mov ebx, edx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
and ebx, 0xfffffffc
jbe 0x1001df2f
push 4
push dword [esi + edi]
push eax
call fcn.1001a950
add esi, 4
add esp, 0xc
cmp esi, ebx
jb 0x1001df17
mov edx, dword [ebp + 0xc]
cmp esi, edx
jae 0x1001df47
movsx ecx, byte [esi + edi]
inc esi
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
cmp esi, edx
jb 0x1001df33
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1001e7a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
cmp ecx, edx
jb 0x1001e7c8
mov eax, dword [ebp + 0xc]
add eax, ecx
cmp eax, edx
setae al
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x401b90
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x401ba1
lcall 0x5de5, 0x8b10c483
jmp loc.0077d9c4

Function at 0x401ba1
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x401ba1
lcall 0x5de5, 0x8b10c483
jmp loc.0077d9c4
Function at 0x401484
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.0044a220
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4014c9
push ebx
call fcn.004481d8
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4014f4
push 6
call fcn.004481de
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x401510
push eax
mov ebx, eax
call fcn.00401041
inc eax
push eax
call fcn.004481d2
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x401515
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401526
push ebx
call fcn.004481d8
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x402aa9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.0044a220
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402aee
push ebx
call fcn.004481d8
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x100
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x402b1c
push 6
call fcn.004481de
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x402b38
push eax
mov ebx, eax
call fcn.00401041
inc eax
push eax
call fcn.004481d2
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x402b3d
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402b4e
push ebx
call fcn.004481d8
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4