joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c460
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475dd0
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x38]
lea edi, [esi + 0x38]
mov eax, dword [eax + 8]
mov ecx, edi
call eax
test al, al
jne 0x43c551
movzx edx, word [esi + 0x60]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x30], 0
push 0
lea ecx, [esi + 0x48]
mov dword [esp + 0x18], vtable.log4cplus::helpers::Socket.0
call fcn.00436470
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x43c50b
push 4
lea ecx, [esp + 0x10]
push ecx
push 1
push 6
push eax
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x43c516
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.00456953
mov dword [eax], esi
call fcn.00456953
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], 1
cmp eax, edi
je 0x43c539
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], vtable.log4cplus::helpers::AbstractSocket.0
cmp eax, 0xffffffff
je 0x43c551
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x24]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43cb2e
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x475ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
movzx edx, word [ecx - 0x34]
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 4], 0
lea eax, [edi + 8]
mov dword [edi + 4], 0xffffffff
mov dword [eax], 1
mov dword [edi + 0xc], 0
push eax
mov dword [esp + 0x14], 0
push 0
add ecx, 0xffffffb4
mov dword [edi], vtable.log4cplus::helpers::Socket.0
call fcn.00436470
add esp, 8
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x43c861
push 4
lea ecx, [esp + 0x1c]
push ecx
push 1
push 6
push eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x43c86b
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.00456953
mov dword [eax], esi
pop esi
call fcn.00456953
mov eax, dword [eax]
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 8]
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
sub ecx, dword [ecx - 4]
jmp 0x43c7d0
Function at 0x43cc50
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x475f08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edi
lea eax, [edi + 8]
mov dword [edi + 4], 0xffffffff
mov dword [eax], 1
mov dword [edi + 0xc], 0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
push eax
push dword [esp + 0x28]
mov dword [edi], vtable.log4cplus::helpers::Socket.0
call fcn.00436470
add esp, 8
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x43cce4
cmp byte [esp + 0x24], 0
jne 0x43ccee
push 4
lea ecx, [esp + 0x28]
push ecx
push 1
push 6
push eax
mov dword [esp + 0x38], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x43ccee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.00456953
mov dword [eax], esi
call fcn.00456953
mov eax, dword [eax]
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 0xc
Function at 0x469b3e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x490bcc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00455d01
mov dword [ebp - 0x14], eax
cmp dword [0x494e7c], edi
jne 0x469c2f
push 0x800
push edi
push 0x47d504
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x469bbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x469d0f
push 0x47d504
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x469d0f
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x469d0f
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x494e7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x494e80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x494e84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x494e8c], eax
test eax, eax
je 0x469c2c
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x494e88], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x469c54
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x469c47
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x469c69
push 4
pop eax
jmp 0x469d11
cmp dword [ebp - 0x14], edi
je 0x469c69
push dword [0x494e7c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x469c4e
mov eax, dword [0x494e88]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x469cc7
cmp dword [0x494e8c], esi
je 0x469cc7
push eax
call ebx
push dword [0x494e8c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x469cc7
test eax, eax
je 0x469cc7
call ecx
test eax, eax
je 0x469cbc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x469cbc
test byte [ebp - 8], 1
jne 0x469cc7
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x469cf7
mov eax, dword [0x494e80]
cmp eax, esi
je 0x469cf4
push eax
call ebx
test eax, eax
je 0x469cf4
call eax
mov edi, eax
test edi, edi
je 0x469cf4
mov eax, dword [0x494e84]
cmp eax, esi
je 0x469cf4
push eax
call ebx
test eax, eax
je 0x469cf4
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x494e7c]
call ebx
test eax, eax
je 0x469d0f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x469d11
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451fd2
leave
ret
Function at 0x46bee6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004612c2
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x46bf1e
xor eax, eax
jmp 0x46bf4a
cmp esi, dword [ebp - 4]
je 0x46bf47
cmp dword [ebp + 0xc], 0
je 0x46bf47
push dword [edi + 0x9c]
call fcn.0046baf4
push dword [edi + 0x9c]
mov esi, eax
call fcn.00456a92
pop ecx
pop ecx
cmp esi, eax
je 0x46bf1a
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x402774
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
test eax, eax
je 0x4027c5
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4027c5
and dword [ebp - 4], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4027d5
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x1f
lea eax, [ebp - 0x48]
push eax
push str.hh_mm_ss
push ebx
push 0x40000000
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea eax, [ebp - 0x48]
push eax
push 0x411b76
push edi
push esi
call fcn.0040a030
add esp, 0x10
xor eax, eax
inc eax
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
cmp dword [ebp + 8], 0
je 0x4028c1
test esi, esi
je 0x4028c1
cmp byte [esi], 0
je 0x4028c1
test edi, edi
je 0x4028c1
cmp byte [edi], 0
je 0x4028c1
test ebx, ebx
je 0x4028c1
cmp dword [ebp + 0x18], 0
je 0x4028c1
push dword [ebp + 0x18]
push 0
push ebx
call fcn.00409660
add esp, 0xc
lea eax, [ebp - 4]
push eax
xor eax, eax
cmp dword [ebp + 0x1c], 0
setne al
neg eax
and eax, 0x100
inc eax
push eax
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4028c1
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4028c5
mov eax, dword [ebp - 0xc]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4028c5
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402913
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
dec eax
cmp eax, 3
ja case.0x4028ba.4
mov eax, dword [ebp + 0x18]
lea edi, [eax - 1]
mov eax, dword [ebp - 0x10]
jmp dword [eax*4 + 0x411038]
xor eax, eax
jmp 0x402925
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4028c1
push esi
push 0x411b76
push edi
push ebx
call fcn.0040a030
add esp, 0x10
jmp case.0x4028ba.4
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp case.0x4028ba.4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
jmp 0x402925
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4028c1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ad10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
jne 0x40ad43
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.0040ab70
add esp, 0x14
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
lea eax, [eax + edi*4]
push eax
call fcn.0040cac0
pop ecx
mov ebx, eax
test ebx, ebx
je 0x40ad95
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebx + edi*4]
push eax
push ebx
push esi
call fcn.0040ab70
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x415b04], eax
mov dword [0x415b00], ebx
jmp 0x40ad9d
push 0xfffffffffffffffc
call fcn.0040af30
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40adb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 4], eax
test eax, eax
je 0x40ae3c
mov eax, dword [ebp - 4]
xor edx, edx
cmp byte [eax], 0
je 0x40ade9
or ecx, 0xffffffff
inc ecx
cmp byte [eax + ecx], 0
jne 0x40add3
inc ecx
cmp byte [eax], 0x3d
je 0x40ade2
add edx, ecx
add eax, ecx
cmp byte [eax], 0
jne 0x40add0
inc edx
push edx
call fcn.0040cac0
pop ecx
mov dword [0x415b08], eax
test eax, eax
je 0x40ae4f
mov edx, eax
mov eax, dword [ebp - 4]
mov esi, eax
cmp byte [esi], 0
je 0x40ae2e
or eax, 0xffffffff
inc eax
cmp byte [esi + eax], 0
jne 0x40ae09
lea edi, [eax + 1]
cmp byte [esi], 0x3d
je 0x40ae27
xor ecx, ecx
mov al, byte [esi + ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40ae1a
add edx, edi
add esi, edi
cmp byte [esi], 0
jne 0x40ae06
mov byte [edx], 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40ae57
push 1
push 1
call fcn.0040cb20
add esp, 8
mov dword [0x415b08], eax
jmp 0x40ae57
push 0xfffffffffffffffc
call fcn.0040af30
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d7c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, edx
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0x808], edx
xor edi, edi
mov dword [ebp - 0x80c], 0
cmp esi, dword [ebp - 0x808]
jae 0x40d891
lea eax, [ebp - 0x804]
cmp byte [esi], 0xa
jne 0x40d80d
add dword [ebp - 0x80c], 1
mov byte [eax], 0xd
inc eax
inc eax
inc esi
mov dl, byte [esi - 1]
mov byte [eax - 1], dl
lea edx, [ebp - 5]
cmp eax, edx
jae 0x40d824
cmp esi, dword [ebp - 0x808]
jb 0x40d7fd
lea edx, [ebp - 0x804]
mov ebx, eax
sub ebx, edx
push dword [ebp + 0xc]
call fcn.0040fef0
pop ecx
test al, al
je 0x40d866
push dword [ebp + 0xc]
call fcn.0040fe80
pop ecx
push ebx
lea edx, [ebp - 0x804]
push edx
push eax
call fcn.00410070
add esp, 0xc
test al, al
je 0x40d895
add edi, ebx
inc esi
cmp esi, dword [ebp - 0x808]
jb 0x40d7f7
jmp 0x40d891
push dword [ebp + 0xc]
call fcn.0040fe80
pop ecx
push 0
lea edx, [ebp - 4]
push edx
push ebx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d89c
mov eax, dword [ebp - 4]
add edi, eax
cmp eax, ebx
jae 0x40d85b
xor esi, esi
jmp 0x40d8a4
mov esi, 0x1d
jmp 0x40d8a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x80c]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov dword [eax + 8], esi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d8d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, edx
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0x80c], edx
mov dword [ebp - 0x808], 0
xor edi, edi
cmp esi, dword [ebp - 0x80c]
jae 0x40d997
lea eax, [ebp - 0x804]
cmp word [esi], 0xa
jne 0x40d91e
add edi, 2
mov word [eax], 0xd
add eax, 2
add eax, 2
add esi, 2
mov dx, word [esi - 2]
mov word [eax - 2], dx
lea edx, [ebp - 6]
cmp eax, edx
jae 0x40d93b
cmp esi, dword [ebp - 0x80c]
jb 0x40d90d
lea edx, [ebp - 0x804]
mov ebx, eax
sub ebx, edx
push dword [ebp + 0xc]
call fcn.0040fef0
pop ecx
test al, al
je 0x40d9b1
push dword [ebp + 0xc]
call fcn.0040fe80
pop ecx
push 0
lea edx, [ebp - 4]
push edx
mov edx, ebx
shr edx, 1
push edx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x40d9a3
shl dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add dword [ebp - 0x808], eax
cmp eax, ebx
jb 0x40d997
add esi, 2
cmp esi, dword [ebp - 0x80c]
jb 0x40d907
mov dword [ebp - 0x810], 0
jmp 0x40d9df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x810], eax
jmp 0x40d9df
push dword [ebp + 0xc]
call fcn.0040fe80
pop ecx
push 0
lea edx, [ebp - 4]
push edx
push ebx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d97b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x810], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x808]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x810]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40da10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ebx, edx
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0xc0c], edx
mov dword [ebp - 0xc08], 0
cmp ebx, dword [ebp - 0xc0c]
jae 0x40dac2
lea eax, [ebp - 0x404]
cmp word [ebx], 0xa
jne 0x40da59
mov word [eax], 0xd
add eax, 2
add eax, 2
add ebx, 2
mov dx, word [ebx - 2]
mov word [eax - 2], dx
lea edx, [ebp - 6]
cmp eax, edx
jae 0x40da76
cmp ebx, dword [ebp - 0xc0c]
jb 0x40da4b
push 0
push 0
push 0x800
lea edx, [ebp - 0xc04]
push edx
lea edx, [ebp - 0x404]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x40dace
lea esi, [ebp + eax - 0xc04]
lea eax, [ebp - 0xc04]
cmp esi, eax
jbe 0x40db27
lea edi, [ebp - 0xc04]
jmp 0x40db00
mov dword [ebp - 0xc10], 0
jmp 0x40dada
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc08]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc10]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
jmp 0x40db6a
push dword [ebp + 0xc]
call fcn.0040fe80
pop ecx
push 0
lea edx, [ebp - 4]
push edx
mov edx, esi
sub edx, edi
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40db46
add edi, dword [ebp - 4]
cmp edi, esi
jb 0x40db00
mov eax, ebx
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0xc08], eax
add ebx, 2
cmp ebx, dword [ebp - 0xc0c]
jb 0x40da45
jmp 0x40dac2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc08]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10020fb
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov ax, word [esi]
cmp ax, 0x22
push 2
pop ecx
jne 0x100212e
add esi, ecx
mov ax, word [esi]
test ax, ax
je 0x1002126
cmp ax, 0x22
jne 0x1002116
cmp word [esi], 0x22
jne 0x1002146
jmp 0x1002144
cmp ax, 0x20
jbe 0x1002146
add esi, ecx
cmp word [esi], 0x20
ja 0x1002134
jmp 0x1002146
cmp ax, 0x20
ja 0x100214e
add esi, ecx
mov ax, word [esi]
test ax, ax
jne 0x100213e
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x18], 1
je 0x1002168
movzx eax, word [ebp - 0x14]
jmp 0x100216b
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Move file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x6f
pop eax
push 0x70
mov word [ebp - 0xc], ax
pop eax
push 0x65
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
push 0x6e
pop eax
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002030]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, bx
jne 0x1000117a
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.fadfafafasf
push str.fasdfaf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push ebx
push ebx
push 0x1000208c
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
mov edi, 0x10003028
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x100011d3
push 0x40
mov ebx, pe_overlay
mov esi, 0x10002090
push ebx
movsd dword es:[edi], dword [esi]
push ebx
push 0
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
mov eax, 0x10003028
lea edi, [eax - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10001204
mov esi, str.top.ini
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
pop edi
cmp eax, 0xffffffff
je 0x1000127a
push esi
push 0x10003020
push ebx
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003018]
movzx ecx, byte [eax]
xor ecx, 0x4e
cmp dword [0x10003020], esi
jbe 0x10001278
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003020]
jb 0x10001264
call eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x401000
Capabilities:
Execute command
Terminate process

Disassembly:
push str.start______cd_BIN_thorium.exe____user_data_dir__cd_USER_DATA____allow_outdated_plugins___disable_logging___disable_breakpad___disable_encryption___disable_machine_id_n
call dword [sym.imp.MSVCRT.DLL__wsystem]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x402eac
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404634
test esi, esi
jne 0x402ee3
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404724
jmp 0x402f04
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d48
mov dword [esp], eax
test esi, esi
je 0x402f04
cmp dword [ebx], 0
je 0x402f04
dec esi
jmp 0x402eeb
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4bd020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036c8
xor eax, eax
push ebp
push 0x4036c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403704
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4bd020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4bd020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40442c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c004c], 0
je 0x40448d
cmp word [0x4c0220], 0xd7b2
jne 0x404455
cmp dword [0x4c0228], 0
jbe 0x404455
mov eax, 0x4c021c
call dword [0x4c0238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4bd06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4044b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bd030], 0
jne 0x4044a9
push 0
push 0x4bd064
push 0x4bd06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4045e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402ae8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4c004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4045b0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc