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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40435b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404392
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40438e
jmp 0x404380
cmp esi, eax
jae 0x404392
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404380
cmp esi, eax
jb 0x404399
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404ae0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46ebd0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404b63
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x404b63
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
push 0
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x404b63
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438b64
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00438b64
mov esp, ebp
pop ebp
ret

Function at 0x404b80
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x46ebd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
call fcn.00404ae0
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x404bcf
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x404be1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438b64
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x404bf0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404c26
test dx, dx
je 0x404c22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404c26
add eax, 4
add ecx, 4
test dx, dx
jne 0x404c00
xor eax, eax
jmp 0x404c2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404c4a
mov ecx, dword [ebp - 0x228]
push ecx
lea esi, [eax + 1]
push eax
push esi
call ebx
test eax, eax
je 0x404c4a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edx, [ebp - 0x230]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x404bf0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00438b64
mov esp, ebp
pop ebp
ret
Function at 0x406880
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x46ebd0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov ebx, ecx
push edi
mov dword [esp + 0xc], ebx
cmp eax, 0x201
je 0x4068cd
cmp eax, 0x203
je 0x4068cd
cmp eax, 0x204
je 0x4068cd
cmp eax, 0x206
je 0x4068cd
cmp eax, 0x207
je 0x4068cd
cmp eax, 0x209
jne 0x406904
mov ecx, dword [ebx + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebx + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push eax
call fcn.0040db20
add esp, 8
mov byte [ebx + 0x205], 0
cmp dword [esi + 4], 0x201
jne 0x40695c
call dword [sym.imp.USER32.dll_GetCursor]
mov ebx, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f00
push 0
mov edi, eax
call ebx
push 0x7f8a
push 0
mov dword [esp + 0x18], eax
call ebx
cmp edi, dword [esp + 0x10]
je 0x40693b
cmp edi, eax
jne 0x406958
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x20]
push 0
push 2
push 0xa1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esp + 0xc]
mov eax, dword [esi + 4]
cmp eax, 0x204
je 0x406a4d
cmp eax, 0x206
je 0x406a4d
cmp eax, 0x205
je 0x406a4d
cmp eax, 0x207
je 0x406a4d
cmp eax, 0x208
je 0x406a4d
cmp eax, 0x209
je 0x406a4d
cmp eax, 0x100
je 0x4069bd
cmp eax, 0x101
je 0x4069bd
cmp eax, 0x104
je 0x4069bd
cmp eax, 0x105
jne 0x4069c7
cmp dword [esi + 8], 0x1b
jne 0x406a4d
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
mov ecx, 0x8000
test cx, ax
je 0x4069e1
cmp dword [esi + 8], 0x4e
je 0x406a4d
push 0x11
call edi
mov edx, 0x8000
test dx, ax
je 0x4069f5
cmp dword [esi + 8], 0x50
je 0x406a4d
push 0x11
call edi
mov ecx, 0x8000
test cx, ax
je 0x406a09
cmp dword [esi + 8], 0x44
je 0x406a4d
push 0x12
call edi
mov edx, 0x8000
test dx, ax
je 0x406a1d
cmp dword [esi + 8], 0x25
je 0x406a4d
push 0x12
call edi
mov ecx, 0x8000
test cx, ax
je 0x406a31
cmp dword [esi + 8], 0x27
je 0x406a4d
push esi
mov ecx, ebx
call fcn.0041fcda
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00438b64
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00438b64
mov esp, ebp
pop ebp
ret 4

Function at 0x408700
Capabilities:
Check internet connectivity via wininet

Disassembly:
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
sete al
ret
Function at 0x408710
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45338b
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x46ebd0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push ecx
mov esi, ecx
mov ecx, esp
mov dword [ebp - 0x418], esp
push esi
push str.GetWebResponse:
push ecx
mov dword [ebp - 0x41c], eax
call fcn.00408380
add esp, 0xc
call fcn.00411710
add esp, 4
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0x45e6d0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x418], eax
cmp eax, ebx
jne 0x40878b
xor al, al
jmp 0x4088c2
mov esi, dword [esi]
push ebx
push 0x400100
push ebx
push ebx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
cmp edi, ebx
je 0x408784
push ebx
push ebx
lea edx, [ebp - 0x420]
push edx
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x408888
jmp 0x4087c0
cmp dword [ebp - 0x420], ebx
jbe 0x408888
lea eax, [ebp - 0x428]
push eax
push 0x400
lea ecx, [ebp - 0x414]
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
call fcn.0041b710
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4088de
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
lea edx, [ebp - 0x414]
push edx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x424]
push 0x45e708
push eax
mov byte [ebp + ecx - 0x414], bl
call fcn.004041e0
mov esi, dword [ebp - 0x424]
mov eax, dword [esi - 0xc]
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
push eax
push esi
call fcn.00403c20
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408870
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
push ebx
lea ecx, [ebp - 0x420]
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x4087c0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov edx, dword [ebp - 0x418]
push edx
call esi
push ecx
mov ecx, dword [ebp - 0x41c]
mov eax, esp
mov dword [ebp - 0x418], esp
push ecx
push str.GetWebResponse_Response:
push eax
call fcn.00408380
add esp, 0xc
call fcn.00411710
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438b64
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401be0
int3
Function at 0x40a5a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453812
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push edi
mov eax, dword [0x46ebd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
cmp dword [esi + 0x54], 0
jne 0x40a62f
push 0x4c
call fcn.004146f2
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x40a5fb
mov ecx, edi
call fcn.00423911
mov dword [edi], vtable.EventLogger.0
mov ecx, edi
jmp 0x40a5fd
xor ecx, ecx
push 0
push 0
mov byte [ebp - 4], 2
push 4
mov dword [esi + 0x54], ecx
call fcn.00423ddd
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x48]
mov dword [eax + 0x48], ecx
mov edx, dword [esi + 0x54]
mov dword [edx + 0x44], esi
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [esi + 0x6a], 0
push ecx
lea edx, [ebp + 0x10]
mov dword [ebp - 0x10], esp
mov ecx, esp
push edx
call fcn.00403e90
push ecx
mov byte [ebp - 4], 4
lea eax, [ebp + 0xc]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00403e90
push ecx
lea edx, [ebp + 8]
mov dword [ebp - 0x18], esp
mov ecx, esp
push edx
mov byte [ebp - 4], 5
call fcn.00403e90
mov eax, dword [esi + 0x54]
push eax
mov byte [ebp - 4], 2
call fcn.0040a320
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a694
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40cf90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453b26
mov eax, dword fs:[0]
push eax
mov eax, 0x2048
call fcn.0043dc10
mov eax, dword [0x46ebd0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2050], edi
call fcn.0040cd90
mov eax, dword [edi]
mov ecx, str.IE.HTTP
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cffe
test dx, dx
je 0x40cff8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cffe
add eax, 4
add ecx, 4
test dx, dx
jne 0x40cfd6
xor ebx, ebx
xor eax, eax
jmp 0x40d005
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
mov ecx, edi
cmp eax, ebx
jne 0x40d055
push str.Version
push str.SOFTWAREMicrosoftInternet_Explorer
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040fa70
add esp, 8
mov byte [0x4737b8], al
test al, al
jne 0x40d039
push 6
push str.NA_DBV
mov ecx, edi
call fcn.00401c30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438b64
mov esp, ebp
pop ebp
ret
push ebx
push str.http_shellopencommand
mov edx, SysReAllocStringLen
call fcn.0040fa70
add esp, 8
mov byte [0x4737b8], al
test al, al
je 0x40d02b
push 0x34
call fcn.004146f2
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40d095
push 0x34
push ebx
push esi
call fcn.0043bb10
add esp, 0xc
mov dword [ebp - 0x204c], esi
jmp 0x40d09b
mov dword [ebp - 0x204c], ebx
mov eax, dword [edi]
xor ecx, ecx
mov word [ebp - 0x202c], cx
mov ecx, eax
mov dword [ebp - 0x2018], 7
mov dword [ebp - 0x201c], ebx
lea esi, [ecx + 2]
jmp 0x40d0c0
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40d0c0
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x202c]
call fcn.00405b40
push 1
push 0x45e238
lea edx, [ebp - 0x202c]
push edx
mov dword [ebp - 4], ebx
call fcn.00408da0
lea ecx, [eax + 1]
lea eax, [ebp - 0x2048]
lea edx, [ebp - 0x202c]
call fcn.00408d70
mov edi, eax
lea esi, [ebp - 0x202c]
mov byte [ebp - 4], 1
call fcn.00405690
mov ebx, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2034], ebx
jb 0x40d136
mov eax, dword [ebp - 0x2048]
push eax
call fcn.00414721
add esp, 4
push 1
push 0x45e238
lea ecx, [ebp - 0x202c]
push ecx
call fcn.00408da0
mov ecx, eax
or eax, 0xffffffff
lea esi, [ebp - 0x202c]
call fcn.004057a0
push 0
push eax
or eax, 0xffffffff
mov edi, esi
call fcn.00405820
mov eax, dword [ebp - 0x202c]
cmp dword [ebp - 0x2018], ebx
jae 0x40d176
mov eax, esi
lea edx, [ebp - 0x2010]
push edx
push 0x1000
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x2054]
push eax
lea ecx, [ebp - 0x204c]
push ecx
push 0x45d4b8
lea edx, [ebp - 0x2010]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x204c]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
mov eax, dword [ebp - 0x2050]
push ecx
push edx
push str._hu._hu._hu._hu
push eax
call fcn.004041e0
add esp, 0x18
cmp dword [ebp - 0x2018], ebx
jb 0x40d039
mov ecx, dword [ebp - 0x202c]
push ecx
call fcn.00414721
add esp, 4
jmp 0x40d039
Function at 0x40d200
Capabilities:
Check os version

Disassembly:
push 0x473678
mov dword [0x473678], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x47367c]
cmp eax, 5
jne 0x40d2bb
mov eax, dword [0x473680]
test eax, eax
jne 0x40d23f
push 0xe
push str.Windows_2000:
mov ecx, esi
call fcn.00401c30
jmp 0x40d329
cmp eax, 1
jne 0x40d255
push str.Windows_XP:
mov ecx, esi
call fcn.00401d20
jmp 0x40d329
cmp eax, 2
jne 0x40d329
cmp byte [0x473792], 1
jne 0x40d278
push str.Windows_XP_Pro_x64:
mov ecx, esi
call fcn.00401d20
jmp 0x40d329
test dword [0x473790], 0x8000
je 0x40d295
push str.Windows_Home_Server:
mov ecx, esi
call fcn.00401d20
jmp 0x40d329
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, esi
test eax, eax
jne 0x40d2af
push str.Windows_Server_2003:
call fcn.00401d20
jmp 0x40d329
push str.Windows_Server_2003R2:
call fcn.00401d20
jmp 0x40d329
cmp eax, 6
jne 0x40d313
mov eax, dword [0x473680]
test eax, eax
jne 0x40d2ec
cmp byte [0x473792], 1
mov ecx, esi
jne 0x40d2e0
push str.Windows_Vista:
call fcn.00401d20
jmp 0x40d329
push str.Windows_Server_2008:
call fcn.00401d20
jmp 0x40d329
cmp eax, 1
jne 0x40d329
mov ecx, esi
cmp byte [0x473792], al
jne 0x40d307
push str.Windows_7:
call fcn.00401d20
jmp 0x40d329
push str.Windows_Server_2008R2:
call fcn.00401d20
jmp 0x40d329
mov ecx, dword [0x473680]
push ecx
push eax
push str.NA__lu._lu
push esi
call fcn.004041e0
add esp, 0x10
mov eax, 0x47368c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d331
sub eax, edx
sar eax, 1
push eax
push 0x47368c
mov ecx, esi
call fcn.00403c20
ret

Function at 0x40d440
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453358
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46ebd0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x47367c], 5
je 0x40d4f8
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
push str.GetUserDefaultLocaleName
push str.kernel32.dll
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4ba
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x40d4b3
lea ecx, [ebp - 0x2c]
push 0x55
push ecx
call eax
jmp 0x40d4c9
push 5
mov eax, str.NA_UL
lea ecx, [ebp - 0x2c]
call fcn.00405b40
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40d4d5
lea eax, [ebp - 0x2c]
push eax
push 0x45f8f8
push edi
call fcn.004041e0
add esp, 0xc
cmp dword [ebp - 0x18], 8
jb 0x40d510
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00414721
add esp, 4
jmp 0x40d510
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edx, ax
push edx
push str._hx
push edi
call fcn.004041e0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438b64
mov esp, ebp
pop ebp
ret
Function at 0x40da40
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x46ebd0]
xor eax, esp
mov dword [esp + 0x44], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
push str._llu
push esi
call fcn.004041e0
mov ecx, dword [esp + 0x54]
add esp, 0x10
xor ecx, esp
call fcn.00438b64
mov esp, ebp
pop ebp
ret
Function at 0x40f2e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones3_
push SysReAllocStringLen
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f355
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push edx
push eax
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push str.1400
push eax
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f355
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 0xc]
push ecx
push 4
push eax
push str.1400
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40f355
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40f8e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453248
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46ebd0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x2c], ax
push 0x17
mov eax, 0x4601e4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.00405b40
push 0x26
mov eax, str.80922ee0_8a76_46ae_95d5_bd3c3fe0708d
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00410060
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40f954
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, 2
jne 0x40f985
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40f975
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40f9b1
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f990
mov ecx, dword [ebp - 0x30]
sub eax, edx
sar eax, 1
add eax, eax
push eax
push esi
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
cmp dword [ebp - 0x18], 8
jb 0x40f9c3
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00414721
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438b64
mov esp, ebp
pop ebp
ret
Function at 0x40f9e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push str.SoftwareClassesCLSID
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40fa55
push 0x50
mov dword [ebp - 8], 0x50
mov dword [ebp - 0xc], ebx
call fcn.00439e00
add esp, 4
xor ecx, ecx
mov dword [esi], eax
mov word [eax], cx
mov eax, dword [esi]
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0xffff
push 0
push str.80922ee0_8a76_46ae_95d5_bd3c3fe0708d
push edx
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x40fa53
mov eax, dword [esi]
cmp word [eax], 0
jne 0x40fa55
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x40fa63
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fa70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453210
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2018
call fcn.0043dc10
mov eax, dword [0x46ebd0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, edx
lea edx, [ebp - 0x201c]
push edx
push 0x20019
mov dword [ebp - 0x2028], eax
xor eax, eax
push eax
push edi
mov dword [ebp - 4], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov dword [ebp - 0x2024], ecx
mov dword [ebp - 0x201c], eax
mov byte [ebp - 0x2015], 1
mov dword [ebp - 0x2020], 0x1000
call ebx
test eax, eax
je 0x40fb0b
lea eax, [ebp - 0x201c]
push eax
push 0x20119
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x40fb91
mov eax, dword [ebp - 0x2028]
lea ecx, [ebp - 0x2020]
push ecx
mov ecx, dword [ebp - 0x201c]
lea edx, [ebp - 0x2014]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fb91
mov edx, dword [ebp - 0x2024]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x40fb5b
test ecx, ecx
jns 0x40fb53
push 0x80070057
call fcn.00401be0
movzx eax, word [eax]
test ax, ax
je 0x40fb91
mov ecx, dword [ebp - 0x2020]
xor eax, eax
mov word [ebp + ecx*2 - 0x2016], ax
lea eax, [ebp - 0x2014]
push eax
push 0x45f8f8
push edx
call fcn.004041e0
add esp, 0xc
jmp 0x40fb98
mov byte [ebp - 0x2015], 0
mov eax, dword [ebp - 0x201c]
test eax, eax
je 0x40fba9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x2015]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00438b64
mov esp, ebp
pop ebp
ret
Function at 0x411640
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453682
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46ebd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x48
call fcn.004146f2
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4116bc
mov ecx, esi
call fcn.00423911
mov byte [ebp - 4], 1
mov dword [esi], vtable.TextLogger.0
call fcn.0041b710
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4116a9
push 0x80004005
call fcn.00401be0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x44], eax
mov ecx, esi
jmp 0x4116be
xor ecx, ecx
push 0
push 0
mov dword [ebp - 4], 0xffffffff
push 4
mov dword [0x4737bc], ecx
call fcn.00423ddd
mov ecx, dword [0x4737bc]
push 0
add ecx, 0x44
push 0x45da4c
call fcn.00401c30
mov ecx, dword [0x4737bc]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret