joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412fd4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 1
xor edx, edx
push ebp
push 0x4131bc
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x40aba0]
call fcn.00403544
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x4131ab
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push esi
call sub.wsock32.dll_recv
inc eax
je 0x413191
cmp dword [ebp - 0x14], 0
je 0x41318b
mov eax, dword [ebp - 8]
call fcn.00402544
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x413184
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx]
cmp dword [ebp - 0x14], 0
jle 0x4130f0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jle 0x413072
mov eax, dword [ebp - 8]
jmp 0x413075
mov eax, dword [ebp - 0x14]
push 0
push eax
mov eax, dword [ebp - 0x18]
push eax
push esi
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
je 0x4130e0
cmp ebx, 0xffffffff
je 0x4130e0
xor eax, eax
push ebp
push 0x4130bf
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0x10]
mov edx, dword [ebp - 0x18]
mov ecx, ebx
mov eax, dword [ebp - 0x20]
call fcn.0040ad68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4130d4
sub dword [ebp - 0x14], ebx
add dword [ebp - 0x10], ebx
mov byte [ebp - 9], 1
jmp 0x4130e6
mov byte [ebp - 9], 0
jmp 0x4130f0
cmp dword [ebp - 0x14], 0
jg 0x413065
cmp byte [ebp - 9], 0
je 0x41316e
mov eax, dword [ebp - 0x20]
call fcn.0040ac2c
mov dword [ebp - 0x14], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x14]
call fcn.0040b694
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040b228
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.0040ad68
mov eax, dword [ebp - 0x1c]
call fcn.00402564
mov eax, dword [ebp - 4]
mov eax, dword [eax]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413195
mov eax, dword [ebp - 0x18]
call fcn.00402564
ret
mov byte [ebp - 9], 1
jmp 0x413195
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4131b2
mov eax, dword [ebp - 0x20]
call fcn.00403574
ret
Function at 0x4131d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x413249
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004042ac
mov esi, eax
test esi, esi
jle 0x413228
mov ebx, 1
lea eax, [ebp - 4]
call fcn.004044fc
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
xor edx, edi
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x41320e
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413250
lea eax, [ebp - 4]
call fcn.0040400c
ret

Function at 0x413258
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x413349
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x29a
push 0
push 4
lea eax, [ebp - 4]
push eax
push ebx
call sub.wsock32.dll_send
inc eax
je 0x413329
push 0
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.wsock32.dll_recv
cmp eax, 0x1c
jne 0x413325
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x24]
call fcn.00404250
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004131d4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x144]
mov edx, dword [ebp - 8]
mov ecx, 0xff
call fcn.00404288
lea edx, [ebp - 0x144]
lea eax, [ebp - 0x40]
mov cl, 0x14
call fcn.00402c40
push 0
push 0x1c
lea eax, [ebp - 0x40]
push eax
push ebx
call sub.wsock32.dll_send
cmp eax, 0x1c
jne 0x413321
push 0
push 4
lea eax, [ebp - 4]
push eax
push ebx
call sub.wsock32.dll_recv
inc eax
je 0x41331d
cmp dword [ebp - 4], 0xd
jne 0x413319
mov bl, 1
jmp 0x41332b
xor ebx, ebx
jmp 0x41332b
xor ebx, ebx
jmp 0x41332b
xor ebx, ebx
jmp 0x41332b
xor ebx, ebx
jmp 0x41332b
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413350
lea eax, [ebp - 0x44]
call fcn.0040400c
lea eax, [ebp - 8]
call fcn.0040400c
ret
Function at 0x415260
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov eax, esp
xor ecx, ecx
mov edx, 0x94
call fcn.00402d18
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4152db
cmp dword [esp + 0x10], 2
jne 0x4152db
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x4152bd
mov edx, dword [esp + 8]
test edx, edx
jne 0x4152a7
mov ebx, 0x32
jmp 0x4152bd
cmp edx, 2
jne 0x4152b3
mov ebx, 0x34
jmp 0x4152bd
cmp edx, 1
jne 0x4152bd
mov ebx, 0x33
cmp eax, 6
jne 0x4152db
mov eax, dword [esp + 8]
test eax, eax
jne 0x4152d1
mov ebx, 0x3c
jmp 0x4152db
cmp eax, 1
jne 0x4152db
mov ebx, 0x3d
mov eax, ebx
add esp, 0x94
pop ebx
ret
Function at 0x417c4c
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x417e08
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x417dcc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x74]
call fcn.0041d2bc
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x10]
mov ecx, 0x417e20
call fcn.004042f8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x78]
call fcn.0041d2bc
mov eax, dword [ebp - 0x78]
mov ecx, 3
mov edx, 1
call fcn.00404504
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0xc
call fcn.00402d18
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], 0xffffffff
push 0
push 0x80
push 2
lea eax, [ebp - 0x1c]
push eax
push 2
push 0x40000000
mov eax, dword [ebp - 0x10]
call fcn.004044a4
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x44
call fcn.00402d18
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], 0x101
mov word [ebp - 0x30], 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004044a4
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 4]
mov edx, 0x417e38
call fcn.004042f8
mov eax, dword [ebp - 0x7c]
call fcn.004044a4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x417daa
push 0x40
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_SetPriorityClass
push 0xffffffffffffffff
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_CloseHandle_1
push ebx
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
jmp 0x417dac
xor ebx, ebx
test bl, bl
je 0x417dc2
mov eax, dword [esi]
mov edx, dword [ebp - 0x10]
call fcn.0040b278
mov eax, dword [ebp - 0x10]
call fcn.00407a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x417dd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417e0f
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.00404030
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404030
lea eax, [ebp - 4]
call fcn.0040400c
ret
Function at 0x417f54
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x417fcd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
mov eax, dword [ebp - 8]
call fcn.00402544
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x417fbc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.004041e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417fc3
mov eax, dword [ebp - 0xc]
call fcn.00402564
ret
Function at 0x41be30
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov dword [esp], eax
xor ebx, ebx
call sub.kernel32.dll_GetCurrentThreadId_1
mov edi, eax
xor edx, edx
mov eax, 4
call fcn.00411354
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41beb1
mov dword [esp + 4], 0x1c
lea eax, [esp + 4]
push eax
push ebp
call fcn.004113b4
test eax, eax
je 0x41bea9
mov eax, dword [esp + 0xc]
cmp edi, eax
je 0x41be9a
mov edx, dword [esp + 0x10]
cmp edx, dword [esp]
jne 0x41be9a
push eax
push 0
push 2
call sub.kernel32.dll_OpenThread
mov esi, eax
test esi, esi
je 0x41beb1
push esi
call sub.kernel32.dll_SuspendThread
push esi
call sub.kernel32.dll_CloseHandle_1
lea eax, [esp + 4]
push eax
push ebp
call fcn.004113d8
test eax, eax
jne 0x41be6d
push ebp
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
mov eax, ebx
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41bebc
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov dword [esp], eax
xor ebx, ebx
call sub.kernel32.dll_GetCurrentThreadId_1
mov edi, eax
xor edx, edx
mov eax, 4
call fcn.00411354
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41bf3d
mov dword [esp + 4], 0x1c
lea eax, [esp + 4]
push eax
push ebp
call fcn.004113b4
test eax, eax
je 0x41bf35
mov eax, dword [esp + 0xc]
cmp edi, eax
je 0x41bf26
mov edx, dword [esp + 0x10]
cmp edx, dword [esp]
jne 0x41bf26
push eax
push 0
push 2
call sub.kernel32.dll_OpenThread
mov esi, eax
test esi, esi
je 0x41bf3d
push esi
call sub.kernel32.dll_ResumeThread
push esi
call sub.kernel32.dll_CloseHandle_1
lea eax, [esp + 4]
push eax
push ebp
call fcn.004113d8
test eax, eax
jne 0x41bef9
push ebp
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
mov eax, ebx
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41d1dc
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x41d24d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, ebx
mov edx, 0x41d264
mov eax, 0x80000001
call fcn.00410f70
test al, al
je 0x41d232
cmp dword [ebx], 0
je 0x41d232
mov edx, dword [ebx]
lea eax, [ebp - 8]
mov ecx, 0x41d2b8
call fcn.004042f8
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00416bcc
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00404060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d254
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404030
ret

Function at 0x41e838
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004040fc
cmp dword [ebx], 0
je 0x41e86c
mov eax, ebx
mov edx, 0x41e87c
call fcn.004042b4
add esp, 0x104
pop ebx
ret
Function at 0x41e8f0
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x41ea10
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x41e92d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ea1c
lea eax, [ebp - 0x10]
push eax
push 0x41ea28
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x41e957
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ea1c
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x41e99d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ea1c
push esi
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
jne 0x41e9b7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ea1c
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x41e9cd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ea1c
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x41ea04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ea1c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ea1c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ea3c
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x41eb2a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x2000000
push 3
push 0
push 0
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004044a4
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41eb0d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41eae8
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.00408bf0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_SystemTimeToFileTime
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFileTime
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41eaf6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41eb14
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret

Function at 0x41eefc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x41efaf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x104
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 4]
call fcn.004044a4
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov ecx, ebx
mov edx, 8
mov eax, dword [ebp - 8]
call fcn.00407718
mov eax, dword [0x426514]
cmp dword [eax], 2
je 0x41ef8e
lea edx, [ebp - 0x21c]
mov eax, dword [ebx]
call fcn.0041ee50
mov edx, dword [ebp - 0x21c]
mov eax, ebx
call fcn.00404060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41efb6
lea eax, [ebp - 0x21c]
call fcn.0040400c
lea eax, [ebp - 4]
call fcn.0040400c
ret

Function at 0x41efbc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x41f02e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004042ac
mov esi, eax
test esi, esi
jle 0x41f00e
mov ebx, 1
lea eax, [ebp - 4]
call fcn.004044fc
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
xor dx, 0x29a
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x41eff1
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f035
lea eax, [ebp - 4]
call fcn.0040400c
ret
Function at 0x41f7dc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov byte [ebp - 5], 0
xor ecx, ecx
push ebp
push 0x41f860
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov ebx, eax
mov edi, ebx
sub edx, edi
sub edx, 5
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x10]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
mov eax, 0xff
call fcn.00402544
mov esi, eax
mov dword [esi], edi
mov edx, esi
add edx, 5
mov eax, ebx
call fcn.0041f798
mov edx, esi
add edx, 4
mov byte [edx], al
mov byte [ebx], 0xe9
inc edi
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
add esi, 5
mov eax, dword [ebp - 4]
mov dword [eax], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41f871
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f8c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
mov bl, 1
xor edx, edx
push ebp
push 0x41f931
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, edi
mov edx, eax
sub edx, 5
mov esi, dword [edx]
dec eax
movzx eax, byte [eax]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
call sub.kernel32.dll_VirtualProtect
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, esi
call fcn.00405bf0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 5
push esi
call sub.kernel32.dll_VirtualProtect
mov eax, edi
sub eax, 5
call fcn.00402564
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41f93d
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x5cd96594
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x1c576b9b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x300011a8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x3000110c
push 0x300010f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x300011dd
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x300010ec
push ebx
call edi
test esi, esi
mov dword [0x300010ec], esi
jne 0x30001241
mov dword [0x300010ec], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [section..data], 0x44bf19b1
pop ebx
leave
ret
Function at 0x30001575
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x30001940
call fcn.3000186b
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x3000236c
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x30001314
cmp eax, esi
jne 0x30001307
xor esi, esi
inc esi
mov ebx, esi
jmp 0x30001317
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x300012ee
xor esi, esi
inc esi
mov eax, dword [0x30002368]
cmp eax, esi
jne 0x3000132a
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30001359
mov eax, dword [0x30002368]
test eax, eax
jne 0x30001353
mov dword [0x30002368], esi
push 0x300010d8
push 0x300010d0
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x30001359
jmp 0x30001481
mov dword [0x30002028], esi
mov eax, dword [0x30002368]
cmp eax, esi
jne 0x3000137d
push 0x300010cc
push 0x300010c4
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x30002368], 2
test ebx, ebx
jne 0x30001389
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x30002378], 0
je 0x300013ad
push 0x30002378
call fcn.300017f3
pop ecx
test eax, eax
je 0x300013ad
push 0
push 2
push 0
call dword [0x30002378]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30001409
test al, al
je 0x300013c7
cmp dword [ebp - 0x1c], 0
jne 0x30001409
mov al, byte [esi]
test al, al
je 0x300013d7
cmp al, 0x20
ja 0x300013d7
inc esi
mov dword [ebp - 0x20], esi
jmp 0x300013c7
test byte [ebp - 0x3c], 1
je 0x300013e3
movzx eax, word [ebp - 0x38]
jmp 0x300013e6
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x30002024], eax
cmp dword [0x30002018], 0
jne 0x3000145d
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x30001418
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x3000142b
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x300013b4
cmp dword [0x30002028], 0
jne 0x3000146c
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x30002024]
jmp 0x3000148d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.300018b0
ret
call fcn.300011a8
jmp 0x300012b4