joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c850
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x459b88
call fcn.00452450
sub esp, 0x44
push ebx
push esi
push edi
mov esi, ecx
push 0
call fcn.0044b415
push 1
mov ecx, esi
call fcn.0044be3c
mov edx, 0x198
lea ecx, [ebp - 0x20]
call fcn.0043296b
mov eax, dword [eax]
lea edi, [esi + 4]
push eax
push 2
push dword [edi]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [ebp - 0x20]
call fcn.004026ee
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
pop ecx
push 2
push dword [edi]
call ebx
push 1
push 1
push 0xf4
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1bc
push dword [edi]
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1be
push dword [edi]
call ebx
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x50]
call fcn.0044c9df
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.0044c9df
lea eax, [esi + 0x1e4]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1ac], ebx
lea ebx, [esi + 0x1b4]
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
setne byte [ebp - 0xd]
call fcn.0044ca10
add ebx, 0x18
lea ecx, [ebp - 0x38]
push ebx
call fcn.0044ca10
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp dword [ebp - 0x40], ebx
je 0x44c963
cmp dword [ebp - 0x4c], ebx
mov byte [esi + 0x203], 1
jne 0x44c959
push 0x45bb68
lea ecx, [ebp - 0x50]
call fcn.0040201d
push 0x10
push dword [ebp - 0x50]
push dword [ebp - 0x44]
jmp 0x44c98e
cmp byte [ebp - 0xd], 0
jne 0x44c9a4
cmp dword [ebp - 0x28], ebx
mov byte [esi + 0x203], 1
je 0x44c9bd
cmp dword [ebp - 0x34], ebx
jne 0x44c987
push 0x45bb68
lea ecx, [ebp - 0x38]
call fcn.0040201d
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
mov eax, esi
neg eax
sbb eax, eax
and eax, edi
push dword [eax]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [ebp - 0xd], 0
je 0x44c9bd
cmp byte [esi + 0x136], 0
jne 0x44c9bd
mov ecx, esi
mov byte [esi + 0x135], 1
call fcn.0044cddb
jmp 0x44c9c6
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x50]
call fcn.00436b09
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x44d8e9
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x459cac
call fcn.00452450
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov ebx, ecx
cmp dword [esi + 4], edi
jne 0x44d90d
or eax, 0xffffffff
jmp 0x44d9c1
cmp dword [ebp + 0xc], 0xffffffff
jne 0x44d916
mov dword [ebp + 0xc], edi
lea ecx, [ebp - 0x1c]
call fcn.00401f28
mov eax, 0x110
mov dword [ebp - 4], edi
cmp dword [ebp - 0x14], eax
jae 0x44d934
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401ca5
mov eax, dword [esi]
mov esi, 0x10e
push esi
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov word [ecx + 0x21c], di
cmp word [ecx], di
je 0x44d95c
inc edx
inc ecx
inc ecx
jmp 0x44d952
cmp eax, edi
mov dword [ebp - 0x18], edx
je 0x44d967
cmp eax, esi
jb 0x44d972
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00402081
lea eax, [ebp - 0x10]
push 1
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp eax, 1
jne 0x44d9b3
cmp dword [ebp - 0x10], edi
je 0x44d9b3
push dword [ebp - 0x10]
push 0xffffffffffffffff
push dword [ebx + 0x30]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebx + 0x2c]
mov esi, eax
lea ecx, [eax + 1]
mov dword [ebx + 0x2c], ecx
jmp 0x44d9b6
or esi, 0xffffffff
push dword [ebp - 0x1c]
call fcn.004026ee
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x44e365
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
mov edi, ecx
push 0x11
call esi
mov bx, ax
push 0x12
shr ebx, 0xf
and bl, 1
call esi
shr eax, 0xf
test al, 1
jne 0x44e402
mov eax, dword [ebp + 8]
test bl, bl
mov cx, word [eax + 0xc]
je 0x44e3dd
cmp cx, 0x41
je 0x44e3e3
movzx eax, cx
cmp eax, 0x20
je 0x44e3c4
cmp eax, 0x6a
jle 0x44e402
cmp eax, 0x6d
jle 0x44e3c4
cmp eax, 0x6f
je 0x44e3c4
cmp eax, 0xbb
je 0x44e3c4
cmp eax, 0xbd
jne 0x44e402
test bl, bl
jne 0x44e402
xor eax, eax
cmp cx, 0x20
setne al
push eax
mov ecx, edi
call fcn.0044e2d1
mov al, 1
jmp 0x44e404
cmp cx, 0x6a
jne 0x44e39f
push 2
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
push 0x102b
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x44e3d9
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44f893
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x45a02a
call fcn.00452450
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00401f28
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.00401f28
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.00401f28
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 2
call fcn.00401f28
and byte [esi + 0x4c], 0
and byte [esi + 0x4d], 0
mov ecx, dword [ebp - 0xc]
and byte [esi + 0x4e], 0
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4502ff
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x45a13e
call fcn.00452450
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00401faf
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.00401faf
mov eax, dword [edi + 0x18]
lea ecx, [esi + 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
lea eax, [edi + 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00401faf
lea eax, [edi + 0x3c]
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.00401faf
mov eax, dword [edi + 0x48]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x48], eax
mov al, byte [edi + 0x4c]
mov byte [esi + 0x4c], al
mov al, byte [edi + 0x4d]
mov byte [esi + 0x4d], al
mov al, byte [edi + 0x4e]
mov byte [esi + 0x4e], al
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4520f0
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x452118
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x452127
mov eax, 1
ret 4

Function at 0x452204
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45225a
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x45fcf8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45224d
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x45225c
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00405e91
cmp dword [eax], 2
jge 0x401021
xor eax, eax
jmp 0x401183
lea ecx, [ebp - 0x1c]
call fcn.00401b60
lea ecx, [ebp - 0x34]
call fcn.00401b60
nop
mov dword [ebp - 0x50], 1
jmp 0x401044
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
call fcn.00405e91
mov ecx, dword [eax]
sub ecx, 1
cmp dword [ebp - 0x50], ecx
jg 0x401089
call fcn.00405e97
mov edx, dword [eax]
mov eax, dword [ebp - 0x50]
mov ecx, dword [edx + eax*4]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00401fb0
nop
call fcn.00405e91
mov edx, dword [eax]
sub edx, 1
cmp dword [ebp - 0x50], edx
je 0x401087
push 0x40f184
lea ecx, [ebp - 0x1c]
call fcn.00401fb0
nop
jmp 0x40103b
lea ecx, [ebp - 0x1c]
call fcn.00402730
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x1c]
call fcn.004027d0
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x6c], ecx
push 0
push 0x40f188
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4010f7
lea edx, [ebp - 0x4c]
push edx
call fcn.004011a0
add esp, 4
push eax
lea ecx, [ebp - 0x34]
call fcn.00401e10
lea ecx, [ebp - 0x4c]
call fcn.00401d60
nop
push 0
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.00402730
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov dword [ebp - 0x58], 0
jmp 0x401109
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0x12c
jge 0x401169
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push str.TeleNVDAURLHandler
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jbe 0x401167
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
nop
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x34]
call fcn.00401d60
lea ecx, [ebp - 0x1c]
call fcn.00401d60
mov eax, dword [ebp - 0x60]
jmp 0x401183
jmp 0x401100
mov dword [ebp - 0x64], 1
lea ecx, [ebp - 0x34]
call fcn.00401d60
lea ecx, [ebp - 0x1c]
call fcn.00401d60
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402a32
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00401e80
mov dword [ebp - 0x40c], 0x400
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x404]
push edx
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402730
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
jne 0x40139d
lea ecx, [ebp - 0x404]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00401ef0
nop
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402a32
mov esp, ebp
pop ebp
ret
Function at 0x4032c5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403304
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403304
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403304
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403304
cmp dword [ecx + 0x74], 0xe
jbe 0x403304
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407ece
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x407f19
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004080eb
test al, al
jne 0x407f13
sub edx, 2
cmp edx, edi
jne 0x407ef9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x407f3b
lea eax, [edi + 2]
cmp edx, eax
je 0x407f3b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00407e1a
add esp, 0x10
jmp 0x408035
push esi
lea ecx, [ebp - 0x255]
call fcn.004080eb
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407f7e
push dword [ebp - 0x25c]
jmp 0x407f2b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x407fbb
cmp word [ebp - 0x226], 0
je 0x407fdc
cmp word [ebp - 0x226], ax
jne 0x407fbb
cmp word [ebp - 0x224], 0
je 0x407fdc
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00407e1a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x408028
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x407f95
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x408010
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x408035
push 0x407c4a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040ab00
add esp, 0x10
jmp 0x408005
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402a32
leave
ret

Function at 0x409a62
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41114c
push 0x411144
push str.FlsAlloc
push 0x1f
call fcn.0040999d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409a96
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f128]
call esi
jmp 0x409a9c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x409ae0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41115c
push 0x411154
push str.FlsGetValue
push 0x21
call fcn.0040999d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409b17
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x409b1f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411164
push 0x41115c
push str.FlsSetValue
push 0x22
call fcn.0040999d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409b59
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f128]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e820
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e84d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e84d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebp
push esi
mov esi, dword [esp + 0x118]
test esi, esi
je 0x4012a7
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x4012a7
mov ebp, dword [esp + 0x120]
cmp ebp, 0x40
jb 0x4012a7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x26
jne 0x4012a7
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x103
lea eax, [esp + 0x14]
cmp byte [eax], 0
je 0x401150
inc eax
dec ecx
jne 0x401145
jmp 0x401194
test ecx, ecx
je 0x401194
lea eax, [esp + 0xc]
test eax, eax
je 0x401165
mov eax, 0x103
sub eax, ecx
jmp 0x401169
mov eax, dword [esp + 0xc]
mov edx, 0x103
sub edx, eax
lea eax, [esp + eax + 0x14]
je 0x401194
mov edi, str.CLSID_
sub edi, eax
mov cl, byte [edi + eax]
test cl, cl
je 0x40118c
mov byte [eax], cl
inc eax
dec edx
jne 0x40117d
jmp 0x401190
test edx, edx
jne 0x401191
dec eax
mov byte [eax], 0
mov ecx, 0x103
lea eax, [esp + 0x14]
pop edi
cmp byte [eax], 0
je 0x4011a9
inc eax
dec ecx
jne 0x40119e
jmp 0x4011e8
test ecx, ecx
je 0x4011e8
lea edx, [esp + 8]
test edx, edx
je 0x4011be
mov eax, 0x103
sub eax, ecx
jmp 0x4011c2
mov eax, dword [esp + 8]
mov edx, 0x103
sub edx, eax
lea eax, [esp + eax + 0x10]
je 0x4011e8
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x4011e0
mov byte [eax], cl
inc eax
dec edx
jne 0x4011d1
jmp 0x4011e4
test edx, edx
jne 0x4011e5
dec eax
mov byte [eax], 0
mov ecx, 0x103
lea eax, [esp + 0x10]
cmp byte [eax], 0
je 0x4011fc
inc eax
dec ecx
jne 0x4011f1
jmp 0x401240
test ecx, ecx
je 0x401240
lea eax, [esp + 8]
test eax, eax
je 0x401211
mov eax, 0x103
sub eax, ecx
jmp 0x401215
mov eax, dword [esp + 8]
mov edx, 0x103
sub edx, eax
lea eax, [esp + eax + 0x10]
je 0x401240
mov esi, str.InprocServer32
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x401238
mov byte [eax], cl
inc eax
dec edx
jne 0x401229
jmp 0x40123c
test edx, edx
jne 0x40123d
dec eax
mov byte [eax], 0
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push 0x20019
push 0
push edx
push closesocket
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012a7
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebp
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
add esp, 0x10c
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret
Function at 0x401b10
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, 1
test esi, esi
jne 0x401b24
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 [0x41ccd8], eax
call edi
push str.AddUrlWarrentRule
push esi
mov dword [0x41ccdc], eax
call edi
push str.AddDnsRule
push esi
mov dword [0x41cce0], eax
call edi
push str.AddResourceRule
push esi
mov dword [0x41cce4], eax
call edi
push str.UpdateUrlWarrent
push esi
mov dword [0x41cce8], eax
call edi
push str.ShutDownUrlWarrent
push esi
mov dword [0x41ccec], eax
call edi
mov ecx, dword [0x41ccd8]
mov dword [0x41ccf0], eax
test ecx, ecx
pop edi
je 0x401bc7
mov ecx, dword [0x41ccdc]
test ecx, ecx
je 0x401bc7
mov ecx, dword [0x41cce0]
test ecx, ecx
je 0x401bc7
mov ecx, dword [0x41cce4]
test ecx, ecx
je 0x401bc7
mov ecx, dword [0x41cce8]
test ecx, ecx
je 0x401bc7
mov ecx, dword [0x41ccec]
test ecx, ecx
je 0x401bc7
test eax, eax
jne 0x401bc9
xor ebx, ebx
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x402970
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1000
call fcn.00411cf0
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 0x4029fd
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 0x402a10
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 0x402b26
cmp dword [esp + 0x130], 0x104
jb 0x402b26
mov edx, dword [esp + 0x124]
cmp edx, esi
je 0x402b26
mov ebx, dword [esp + 0x128]
cmp ebx, esi
je 0x402b26
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.SOFTWARESangforSZGS_
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
cmp esi, 0x104
jge 0x402b26
mov edi, str.SOFTWARESangforSZGS_
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 0x402b33
push eax
push str._GetModulePath__RegOpenKeyEx_Failed__Return_d_n
call fcn.00402970
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 0x402cf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [str.CLSID_]
mov cx, word [0x416024]
mov dl, byte [0x416026]
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 0x402e01
mov ebp, dword [esp + 0x124]
test ebp, ebp
je 0x402e01
cmp dword [esp + 0x128], 0x104
jb 0x402e01
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x26
jne 0x402e01
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 0x402e0d
push eax
push str._GetPathByClsId_RegOpenKeyEx_Failed__Return_d_n
call fcn.00402970
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 0x402e5d
push esi
push str._GetPathByClsId_RegQueryValueEx_Failed__Return_d_n
call fcn.00402970
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