joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001857
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
push edi
push 0
push 0x10002f33
call fcn.1001fc58
mov edx, dword [0x100c1c2c]
add esp, 0xc
mov esi, eax
cmp edx, 5
jl 0x1000188e
push edi
push esi
push str.DEBUG:_Starting_thread__d.._event_is__d
call fcn.100144ba
mov edx, dword [0x100c1c2c]
add esp, 0xc
cmp esi, 0xffffffff
jne 0x100018a8
cmp edx, 5
jl 0x100018a3
push str.Error_in_HTTPD_thread_creation
call fcn.100144ba
pop ecx
or eax, 0xffffffff
jmp 0x100018ab
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret

Function at 0x100020aa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x100ba410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x803]
push 0x7ff
push ebx
push eax
mov edi, ecx
mov byte [ebp - 0x804], bl
call fcn.10023400
add esp, 0xc
lea eax, [ebp - 0x808]
mov esi, 0xf003f
push eax
push esi
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceNetwork_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10002130
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x808]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceNetwork_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x10002130
xor eax, eax
inc eax
jmp 0x10002231
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.10021c86
lea ecx, [ebp - 0x804]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002150
sub ecx, edx
lea eax, [ebp - 0x804]
push ecx
push eax
xor eax, eax
inc eax
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.Destination
push dword [ebp - 0x808]
call ebx
xor esi, esi
lea edx, [edi + 0x80c]
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [edx], eax
mov eax, 0xffff
sbb ecx, ecx
neg ecx
cmp eax, dword [edx]
sbb eax, eax
neg eax
or ecx, eax
je 0x100021a4
mov dword [edx], 0x1811
push 4
push edx
push 4
push 0
push str.DestPort
push dword [ebp - 0x808]
call ebx
test eax, eax
je 0x100021bd
inc esi
xor ecx, ecx
lea eax, [edi + 0x808]
inc ecx
cmp dword [eax], ecx
jbe 0x100021cc
mov dword [eax], ecx
push 4
push eax
push 4
push 0
push str.Syslog
push dword [ebp - 0x808]
call ebx
test eax, eax
je 0x100021e5
inc esi
push 4
lea eax, [edi + 0x800]
push eax
push 4
push 0
push str.SyslogDest
push dword [ebp - 0x808]
call ebx
test eax, eax
je 0x10002204
inc esi
push 4
lea eax, [edi + 0x804]
push eax
push 4
push 0
push str.SyslogDynamicCritic
push dword [ebp - 0x808]
call ebx
test eax, eax
je 0x10002223
inc esi
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001e010
mov esp, ebp
pop ebp
ret
Function at 0x10005e85
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, edx
mov dword [ebp - 0xc], ecx
push edi
mov edi, ecx
mov dword [ebp - 4], eax
mov ecx, eax
xor ebx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005e9f
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.1002010d
mov dword [ebp - 8], eax
mov esi, eax
pop ecx
test eax, eax
jne 0x10005ec2
mov byte [edi], bl
jmp 0x10005faf
mov edx, dword [ebp - 4]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 4], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005ecd
sub ecx, dword [ebp - 4]
push 0xffffffffffffffff
push edx
lea eax, [ecx + 1]
push eax
push dword [ebp - 8]
call fcn.10021c86
mov ecx, dword [ebp - 8]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005eef
sub ecx, edx
test ecx, ecx
jle 0x10005fa1
lea edx, [ecx - 1]
shr edx, 2
inc edx
xor edi, edi
xor ecx, ecx
mov al, byte [ecx + esi]
cmp al, 0x3d
jne 0x10005f15
inc edi
jmp 0x10005f3e
cmp al, 0x2b
jne 0x10005f1f
mov byte [ecx + esi], 0x3e
jmp 0x10005f3e
cmp al, 0x2f
jne 0x10005f29
mov byte [ecx + esi], 0x3f
jmp 0x10005f3e
cmp al, 0x39
jg 0x10005f31
add al, 4
jmp 0x10005f3b
cmp al, 0x5a
jg 0x10005f39
sub al, 0x41
jmp 0x10005f3b
sub al, 0x47
mov byte [ecx + esi], al
inc ecx
cmp ecx, 4
jl 0x10005f0b
mov cl, byte [esi]
mov al, byte [esi + 1]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0xc]
shl cl, 2
sar al, 4
or cl, al
inc ebx
cmp dword [ebp - 4], 2
mov byte [edi], cl
jge 0x10005f8d
mov cl, byte [esi + 2]
mov al, byte [esi + 1]
sar cl, 2
shl al, 4
or cl, al
inc ebx
cmp dword [ebp - 4], 1
mov byte [edi + 1], cl
jge 0x10005f87
mov al, byte [esi + 2]
shl al, 6
or al, byte [esi + 3]
inc ebx
mov byte [edi + 2], al
jmp 0x10005f91
mov byte [edi + 2], 0
jmp 0x10005f91
mov byte [edi + 1], 0
add edi, 3
add esi, 4
mov dword [ebp - 0xc], edi
dec edx
jne 0x10005f07
push dword [ebp - 8]
mov byte [edi], 0
call fcn.1001f0b9
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000619b
Capabilities:
Resolve function by hash
Resolve function by parsing pe exports

Disassembly:
push 0x250
push 0x100b2f80
call fcn.1008bae0
mov dword [ebp - 0x258], edx
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x244], edi
mov esi, edi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x240], edi
mov dword [ebp - 4], edi
cmp ecx, 0x6a4abc5b
jne 0x100061e0
mov eax, dword [0x100c2c00]
jmp 0x100061f5
cmp ecx, 0x3cfa685d
jne 0x100061ef
call fcn.10011a29
jmp 0x100061f5
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x238], eax
test eax, eax
je 0x1000635b
push 0x104
lea ecx, [ebp - 0x22c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x230], esi
cmp esi, 0xffffffff
je 0x10006355
push edi
push edi
push edi
push 2
push edi
push esi
call dword [0x100c2c08]
mov esi, eax
mov dword [ebp - 0x244], esi
cmp esi, 0xffffffff
je 0x10006355
push edi
push edi
push edi
push 4
push esi
call dword [0x100c2bf8]
mov ebx, eax
mov dword [ebp - 0x23c], ebx
test ebx, ebx
je 0x10006355
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov dword [ebp - 0x234], eax
push ecx
push dword [eax + 0x78]
mov edx, ebx
mov ecx, eax
call fcn.10002d9c
mov esi, eax
add esp, 4
push dword [esi + 0x24]
mov edx, ebx
mov ecx, dword [ebp - 0x234]
call fcn.10002d9c
mov dword [ebp - 0x260], eax
add esp, 4
push dword [esi + 0x1c]
mov edx, ebx
mov ecx, dword [ebp - 0x234]
call fcn.10002d9c
mov dword [ebp - 0x254], eax
add esp, 4
push dword [esi + 0x20]
mov edx, ebx
mov ecx, dword [ebp - 0x234]
call fcn.10002d9c
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x248], ecx
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x250], eax
mov esi, edi
mov dword [ebp - 0x25c], esi
cmp esi, eax
jae 0x10006355
push ecx
push dword [ecx + esi*4]
mov edx, ebx
mov ecx, dword [ebp - 0x234]
call fcn.10002d9c
pop ecx
pop ecx
mov dword [ebp - 0x24c], eax
mov edx, edi
mov cl, byte [eax]
ror edx, 0xd
movsx ecx, cl
add edx, ecx
inc eax
mov dword [ebp - 0x24c], eax
mov cl, byte [eax]
test cl, cl
jne 0x10006319
cmp edx, dword [ebp - 0x258]
jne 0x1000636f
mov eax, dword [ebp - 0x260]
movzx eax, word [eax + esi*2]
mov edi, dword [ebp - 0x254]
mov edi, dword [edi + eax*4]
add edi, dword [ebp - 0x238]
mov dword [ebp - 0x240], edi
mov esi, dword [ebp - 0x230]
mov dword [ebp - 4], 0xfffffffe
call fcn.10006399
mov eax, edi
call fcn.1008bb28
ret
inc esi
mov dword [ebp - 0x25c], esi
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x248]
jmp 0x100062f8
Function at 0x100078a3
Capabilities:
Get file size

Disassembly:
push 0x34
mov eax, 0x1008bfc4
call fcn.1004606d
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x3c], ecx
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push 0x100c1360
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x100079b9
push esi
push esi
push esi
push 2
push esi
push eax
call dword [0x100c2c08]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100079ab
push esi
push esi
push esi
push 4
push ebx
call dword [0x100c2bf8]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x100079ab
mov edi, dword [eax + 0x3c]
add edi, eax
push 0
push dword [ebp - 0x34]
movzx ecx, word [edi + 6]
dec ecx
imul esi, ecx, 0x28
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub eax, dword [esi + edi + 0x10c]
mov ecx, dword [ebp - 0x30]
sub eax, dword [esi + edi + 0x108]
push eax
mov dword [ecx], eax
call fcn.1001f0b0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
push dword [ecx]
mov ecx, dword [esi + edi + 0x10c]
add ecx, dword [esi + edi + 0x108]
mov esi, dword [ebp - 0x38]
add ecx, esi
push ecx
push eax
call fcn.1003e240
add esp, 0x10
lea ecx, [ebp - 0x2c]
mov edx, str.ZjUtZyGGZAC_18GN0VVK4apjqt_sCQjrG_ywaQjrlZy4kuu
call fcn.10002295
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x1000797e
mov eax, dword [eax]
mov edi, dword [ebp - 0x40]
mov ecx, edi
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call fcn.10008879
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.10002c1a
mov eax, dword [ebp - 0x3c]
push esi
mov dword [eax], edi
call dword [0x100c2c04]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x100079c0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1004601c
ret

Function at 0x1000a203
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test ecx, ecx
je 0x1000a250
mov edx, ecx
push esi
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1000a20d
sub edx, esi
pop esi
cmp edx, 3
jb 0x1000a250
mov al, byte [ecx]
cmp al, 0x61
jl 0x1000a226
cmp al, 0x7a
jle 0x1000a22e
cmp al, 0x41
jl 0x1000a250
cmp al, 0x5a
jg 0x1000a250
cmp byte [ecx + 1], 0x3a
jne 0x1000a250
cmp byte [ecx + 2], 0x5c
jne 0x1000a250
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000a250
test al, 0x10
push 0
pop eax
setne al
inc eax
ret
xor eax, eax
ret
Function at 0x1000a665
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x100ba410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x67]
push 0x63
push ebx
push eax
mov edi, ecx
mov byte [ebp - 0x68], bl
call fcn.10023400
add esp, 0xc
lea eax, [ebp - 0x6c]
mov esi, 0xf003f
push eax
push esi
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceConfig_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000a6d6
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceConfig_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1000a6d6
push 2
pop eax
jmp 0x1000a7be
push 0xffffffffffffffff
lea eax, [edi + 3]
push eax
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.10021c86
lea ecx, [ebp - 0x68]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a6f0
sub ecx, edx
lea eax, [ebp - 0x68]
push ecx
push eax
push 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.Clientname
push dword [ebp - 0x6c]
call ebx
xor esi, esi
test eax, eax
push 4
pop ecx
cmovne esi, ecx
lea eax, [edi + 0x468]
xor edx, edx
inc edx
cmp dword [eax], edx
jbe 0x1000a72a
mov dword [eax], edx
push ecx
push eax
push ecx
push 0
push str.Audit
push dword [ebp - 0x6c]
call ebx
test eax, eax
je 0x1000a740
add esi, 8
xor ecx, ecx
lea eax, [edi + 0x46c]
inc ecx
cmp dword [eax], ecx
jbe 0x1000a74f
mov dword [eax], ecx
push 4
push eax
push 4
push 0
push str.FileAudit
push dword [ebp - 0x6c]
call ebx
test eax, eax
je 0x1000a767
add esi, 0x10
lea eax, [edi + 0x470]
cmp dword [eax], 1
jbe 0x1000a775
and dword [eax], 0
push 4
push eax
push 4
push 0
push str.FileExport
push dword [ebp - 0x6c]
call ebx
test eax, eax
je 0x1000a78d
add esi, 0x10
lea eax, [edi + 0x474]
cmp dword [eax], 1
jbe 0x1000a79b
and dword [eax], 0
push 4
push eax
push 4
push 0
push str.CritAudit
push dword [ebp - 0x6c]
call ebx
test eax, eax
je 0x1000a7b3
add esi, 0x20
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001e010
mov esp, ebp
pop ebp
ret

Function at 0x1000abf6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov ecx, str.Status
mov edi, edx
call fcn.10014e3f
mov esi, eax
test esi, esi
je 0x1000ac5f
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
mov ebx, 0x400
push eax
push 0
push edi
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 1
je 0x1000ac57
push 0xffffffffffffffff
push 0x1009ee9c
push ebx
push dword [ebp + 8]
call fcn.1001fb15
add esp, 0x10
xor eax, eax
jmp 0x1000ac5e
xor eax, eax
test edi, edi
sete al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000aca7
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100ba410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, str.Objective
lea edi, [ebp - 0x18]
xor eax, eax
xor ebx, ebx
push ecx
push str.Objective_d
movsd dword es:[edi], dword [esi]
push 0xffffffffffffffff
push 0x14
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
call fcn.1001f145
add esp, 0x14
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceObjective_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000ad0a
xor eax, eax
inc eax
jmp 0x1000ad2a
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 2
pop ecx
push dword [ebp - 0x1c]
test eax, eax
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001e010
mov esp, ebp
pop ebp
ret

Function at 0x1000ae3f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [0x100c2af4]
push edi
push 2
pop edi
cmp dword [0x100c1c2c], edi
jl 0x1000ae67
push str.Entering_CNTService::ServiceMain__
push esi
call fcn.10010a05
pop ecx
pop ecx
push 0x100079dd
lea eax, [esi + 4]
mov dword [esi + 0x54], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x1000ae90
push ecx
push ecx
push eax
push 0x67
push 1
mov ecx, esi
call fcn.1000ad66
jmp 0x1000aee0
mov ecx, esi
call fcn.10012b62
xor ebx, ebx
test eax, eax
je 0x1000aeb4
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x6c], 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 1
mov ecx, esi
call fcn.1000869c
cmp dword [0x100c1c2c], edi
jl 0x1000aee0
push str.Leaving_CNTService::ServiceMain__
push esi
call fcn.10010a05
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000b123
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x100ba410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x3ff
lea eax, [ebp - 0x403]
xor ebx, ebx
mov edi, ecx
push esi
push ebx
push eax
mov byte [ebp - 0x404], bl
call fcn.10023400
push esi
lea eax, [ebp - 0x803]
mov byte [ebp - 0x804], bl
push ebx
push eax
call fcn.10023400
lea eax, [ebp - 0x804]
xor edx, edx
push eax
lea ecx, [ebp - 0x404]
call fcn.10008731
lea ecx, [ebp - 0x404]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b18a
mov esi, dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp - 0x404]
push ebx
sub ecx, edx
push ecx
push eax
push edi
call esi
push ebx
push 1
push 0x1009eb84
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.1001e010
mov esp, ebp
pop ebp
ret

Function at 0x1000b246
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push ecx
push 0x1000a886
push eax
push eax
call fcn.100209ba
mov ecx, dword [0x100c1c2c]
add esp, 0x18
mov dword [0x100c1570], eax
cmp ecx, 5
jl 0x1000b282
push eax
push str.DEBUG:_Starting_web_thread...
call fcn.100144ba
mov eax, dword [0x100c1570]
pop ecx
pop ecx
mov ecx, dword [0x100c1c2c]
test eax, eax
jne 0x1000b29a
cmp ecx, 5
jl 0x1000b296
push str.Error_in_web_thread_creation
call fcn.100144ba
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
inc eax
ret
Function at 0x1000c8f8
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
xor eax, eax
and dword [ebp - 4], 0
cmp dword [0x100c1c2c], 5
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0xc], eax
push edi
mov esi, edx
mov dword [ebp - 0x14], ebx
jl 0x1000c92c
push str.GetUserSid
call fcn.100144ba
mov eax, dword [ebp - 0xc]
pop ecx
test ebx, ebx
je 0x1000ca59
test esi, esi
je 0x1000ca59
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
and dword [ebp - 8], 0
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x1000c975
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000ca59
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000ca59
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000ca56
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x1000ca4c
cmp dword [ebp + 0xc], 0
je 0x1000ca19
cmp dword [ebp + 0x10], 0
je 0x1000ca19
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000c9f4
test dl, dl
je 0x1000c9f0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000c9f4
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000c9d4
xor eax, eax
jmp 0x1000c9f9
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000ca19
cmp dword [ebp - 0xc], 0
jne 0x1000ca19
push ebx
call edi
push dword [ebp - 0x10]
call edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x1000c942
push dword [ebp + 8]
mov edx, esi
mov ecx, ebx
call fcn.10015582
pop ecx
test eax, eax
jne 0x1000ca3f
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push str.Unknown
push dword [eax]
push esi
call fcn.10021c86
add esp, 0x10
push ebx
call edi
push dword [ebp - 0x10]
call edi
xor eax, eax
inc eax
jmp 0x1000ca70
push ebx
call edi
push dword [ebp - 0x10]
call edi
jmp 0x1000ca6e
push ebx
call edi
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push str.Unknown
push dword [eax]
push esi
call fcn.10021c86
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d05d
Capabilities:
Make an http request with a cookie
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x100ba410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3f
lea eax, [ebp - 0x47]
mov byte [ebp - 0x48], 0
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.10023400
add esp, 0xc
push 0xffffffffffffffff
cmp esi, 1
jne 0x1000d099
push str.text_html
jmp 0x1000d0b6
cmp esi, 2
jne 0x1000d0a5
push str.image_gif
jmp 0x1000d0b6
cmp esi, 3
jne 0x1000d0b1
push str.text_javascript
jmp 0x1000d0b6
push str.text_plain
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.10021c86
add esp, 0x10
cmp dword [0x100c1c2c], 5
jl 0x1000d0dd
lea eax, [ebp - 0x48]
push eax
push str.DisplayHTMLHeader:__s
call fcn.100144ba
pop ecx
pop ecx
lea eax, [ebp - 0x48]
mov ebx, 0x200
push eax
push str.HTTP_1.0_200_OK_r_nServer:_SNARE_1.0_r_nMIME_version:_1.0_r_nContent_type:__s_r_n
push 0xffffffffffffffff
lea eax, [ebp - 0x248]
push ebx
push eax
call fcn.1001f145
add esp, 0x14
cmp esi, 1
jne 0x1000d12c
mov esi, 0x100c2730
mov ecx, esi
call fcn.100154be
push 0x384
push esi
lea eax, [ebp - 0x248]
push eax
push str._sSet_Cookie:_chtok_s__Path___Max_Age:__d__HttpOnly_r_n
push 0xffffffffffffffff
push ebx
push eax
call fcn.1001f145
add esp, 0x1c
push 0xffffffffffffffff
push 0x100ac564
lea eax, [ebp - 0x248]
push ebx
push eax
call fcn.1001f294
lea ecx, [ebp - 0x248]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d14c
push 0
sub ecx, edx
lea eax, [ebp - 0x248]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001e010
mov esp, ebp
pop ebp
ret

Function at 0x1000d221
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, str.Status
mov ebx, edx
call fcn.10014e3f
mov ecx, dword [ebp + 8]
mov edi, eax
xor edx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, dx
jne 0x1000d23d
sub ecx, esi
sar ecx, 1
test edi, edi
jne 0x1000d255
xor eax, eax
inc eax
jmp 0x1000d27b
lea eax, [ecx*2 + 2]
push eax
push dword [ebp + 8]
push 1
push edx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000de0e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
mov esi, dword [0x100c2cd8]
mov ebx, 0x100c4cf0
push edi
je 0x1000de75
test esi, esi
je 0x1000de75
cmp dword [esi], 0xffffffff
je 0x1000de75
mov edi, dword [ebp + 8]
lea eax, [esi + 4]
push 0x10
push eax
push 0
push edi
push ebx
push dword [esi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x1000de59
sub edi, eax
add ebx, eax
lea eax, [esi + 4]
test edi, edi
jg 0x1000de35
xor eax, eax
inc eax
jmp 0x1000de77
cmp dword [0x100c1c2c], 9
jl 0x1000de75
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.error_sending_to_server._WSA_ERROR:__d
call fcn.100144ba
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000df44
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x2c
mov eax, 0x1008c326
call fcn.1004606d
mov esi, ecx
mov ecx, dword [esi + 0x3c]
mov edx, 0x10b
movzx eax, word [ecx + esi + 0x18]
cmp ax, dx
je 0x1000df71
mov ecx, 0x20b
xor eax, eax
call fcn.1004601c
ret
mov ecx, dword [ecx + esi + 0x78]
mov edx, esi
call fcn.1000232d
mov edx, esi
lea edi, [esi + eax]
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x30], edi
call fcn.1000232d
mov ecx, dword [edi + 0x24]
mov edx, esi
lea ebx, [esi + eax]
mov dword [ebp - 0x34], ebx
call fcn.1000232d
lea edi, [esi + eax]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x18]
jmp 0x1000e001
mov ecx, dword [ebx]
dec eax
mov edx, esi
mov dword [ebp - 0x38], eax
call fcn.1000232d
mov edx, str.NaGcoAGauu
lea ecx, [ebp - 0x2c]
lea ebx, [esi + eax]
call fcn.10002295
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x1000dfd0
mov eax, dword [eax]
push eax
push ebx
call fcn.1001e670
test eax, eax
pop ecx
pop ecx
setne bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10002c1a
test bl, bl
jne 0x1000e00a
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
add ebx, 4
mov dword [ebp - 0x34], ebx
add edi, 2
test eax, eax
jne 0x1000dfa7
jmp 0x1000df69
mov eax, dword [ebp - 0x30]
mov edx, esi
mov ecx, dword [eax + 0x1c]
call fcn.1000232d
movzx ecx, word [edi]
add eax, esi
mov edx, esi
mov ecx, dword [eax + ecx*4]
call fcn.1000232d
jmp 0x1000df6b