joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ce1a
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x41ce53
cmp dword [ebp + 0xc], 1
je 0x41ce53
mov eax, 1
jmp 0x41ce58
mov eax, 0
test eax, eax
je 0x41ce6a
mov eax, 0
jmp 0x41d03c
cmp dword [ebp + 0xc], 1
jne 0x41ce9c
push dword [ebp + 8]
call fcn.0041d054
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41ce93
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x41cecd
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x41ceb8
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004268a9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41cec9
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
push 0
push 0x18
push 0x45131a
push 0x45131a
lea eax, [ebp - 8]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41cf0e
push 0x14f
push 0x401149c
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41cf73
mov dword [ebp - 0x10], esp
push 8
push 0x18
push 0x45131a
push 0x45131a
lea eax, [ebp - 8]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41cf5c
push 0x1a8
push 0x401149c
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41cf73
mov eax, 0
jmp 0x41d03c
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x41cf86
mov eax, 0x45134f
push eax
push 1
mov ebx, 0x194
call fcn.00427ef0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x41cfba
add eax, 8
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x41cfe4
push 0x267
push 0x401149c
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x41d02c
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41d022
push 0x29c
push 0x401149c
push 6
call fcn.004268b5
add esp, 0xc
mov eax, 0
jmp 0x41d03c
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.0041cc95
jmp 0x41d03c
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41d04d
push ebx
call fcn.004268af
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4207f4
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x1c
call fcn.004268a9
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], esp
push 1
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x420867
push 0x1b
push 0x401006a
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x420946
mov dword [ebp - 0x14], esp
push 0x20
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4208aa
push 0x9c
push 0x401006a
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x42091a
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
push 1
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4208eb
push 0x139
push 0x401006a
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x42091a
push 0x164
push 0x401006a
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x420946
push 0x180
push 0x401006a
push 6
call fcn.004268b5
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x42094e
push eax
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.004268af
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x42120c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x421224
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
nop
nop
cmp dword [ebp - 4], esp
je 0x42124b
push 0x24
push 0x4010bbe
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x10
mov eax, 0
sete al
jmp 0x42125f
mov esp, ebp
pop ebp
ret 4
Function at 0x424036
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x80000006
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.004271a0
add esp, 0x10
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
call fcn.004207da
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4240aa
push 0x60
push 0x4010f8c
push 6
call fcn.004268b5
add esp, 0xc
jmp 0x4240af
mov esp, ebp
pop ebp
ret 0x14

Function at 0x427080
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x4270c1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x4270c1.2
jmp dword [eax*4 + 0x42714c]
mov word [esp + 0x48], di
jmp 0x4270fa
mov word [esp + 0x48], 2
jmp 0x4270fa
mov word [esp + 0x48], 3
jmp 0x4270fa
mov word [esp + 0x48], 4
jmp 0x4270fa
mov word [esp + 0x48], 7
jmp 0x4270fa
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x427144
cmp dword [esp + 0x70], edi
je 0x427130
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x427170
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
add esp, 0xc
ret

Function at 0x4285d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x428639
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00426cd0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x428640
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4286d2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4286c4
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4286bc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x428685
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x428940
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x42894d
xor eax, eax
pop esi
ret
push esi
call dword [0x659bc8]
add esp, 4
test eax, eax
jne 0x42895d
pop esi
ret
cmp eax, 1
jne 0x42896b
cmp byte [esi], 0x5c
jne 0x42896b
xor eax, eax
pop esi
ret
push esi
call fcn.004286f0
add esp, 4
test eax, eax
je 0x42897f
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
pop esi
ret

Function at 0x428b80
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x428b96
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret
or eax, 0xffffffff
ret

Function at 0x428ba0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
push 0x202
xor esi, esi
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x428bf1
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.00428b80
add esp, 4
cmp eax, 0xffffffff
je 0x428bec
push eax
call sub.WSOCK32.dll_inet_ntoa
mov esi, eax
push esi
call dword [0x659bc8]
push eax
push esi
call fcn.0042a0e0
add esp, 0xc
mov esi, eax
call sub.WSOCK32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x429850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x429871
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x4298cb
inc edi
cmp edi, esi
jl 0x429865
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x429900
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x4298ba
cmp byte [eax], bl
je 0x4298d5
cmp byte [eax + 1], bl
je 0x4298de
cmp byte [eax + 2], bl
je 0x4298e8
cmp byte [eax + 3], bl
je 0x4298f4
add eax, 4
cmp eax, edi
jb 0x429891
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x42b0f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x42b156
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x42b156
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x42b137
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x42b4e0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x42b518
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x42c1a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x42c1e9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x42c660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x448c70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0042c210
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0042c290
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0042c290
lea ecx, [esi + 0xc]
call fcn.004426dd
lea ecx, [esi + 0x10]
call fcn.004426dd
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0042d820
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0042d820
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0042d820
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00442752
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00442752
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x447dc1
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 0x447def
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x447e0d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00447d27
jmp 0x447e0d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x447e0d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00447d27
test edi, edi
mov eax, edi
jne 0x447df7
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x1672380a
nop
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x10bd4fd7
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x3501685
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0x78]
sub esp, 0xc
add eax, edx
jne 0x3501698
leave
ret
mov ecx, dword [eax + 0x18]
push esi
push edi
mov edi, dword [eax + 0x20]
add edi, edx
dec ecx
mov dword [ebp - 0xc], ecx
xor esi, esi
push ebx
inc esi
mov dword [ebp - 8], esi
mov esi, dword [edi + esi*4]
add esi, edx
movzx ebx, byte [esi]
push 0x47
pop ecx
sub ecx, ebx
jne 0x35016da
mov dword [ebp - 4], 0x3508e10
sub dword [ebp - 4], esi
cmp byte [esi], 0
je 0x35016da
mov ecx, dword [ebp - 4]
inc esi
movzx ecx, byte [ecx + esi]
movzx ebx, byte [esi]
sub ecx, ebx
je 0x35016c6
mov esi, dword [ebp - 8]
cmp esi, dword [ebp - 0xc]
ja 0x35016f5
test ecx, ecx
jne 0x35016a9
mov ecx, dword [eax + 0x24]
lea ecx, [ecx + esi*2]
movzx ecx, word [ecx + edx]
cmp ecx, dword [eax + 0x14]
jbe 0x35016f9
xor eax, eax
jmp 0x3501704
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x3503bf2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x350a846]
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.03502b49
and dword [ebp - 0x14], 0
cmp dword [0x350b972], 0
mov dword [ebp - 0x18], eax
jne 0x3503ca5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x3503d4d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x3503d4d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x350b972], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x350b976], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x350b97a], eax
call edi
push eax
call esi
mov dword [0x350b982], eax
test eax, eax
je 0x3503ca5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x350b97e], eax
mov eax, dword [0x350b97e]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x3503cfe
cmp dword [0x350b982], ecx
je 0x3503cfe
push eax
call esi
push dword [0x350b982]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x3503cfe
test ebx, ebx
je 0x3503cfe
call edi
test eax, eax
je 0x3503cf5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x3503cf5
test byte [ebp - 8], 1
jne 0x3503cfe
or dword [ebp + 0x10], 0x200000
jmp 0x3503d31
mov eax, dword [0x350b976]
cmp eax, dword [ebp - 0x18]
je 0x3503d31
push eax
call esi
test eax, eax
je 0x3503d31
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x3503d31
mov eax, dword [0x350b97a]
cmp eax, dword [ebp - 0x18]
je 0x3503d31
push eax
call esi
test eax, eax
je 0x3503d31
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x350b972]
call esi
test eax, eax
je 0x3503d4d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x3503d4f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.03503f5d
leave
ret

Function at 0x3503f5d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x350a846]
jne 0x3503f67
repz ret
jmp fcn.035051cd
Function at 0x10001770
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0
push 0
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0
push str.Button
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
jne 0x100017a7
pop edi
pop esi
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongW]
push sym.Device.dll_private:_static_long_int___stdcall_CDevice::WndProc_struct_HWND_____unsigned_int__unsigned_int__long_int_
push 0xfffffffffffffffc
push edi
call ebx
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp eax, sym.Device.dll_private:_static_long_int___stdcall_CDevice::WndProc_struct_HWND_____unsigned_int__unsigned_int__long_int_
jne 0x100017db
push esi
push 0xffffffffffffffeb
push edi
call ebx
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp eax, esi
je 0x100017e1
pop ebx
pop edi
xor eax, eax
pop esi
ret
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, dword [sym.imp.MSVCR100.dll__beginthread]
push esi
push 0
push sym.Device.dll_private:_static_void___cdecl_CDevice::ScanThread_void__
mov dword [esi], eax
call edi
push esi
push 0
push sym.Device.dll_private:_static_void___cdecl_CDevice::SendDeviceInfoTread_void__
mov dword [esi + 4], eax
call edi
mov eax, dword [esi]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop ebx
pop edi
mov eax, 1
pop esi
ret
Function at 0x10003020
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e4bb
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x10014034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
call fcn.100072e0
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
sub eax, 0x10
call fcn.100072e0
add eax, 0x10
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
mov eax, dword [edi + 8]
sub eax, 0x10
call fcn.100072e0
add eax, 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 2
mov eax, dword [edi + 0xc]
sub eax, 0x10
call fcn.100072e0
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x10]
sub eax, 0x10
call fcn.100072e0
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 4
mov eax, dword [edi + 0x14]
sub eax, 0x10
call fcn.100072e0
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 5
mov eax, dword [edi + 0x18]
sub eax, 0x10
call fcn.100072e0
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 6
mov eax, dword [edi + 0x1c]
sub eax, 0x10
call fcn.100072e0
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [ebp - 4], 7
mov eax, dword [edi + 0x20]
sub eax, 0x10
call fcn.100072e0
add eax, 0x10
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 8
mov eax, dword [edi + 0x24]
sub eax, 0x10
call fcn.100072e0
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 9
mov eax, dword [edi + 0x28]
sub eax, 0x10
call fcn.100072e0
add eax, 0x10
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov edx, dword [edi + 0x30]
mov dword [esi + 0x30], edx
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x38]
mov dword [esi + 0x38], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100045a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x10014034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x80c]
push edx
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x808]
push ecx
push str.Class
push esi
push closesocket
mov dword [ebp - 0x80c], 0x400
mov dword [ebp - 0x808], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
pop esi
test eax, eax
jne 0x10004636
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9d2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.1000d9d2
mov esp, ebp
pop ebp
ret 4