joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426968
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x426aa0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x426a88
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x4269c5
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x426a88
cmp dword [ebp - 0x14], 0
jne 0x4269da
mov eax, dword [ebp - 0xc]
call fcn.004096b8
mov bl, 1
jmp 0x426a88
cmp dword [ebp - 0x14], 0x70000000
jb 0x4269e8
call fcn.00422024
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00409850
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00409c4c
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x42698e
test eax, eax
jne 0x426a88
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x426a36
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x426a88
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x426a3e
dec esi
test esi, esi
je 0x426a4d
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x426a3d
cmp dword [ebp - 0x10], 7
jne 0x426a58
test esi, esi
je 0x426a58
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040a2dc
cmp dword [ebp - 0x10], 7
jne 0x426a7b
test esi, esi
je 0x426a7b
lea eax, [ebp - 4]
call fcn.00409c4c
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00409aa8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426aa7
lea eax, [ebp - 4]
call fcn.004096b8
pop eax
jmp eax

Function at 0x42815c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4b1d1c
mov eax, esi
mov edx, 8
test al, 1
je 0x428178
shr eax, 1
xor eax, 0xedb88320
jmp 0x42817a
shr eax, 1
dec edx
jne 0x42816b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x428164
pop esi
ret

Function at 0x428190
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4b1d18], 0
jne 0x4281ba
call fcn.0042815c
mov dword [esp], 0x4b1d18
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x4281e4
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4b1d1c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4281c0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42ad1c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0042acd0
test al, al
jne 0x42ad3d
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x42ad8b
xor eax, eax
push ebp
push 0x42ad7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040a168
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ad82
lea eax, [ebp - 0xc]
call fcn.0042ad0c
pop eax
jmp eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x435de4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x435dec
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4388c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x4388d7
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x4388c7
mov eax, ecx
pop ebx
ret

Function at 0x447cec
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x447d00
add esp, 0xfffffff0
call fcn.00407f34
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x441d88]
call fcn.00462970
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x446d28]
call fcn.00463fcc
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x446d28]
call fcn.00463fcc
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x447d55
call fcn.00407f8c
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x496038
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x496086
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00495a30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49609f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4a0100
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4a0108
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a0270
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
call fcn.004267dc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004260d4
lea eax, [ebp - 0x20]
mov edx, 0x4a028c
call fcn.0040a35c
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0042640c
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
mov edx, ebx
call fcn.0040a1c8
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00426318
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0042640c
mov eax, dword [ebp - 0x28]
mov ecx, 1
mov edx, eax
mov eax, esi
call fcn.0040a680
dec eax
je 0x4a01aa
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x4a0246
call sub.kernel32.dll_GetLastError
mov dword [edi], eax
jmp 0x4a0246
lea eax, [ebp - 4]
call fcn.00426ae8
cmp dword [ebp - 4], 0
jne 0x4a01c5
lea eax, [ebp - 4]
mov edx, 0x4a02a4
call fcn.00409af0
push 0x4a02b8
push dword [ebp - 4]
push 0x4a02f8
push 0x4a0308
push 0x4a0348
lea eax, [ebp - 8]
mov edx, 5
call fcn.0040a43c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 8]
call fcn.0040a168
push eax
call sub.advapi32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x4a020e
call sub.kernel32.dll_GetLastError
mov dword [edi], eax
xor ebx, ebx
jmp 0x4a0246
mov dword [ebp - 0x18], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x4a023d
call sub.kernel32.dll_GetLastError
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0277
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00409718
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409718
pop eax
jmp eax

Function at 0x4a0640
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
call fcn.00422f34
cmp eax, 2
jne 0x4a06a8
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4a0663
xor eax, eax
jmp 0x4a06b7
lea eax, [esp + 8]
push eax
push 0x4a06bc
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x4a06a8
xor eax, eax
jmp 0x4a06b7
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x4a06e4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4a073e
inc esi
xor edi, edi
cmp edi, 1
jne 0x4a070a
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4a0718
cmp edi, 1
jle 0x4a0718
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0042ad1c
test eax, eax
jne 0x4a073e
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4a073e
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4a073e
inc edi
dec esi
jne 0x4a06fa
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4a0748
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4a076c
mov eax, dword [ebp - 4]
jmp 0x4a076f
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a0774
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4a07c1
xor ebx, ebx
jmp 0x4a07b6
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.0041c148
test eax, eax
jne 0x4a07b5
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x4a086c
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a0797
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4a07cd
je 0x4a07d6
jmp 0x4a07df
call fcn.00426bd4
mov esi, eax
jmp 0x4a07e1
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x4a07e1
xor esi, esi
test si, si
je 0x4a086c
xor ebx, ebx
jmp 0x4a0807
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4a0806
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4a086c
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a07ee
xor ebx, ebx
jmp 0x4a0861
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov dx, 0x3ff
and dx, si
movzx edx, dx
cmp eax, edx
jne 0x4a0860
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x4a0855
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004a0748
push eax
mov eax, esi
call fcn.004a0748
pop edx
cmp edx, eax
jne 0x4a0860
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4a086c
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a0816
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4a0c58
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a0d31
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a0d4c
push ebx
push 0x4a0d5c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040a43c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00407430
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040a168
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4a0cda
mov ax, 0x83
call fcn.004a087c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004a0c2c
push 0x1cff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4a0ce3
call fcn.004a0c2c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0d38
lea eax, [ebp - 4]
call fcn.004096b8
pop eax
jmp eax

Function at 0x4a0e4c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a0f15
jmp 0x4a0f09
cmp dword [esi + 0x10], 0x1000
jne 0x4a0ef7
test byte [esi + 0x15], 1
jne 0x4a0ef7
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4a0ea8
cmp ebp, 2
je 0x4a0ea8
cmp ebp, 0x10
je 0x4a0ea8
cmp ebp, 0x20
jne 0x4a0ec4
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a0ec4
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4a0ed5
mov eax, dword [esi]
add eax, ebx
call fcn.004a0e44
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4a0ec8
cmp byte [esp + 4], 0
je 0x4a0ef7
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov edi, dword [esi]
add edi, dword [esi + 0xc]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a0f15
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4a0e7d
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x1001c7d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001118
call fcn.01001e34
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001cb8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001cb8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001cd0
cmp eax, 0x20b
je 0x1001cbd
mov dword [ebp - 0x1c], edi
jmp 0x1001ce4
cmp dword [ecx + 0x84], 0xe
jbe 0x1001cb8
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1001cde
cmp dword [ecx + 0x74], 0xe
jbe 0x1001cb8
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1005440], 0xffffffff
or dword [0x1005444], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10039ec]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10039e8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1005448], eax
call fcn.01001e2a
cmp dword [0x10030a0], edi
jne 0x1001d3f
push fcn.01001e2a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001e13
push 0x1003010
push 0x100300c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10039e4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10039e0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1003008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01001a56
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001db6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001deb
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001e6f
ret
Function at 0x404110
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18c8
call fcn.00411990
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x478678]
push ebx
push esi
mov dword [ebp - 8], ecx
mov ecx, dword [0x47867c]
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], ecx
call fcn.00404100
mov ebx, dword [ebp - 0xc]
mov edx, dword [0x478680]
mov eax, dword [0x478684]
mov edi, dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
add ebx, 0x23f
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0x20
jmp 0x404180
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x47fe0c]
shl esi, 4
add esi, dword [ebp - 0x20]
cmp eax, 0xfa9
jne 0x4041ac
mov dword [0x47fe08], 0xedeb2e40
jmp 0x4041c7
cmp eax, 0x3eb
jne 0x4041c7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x47f898], 0
mov ecx, dword [ebp - 8]
add ecx, ebx
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x24]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x47fe0c], 0x9e6
mov dword [0x47fe04], 0xf4ea3dee
jne 0x4041ff
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x47fe0c], 0x213
jne 0x40429b
push 0
lea eax, [ebp - 0xcc8]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
lea ecx, [ebp - 0x4c8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x10c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call edi
push 0
push 0
lea ecx, [ebp - 0x18c8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
call edi
lea edx, [ebp - 0x2c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp - 4]
cmp dword [0x47fe0c], 0xc
mov dword [ebp - 0x10], esi
jne 0x4042b5
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov edx, esi
shr edx, 5
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
mov eax, esi
shl eax, 4
add eax, dword [ebp - 0x18]
lea ecx, [ebx + esi]
xor eax, ecx
xor eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 8], eax
add ebx, 0x61c88647
sub dword [ebp - 0x14], 1
jne 0x404180
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404310
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00411990
mov eax, dword [0x47fe0c]
mov ecx, dword [0x47f89c]
shr eax, 3
test eax, eax
jbe 0x40442e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x47fe0c], 0x959
jne 0x404414
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404110
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404350
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4058e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4770d8]
jne 0x4058ea
repz ret
jmp fcn.00408f6e

Function at 0x408b94
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407af6
and dword [ebp - 4], 0
cmp dword [0x47d830], 0
mov ebx, eax
jne 0x408c45
push 0x401b40
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408cf6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b34
push edi
call esi
test eax, eax
je 0x408cf6
push eax
call fcn.00407a84
mov dword [esp], 0x401b24
push edi
mov dword [0x47d830], eax
call esi
push eax
call fcn.00407a84
mov dword [esp], 0x401b10
push edi
mov dword [0x47d834], eax
call esi
push eax
call fcn.00407a84
mov dword [esp], 0x401af4
push edi
mov dword [0x47d838], eax
call esi
push eax
call fcn.00407a84
pop ecx
mov dword [0x47d840], eax
test eax, eax
je 0x408c45
push 0x401adc
push edi
call esi
push eax
call fcn.00407a84
pop ecx
mov dword [0x47d83c], eax
mov eax, dword [0x47d83c]
cmp eax, ebx
je 0x408c9d
cmp dword [0x47d840], ebx
je 0x408c9d
push eax
call fcn.00407aff
push dword [0x47d840]
mov esi, eax
call fcn.00407aff
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408c9d
test edi, edi
je 0x408c9d
call esi
test eax, eax
je 0x408c94
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408c94
test byte [ebp - 0xc], 1
jne 0x408c9d
or dword [ebp + 0x10], 0x200000
jmp 0x408cd6
mov eax, dword [0x47d834]
cmp eax, ebx
je 0x408cd6
push eax
call fcn.00407aff
pop ecx
test eax, eax
je 0x408cd6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408cd6
mov eax, dword [0x47d838]
cmp eax, ebx
je 0x408cd6
push eax
call fcn.00407aff
pop ecx
test eax, eax
je 0x408cd6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47d830]
call fcn.00407aff
pop ecx
test eax, eax
je 0x408cf6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408cf8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40de38
mov ecx, 0x3415fa6
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..rdata
nop
mov ebx, 0x4304d8
mov ecx, 0x5ade66c8
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219