joyce8/EMBER2024-capa huggingface dataset:
Function at 0x532950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x576920
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0056ea04
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x532983
xor al, al
jmp 0x532aaf
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x5329a5
xor al, al
jmp 0x532aaf
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x5329b8
xor al, al
jmp 0x532aaf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x5329cc
xor al, al
jmp 0x532aaf
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00562dd5
test eax, eax
jne 0x532a00
xor al, al
jmp 0x532aaf
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x5cdd4c
mov dword [esp + 0x20], ebp
call fcn.0056ea04
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0056b930
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.0056b987
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x532a94
mov ax, word [ebx]
test ax, ax
je 0x532a86
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00532ad0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x532a6a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.0056b987
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x532fd0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.0056cfe0
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x533016
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00552a48
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x5f02a0
push ecx
call fcn.005548cf
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x534db0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x534e53
test eax, eax
jbe 0x534e53
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x534e53
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x534dfe
xor esi, esi
jmp 0x534e04
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x534e2f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004b36e0
add esi, eax
push esi
mov ebx, esi
call fcn.004b36e0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x534e10
pop ebp
test edi, edi
pop edi
jne 0x534e53
test ebx, ebx
je 0x534e53
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.005534b0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x534f75
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x53508d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x53508d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0056654c
mov esi, eax
test esi, esi
je 0x53508d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x53508d
mov ecx, esi
call fcn.00534f00
cmp edi, eax
jge 0x53508d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x535013
mov dword [esp + 0x34], 1
jmp 0x53506e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x53508d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.005344f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x53d300
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x649080]
xor edx, edx
cmp eax, edx
jne 0x53d326
xor eax, eax
mov byte [eax + 0x648f80], al
inc eax
cmp eax, 0x100
jl 0x53d30e
mov dword [0x649080], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x648f80
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x53d3b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x53d38a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x53d358
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x53d430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x53d483
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x53d46a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x543e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x576f8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00544760
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5cef7c
call fcn.00564851
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x543ed3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00564851
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x543ecc
push 0
mov ecx, eax
call fcn.0053af40
mov dword [esi + 0xc], eax
jmp 0x543ed5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x543ed5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x566ef0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x566f28
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00564f6b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00564f43
jmp 0x566f34
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5686ef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x568731
call fcn.0056ea04
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x568731
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x568728
xor eax, eax
jmp 0x568739
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0056873f
pop edi
pop esi
pop ebx
ret 4

Function at 0x56ef34
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 0x56ef62
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x56ef80
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0056ee9a
jmp 0x56ef80
mov eax, dword [esi + 0x14]
test eax, eax
je 0x56ef80
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0056ee9a
test edi, edi
mov eax, edi
jne 0x56ef6a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4024e0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x44e348]
sub esp, 0x114
test eax, eax
jne 0x40262d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x44e0e0
mov dword [0x44e348], 1
mov dword [0x44e0e0], 0x114
call esi
mov edx, dword [0x44e0f0]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x44b048], eax
je 0x402608
push ebx
push 0x44e1f8
mov dword [0x44e1f8], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x44e33c], eax
call edi
mov dword [0x44e340], eax
mov eax, dword [0x44e33c]
test eax, eax
push 0x44e318
je 0x402584
call eax
jmp 0x40258a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x44e1fc]
cmp eax, 6
jae 0x4025a2
cmp eax, 5
jne 0x4025b6
cmp dword [0x44e200], 2
jb 0x4025b6
cmp word [0x44e318], 9
jne 0x4025b6
mov dword [0x44e0d4], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x4025d4
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x44e344], edx
jmp 0x4025da
mov edx, dword [0x44e344]
test edx, edx
je 0x402608
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x402608
mov ecx, dword [esp + 0x14]
mov dword [0x44e0ec], ecx
push 0x44e0e8
push 0x44e0e4
call fcn.004029d0
add esp, 8
call fcn.00402640
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x404500
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x404541
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x404543
mov esi, edi
test esi, esi
je 0x4045b8
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x4045ad
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x4045ad
cmp dword [esp + 0x1c], eax
jbe 0x40457e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x4045ad
cmp esi, edi
je 0x40459f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x4045b8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x4045d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42cdaf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x42d334]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x40463b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x40463d
mov esi, edi
test esi, esi
je 0x404707
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4046fc
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x40467f
cmp eax, 2
je 0x40467f
cmp eax, 6
je 0x40467f
cmp eax, 7
jne 0x4046fc
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.004144e5
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x4046e2
lea ecx, [esp + 0x14]
call fcn.00401680
cmp esi, dword [esp + 0x14]
je 0x4046d7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.00414772
add esp, 4
jmp 0x404719
call fcn.00414772
add esp, 4
lea ecx, [esp + 0x10]
push 0x44e350
call fcn.00401680
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x404707
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x404719
push eax
lea ecx, [esp + 0x14]
call fcn.00401680
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00401000
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.00401490
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x4049e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push esi
mov esi, dword [ebp + 8]
push 0x200
push 0
push eax
call fcn.00417840
push esi
push 0x44d46c
lea eax, [ebp - 0x204]
push str._s_s
push eax
call fcn.00404970
add esp, 0x1c
lea eax, [ebp - 0x210]
xor esi, esi
mov dword [ebp - 0x210], esi
push eax
lea eax, [ebp - 0x204]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x404ad9
lea eax, [ebp - 0x208]
mov dword [ebp - 0x20c], esi
push eax
push esi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x208], esi
push eax
push esi
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x208]
cmp eax, 2
jb 0x404acd
add eax, 2
xor ecx, ecx
mov dword [ebp - 0x208], eax
mov edx, 2
shr eax, 1
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004142ba
mov esi, eax
add esp, 4
test esi, esi
je 0x404acd
lea eax, [ebp - 0x208]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414033
mov esp, ebp
pop ebp
ret 8

Function at 0x404af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x204]
push edi
mov edi, dword [ebp + 0xc]
push 0x200
push 0
push eax
call fcn.00417840
push esi
push 0x44d46c
lea eax, [ebp - 0x204]
push str._s_s
push eax
call fcn.00404970
add esp, 0x1c
mov dword [ebp - 0x208], 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
lea eax, [ebp - 0x204]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x404ba9
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x208]
mov dword [ebp - 0x20c], 4
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
xor ecx, ebp
pop edi
pop esi
call fcn.00414033
mov esp, ebp
pop ebp
ret 8
Function at 0x404ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push 0x44d46c
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ebx, [esi + 2]
test eax, eax
jne 0x404d3a
lea eax, [ebp - 8]
mov dword [ebp - 0xc], esi
push eax
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
push esi
push 0x432c20
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 8]
cmp eax, ebx
jb 0x404d31
add eax, ebx
xor ecx, ecx
mov dword [ebp - 8], eax
shr eax, 1
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004142ba
mov esi, eax
add esp, 4
test esi, esi
je 0x404d31
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push 0x432c20
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x404d5e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
test ax, ax
jne 0x404d43
sub ecx, edx
sar ecx, 1
jne 0x404da6
push 2
push esi
call fcn.004142ac
add esp, 8
xor ecx, ecx
mov eax, 3
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004142ba
add esp, 4
test eax, eax
je 0x404d96
xor ecx, ecx
mov dword [eax], ecx
mov word [eax + 4], cx
mov ecx, dword [0x432c2c]
mov dword [eax], ecx
mov cx, word [0x432c30]
mov word [eax + 4], cx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414033
mov esp, ebp
pop ebp
ret
Function at 0x4055c0
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x44f280], 0
mov esi, eax
mov dword [ebp - 8], esi
je 0x405611
push esi
push ebx
push dword [ebp - 4]
push str.SetForegroundWindowEx___08x____d___d_
push str.FuncLib
push 0xffffffffffffffff
push 0x44f1f4
call fcn.004063c0
add esp, 0x1c
push 1
push ebx
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp dword [0x44f280], 0
mov dword [ebp - 4], eax
je 0x405656
push eax
push str.SetForegroundWindowEx_2___08x_
push str.FuncLib
push 0xffffffffffffffff
push 0x44f1f4
call fcn.004063c0
mov eax, dword [ebp - 4]
add esp, 0x14
test al, 8
jne 0x40567e
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push ebx
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push 1
lea eax, [esi + 4]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x14], xmm0
call fcn.00402060
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x405ae9
mov eax, dword [esi + 0x28]
cmp dword [eax - 8], 0
je 0x405ae1
push 0
push 0x80
push 4
push 0
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x405b29
test edi, edi
je 0x405b29
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, edi
mov dword [ebp - 8], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405b06
sub ecx, edx
lea eax, [ebp - 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x14]
call fcn.00402090
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00414033
mov esp, ebp
pop ebp
ret 4