joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d110
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47abab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebp
push esi
push edi
mov esi, ecx
push str.rfb::win32::ScreenBlankerWindow
mov dword [esp + 0x10], esi
call fcn.00411440
mov dword [esi], 0x4871c0
mov eax, dword [0x4a7214]
test eax, eax
mov dword [esp + 0x224], 0
jne 0x41d19e
push str.Screen_blanking_configured_but_not_available
lea eax, [esp + 0x14]
push 0x100
push eax
mov byte [esp + 0x1c], 0
call fcn.0044c260
add esp, 0xc
mov ecx, 0x40
lea esi, [esp + 0x10]
lea edi, [esp + 0x114]
rep movsd dword es:[edi], dword [esi]
push 0x498d60
lea ecx, [esp + 0x118]
push ecx
call fcn.00459658
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xffffffffffffffec
push edx
call edi
mov ebp, dword [sym.imp.USER32.dll_SetWindowLongA]
or eax, 0x80020
push eax
mov eax, dword [esi + 8]
push 0xffffffffffffffec
push eax
call ebp
test eax, eax
je 0x41d24a
mov ecx, dword [esi + 8]
push 2
push 0xff
push 0
push ecx
call dword [0x4a7214]
test eax, eax
je 0x41d24a
mov edx, dword [esi + 8]
push 0xfffffffffffffff0
push edx
call edi
and eax, 0xfff0ffff
or eax, 0x80c00000
push eax
mov eax, dword [esi + 8]
push 0xfffffffffffffff0
push eax
call ebp
test eax, eax
je 0x41d24a
mov ecx, esi
call fcn.0041cfe0
mov ecx, dword [esi + 8]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push str.Screen_blanking_active
push 0x4a7204
call fcn.00402eb0
mov edx, dword [esi + 8]
add esp, 8
push 0
push 0x64
push 0
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0x21c]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Screen_blanking_failed:__d
lea ecx, [esp + 0x18]
call fcn.0044ba90
mov esi, eax
push 0x49859c
lea eax, [esp + 0x118]
mov ecx, 0x41
lea edi, [esp + 0x118]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
int3

Function at 0x41d2a0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0x404
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
push 0x100
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], eax
jle 0x41d306
mov esi, dword [esp + 0x418]
mov ebx, dword [sym.imp.USER32.dll_VkKeyScanExW]
mov ebp, dword [sym.imp.USER32.dll_VkKeyScanExA]
mov ecx, dword [esp + edi*4 + 0x14]
push ecx
push esi
call ebx
test ax, ax
jne 0x41d2f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41d313
mov edx, dword [esp + edi*4 + 0x14]
push edx
push esi
call ebp
cmp ax, 0xffff
jne 0x41d313
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x41d2d7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret
mov eax, dword [esp + edi*4 + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
Function at 0x41d3b0
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
movzx esi, bl
push edi
push esi
push str.vkCode_0x_x_flags_0x_x
push 0x4a723c
call fcn.00402ee0
add esp, 0x10
push 0
push edi
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push ebx
call dword [sym.imp.USER32.dll_keybd_event]
pop edi
pop esi
pop ebx
ret

Function at 0x41d3f0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, ah
js 0x41d441
mov al, byte [esi]
push ebx
push edi
mov edi, dword [esi + 4]
movzx ebx, al
push edi
push ebx
push str.vkCode_0x_x_flags_0x_x
push 0x4a723c
mov byte [esp + 0x1c], al
call fcn.00402ee0
add esp, 0x10
push 0
push edi
push 0
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
pop ecx
ret

Function at 0x41d450
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ecx
push edi
mov edi, ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, ah
jns 0x41d4a4
mov al, byte [edi]
push ebx
push esi
mov esi, dword [edi + 4]
movzx ebx, al
or esi, 2
push esi
push ebx
push str.vkCode_0x_x_flags_0x_x
push 0x4a723c
mov byte [esp + 0x1c], al
call fcn.00402ee0
add esp, 0x10
push 0
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
pop esi
mov byte [edi + 9], 1
pop ebx
pop edi
pop ecx
ret

Function at 0x41d4b0
Capabilities:
Log keystrokes

Disassembly:
push ecx
mov al, byte [ecx + 8]
test al, al
je 0x41d4f9
push esi
mov esi, dword [ecx + 4]
mov cl, byte [ecx]
push edi
movzx edi, cl
or esi, 2
push esi
push edi
push str.vkCode_0x_x_flags_0x_x
push 0x4a723c
mov byte [esp + 0x18], cl
call fcn.00402ee0
add esp, 0x10
push 0
push esi
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_keybd_event]
pop edi
pop esi
pop ecx
ret
mov al, byte [ecx + 9]
test al, al
je 0x41d511
mov edx, dword [ecx + 4]
xor eax, eax
mov al, byte [ecx]
push edx
push eax
call fcn.0041d3b0
add esp, 8
pop ecx
ret
Function at 0x41d520
Capabilities:
Access peb ldr_data
Log keystrokes

Disassembly:
push 0xffffffffffffffff
push 0x47abd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x24], 0x11
mov dword [esp + 0x28], ebx
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bl
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], 0x12
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x10], ebx
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bl
cmp byte [esp + 0x48], bl
mov byte [esp + 0x38], 2
je 0x41d5bf
test byte [esp + 0x44], 2
je 0x41d598
lea ecx, [esp + 0x24]
call fcn.0041d3f0
test byte [esp + 0x44], 4
je 0x41d5a8
lea ecx, [esp + 0x18]
call fcn.0041d3f0
test byte [esp + 0x44], 1
lea ecx, [esp + 0xc]
je 0x41d5ba
call fcn.0041d3f0
jmp 0x41d5bf
call fcn.0041d450
mov cl, byte [esp + 0x48]
movzx edi, byte [esp + 0x40]
xor eax, eax
cmp cl, bl
setne al
dec eax
and eax, 2
mov esi, eax
push esi
push edi
push str.vkCode_0x_x_flags_0x_x
push 0x4a723c
call fcn.00402ee0
add esp, 0x10
push ebx
push esi
push ebx
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.0041d4b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], bl
call fcn.0041d4b0
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.0041d4b0
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x41ddc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0x28], ebx
push edi
je 0x41df06
push ebx
push str.getting_dead_keys__layout_lx
push 0x4a723c
mov dword [esi + 0x28], ebx
call fcn.00402ee0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x24]
add esi, 0x18
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
xor edi, edi
add esp, 0xc
cmp eax, edi
je 0x41de15
push eax
call fcn.0045903e
add esp, 4
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov al, byte [edi + 0x4a4848]
lea edi, [edi + 0x4a4848]
push ebx
push eax
call dword [sym.imp.USER32.dll_VkKeyScanExA]
cmp ax, 0xffff
je 0x41def4
mov ecx, eax
shr ecx, 8
mov dl, cl
shl dl, 7
mov byte [esp + 0x28], dl
mov dl, cl
and cl, 0xfc
push ebx
and dl, 0xfe
shl cl, 5
push 0
shl dl, 6
mov byte [esp + 0x32], cl
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x35], dl
lea edx, [esp + 0x24]
movzx eax, al
push edx
push 0
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_ToAsciiEx]
test eax, eax
jge 0x41def4
movzx eax, byte [edi]
push eax
push eax
push str.Found_dead_key_0x_x__c
push 0x4a723c
call fcn.00402ee0
mov eax, dword [esi + 4]
add esp, 0x10
test eax, eax
jne 0x41dead
xor edx, edx
jmp 0x41deb2
mov edx, dword [esi + 8]
sub edx, eax
test eax, eax
je 0x41decc
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp edx, ecx
jae 0x41decc
mov eax, dword [esi + 8]
mov cl, byte [edi]
mov byte [eax], cl
inc eax
mov dword [esi + 8], eax
jmp 0x41deda
mov eax, dword [esi + 8]
push edi
push 1
push eax
mov ecx, esi
call fcn.0041da00
mov ecx, dword [esp + 0x14]
push ebx
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov eax, dword [esp + 0xc]
inc eax
cmp eax, 7
mov dword [esp + 0xc], eax
jb 0x41de22
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41df10
Capabilities:
Get keyboard layout

Disassembly:
push 0xffffffffffffffff
push 0x47ac2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.004517f0
mov dword [esi + 4], eax
mov bl, 1
mov byte [eax + 0x15], bl
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
xor ebp, ebp
mov dword [eax + 8], eax
mov dword [esi + 8], ebp
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [esp + 0x20], ebp
call fcn.004517f0
mov dword [edi + 4], eax
mov byte [eax + 0x15], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], 0xffffffff
mov al, byte [0x4a709d]
mov byte [esp + 0x20], 2
mov byte [0x4a721c], al
mov ebx, 0x4a4570
mov dword [esp + 0x10], 0x59
lea esp, [esp]
push ebx
mov ecx, esi
call fcn.0041dd40
mov cl, byte [ebx + 4]
mov byte [eax], cl
push ebx
mov ecx, edi
call fcn.0041dd40
mov dl, byte [ebx + 5]
mov byte [eax], dl
mov eax, dword [esp + 0x10]
add ebx, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x41dfb0
push ebp
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
mov ecx, esi
call fcn.0041ddc0
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x41e000
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
test eax, eax
mov dword [esp + 4], eax
jne 0x41e04d
push eax
lea eax, [esp + 8]
push eax
push 0
push 0x59
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [esp + 4]
push ecx
push str.____using_system_default_layout__08x_
push 0x4a723c
call fcn.00402ee0
mov eax, dword [esp + 0x10]
add esp, 0xc
push eax
mov ecx, esi
call fcn.0041ddc0
pop esi
pop ecx
ret
Function at 0x41fef0
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x47aea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0042dbe0
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
call fcn.0042dbe0
mov al, byte [0x4a72f8]
test al, al
mov dword [esp + 0x24], 1
je 0x41ff57
cmp dword [esi], 0
je 0x41ff57
lea eax, [esp + 4]
push eax
push 0x41fed0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esi]
mov edx, dword [ecx]
lea eax, [esp + 4]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 2
call fcn.0042dc26
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.0042dc26
mov ecx, dword [esp + 0x1c]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x420210
Capabilities:
Resume thread

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x18]
push esi
mov dword [esp + 0x14], esi
call ebp
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x42028e
mov esi, dword [edi + 0x14]
push ebx
lea eax, [esi + 4]
mov ebx, 1
push eax
mov dword [edi + 0x10], ebx
mov dword [esp + 0x14], eax
call ebp
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x420274
mov ebp, dword [sym.imp.KERNEL32.dll_SetEvent]
test ebx, ebx
je 0x420274
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x30]
push ecx
call ebp
test ebx, ebx
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + 0x34]
mov dword [esi + 0x1c], eax
jle 0x42026d
dec ebx
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x420252
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [esp + 0x14]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x4202a0
Capabilities:
Access peb ldr_data
Create thread
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47af1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], 0x487a0c
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 4], ebx
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x24], ebx
call fcn.0044b020
add esp, 8
mov dword [esi + 0xc], eax
lea ebp, [esi + 0x18]
push ebp
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x30], ebx
push 0x20
mov byte [esp + 0x20], 3
mov byte [esi + 0x38], bl
call fcn.00459787
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x42031a
lea ecx, [edi + 4]
push ecx
mov dword [edi], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x1c], ebx
jmp 0x42031c
xor edi, edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea edx, [esi + 8]
push edx
push 4
push esi
push 0x41ffe0
push ebx
push ebx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x4825cd
push esi
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
push eax
push str.created
push str.__16.16s__s__lx_:__s
push 0x4a730c
mov dword [esi + 0x10], ebx
call fcn.00402ee0
mov ecx, dword [esp + 0x2c]
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x47af1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x487a0c
mov dword [esp + 8], esi
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
xor ebx, ebx
push str.Native
mov dword [esp + 0x1c], ebx
mov dword [esi + 8], ecx
call fcn.0044b020
add esp, 8
mov dword [esi + 0xc], eax
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x30], ebx
push ebx
push ebx
push 1
push ebx
mov byte [esp + 0x24], 3
mov byte [esi + 0x38], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [esi + 0xc]
push 0x4825cd
push esi
push edx
push str.created
push str.__16.16s__s__lx_:__s
push 0x4a730c
mov dword [esi + 0x30], eax
mov dword [esi + 0x10], 4
call fcn.00402ee0
mov ecx, dword [esp + 0x24]
add esp, 0x18
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x420430
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x47af3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4a731c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x42049f
push esi
push 0x3c
call fcn.00459787
mov esi, eax
add esp, 4
mov dword [esp + 4], esi
test esi, esi
mov dword [esp + 0x10], 0
je 0x42048c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
mov ecx, esi
call fcn.00420380
mov esi, eax
jmp 0x42048e
xor esi, esi
mov ecx, dword [0x4a731c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x420840
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x200
mov eax, dword [0x4a7330]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push eax
call esi
test eax, eax
jne 0x42089f
push str.no_EventManager
lea ecx, [esp + 0xc]
push 0x100
push ecx
mov byte [esp + 0x14], al
call fcn.0044c260
add esp, 0xc
push 0x498d60
lea edx, [esp + 0x10c]
mov ecx, 0x40
lea esi, [esp + 0xc]
lea edi, [esp + 0x10c]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
mov eax, dword [0x4a7330]
push eax
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x420c20
Capabilities:
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x310]
mov dword [esi], 0x487b20
mov ecx, dword [0x4a7330]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0x30c]
test eax, eax
je 0x420c4e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30c], 0
add esi, 0x300
mov ecx, esi
call fcn.00450070
mov edx, dword [esi + 4]
push edx
call fcn.0045903e
add esp, 4
mov dword [esi + 4], 0
pop esi
ret
Function at 0x423660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47b296
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x368
mov eax, dword [0x4a5c70]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x36c], eax
call fcn.0040e380
mov eax, dword [0x4a73a0]
test eax, eax
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x37c], 0
je 0x4236fd
push esi
push 0
push edi
call eax
test eax, eax
jne 0x423849
call ebx
cmp eax, 0x78
je 0x4236fd
call ebx
push eax
push str.GetFileAttributesExW
lea ecx, [esp + 0x12c]
call fcn.0044ba90
mov esi, eax
push 0x49859c
lea eax, [esp + 0x24]
mov ecx, 0x41
lea edi, [esp + 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
push edi
call fcn.00420de0
mov edi, eax
mov al, 1
add esp, 4
mov dword [esp + 0x18], edi
mov byte [esp + 0x1c], al
mov byte [esp + 0x37c], al
mov eax, dword [0x4a73a8]
test eax, eax
je 0x423760
push esi
push 0
push edi
call eax
test eax, eax
jne 0x423840
call ebx
push eax
push str.GetFileAttributesExA
lea ecx, [esp + 0x12c]
call fcn.0044ba90
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push 0x49859c
lea ecx, [esp + 0x24]
push ecx
call fcn.00459658
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42379c
call ebx
push eax
push str.GetFileAttributes
lea ecx, [esp + 0x12c]
call fcn.0044ba90
push 0x49859c
lea edx, [esp + 0x24]
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x24]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
lea eax, [esp + 0x228]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4237e0
call ebx
push eax
push str.GetFileAttributes_FindFirstFile_
lea ecx, [esp + 0x12c]
call fcn.0044ba90
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push 0x49859c
lea ecx, [esp + 0x24]
push ecx
call fcn.00459658
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x228]
mov eax, dword [esp + 0x22c]
mov ecx, dword [esp + 0x230]
mov dword [esi], edx
mov edx, dword [esp + 0x234]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x238]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x23c]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x240]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x244]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x248]
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
push edi
call fcn.00459039
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x37c], 0xffffffff
call fcn.0040e340
mov ecx, dword [esp + 0x374]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x36c]
mov eax, esi
call fcn.0045b645
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4272d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47b7a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00428ee0
mov edi, dword [esp + 0x2c]
mov dword [esi], 0x48808c
mov dword [esi + 0x20], 0x48805c
mov dword [esi + 0x48], edi
mov eax, dword [edi + 0x14]
push edi
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, esi
call fcn.00428f40
push 0x4a7430
mov dword [esp + 0x30], 0x4a7430
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x4a7424
mov byte [esp + 0x2c], 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
call fcn.00427030
push 0x4a7430
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x427840
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0
push eax
mov bl, 1
call fcn.0042b530
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x42788b
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
jne 0x42787a
mov ecx, dword [esi + 0x1c]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], 0
push 0
push 0
mov ecx, esi
call fcn.0042b530
pop esi
mov al, bl
pop ebx
ret

Function at 0x427940
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x47b8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push 0x400
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0x4880c0
mov dword [esp + 0x1c], 0x400
call fcn.00459034
mov ecx, dword [esp + 0x1c]
add ecx, eax
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], ecx
push 6
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 1
call fcn.00422ee0
mov edx, dword [esp + 0x30]
push edx
lea ecx, [esp + 0xc]
call fcn.00422ee0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add eax, 2
cmp eax, ecx
jbe 0x4279da
mov edx, dword [esp + 8]
push 1
push 2
lea ecx, [esp + 0x10]
call dword [edx + 0x14]
mov eax, dword [esp + 0xc]
mov bx, word [esp + 0x34]
mov byte [eax], bh
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
mov byte [eax], bl
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esp + 0xc], eax
sub eax, ecx
push eax
push ecx
mov ecx, esi
call fcn.0042b390
mov edx, dword [esp + 0x38]
movzx ecx, bx
push ecx
push edx
mov ecx, esi
call fcn.0042b390
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0xc], 0x4880c0
call fcn.00459039
mov ecx, dword [esp + 0x24]
add esp, 4
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc