joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4450c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x488b03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0047bdbe
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048145d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00482979
test eax, eax
je 0x4451dc
mov ecx, dword [esp + 0x3c]
call fcn.0048148a
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4451a0
push edi
mov ecx, esi
call fcn.0047eaeb
mov ecx, esi
call fcn.00445380
cmp dword [esp + 0x38], 1
jne 0x4451d5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047ec26
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4473d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x447403
push esi
call fcn.00455790
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4473fc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x447489
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x447472
mov eax, dword [esi + 8]
test eax, eax
je 0x447427
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44746e
cmp eax, 2
je 0x447472
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44741a
cmp eax, 3
je 0x44744d
cmp eax, 1
jne 0x44741a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44741a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44741a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004474b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x447498
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004474b0
add esp, 4
pop esi
ret

Function at 0x447d30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x447d51
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x447d51
mov eax, dword [eax + 0x44]
test eax, eax
je 0x447d51
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x462a70
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 0x462b13
test eax, eax
jbe 0x462b13
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x462b13
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 0x462abe
xor esi, esi
jmp 0x462ac4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x462aef
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00464a90
add esi, eax
push esi
mov ebx, esi
call fcn.00464a90
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x462ad0
pop ebp
test edi, edi
pop edi
jne 0x462b13
test ebx, ebx
je 0x462b13
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0046ac90
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x462c35
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 0x462d4d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x462d4d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047c210
mov esi, eax
test esi, esi
je 0x462d4d
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 0x462d4d
mov ecx, esi
call fcn.00462bc0
cmp edi, eax
jge 0x462d4d
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 0x462cd3
mov dword [esp + 0x34], 1
jmp 0x462d2e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x462d4d
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.004621c0
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 0x464c00
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 0x464c66
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 0x464c66
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x464c47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x4657a0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004658f0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4657c0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x4657a1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004658f0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4657c0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x4657f0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x465847
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x46585d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.00465880
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x465880
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x465910
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 0x465959
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 0x465dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4892a0
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.00465980
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00465a00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00465a00
lea ecx, [esi + 0xc]
call fcn.0047a79b
lea ecx, [esi + 0x10]
call fcn.0047a79b
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00468230
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00468230
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00468230
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047a810
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047a810
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x466a78
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4894c8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x466a88
call fcn.00466fa0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x466b6b
cmp byte [edi], 0
je 0x466b6b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x466aad
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004657a0
test eax, eax
jne 0x466acd
push 0x5bf800
lea ecx, [esi + 0x38]
call fcn.0047a94d
jmp 0x466b6b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.004657f0
test eax, eax
jne 0x466afc
mov ecx, esi
call fcn.004658f0
push edi
add esi, 0x38
push 0x5bf7dc
push esi
call fcn.00478537
add esp, 0xc
jmp 0x466b6b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00467820
test eax, eax
je 0x466b64
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00466c40
test eax, eax
jne 0x466b80
push edi
lea eax, [esi + 0x38]
push 0x5bf7b8
push eax
call fcn.00478537
add esp, 0xc
mov ecx, esi
call fcn.00466fa0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x466c28
mov ecx, dword [0x5bfa90]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.00478537
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.004658a0
test eax, eax
jne 0x466bea
push 0x5bf79c
lea ecx, [esi + 0x38]
call fcn.0047a94d
jmp 0x466bfa
push 0xfa
mov ecx, esi
call fcn.00467820
test eax, eax
jne 0x466c17
mov ecx, esi
call fcn.00466fa0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0047a810
jmp 0x466b6b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0047a810
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x47cbb4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47cbec
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.0047ac6b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047ac43
jmp 0x47cbf8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47e2a5
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 0x47e2e7
call fcn.00483e1e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47e2e7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47e2de
xor eax, eax
jmp 0x47e2ef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047e2f5
pop edi
pop esi
pop ebx
ret 4

Function at 0x48434e
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 0x48437c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48439a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004842b4
jmp 0x48439a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48439a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004842b4
test edi, edi
mov eax, edi
jne 0x484384
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401c00
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, 1
test esi, esi
jne 0x401c14
pop esi
xor eax, eax
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetUrlWarrentEnable
push esi
call edi
push str.SetUrlWarrentFilter
push esi
mov dword [0x41cd28], eax
call edi
push str.AddUrlWarrentRule
push esi
mov dword [0x41cd2c], eax
call edi
push str.AddDnsRule
push esi
mov dword [0x41cd30], eax
call edi
push str.AddResourceRule
push esi
mov dword [0x41cd34], eax
call edi
push str.UpdateUrlWarrent
push esi
mov dword [0x41cd38], eax
call edi
push str.ShutDownUrlWarrent
push esi
mov dword [0x41cd3c], eax
call edi
mov ecx, dword [0x41cd28]
mov dword [0x41cd40], eax
test ecx, ecx
pop edi
je 0x401cb7
mov ecx, dword [0x41cd2c]
test ecx, ecx
je 0x401cb7
mov ecx, dword [0x41cd30]
test ecx, ecx
je 0x401cb7
mov ecx, dword [0x41cd34]
test ecx, ecx
je 0x401cb7
mov ecx, dword [0x41cd38]
test ecx, ecx
je 0x401cb7
mov ecx, dword [0x41cd3c]
test ecx, ecx
je 0x401cb7
test eax, eax
jne 0x401cb9
xor ebx, ebx
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x402a60
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1000
call fcn.00411fe0
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
mov edx, dword [esp + 0x1008]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test edx, edx
stosb byte es:[edi], al
je 0x402aed
mov edi, str._SangforServiceClient_
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea ebx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea eax, [esp + 0x1014]
not ecx
push eax
push edx
dec ecx
mov edx, 0xfff
sub edx, ecx
lea eax, [esp + ecx + 0x14]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebx
pop edi
add esp, 0x1000
ret
Function at 0x402b00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x12c]
xor esi, esi
stosw word es:[edi], ax
cmp ebp, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
stosb byte es:[edi], al
je 0x402c16
cmp dword [esp + 0x130], 0x104
jb 0x402c16
mov edx, dword [esp + 0x124]
cmp edx, esi
je 0x402c16
mov ebx, dword [esp + 0x128]
cmp ebx, esi
je 0x402c16
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.SOFTWARESangforSSL_
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
cmp esi, 0x104
jge 0x402c16
mov edi, str.SOFTWARESangforSSL_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x1c]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea esi, [esp + 0x1c]
not ecx
mov eax, esi
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push eax
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402c23
push eax
push str._GetModulePath__RegOpenKeyEx_Failed__Return_d_n
call fcn.00402a60
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, dword [esp + 0x130]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x130]
lea ecx, [esp + 0x18]
push eax
push ebp
push ecx
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
add esp, 0x110
ret
Function at 0x402de0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [str.CLSID_]
mov cx, word [0x416038]
mov dl, byte [0x41603a]
push ebp
push esi
push edi
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], cx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1f]
mov byte [esp + 0x1e], dl
mov edx, dword [esp + 0x120]
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
test edx, edx
stosb byte es:[edi], al
mov dword [esp + 0x14], 0
je 0x402ef1
mov ebp, dword [esp + 0x124]
test ebp, ebp
je 0x402ef1
cmp dword [esp + 0x128], 0x104
jb 0x402ef1
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x26
jne 0x402ef1
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea esi, [esp + 0x18]
not ecx
mov eax, esi
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.InprocServer32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x20]
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402efd
push eax
push str._GetPathByClsId_RegOpenKeyEx_Failed__Return_d_n
call fcn.00402a60
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x110
ret
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x18]
push ebp
push eax
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov dword [esp + 0xc], 0
je 0x402f4d
push esi
push str._GetPathByClsId_RegQueryValueEx_Failed__Return_d_n
call fcn.00402a60
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x110
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x110
ret
Function at 0x403450
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.dbghelp.dll_SymGetModuleBase]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40347b
mov eax, dword [ebp - 0x20]
jmp 0x40354b
push 0x1c
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x403548
push 0x104
lea edx, [ebp - 0x330]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x22c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea edx, [ebp - 0x128]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, 0x416954
lea edx, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
mov ecx, dword [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0x24]
neg edx
sbb edx, edx
lea eax, [ebp - 0x330]
and edx, eax
push edx
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.dbghelp.dll_SymLoadModule]
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8