joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413d10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x500
lea ebx, [ebp - 0x4f8]
call fcn.00419d70
mov dword [esp + 4], 0x413d00
mov edx, dword [0x4b7324]
mov dword [esp], ebx
sub edx, eax
mov eax, dword [0x4be538]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
call fcn.00482b40
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00457590
mov esi, eax
mov ecx, ebx
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x413d60
test edx, 0x8080
jne 0x413d85
shr edx, 0x10
add ecx, 2
mov dword [esp + 4], esi
add dl, dl
sbb ecx, 3
mov dword [esp], ecx
call fcn.00482b40
mov dword [esp], ebx
call sub.KERNEL32.DLL_OutputDebugStringA
mov eax, dword [0x4be518]
sub esp, 4
mov ecx, ebx
test eax, eax
jne 0x413e07
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x413db0
test edx, 0x8080
jne 0x413dd5
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, ebx
lea eax, [ecx + 5]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [0x4be518], eax
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
inc dword [0x4be528]
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], 0x413d0d
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov eax, dword [0x4be518]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov esi, eax
mov ecx, ebx
nop
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x413e30
test edx, 0x8080
jne 0x413e55
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, ebx
lea eax, [ecx + esi + 5]
mov dword [esp + 4], eax
mov eax, dword [0x4be518]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [0x4be518], eax
call sub.msvcrt.dll_strcat
jmp 0x413df8
Function at 0x424190
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov dword [ebp - 8], ebx
lea ebx, [ebp - 0x128]
mov dword [ebp - 4], esi
mov dword [esp + 4], 0x111
mov dword [esp], ebx
call sub.KERNEL32.DLL_GetSystemDirectoryA
sub esp, 8
test eax, eax
jne 0x4241c6
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 4], 0x424069
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll__access
test eax, eax
jne 0x4241bc
mov dword [esp + 8], ebx
lea esi, [ebp - 0x2c8]
mov dword [esp + 4], 0x424080
mov dword [esp], esi
call fcn.00482b40
mov dword [esp + 0xc], 0x2024
mov dword [esp + 8], 0x4240bb
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
cmp eax, 6
jne 0x4241bc
mov dword [esp], ebx
call sub.KERNEL32.DLL_DeleteFileA
sub esp, 4
test eax, eax
jne 0x4241bc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x4240e0
mov dword [esp], esi
call fcn.00482b40
mov dword [esp + 0xc], 0x2030
mov dword [esp + 8], 0x424175
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
jmp 0x4241bc

Function at 0x425470
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0x4cead0
mov dword [esp + 8], 0x425420
mov dword [0x4cead0], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [0x4cead4], eax
lea eax, [ebp - 4]
mov dword [esp + 0x14], eax
call sub.KERNEL32.DLL_CreateThread
sub esp, 0x18
mov esp, ebp
pop ebp
ret

Function at 0x42ef10
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
cmp byte [eax], 0
je 0x42ef30
mov ebx, dword [eax + 4]
xor esi, esi
cmp esi, dword [ebx]
jb 0x42ef41
xor edx, edx
mov ebx, dword [ebp - 0xc]
mov eax, edx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0042ed00
mov edi, eax
mov esi, esi
mov eax, dword [edi]
mov dword [esp + 4], eax
mov eax, dword [ebx + esi*8 + 4]
mov dword [esp], eax
call sub.ADVAPI32.DLL_EqualSid
sub esp, 8
mov edx, 1
test eax, eax
jne 0x42ef32
inc esi
cmp esi, dword [ebx]
jb 0x42ef50
jmp 0x42ef30
Function at 0x4316b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret

Function at 0x431a10
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add eax, 0x10
and eax, 0xfffffff0
call fcn.0047fb50
mov dword [esp + 4], ebx
lea edi, [esp + 0xc]
mov dword [esp], edi
call sub.msvcrt.dll_strcpy
mov dword [esp], edi
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
je 0x431a5c
test al, 0x10
jne 0x431b00
mov edx, dword [ebp + 8]
test edx, edx
jne 0x431b2a
movzx eax, byte [edi]
mov ecx, edi
test al, al
je 0x431b00
mov dl, al
lea esi, [esi]
lea edi, [edi]
xor eax, eax
cmp dl, 0x3a
sete al
dec eax
and esi, eax
cmp dl, 0x2f
je 0x431b23
cmp dl, 0x5c
je 0x431b23
inc ecx
movzx eax, byte [ecx]
test al, al
mov dl, al
jne 0x431a80
test esi, esi
je 0x431b00
mov eax, esi
sub eax, edi
cmp eax, 2
je 0x431b1b
movzx ebx, byte [esi]
mov byte [esi], 0
mov dword [esp + 4], edi
mov dword [esp], 1
call fcn.00431a10
test eax, eax
je 0x431ae8
mov byte [esi], bl
mov esp, dword [ebp - 0x10]
mov eax, 1
nop
lea esi, [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [esi], bl
mov eax, dword [ebp + 8]
test eax, eax
jne 0x431b07
jmp 0x431b00
mov esp, dword [ebp - 0x10]
xor eax, eax
jmp 0x431ae0
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00431a10
mov esp, dword [ebp - 0x10]
jmp 0x431ae0
cmp byte [edi + 1], 0x3a
jne 0x431ab4
jmp 0x431ad0
mov esi, ecx
jmp 0x431a9d
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.KERNEL32.DLL_CreateDirectoryA
sub esp, 8
test eax, eax
jne 0x431b00
call fcn.00471630
mov edx, eax
lea eax, [eax - 2]
cmp eax, 1
jbe 0x431a67
cmp edx, 0xb7
jne 0x431ad0
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4319d0
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00413ea0
mov dword [esp], edi
call sub.KERNEL32.DLL_DeleteFileA
sub esp, 4
test eax, eax
je 0x431ad0
jmp 0x431b07
Function at 0x431bb0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x21c]
push ebx
sub esp, 0x244
lea ebx, [ebp - 0x218]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x483200
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x483100
call sub.OLE32.dll_CoCreateInstance
mov edx, dword [ebp - 0x21c]
sub esp, 0x14
lea eax, [ebp - 0x220]
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4728a0
call dword [ecx]
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp + 8]
mov ecx, dword [edx]
sub esp, 0xc
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx]
sub esp, 8
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [ecx + 0x2c]
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [edx]
sub esp, 8
mov dword [esp], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [ecx + 0x44]
mov eax, dword [ebp + 0x14]
sub esp, 0xc
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.DLL_MultiByteToWideChar
mov eax, dword [ebp - 0x220]
sub esp, 0x18
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp + 8], 1
mov dword [esp], eax
call dword [edx + 0x18]
mov eax, dword [ebp - 0x220]
mov edx, dword [eax]
sub esp, 0xc
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax]
sub esp, 4
mov dword [esp], eax
call dword [edx + 8]
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
Function at 0x431ce0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x23c
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], edi
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
sub esp, 0x1c
cmp ebx, 0xffffffff
mov eax, 1
je 0x431e00
mov byte [ebp - 0x20e], 0
mov eax, 0x3e6b
mov ecx, 0x79733c21
mov word [ebp - 0x210], ax
mov edx, 0x6e696c6d
lea esi, [ebp - 0x218]
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x214], edx
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
mov ecx, esi
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x431d80
test edx, 0x8080
jne 0x431da5
shr edx, 0x10
add ecx, 2
mov dword [esp + 0x10], 0
add dl, dl
lea edx, [ebp - 0x21c]
sbb ecx, 3
sub ecx, esi
lea eax, [ecx + 1]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
test eax, eax
je 0x431e08
mov dword [esp], ebx
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov dword [esp + 4], 4
mov dword [esp], edi
call sub.KERNEL32.DLL_SetFileAttributesA
sub esp, 8
xor eax, eax
nop
lea esi, [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov dword [esp], edi
call sub.KERNEL32.DLL_DeleteFileA
sub esp, 4
mov eax, 1
jmp 0x431e00
Function at 0x432160
Capabilities:
Set registry value

Disassembly:
push ebp
mov ecx, 0x4b554a
mov ebp, esp
push edi
lea eax, [ebp - 0x18]
mov edx, 0x432394
push esi
push ebx
sub esp, 0x47c
mov ebx, 0x473640
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x420], edx
mov dword [esp], eax
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x41c], esp
call fcn.0047f180
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x418]
mov eax, dword [ecx]
inc dword [eax]
mov dword [ebp - 0x418], eax
mov eax, 1
mov dword [esp], edx
mov dword [ebp - 0x440], eax
call fcn.00432450
lea eax, [ebp - 0x418]
mov dword [esp], eax
mov eax, 0xffffffff
mov dword [ebp - 0x440], eax
call fcn.00456470
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.00457590
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x408]
mov dword [esp + 0x14], 0x432117
mov dword [esp + 0x10], 0x432121
mov dword [esp + 0xc], 0x432128
mov dword [esp + 8], 0x432139
mov dword [esp + 4], 0x3e8
mov dword [esp], eax
call fcn.004800e0
mov dword [esp + 0x18], 0
xor edx, edx
lea eax, [ebp - 0x448]
cmp dword [ebp + 0x14], 0
lea ecx, [ebp - 0x408]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x44c]
setne dl
mov dword [esp + 0x1c], eax
mov eax, 0xffffffff
mov dword [esp + 0x14], 0xf003f
sub edx, 0x7fffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x432121
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [ebp - 0x440], eax
call sub.ADVAPI32.DLL_RegCreateKeyExA
sub esp, 0x24
test eax, eax
jne 0x4323d2
mov edx, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [edx]
mov eax, dword [eax + 0xc]
mov dword [esp], edx
inc eax
mov dword [ebp - 0x458], eax
mov eax, 0xffffffff
mov dword [ebp - 0x440], eax
call fcn.00457590
mov dword [esp + 0x10], eax
mov ecx, dword [ebp - 0x458]
mov eax, dword [ebp - 0x44c]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x431e30
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 0x450], edi
mov esi, dword [ebp + 0x10]
sub esp, 0x18
test esi, esi
jne 0x432314
mov ebx, 2
mov dword [ebp - 0x450], ebx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x432322
or dword [ebp - 0x450], 8
mov dword [esp + 0x14], 4
lea eax, [ebp - 0x450]
mov edx, 0xffffffff
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 0x440], edx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x431e37
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
mov eax, dword [ebp - 0x44c]
sub esp, 0x18
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
call fcn.00432b30
lea eax, [ebp - 0x444]
mov dword [esp], eax
call fcn.0047f230
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x43214e
call fcn.0040c710
mov esi, esi
Function at 0x4323e0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
lea ebx, [ebp - 0x3f8]
mov dword [esp], eax
call fcn.00457590
mov dword [esp + 0x18], eax
mov dword [esp], ebx
mov dword [esp + 0x14], 0x432117
mov dword [esp + 0x10], 0x432121
mov dword [esp + 0xc], 0x432128
mov dword [esp + 8], 0x432139
mov dword [esp + 4], 0x3e8
call fcn.004800e0
mov dword [esp + 4], ebx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
sub esp, 8
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x432570
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, edx
shr eax, 1
xor eax, 1
and eax, 1
cmp eax, ecx
je 0x4325c9
test ecx, ecx
jne 0x4325d0
or edx, 2
mov dword [ebp + 0x10], edx
lea eax, [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x432559
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
mov esp, ebp
pop ebp
ret
and edx, 0xfffffffd
jmp 0x432591

Function at 0x4325e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 4]
sub esp, 0x28
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 4
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x432559
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
mov esp, ebp
pop ebp
ret

Function at 0x432640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0x432625
mov dword [esp], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43262f
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 8], 0x20
sub esp, 0x18
lea eax, [ebp - 8]
mov dword [esp], ebx
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x432559
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x432970
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov eax, 0x94
mov ebp, esp
sub esp, 0x508
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [esp], eax
call sub.KERNEL32.DLL_GetVersionExA
sub esp, 4
cmp dword [ebp - 0xa8], 2
je 0x4329c0
mov eax, 1
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.DLL_GetCurrentProcess
mov dword [esp], eax
lea edx, [ebp - 0x4cc]
mov dword [esp + 8], edx
mov dword [esp + 4], 8
call 0x4b71c3
mov edi, eax
sub esp, 0xc
xor eax, eax
test edi, edi
je 0x4329ac
mov dword [esp + 0xc], 0x400
mov eax, 0x400
lea esi, [ebp - 0x4b8]
mov dword [ebp - 0x4d0], eax
lea eax, [ebp - 0x4d0]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x4cc]
mov dword [esp + 8], esi
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.ADVAPI32.DLL_GetTokenInformation
mov edi, eax
sub esp, 0x14
mov eax, dword [ebp - 0x4cc]
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
xor eax, eax
test edi, edi
je 0x4329ac
cld
mov ecx, 1
lea edi, [ebp - 0x4c8]
rep stosd dword es:[edi], eax
mov word [edi], 0
lea eax, [ebp - 0x4d4]
mov dword [esp + 0x28], eax
lea eax, [ebp - 0x4c8]
mov byte [ebp - 0x4c3], 5
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x220
mov dword [esp + 8], 0x20
mov dword [esp + 4], 2
mov dword [esp], eax
call 0x4b7179
mov edi, eax
sub esp, 0x2c
xor eax, eax
test edi, edi
je 0x4329ac
xor edi, edi
xor ebx, ebx
cmp edi, dword [ebp - 0x4b8]
jb 0x432af4
mov eax, dword [ebp - 0x4d4]
mov dword [esp], eax
call 0x4b719b
sub esp, 4
mov eax, edi
jmp 0x4329ac
mov eax, dword [ebp - 0x4d4]
mov dword [esp + 4], eax
mov eax, dword [esi + ebx*8 + 4]
mov dword [esp], eax
call sub.ADVAPI32.DLL_EqualSid
sub esp, 8
test eax, eax
jne 0x432b18
inc ebx
cmp ebx, dword [esi]
jb 0x432af4
jmp 0x432adc
mov edi, 1
jmp 0x432adc
Function at 0x433d70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
sub esp, 0x7e8
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
lea ebx, [ebp - 0x7d8]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d0
call sub.msvcrt.dll__vsnprintf
mov dword [esp], ebx
call sub.KERNEL32.DLL_OutputDebugStringA
sub esp, 4
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x437600
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [0x4cfa30]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x437766
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea eax, [eax + ebx]
lea eax, [eax + eax + 5]
mov dword [esp], eax
call fcn.00475ce0
mov dword [0x4cfa30], eax
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea eax, [eax + ebx + 6]
mov dword [esp], eax
call fcn.00475ce0
mov dword [esp], eax
mov edi, eax
mov dword [esp + 4], esi
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], 0x4375f0
mov dword [esp], edi
call sub.msvcrt.dll_strcat
mov dword [esp], edi
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
mov dword [esp], edi
call sub.msvcrt.dll_strlen
lea ecx, [eax + edi]
mov byte [ecx], 0
inc ecx
mov byte [ecx], 0
mov byte [ecx + 1], 0
mov ebx, dword [0x4cfa30]
mov ecx, edi
movzx eax, byte [edi]
test al, al
je 0x43774e
lea esi, [ebp - 0x10]
lea esi, [esi]
shr al, 2
movzx eax, al
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0]
mov byte [ebp - 0x10], al
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
shl edx, 4
shr al, 4
and eax, 0xf
and edx, 0x30
or edx, eax
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0]
mov byte [esi + 1], al
movzx edx, byte [ecx + 1]
movzx eax, byte [ecx + 2]
shl edx, 2
shr al, 6
and eax, 3
and edx, 0x3c
or edx, eax
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0]
mov byte [esi + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0]
mov byte [esi + 3], al
cmp byte [ecx + 1], 0
jne 0x43772e
mov byte [esi + 3], 0x3d
mov byte [esi + 2], 0x3d
cmp byte [ecx + 2], 0
jne 0x437738
mov byte [esi + 3], 0x3d
mov eax, dword [ebp - 0x10]
add ecx, 3
mov dword [ebx], eax
add ebx, 4
movzx eax, byte [ecx]
test al, al
jne 0x4376c0
mov byte [ebx], 0
mov dword [esp], edi
call fcn.00475da0
mov eax, dword [0x4cfa30]
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call fcn.00475da0
jmp 0x437619
Function at 0x44bd70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0x4cfbc0
mov dword [esp + 8], 0x44bd20
mov dword [0x4cfbc0], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [0x4cfbc4], eax
lea eax, [ebp - 4]
mov dword [esp + 0x14], eax
call sub.KERNEL32.DLL_CreateThread
sub esp, 0x18
mov esp, ebp
pop ebp
ret

Function at 0x451930
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1ec
mov eax, dword [0x4cfcf0]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x451af0
mov dword [ebx], 0xffffffff
lea eax, [ebp - 0x1bc]
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1c0]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1c4]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1c8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4516f0
mov dword [esp], esi
call sub.msvcrt.dll_sscanf
cmp eax, 4
je 0x451ab4
mov dword [esp], esi
call sub.WSOCK32.DLL_gethostbyname
sub esp, 4
test eax, eax
je 0x451aa7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1cc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WSOCK32.DLL_socket
mov dword [ebx], eax
sub esp, 0xc
inc eax
je 0x451a90
cld
xor eax, eax
lea edi, [ebp - 0x1b8]
mov ecx, 4
rep stosd dword es:[edi], eax
movzx eax, word [ebp + 0x10]
mov edi, 2
mov word [ebp - 0x1b8], di
mov dword [esp], eax
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x1b6], ax
sub esp, 4
mov eax, dword [ebp - 0x1cc]
mov dword [esp + 8], 0x10
mov dword [ebp - 0x1b4], eax
lea eax, [ebp - 0x1b8]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.WSOCK32.DLL_connect
sub esp, 0xc
test eax, eax
jne 0x451a60
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], esi
mov eax, dword [ebp + 0x10]
mov dword [esp], 0x4516fc
mov dword [esp + 8], eax
call fcn.00433d70
mov eax, dword [ebx]
mov dword [esp], eax
call sub.WSOCK32.DLL_closesocket
mov dword [ebx], 0xffffffff
sub esp, 4
jmp 0x451a54
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [esp + 4], eax
mov dword [esp], 0x451713
call fcn.00433d70
jmp 0x451a54
mov dword [esp + 4], esi
mov dword [esp], 0x45172b
jmp 0x451aa0
movzx eax, byte [ebp - 0x1c8]
mov byte [ebp - 0x1cc], al
movzx eax, byte [ebp - 0x1c4]
mov byte [ebp - 0x1cb], al
movzx eax, byte [ebp - 0x1c0]
mov byte [ebp - 0x1ca], al
movzx eax, byte [ebp - 0x1bc]
mov byte [ebp - 0x1c9], al
jmp 0x4519cb
mov dword [esp], 0x101
mov eax, 1
mov dword [0x4cfcf0], eax
lea eax, [ebp - 0x1a8]
mov dword [esp + 4], eax
call sub.WSOCK32.DLL_WSAStartup
sub esp, 8
jmp 0x45194f