joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100022d9
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
call fcn.10005d10
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.10004000
mov edx, dword [esp]
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005db0
lea eax, [esp + 8]
push eax
call fcn.10005e10
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
push dword [esp + 0xc]
call fcn.10004e0a
call fcn.10005ea0
lea edx, [0x10009028]
call fcn.10004090
mov ecx, eax
call fcn.100040a0
je 0x10002365
mov edx, dword [esp + 4]
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005db0
lea edx, str..dll
push edx
call fcn.10005db0
lea eax, [esp + 8]
push eax
call fcn.10005e10
cmp dword [esp + 0x18], 0
je 0x10002418
push dword [0x1000b040]
lea edx, [0x10009028]
pop ecx
call fcn.100040a0
je 0x100023e4
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
push 0x104
call fcn.10004370
push 0x1000b040
call fcn.10005e10
push 0x104
mov eax, dword [0x1000b040]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
lea eax, [0x10009394]
push eax
push dword [0x1000b040]
call fcn.100043c0
push 0x1000b040
call fcn.10005e10
mov edx, dword [0x1000b040]
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005db0
lea edx, [0x10009394]
push edx
call fcn.10005db0
mov edx, dword [esp + 8]
push edx
call fcn.10005db0
lea eax, [esp + 8]
push eax
call fcn.10005e10
push dword [esp + 4]
call sub.KERNEL32.dll_LoadLibraryW
mov dword [esp + 8], eax
mov ebx, dword [esp + 8]
and ebx, ebx
jne 0x1000248c
push edx
call fcn.10005d70
pop edx
push eax
push 0x10
lea eax, str.PurePortable
push eax
push edx
call fcn.10005d70
pop edx
push eax
lea edx, str.Failed_load_original_dll_n
push edx
call fcn.10005db0
mov edx, dword [esp + 0x10]
push edx
call fcn.10005db0
call fcn.10005ea0
push 0
call fcn.100040f2
add dword [esp + 4], edx
call sub.USER32.dll_MessageBoxW
call fcn.10004110
push 0
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.KERNEL32.dll_TerminateProcess
mov eax, dword [esp + 8]
jmp 0x10002494
push dword [esp + 4]
call fcn.10005ed0
push dword [esp]
call fcn.10005ed0
add esp, 0xc
pop ebx
ret 8
Function at 0x10002aaa
Capabilities:
Terminate process

Disassembly:
xor eax, eax
push eax
push eax
push eax
call fcn.10005d10
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
push dword [esp + 0x18]
call fcn.100057c0
call fcn.10005ea0
lea eax, [esp + 4]
push eax
call fcn.10005e10
push 1
push dword [esp + 4]
call fcn.100022d9
mov dword [esp + 4], eax
push dword [esp + 0x14]
push dword [esp + 8]
call sub.KERNEL32.dll_GetProcAddress
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x10002b0a
xor eax, eax
jmp 0x10002b0f
mov eax, 1
and eax, eax
je 0x10002b8e
push edx
call fcn.10005d70
pop edx
push eax
push 0x10
lea eax, str.PurePortable
push eax
push edx
call fcn.10005d70
pop edx
push eax
lea edx, str.Error_init_proxy_function
push edx
call fcn.10005db0
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
push 0x18
push 0xffffffff
push dword [esp + 0x34]
call fcn.10005810
pop eax
call fcn.10005ea0
push 0
call fcn.100040f2
add dword [esp + 4], edx
call sub.USER32.dll_MessageBoxW
call fcn.10004110
push 0
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.KERNEL32.dll_TerminateProcess
jmp 0x10002b96
mov eax, dword [esp + 8]
jmp 0x10002b96
push dword [esp]
call fcn.10005ed0
add esp, 0xc
ret 8
Function at 0x10002e06
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
call fcn.10005d10
mov eax, dword [0x1000af40]
mov dword [0x1000b0b4], eax
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
push 0x7fff
call fcn.10004370
lea eax, [esp + 4]
push eax
call fcn.10005e10
push 0x7fff
mov eax, dword [esp + 4]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
mov eax, dword [esp + 8]
push eax
call fcn.100057c0
push 0x1000b164
call fcn.10005e10
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
push dword [0x1000b164]
call fcn.10004e7d
push 0x1000b210
call fcn.10005e10
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
lea eax, [0x10009394]
push eax
push dword [0x1000b210]
call fcn.100043c0
push 0x1000b058
call fcn.10005e10
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
push 1
push dword [0x1000b164]
call fcn.10004efc
push 0x1000b208
call fcn.10005e10
push 0x7fff
mov eax, dword [esp + 4]
push eax
push dword [0x1000b0b4]
call sub.KERNEL32.dll_GetModuleFileNameW
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
mov eax, dword [esp + 8]
push eax
call fcn.100057c0
push 0x1000af5c
call fcn.10005e10
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
push dword [0x1000af5c]
call fcn.10004e7d
push 0x1000b100
call fcn.10005e10
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
lea eax, [0x10009394]
push eax
push dword [0x1000b100]
call fcn.100043c0
push 0x1000b190
call fcn.10005e10
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
push 1
push dword [0x1000af5c]
call fcn.10004efc
push 0x1000b000
call fcn.10005e10
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryW
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
lea eax, [0x10009394]
push eax
push dword [esp + 0xc]
call fcn.100043c0
push 0x1000b120
call fcn.10005e10
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
lea eax, [0x10009394]
push eax
push dword [esp + 0xc]
call fcn.100043c0
push 0x1000b040
call fcn.10005e10
mov eax, dword [esp]
push eax
push 0x7fff
call sub.KERNEL32.dll_GetTempPathW
push edx
call fcn.10005d70
pop edx
push eax
push edx
call fcn.10005d70
pop edx
push eax
lea eax, [0x10009394]
push eax
push dword [esp + 0xc]
call fcn.100043c0
push 0x1000b118
call fcn.10005e10
xor eax, eax
push dword [esp]
call fcn.10005ed0
add esp, 4
ret
Function at 0x10004262
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x1000b288], 0
push ebx
push esi
mov esi, 0x1000b290
jne 0x1000428e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x1000b2a8], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1000b288], 1
push dword [0x1000b2a8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x1000432b
push 0x14
push 8
push dword [0x1000af3c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x10004355
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1000b28c]
test eax, eax
je 0x100042d0
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x1000b28c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x1000435a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x1000b2a8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x1000af3c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10004355
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x10005079
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x1000508f
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x1000b2b8]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100050c6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x1000af3c]
mov dword [0x1000b2bc], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x1000b2bc]
call ebx
mov eax, dword [0x1000b2b8]
mov edi, eax
add eax, esi
push eax
push dword [0x1000b2bc]
mov dword [0x1000b2b8], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x1000af3c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x1000b2bc]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x10005106
test ebx, ebx
je 0x10005127
push 0x14
push 0x1000b2b4
call fcn.10005341
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x10005127
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x10005e10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1000a988]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10005e56
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x1000b4f8]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x10005e77
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x1000b4f8]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10006190
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x10005ea0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1000a988]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x10006030
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1000a988]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x10006054
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x100060a4
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x1000b4f8]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x100060ec
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x100060ec
cmp dword [ebp - 8], 0x100000
jge 0x100060c0
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x1000b4f8]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x10006110
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1000a988]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x1000614e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x1000614e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x10006150
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x100061e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1000a988]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10006560
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1000a988]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x403509
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0xf0000020
push 1
xor esi, esi
push esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x40356f
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40356f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40356f
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
leave
ret

Function at 0x404317
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ecx + 0xa0]
xor edi, edi
cmp dword [eax + 0x18], 0x10
jb 0x404330
mov eax, dword [eax + 4]
jmp 0x404333
add eax, 4
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404378
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40436f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404380
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x407b79
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor bl, bl
call fcn.00407b47
test eax, eax
mov dword [ebp - 4], eax
je 0x407be7
push edi
mov ecx, esi
call fcn.00407ab8
lea eax, [ebp - 8]
push eax
xor eax, eax
lea ebx, [esi + 0xc]
push ebx
push eax
lea edi, [esi + 4]
push edi
push eax
push dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
push dword [edi]
call fcn.004149ef
push dword [ebx]
mov dword [esi + 8], eax
call fcn.004149ef
pop ecx
pop ecx
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push edi
push dword [esi + 8]
mov dword [esi + 0x10], eax
push dword [ebp - 4]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x407ee1
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x3c4]
sub esp, 0x444
mov eax, dword [0x452724]
xor eax, ebp
mov dword [ebp + 0x3c0], eax
mov edx, dword [str.Firefox]
mov ecx, dword [ebp + 0x3cc]
mov eax, dword [ebp + 0x3d0]
push esi
push edi
mov esi, str.profiles.ini
lea edi, [ebp + 0x3a0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x3b0], edx
mov edx, dword [0x42fd64]
movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x3b4], edx
mov edx, dword [str.Mozilla]
movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x3b8], edx
mov edx, dword [0x42fd4c]
xor esi, esi
cmp ecx, esi
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x80], eax
mov dword [ebp + 0x3bc], edx
je 0x4080c7
cmp eax, esi
je 0x4080c7
push 0x104
mov dword [eax], esi
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00414b30
push esi
push 0x1a
lea eax, [ebp - 0x70]
push eax
push esi
call fcn.00413ae6
add esp, 0x1c
test eax, eax
jl 0x4080c3
push ebx
lea eax, [ebp + 0x3a0]
push eax
lea eax, [ebp + 0x3b0]
push eax
lea eax, [ebp + 0x3b8]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x198]
push str._s_s_s_s
push eax
call fcn.00417806
push esi
mov ebx, str.Profile_d
lea eax, [ebp + 0x29c]
push ebx
push eax
mov dword [ebp - 0x74], esi
call fcn.00417806
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x24
mov edi, str.IsRelative
jmp 0x4080a3
lea eax, [ebp + 0x198]
push eax
push 0x104
lea eax, [ebp + 0x94]
push eax
push 0x42f944
push str.Path
lea eax, [ebp + 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x4080c2
lea eax, [ebp + 0x198]
push eax
push 0xffffffffffffffff
push str.Default
lea eax, [ebp + 0x29c]
push eax
call esi
cmp eax, 1
je 0x408032
cmp dword [ebp - 0x74], 0
jne 0x40808d
cmp dword [ebp - 0x7c], 1
lea eax, [ebp + 0x94]
jne 0x408074
push 0x2f
push eax
call fcn.00417b37
mov byte [eax], 0x5c
lea eax, [ebp + 0x94]
push eax
lea eax, [ebp + 0x3b0]
push eax
lea eax, [ebp + 0x3b8]
push eax
lea eax, [ebp - 0x70]
push eax
push str._s_s_s_s
push dword [ebp - 0x78]
call fcn.00417806
add esp, 0x20
jmp 0x40807f
push eax
push dword [ebp - 0x78]
call fcn.00418030
pop ecx
pop ecx
push dword [ebp - 0x78]
call fcn.00416cb0
pop ecx
mov ecx, dword [ebp - 0x80]
mov dword [ecx], eax
inc dword [ebp - 0x74]
push dword [ebp - 0x74]
lea eax, [ebp + 0x29c]
push ebx
push eax
call fcn.00417806
add esp, 0xc
lea eax, [ebp + 0x198]
push eax
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x29c]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
jne 0x407fde
pop ebx
mov al, 1
jmp 0x4080c9
xor al, al
mov ecx, dword [ebp + 0x3c0]
pop edi
xor ecx, ebp
pop esi
call fcn.00414b1e
add ebp, 0x3c4
leave
ret 8
Function at 0x40932f
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push 0xa8
mov eax, 0x42d5d9
call fcn.00415521
push 1
push 3
lea ecx, [ebp - 0xb4]
call fcn.0040746e
xor esi, esi
mov dword [ebp - 4], esi
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x10], esi
mov eax, str.StandardProfile
jne 0x409365
mov eax, str.DomainProfile
push str.AuthorizedApplicationsList
push eax
lea eax, [ebp - 0xac]
push str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicy_
push eax
call fcn.00406cbc
pop ecx
pop ecx
push eax
call fcn.00406cbc
pop ecx
pop ecx
push eax
call fcn.00406cbc
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xb4]
call fcn.004056a0
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
jb 0x4093ac
mov eax, dword [eax + 4]
jmp 0x4093af
add eax, 4
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [ebp - 4], 0
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004049c1
test bl, bl
je 0x409430
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp + 0xc], esi
je 0x409417
test eax, eax
je 0x409427
push dword [ebp + 0xc]
call fcn.00416cb0
pop ecx
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x409427
test eax, eax
jne 0x409427
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004047e0
lea ecx, [ebp - 0x60]
call fcn.00403af4
call fcn.004155f9
ret 0xc
Function at 0x409c10
Capabilities:
Terminate thread

Disassembly:
push 0x118
mov eax, 0x42d6fe
call fcn.004155c0
mov edi, ecx
mov dword [ebp - 0x118], edi
xor ebx, ebx
xor al, al
cmp dword [ebp + 8], 0x13
ja 0x409d80
push 1
lea eax, [edi + 0x18bc]
push eax
lea ecx, [ebp - 0x124]
call fcn.00409a37
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
imul eax, eax, 0x13c
lea esi, [eax + edi]
push dword [esi + 0xc]
push dword [ebp + 8]
push str.CModule::StopModule_Stop:__ld__s
call fcn.004140dd
add esp, 0xc
cmp dword [esi + 0x20], ebx
je 0x409c7d
mov esi, dword [esi + 0x28]
cmp esi, ebx
je 0x409c7d
call esi
mov dword [ebp - 4], ebx
jmp 0x409cc4
or dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CriticalSectionLock.virtual_0], vtable.CriticalSectionLock.0
lea ecx, [ebp - 0x124]
call fcn.004098e8
mov eax, dword [ebp + 8]
imul eax, eax, 0x13c
lea esi, [eax + edi]
cmp dword [esi + 0x20], ebx
je 0x409d7e
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x409d74
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x409d74
mov dword [ebp - 4], 3
push dword [esi + 0xc]
push dword [ebp + 8]
push str.CModule::StopModule_Terminate:__ld__s
call fcn.004140dd
add esp, 0xc
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or dword [ebp - 4], 0xffffffff
jmp 0x409d74
push dword [ebp + 8]
mov ecx, edi
call fcn.00409ad8
mov al, 1
call fcn.0041561c
ret 8
Function at 0x40a2d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor ecx, ecx
cmp byte [ebp + 8], cl
je 0x40a2fa
mov eax, dword [esi + 0x18d8]
cmp eax, ecx
je 0x40a2f2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40a31b
push esi
call fcn.0040a28d
jmp 0x40a31b
cmp dword [esi + 0x18d8], ecx
jne 0x40a31b
lea eax, [ebp + 8]
push eax
push ecx
push esi
push fcn.0040a28d
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18d8], eax
pop esi
pop ebp
ret 4