joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41727d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00410ac1
and dword [ebp - 4], 0
cmp dword [0x423e04], 0
mov ebx, eax
jne 0x41732e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4173df
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41e944
push edi
call esi
test eax, eax
je 0x4173df
push eax
call fcn.00410a4f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e04], eax
call esi
push eax
call fcn.00410a4f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e08], eax
call esi
push eax
call fcn.00410a4f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e0c], eax
call esi
push eax
call fcn.00410a4f
pop ecx
mov dword [0x423e14], eax
test eax, eax
je 0x41732e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410a4f
pop ecx
mov dword [0x423e10], eax
mov eax, dword [0x423e10]
cmp eax, ebx
je 0x417386
cmp dword [0x423e14], ebx
je 0x417386
push eax
call fcn.00410aca
push dword [0x423e14]
mov esi, eax
call fcn.00410aca
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x417386
test edi, edi
je 0x417386
call esi
test eax, eax
je 0x41737d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41737d
test byte [ebp - 0xc], 1
jne 0x417386
or dword [ebp + 0x10], 0x200000
jmp 0x4173bf
mov eax, dword [0x423e08]
cmp eax, ebx
je 0x4173bf
push eax
call fcn.00410aca
pop ecx
test eax, eax
je 0x4173bf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4173bf
mov eax, dword [0x423e0c]
cmp eax, ebx
je 0x4173bf
push eax
call fcn.00410aca
pop ecx
test eax, eax
je 0x4173bf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e04]
call fcn.00410aca
pop ecx
test eax, eax
je 0x4173df
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4173e1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x532c23c3
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x352d4438
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10d36058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10d361a8
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 0x10d3607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10d3606a
add dl, dl
jne 0x10d36089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10d360dc
xor eax, eax
add dl, dl
jne 0x10d36096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10d3617d
add dl, dl
jne 0x10d360a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10d360b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10d360bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10d360c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10d360d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10d36075
mov eax, 1
add dl, dl
jne 0x10d360ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10d360f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10d360e1
sub eax, ebx
mov ebx, 1
jne 0x10d36128
mov ecx, 1
add dl, dl
jne 0x10d3610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10d36119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10d36105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10d36075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10d3613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10d3614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10d36136
cmp eax, 0x7d00
jae 0x10d3616d
cmp eax, 0x500
jb 0x10d36168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10d36075
cmp eax, 0x7f
ja 0x10d36170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10d36075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10d3619e
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 0x10d36075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x37046a04
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x414e6f3e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10012d98
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x10024cf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 4], 1
je 0x10024d04
cmp dword [ebp - 4], 2
je 0x10024d04
push 0xd
pop eax
jmp 0x10012dd0
mov ecx, dword [ebp - 8]
test esi, esi
je 0x10024d26
test ecx, ecx
je 0x10024d21
test cl, 1
jne 0x10024cfc
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x10024d26
jmp 0x10024cfc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
jmp 0x10012dd0

Function at 0x100135f8
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10064318]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x21c], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [ebp - 0x210]
call fcn.1001373f
push 0x10007e0c
mov edx, esi
lea ecx, [ebp - 0x210]
call fcn.1001376f
lea eax, [ebp - 0x210]
push eax
push edi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov esi, eax
mov dword [ebp - 0x214], esi
test esi, esi
je 0x10024dbd
lea edx, [ebp - 0x218]
mov dword [ebp - 0x218], edi
mov ecx, esi
call fcn.100136bf
mov ebx, eax
test ebx, ebx
js 0x10024de2
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x218]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x100136aa
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x10024dfe
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f1e0
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x10013697
mov ecx, dword [ebp + 4]
mov edx, 0xc8
push 0x10008c58
call fcn.1003148a
mov edi, eax
jmp 0x10024df3
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xce
call fcn.100314a3
mov edi, ebx
mov esi, dword [ebp - 0x214]
jmp 0x10013697
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x879
call fcn.10032270
int3
Function at 0x100138a4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x10007e14
push 0x80000002
mov dword [ebp - 8], ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001390c
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10007e48
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x1001390c
cmp dword [ebp - 8], ebx
setne bl
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10013b30
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x10064318]
xor eax, esp
mov dword [esp + 0x30], eax
cmp dword [0x10064ce0], 2
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
jne case.0x10013be0.6
cmp byte [0x10065460], 0
jne 0x10013bfe
mov eax, dword [0x10064ac0]
test eax, eax
je 0x10013be7
cmp dword [eax + 0x2c], 0
je 0x10013bfe
mov cl, 1
cmp byte [0x10065461], 0
mov esi, dword [ebp + 0xc]
jne 0x10024ef1
test cl, cl
je 0x10013b9d
push 0
push dword [ebp + 0x18]
mov edx, edi
xor cl, cl
push dword [ebp + 0x14]
push esi
call fcn.10013c20
mov eax, dword [0x100645a4]
cmp eax, 0xffffffff
je case.0x10013be0.6
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test eax, eax
jne 0x10013bc6
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001f1e0
mov esp, ebp
pop ebp
ret 0x1c
mov ebx, dword [eax]
test ebx, ebx
je case.0x10013be0.6
cmp esi, 0x13
ja case.0x10013be0.6
lea eax, [esi - 5]
cmp eax, 0xe
ja case.0x10013be0.6
movzx eax, byte [eax + 0x10013c10]
jmp dword [eax*4 + 0x10013c08]
mov ecx, 0x10064abc
call fcn.10014830
mov eax, dword [0x10064ac0]
test eax, eax
jne 0x10013b6b
xor cl, cl
jmp 0x10013b77
mov eax, dword [ebp + 0x1c]
cmp eax, dword [0x10065474]
je 0x10013b9d
jmp 0x10013b87
xor eax, eax
lea edi, [ebx + 0xc0]
push 0x30
mov ecx, 8
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0xc], 0x30
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
cmp dword [ebx + 0x5c], 0
je case.0x10013be0.6
cmp dword [esp + 0x1c], 0
je 0x10024f53
cmp esi, 0x13
je case.0x10013be0.6
push 0
push 1
push 0
mov ecx, ebx
call fcn.100189e2
jmp case.0x10013be0.6
Function at 0x10014baf
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
lea eax, [ebp - 8]
push eax
push 0x10064f30
push 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [0x10064d20], esi
mov dword [0x10064d1c], esi
mov dword [0x10064d18], esi
mov dword [0x10064d14], esi
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoSizeExW]
mov ebx, eax
test ebx, ebx
je 0x10014c7d
push edi
push ebx
call fcn.1001ec41
mov edi, eax
pop ecx
test edi, edi
je 0x10025dca
push ebx
push esi
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push ebx
push esi
push 0x10064f30
push 3
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoExW]
test eax, eax
je 0x10014c82
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x10008180
push edi
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x10014c67
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + 0xa]
mov dword [0x10064d20], eax
movzx eax, word [ecx + 8]
mov dword [0x10064d1c], eax
movzx eax, word [ecx + 0xe]
mov dword [0x10064d18], eax
movzx eax, word [ecx + 0xc]
mov dword [0x10064d14], eax
test edi, edi
je 0x10014c72
push edi
call fcn.1001ec6a
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor esi, esi
inc esi
jmp 0x10014c73
mov esi, 0x80004005
jmp 0x10014c67
mov esi, 0x8007000e
jmp 0x10014c72
Function at 0x1001af57
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10064318]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1006536c]
push ebx
xor ebx, ebx
push esi
inc ebx
push edi
mov edi, ecx
cmp eax, ebx
jne 0x1002474b
mov eax, dword [0x10064c58]
xor esi, esi
cmp dword [eax], esi
jne 0x1001af9c
mov dword [edi], esi
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f1e0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov ecx, dword [0x10064c58]
cmp dword [ecx], eax
jne 0x1001af87
mov esi, ebx
jmp 0x1001af87
cmp dword [0x10065370], ebx
je 0x1002476f
push ebx
jmp 0x10024762
mov dword [0x1006536c], 2
push 0x32
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x1001af8b
mov esi, dword [0x10065388]
test esi, esi
jne 0x100247a8
test eax, eax
jne 0x10024760
cmp dword [0x10065378], 5
jb 0x10024756
mov eax, dword fs:[0x30]
mov ecx, 0x1006536c
mov eax, dword [eax + 0xa0]
add eax, 0xc
mov dword [0x10064c58], eax
mov eax, ebx
xchg dword [ecx], eax
jmp 0x1001af7c
push edi
mov ecx, esi
call dword [0x10066528]
call esi
jmp 0x1001af8b
Function at 0x1001c556
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
push edi
xor ebx, ebx
mov dword [ebp - 4], esi
push 0xc
mov ecx, dword [esi + 0x14]
mov edi, ebx
mov eax, dword [esi + 0x18]
mov edx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
movzx eax, word [ecx + 4]
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jne 0x1001c5bb
mov esi, ebx
test edi, edi
jne 0x100282f6
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
movzx edi, word [edi + 6]
mov eax, dword [eax + 0x1c]
test edi, edi
jne 0x100283d1
pop edi
mov eax, esi
mov dword [ecx + 0x10], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x18]
jmp 0x100282cc
mov esi, dword [ebp + 8]
cmp dword [eax], esi
mov esi, dword [ebp - 4]
jne 0x1002835f
cmp dword [ebp + 0xc], ebx
je 0x1002834a
cmp dword [esi + 0x20], ebx
je 0x1002834a
test byte [eax + 4], 1
jne 0x1002835f
imul esi, edx, 0xc
lea edi, [ebp - 0x20]
add esi, dword [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0xc], ebx
je 0x10028303
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], ebx
jne 0x10028306
push 8
pop ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax]
test al, 4
je 0x1002831c
and edx, 0xffffcfff
mov dword [ebp - 0x1c], edx
test al, 2
je 0x10028329
and edx, 0xfffff3ff
mov dword [ebp - 0x1c], edx
test al, 1
je 0x10028336
and edx, 0xfffffcff
mov dword [ebp - 0x1c], edx
test al, 8
je 0x10028370
and edx, 0xc0ffffff
mov edi, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edi
jmp 0x10028373
mov esi, eax
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
inc edi
test byte [eax + 4], 1
jne 0x1001c589
inc edx
add eax, ecx
cmp edx, dword [ebp - 0x10]
jb 0x100282cc
jmp 0x1001c589
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
mov esi, ebx
call fcn.1003296b
mov ecx, dword [ebp - 8]
test eax, eax
je 0x1001c596
mov eax, edx
mov dword [ecx + 0xc], edi
shr eax, 0x1e
mov dword [ecx + 8], eax
mov eax, edx
shr eax, 0x18
and al, 0x3f
mov byte [ecx + 4], al
mov eax, edx
shr eax, 1
and eax, 1
mov dword [ecx + 0x14], eax
mov eax, edx
shr eax, 0xc
and eax, 3
jne 0x100283c7
mov eax, edx
shr eax, 0xa
and eax, 3
jne 0x100283c7
shr edx, 8
and edx, 3
je 0x100283c9
mov dword [ecx], edx
jmp 0x100283c9
mov dword [ecx], eax
xor esi, esi
inc esi
jmp 0x1001c596
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
mov ecx, dword [ebp - 8]
je 0x100283e8
inc edx
add eax, 0x10
cmp edx, edi
jb 0x100283d1
jmp 0x1001c5ad
xor ebx, ebx
inc ebx
jmp 0x1001c5ad
Function at 0x1001d810
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100645a4]
push ebx
mov bl, cl
cmp eax, 0xffffffff
je 0x1001d86c
push esi
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1001d835
test bl, bl
jne 0x1001d83b
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xc
call fcn.1001ec41
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x1001d873
push edi
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
push esi
push dword [0x100645a4]
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x1001d857

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

Disassembly:
mov eax, dword [0x100645a4]
cmp eax, 0xffffffff
je 0x1001d895
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test eax, eax
jne 0x1001d896
ret
push eax
call fcn.1001ec6a
add esp, 4
push 0
push dword [0x100645a4]
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
ret
Function at 0x1001e9d0
Capabilities:
Set global application hook

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [0x10065470], 0
jne 0x1001ea58
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
cmp byte [ebp + 0xc], 0
push 0
push dword [0x10064cf4]
mov dword [0x10065470], eax
je 0x1001ea10
push sym.tiptsf.dll_RestrictedModeMsgWndProc
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x1006545c], eax
xor eax, eax
inc eax
pop ebp
ret 8
push 0x1001aa40
push 0xa
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push 0
push dword [0x10064cf4]
mov dword [0x1006546c], eax
push 0x10016a80
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push 0
push dword [0x10064cf4]
mov dword [0x10065468], eax
push 0x10016ec0
push 4
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x10065464], eax
jmp 0x1001ea09
xor eax, eax
jmp 0x1001ea0c

Function at 0x1001f7b0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1001f7ee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1001f7e6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1001f7f0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1001f7d6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1001f8c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x1001f8d6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x1001f8f1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x10020adc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x10020b8b
call fcn.1001d6c0
mov ecx, dword [0x10064ce0]
cmp ecx, 2
je 0x10020b0a
xor eax, eax
cmp ecx, 1
sete al
jmp 0x10020c05
push 0x10064a20
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
push ecx
push ecx
call fcn.1001dd8a
call fcn.1001a689
sub esp, 0xc
call fcn.1001d100
mov eax, dword [ebp + 8]
push 0x10008cdc
mov dword [0x10064cf4], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0x10008b0c
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0x10008aa4
mov dword [0x10064cec], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0x10008ad4
mov dword [0x10064cf0], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0x10008d18
mov dword [0x10064ce8], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x10064ce4], eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
mov dword [0x100645a4], eax
mov cl, 1
jmp 0x10020b92
cmp eax, 2
jne 0x10020b99
xor cl, cl
call fcn.1001478b
jmp 0x10020c02
cmp eax, 3
jne 0x10020bb1
call fcn.1001d7e2
xor cl, cl
call fcn.10013a9f
call fcn.1001d880
jmp 0x10020c02
test eax, eax
jne 0x10020c02
mov ecx, dword [0x10064ce0]
cmp ecx, 2
jne 0x10020afd
mov cl, 1
call fcn.10013a9f
call fcn.1001d7e2
call fcn.1001d880
mov eax, dword [0x100645a4]
cmp eax, 0xffffffff
je 0x10020bed
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsFree]
or dword [0x100645a4], 0xffffffff
call fcn.1001ddb5
push 0x10064a20
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_DeleteCriticalSection]
call fcn.1001cf6c
xor eax, eax
inc eax
pop ebp
ret 0xc
Function at 0x1002a960
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10022d55
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x10064318]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x174]
mov dword [ebx], 0x100055d0
mov dword [ebx + 4], 0x100055ac
mov dword [ebx + 8], 0x10005588
mov dword [ebx + 0xc], 0x10005570
mov dword [ebx + 0x10], 0x10005558
mov dword [ebx + 0x14], 0x10005544
mov dword [ebx + 0x18], 0x10005530
mov dword [ebx + 0x1c], 0x10005520
mov dword [ebx + 0x20], 0x10005508
mov dword [ebx + 0x24], 0x100054f0
mov dword [ebx + 0x28], 0x100054dc
mov dword [ebx + 0x2c], 0x100054cc
mov dword [ebx + 0x30], 0x100054bc
mov dword [ebx + 0x34], 0x100054a0
mov dword [ebx + 0x38], 0x10005490
mov dword [ebx + 0x3c], 0x10005470
mov dword [ebx + 0x40], 0x10005460
mov dword [ebx + 0x44], 0x10005450
mov dword [ebx + 0x48], 0x1000543c
mov dword [ebx + 0x4c], 0x10005418
mov dword [ebx + 0x50], 0xc0000001
test eax, eax
je 0x1002aa37
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [ebx + 0x174], 0
push 0
mov ecx, ebx
call fcn.10037662
mov edi, dword [0x10064a00]
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10066528]
mov ecx, edi
call esi
mov ecx, ebx
call fcn.10035425
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001f1e0
mov esp, ebp
pop ebp
ret