joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46da04
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x49bc0c]
cmp dword [eax + 0x30], 0
je 0x46daae
cmp dword [ebx + 0x94], 0
jne 0x46daa8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46d994
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46daa8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46da6e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46daa8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413fbc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46da7d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46e610
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46e645
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404160
jmp 0x46e652
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040c4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46f744
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46f785
mov eax, esi
call fcn.00455bf8
test al, al
je 0x46f785
mov eax, dword [ebx + 0x84]
call fcn.004558f4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46f785
push 0
mov eax, dword [ebx + 0x84]
call fcn.004558f4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x472e84
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x472eb2
mov eax, ebx
call fcn.00473938
cmp dword [ebx + 0x40], 0
je 0x472eab
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x472f23
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x472f15
cmp dword [ebx + 8], 0
je 0x472ed4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x472ee6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x472f15
cmp dword [ebx + 8], 0
je 0x472ec7
cmp eax, 3
je 0x472ef9
dec eax
jne 0x472ec7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x472ec7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x472ec7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x472f41
cmp dword [ebx + 0x14], 0xcc
je 0x472f41
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00472f4c
pop ebx
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c004]
jne 0x40100a
repz ret
jmp fcn.00401706

Function at 0x404b3b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402adc
and dword [ebp - 0x14], 0
cmp dword [0x43e270], 0
mov dword [ebp - 0x18], eax
jne 0x404bee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404c96
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404c96
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43e270], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43e274], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43e278], eax
call edi
push eax
call esi
mov dword [0x43e280], eax
test eax, eax
je 0x404bee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43e27c], eax
mov eax, dword [0x43e27c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404c47
cmp dword [0x43e280], ecx
je 0x404c47
push eax
call esi
push dword [0x43e280]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404c47
test ebx, ebx
je 0x404c47
call edi
test eax, eax
je 0x404c3e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404c3e
test byte [ebp - 8], 1
jne 0x404c47
or dword [ebp + 0x10], 0x200000
jmp 0x404c7a
mov eax, dword [0x43e274]
cmp eax, dword [ebp - 0x18]
je 0x404c7a
push eax
call esi
test eax, eax
je 0x404c7a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404c7a
mov eax, dword [0x43e278]
cmp eax, dword [ebp - 0x18]
je 0x404c7a
push eax
call esi
test eax, eax
je 0x404c7a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43e270]
call esi
test eax, eax
je 0x404c96
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404c98
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x43895a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x43fb24]
push dword [0x43f970]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret
Function at 0x438a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp ebx, 0x19f
jne 0x438a74
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x438a97
push esi
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.00438a55
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
xor byte [eax + edi], cl
inc edi
cmp edi, ebx
jl 0x438a7c
pop esi
pop edi
cmp ebx, 0x2d
jne 0x438aae
or dword [0x43fc5c], 0xffffffff
mov dword [0x43fc58], 0xa62e7790
leave
ret
Function at 0x402b00
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push ebp
xor eax, eax
push esi
push edi
xor ebp, ebp
mov dword [ebx], ebp
lea esi, [ebx + 0x14]
mov ecx, 0xc2
mov edi, esi
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x1c]
cmp eax, ebp
push 0x104
je 0x402b44
push eax
push esi
call fcn.00405144
add esp, 0xc
jmp 0x402b76
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp word [esi], bp
je 0x402b68
push esi
call fcn.00404b0a
add esp, 4
cmp word [ebx + eax*2 + 0x12], 0x5c
je 0x402b68
push 0x41a9a0
jmp 0x402b6d
push 0x41a97c
push esi
call fcn.004050fe
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402c3b
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x402c3b
lea edi, [eax + 0xa]
push edi
call fcn.004115e7
mov ebp, eax
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push ebp
add eax, 2
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x402c32
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x41a978
push ebp
mov dword [esp + 0x2c], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402c32
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402c32
cmp dword [esp + 0x10], 0x34
jb 0x402c32
movzx ecx, word [eax + 0xa]
mov dword [ebx + 4], ecx
mov edx, dword [eax + 8]
and edx, 0xffff
mov dword [ebx + 8], edx
movzx ecx, word [eax + 0xe]
mov dword [ebx + 0xc], ecx
mov edx, dword [eax + 0xc]
and edx, 0xffff
mov dword [ebx + 0x10], edx
push ebp
call fcn.004115ec
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 4
Function at 0x4062fd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x421948]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x421b18]
je 0x406332
inc eax
cmp eax, 0x13
jb 0x406323
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x421b18]
jne 0x406458
mov eax, dword [0x424aa0]
cmp eax, 1
je 0x406430
cmp eax, edx
jne 0x406362
cmp dword [0x421944], 1
je 0x406430
cmp ecx, 0xfc
je 0x406458
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406398
lea eax, [ebp - 0x80]
push 0x41cc2c
push eax
call fcn.0040ac80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00405d20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4063cc
mov eax, edi
push eax
call fcn.00405d20
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41cc28
push edi
call fcn.0040ad80
add esp, 0x10
push edi
call fcn.00405d20
push dword [esi + 0x421b1c]
mov ebx, eax
call fcn.00405d20
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004058c0
mov ebx, esp
push 0x41cc0c
push ebx
call fcn.0040ac80
push edi
push ebx
call fcn.0040ac90
push 0x41cc08
push ebx
call fcn.0040ac90
push dword [esi + 0x421b1c]
push ebx
call fcn.0040ac90
push 0x12010
push 0x41cbe0
push ebx
call fcn.0040ab82
add esp, 0x2c
jmp 0x406458
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x421b1c]
push dword [esi]
call fcn.00405d20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00404630
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40ab82
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x424fb0], ebx
push esi
push edi
jne 0x40ac02
push 0x41d4fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40ac3d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41d4f0
push edi
call esi
test eax, eax
mov dword [0x424fb0], eax
je 0x40ac3d
push 0x41d4e0
push edi
call esi
push 0x41d4cc
push edi
mov dword [0x424fb4], eax
call esi
cmp dword [0x424aa8], 2
mov dword [0x424fb8], eax
jne 0x40ac02
push 0x41d4b0
push edi
call esi
test eax, eax
mov dword [0x424fc0], eax
je 0x40ac02
push 0x41d498
push edi
call esi
mov dword [0x424fbc], eax
mov eax, dword [0x424fbc]
test eax, eax
je 0x40ac47
call eax
test eax, eax
je 0x40ac2e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x424fc0]
test eax, eax
je 0x40ac2e
test byte [ebp - 8], 1
jne 0x40ac47
cmp dword [0x424ab4], 4
jb 0x40ac41
or byte [ebp + 0x12], 0x20
jmp 0x40ac66
xor eax, eax
jmp 0x40ac76
or byte [ebp + 0x12], 4
jmp 0x40ac66
mov eax, dword [0x424fb4]
test eax, eax
je 0x40ac66
call eax
mov ebx, eax
test ebx, ebx
je 0x40ac66
mov eax, dword [0x424fb8]
test eax, eax
je 0x40ac66
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x424fb0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416b55
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x421948]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
push 0x41ab8c
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ebx
xor esi, esi
call edi
push 0x41ab70
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x416bf7
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x2c], ecx
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call esi
push 0x41ab54
push dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 4
xor ebx, ebx
jmp 0x416cf9
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x416ca7
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push 0x41ab08
push 0x80000001
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416cfa
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416c9c
cmp dword [ebp - 0x34], 1
jne 0x416c9c
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push 0x41aafc
push eax
call fcn.004052fd
add esp, 0xc
cmp eax, 1
jne 0x416c9c
mov eax, dword [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
push 2
mov dword [ebp - 0x44], eax
pop esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x416cfa
push 0x41aae8
call edi
cmp eax, ebx
je 0x416cfa
lea ecx, [ebp - 0x28]
push ecx
push 0x416b3f
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x28], bx
je 0x416cfa
movzx eax, word [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x48], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x416d20
push dword [ebp + edi*4 - 0x48]
push dword [ebp + 8]
call fcn.00416ac0
cmp eax, ebx
pop ecx
pop ecx
jne 0x416d22
inc edi
cmp edi, esi
jl 0x416d09
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00404630
leave
ret 4
Function at 0x41729f
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4192d2
call fcn.00405334
sub esp, 0x220
mov eax, dword [0x421948]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x228]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x417398
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x41736c
and dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.004016c0
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.0041729f
mov ecx, dword [ebp - 0x224]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004011c0
test bl, bl
jne 0x41736c
or dword [ebp - 4], 0xffffffff
jmp 0x4172dd
cmp esi, 0x103
je 0x41737c
cmp esi, 0x3f2
jne 0x41738c
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00404630
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x418425
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x41845a
cmp edi, dword [esi + 0xc]
jge 0x41845a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41845a
cmp edi, dword [eax + 8]
jge 0x41845a
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x41845c
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x418560
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x418594
jmp fcn.0040f824
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x418605
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x4186fe
cmp eax, dword [edi + 0xc]
jge 0x4186fe
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x418656
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x4186e7
cmp dword [ebp + 0xc], ebx
je 0x4186e7
jmp 0x418680
push 0x10
call fcn.004182f1
cmp eax, ebx
je 0x41866c
mov ecx, eax
call fcn.00418557
mov esi, eax
jmp 0x41866e
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x418697
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4186a7
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4186b9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040f824
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00405940
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4186f9
cmp ecx, dword [esi + 8]
jge 0x4186f9
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x4186ff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4187bd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4187eb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x418809
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00418727
jmp 0x418809
mov eax, dword [esi + 0x14]
test eax, eax
je 0x418809
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00418727
test edi, edi
mov eax, edi
jne 0x4187f3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4247dc]
test ecx, ecx
je 0x4188bc
jmp 0x4187bc
ret 8
Function at 0x406f07
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [0x42f9a2], 0x4d29ac2
push 0
mov ebx, 0x108
call fcn.00416e20
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 4
push 0x80000004
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x406f55
mov eax, 0x4252a3
push eax
push 2
mov ebx, 0x138
call fcn.00416120
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406f7b
push ebx
call fcn.004155ba
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x406f8e
mov eax, 0x4252a3
push eax
push 1
mov ebx, 0x154
call fcn.00415cf0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x406fb4
push ebx
call fcn.004155ba
add esp, 4
push str..tmp
push dword [ebp - 0x10]
call fcn.004021c2
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x406fe2
push ebx
call fcn.004155ba
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x4070e1
push 0x80000004
push 0
push str.Super_EC
push 1
mov ebx, 0x158
call fcn.00416ec0
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x407039
push 6
call fcn.004155c0
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40704c
push ebx
call fcn.004155ba
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push 0
push 0
push 6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x407088
push 6
call fcn.004155c0
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 3
mov eax, 0x42ed2f
test eax, eax
je 0x40709f
add eax, 8
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4070bf
push 6
call fcn.004155c0
add esp, 4
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4070e1
push 6
call fcn.004155c0
add esp, 4
call fcn.004070f4
mov eax, 0
jmp 0x4070f0
mov esp, ebp
pop ebp
ret
Function at 0x4092ab
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4092e6
push 6
call fcn.004155c0
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00416fa0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x409349
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00416fc0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40936d
push 6
call fcn.004155c0
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00416fa0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4093d0
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00416fc0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4093f4
push 6
call fcn.004155c0
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00416fa0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x409457
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00416fc0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40945f
mov esp, ebp
pop ebp
ret