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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x528b25
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1a
lea eax, [ebp - 0x212]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 4]
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00405d40
lea eax, [ebp - 0x21c]
mov edx, dword [ebp - 4]
call fcn.00405dbc
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
mov edx, 1
call fcn.0040a0bc
mov eax, dword [ebp - 0x218]
mov edx, 0x528b38
call fcn.00405a38
jne 0x528a5a
mov eax, dword [ebp - 4]
test eax, eax
je 0x528a1f
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x528a1f
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004052f4
mov ebx, eax
test ebx, ebx
je 0x528a2a
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x224]
mov edx, dword [ebp - 4]
call fcn.00405dbc
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x220]
mov edx, ebx
dec edx
call fcn.0040a0a0
mov edx, dword [ebp - 0x220]
lea eax, [ebp - 4]
call fcn.00405da8
lea eax, [ebp - 8]
push eax
mov ecx, 0x528b48
mov edx, 0x528b70
mov eax, dword [0x559600]
call fcn.00528824
mov eax, dword [ebp - 8]
mov edx, 0x528b88
call fcn.0040618c
jne 0x528a8e
lea eax, [ebp - 8]
mov edx, 0x528b9c
call fcn.00405b94
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405e94
mov eax, dword [ebp - 4]
call fcn.0040ce8c
test al, al
jne 0x528aad
mov eax, dword [ebp - 4]
call fcn.0040ceb0
lea eax, [ebp - 0x22c]
mov edx, dword [ebp - 4]
call fcn.00405dbc
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x228]
mov edx, 1
call fcn.0040a0bc
mov eax, dword [ebp - 0x228]
mov edx, 0x528b38
call fcn.00405a38
je 0x528af0
lea eax, [ebp - 4]
mov edx, 0x528be8
call fcn.00405e94
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405b40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x528b2c
lea eax, [ebp - 0x22c]
mov edx, 6
call fcn.004057a0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405b38
ret
Function at 0x528f64
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405b28
mov eax, dword [ebp - 8]
call fcn.00405b28
mov eax, dword [ebp - 0xc]
call fcn.00405b28
xor eax, eax
push ebp
push 0x52900b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040ce44
test al, al
je 0x528fbe
mov eax, dword [ebp - 0xc]
call fcn.00405bcc
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x528ff0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00405bcc
push eax
mov ecx, dword [0x553b20]
mov dl, 1
mov eax, dword [0x420fbc]
call fcn.00426d9c
mov ebx, eax
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00426b50
mov eax, ebx
call fcn.00403ee0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529012
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405b38
ret
Function at 0x52b690
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x52b725
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00527c18
test eax, eax
jne 0x52b6b5
or ebx, 0xffffffff
jmp 0x52b70f
xor ebx, ebx
lea eax, [ebp - 4]
mov ecx, 0x52b740
mov edx, dword [esi + 0x624]
call fcn.00405f14
mov eax, dword [ebp - 4]
call fcn.0040ce44
test al, al
je 0x52b70f
mov eax, dword [ebp - 4]
call fcn.00527c2c
test eax, eax
jne 0x52b70c
push 1
push 0
push 0x52b764
mov eax, dword [ebp - 4]
call fcn.00405bcc
push eax
push 0x52b774
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
seta al
neg al
sbb ebx, ebx
jmp 0x52b70f
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52b72c
lea eax, [ebp - 4]
call fcn.00405b30
ret
Function at 0x5372cc
Capabilities:
Print debug messages

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
cmp dword [ebx + 0x38d0], 0
jne 0x537325
cmp dword [ebx + 0x388c], 0
je 0x537325
mov edx, dword [ebx + 0x39c]
mov edx, dword [edx + 0x48]
mov eax, dword [ebx + 0x3a0]
sub edx, dword [eax + 0x48]
sar edx, 1
jns 0x5372fd
adc edx, 0
call fcn.00477bac
mov edx, dword [ebx + 0x39c]
mov edx, dword [edx + 0x4c]
mov eax, dword [ebx + 0x3a0]
sub edx, dword [eax + 0x4c]
sar edx, 1
jns 0x53731b
adc edx, 0
call fcn.00477be0
jmp 0x53744b
cmp dword [ebx + 0x38d0], 0
je 0x53744b
mov eax, dword [ebx + 0x389c]
mov dword [esp], eax
mov eax, dword [ebx + 0x38a0]
mov dword [esp + 4], eax
cmp dword [ebx + 0x38a4], 0
jne 0x537393
cmp byte [ebx + 0x3864], 0
je 0x537373
lea edx, [esp + 4]
push edx
lea ecx, [esp + 4]
mov eax, dword [ebx + 0x39c]
mov edx, dword [eax + 0x4c]
mov eax, dword [eax + 0x48]
call fcn.00528bec
jmp 0x537393
lea edx, [esp + 4]
push edx
lea ecx, [esp + 4]
mov eax, dword [ebx + 0x39c]
mov edx, dword [eax + 0x4c]
sub edx, 8
mov eax, dword [eax + 0x48]
sub eax, 8
call fcn.00528bec
cmp dword [ebx + 0x38a8], 0
je 0x5373a8
mov dword [ebx + 0x3898], 0x64
jmp 0x5373b9
imul eax, dword [esp], 0x64
cdq
idiv dword [ebx + 0x389c]
mov dword [ebx + 0x3898], eax
cmp dword [ebx + 0x388c], 0
je 0x5373cc
mov dword [ebx + 0x3898], 0x64
push 0x537450
call sub.kernel32.dll_OutputDebugStringW
cmp dword [ebx + 0x3894], 0
jne 0x5373f1
mov dl, 1
mov eax, dword [0x420500]
call fcn.00403eb0
mov dword [ebx + 0x3894], eax
mov eax, ebx
call fcn.00537b24
mov edx, dword [ebx + 0x3898]
mov eax, dword [ebx + 0x3894]
call fcn.00422ef0
cmp dword [ebx + 0x38c0], 0
jne 0x537424
mov dl, 1
mov eax, dword [0x526d0c]
call fcn.00537f68
mov dword [ebx + 0x38c0], eax
mov eax, dword [ebx + 0x38c0]
xor edx, edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], 0xffffffff
cmp byte [eax + 0xe], 0
je 0x537441
call fcn.0042d400
push 0x5374bc
call sub.kernel32.dll_OutputDebugStringW
pop ecx
pop edx
pop ebx
ret
Function at 0x542628
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, edx
xor eax, eax
push ebp
push 0x54269f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, 0x5426b8
call fcn.004152a0
lea eax, [ebp - 8]
mov ecx, 0x5426d4
mov edx, dword [ebp - 4]
call fcn.00405f14
push 0
mov eax, dword [ebp - 8]
call fcn.00405bcc
push eax
call sub.kernel32.dll_CreateDirectoryW
lea eax, [ebp - 8]
mov edx, 0x5426f4
call fcn.00405e94
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00405b40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5426a6
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405b38
ret
Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4012c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x45c8d8]
mov ecx, dword [0x45c8dc]
push esi
push edi
push 0x3f
lea edx, [ebp - 0x47]
push 0
push edx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 0x48], 0
call fcn.004338d0
push 0x3f
lea eax, [ebp - 0x87]
push 0
push eax
mov byte [ebp - 0x88], 0
call fcn.004338d0
add esp, 0x18
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4013c9
mov ecx, 2
push str.123.57.73.64
mov word [ebp - 0x98], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x7c0
mov dword [ebp - 0x94], eax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [ebp - 0x9c]
push edx
push 0x1005
push 0xffff
push esi
mov word [ebp - 0x96], ax
mov dword [ebp - 0x9c], 0x7d0
call edi
cmp eax, 0xffffffff
je 0x4013c9
push 4
lea eax, [ebp - 0x9c]
push eax
push 0x1006
push 0xffff
push esi
mov dword [ebp - 0x9c], 0x7d0
call edi
cmp eax, 0xffffffff
je 0x4013c9
push 0x10
lea ecx, [ebp - 0x98]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4013de
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430efe
mov esp, ebp
pop ebp
ret
push 0x40
lea edx, [ebp - 0x48]
push 0
push edx
call fcn.004338d0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xa0]
push edx
mov edx, dword [ebp - 0xa4]
push eax
push ecx
push edx
lea eax, [ebp - 0x48]
push str._I64d__I64d__I64d
push eax
call fcn.00431549
lea eax, [ebp - 0x48]
add esp, 0x2c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401420
push 0
sub eax, edx
push eax
lea ecx, [ebp - 0x48]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4013c2
push 0
push 0xa
lea edx, [ebp - 0x88]
push edx
push esi
mov edi, 1
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, edi
jne 0x40146c
lea eax, [ebp - 0x88]
push eax
call fcn.004315ee
add esp, 4
test eax, eax
jne 0x40146c
xor edi, edi
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00430efe
mov esp, ebp
pop ebp
ret
Function at 0x407600
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448386
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x45cbf8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, 0x45cbf4
call fcn.0040d060
mov eax, dword [0x45cbf8]
mov dword [eax + 4], eax
mov eax, dword [0x45cbf8]
mov dword [eax], eax
mov eax, dword [0x45cbf8]
push 0
mov dword [eax + 8], eax
push 2
mov dword [0x45cbfc], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4077df
lea edx, [ebp - 0x240]
push edx
push esi
mov dword [ebp - 0x240], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4077d8
lea edi, [ebp - 0x21c]
shr edi, 0x10
mov dword [ebp - 0x248], edi
jmp 0x4076b6
mov edi, dword [ebp - 0x248]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x244], ebx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
test edi, edi
jne 0x4076fb
movzx edi, ax
call fcn.00401be0
test eax, eax
je 0x40772a
push eax
mov eax, edi
lea edi, [ebp - 0x244]
call fcn.00401d90
jmp 0x407724
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407700
sub eax, edx
lea ecx, [ebp - 0x21c]
sar eax, 1
push ecx
lea edx, [ebp - 0x244]
push edx
mov ebx, eax
call fcn.00402080
mov ebx, dword [ebp - 0x244]
mov ecx, 1
mov dword [ebp - 4], ecx
mov edi, dword [ebx - 0xc]
test edi, edi
js 0x4077fb
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, edi
or eax, ecx
jge 0x40775c
mov eax, edi
lea ecx, [ebp - 0x244]
call fcn.00402000
mov ebx, dword [ebp - 0x244]
lea eax, [edi + 1]
push eax
push ebx
call fcn.00431fb3
add esp, 8
cmp edi, dword [ebx - 8]
jg 0x4077fb
xor ecx, ecx
mov dword [ebx - 0xc], edi
lea edx, [ebp - 0x244]
mov word [ebx + edi*2], cx
push edx
mov ecx, 0x45cbf4
call fcn.0040ea10
push eax
push 0x45cbf4
lea edi, [ebp - 0x250]
call fcn.0040efc0
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov edi, eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4077d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x4076b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430efe
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402060
int3
Function at 0x40b480
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446fe3
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x103
lea eax, [ebp - 0x117]
push edi
mov dword [ebp - 4], edi
push eax
mov byte [ebp - 0x118], 0
call fcn.004338d0
add esp, 0xc
push edi
push 0x23
lea ecx, [ebp - 0x118]
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.SQ_PlatForm
lea edx, [ebp - 0x118]
push edx
call esi
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x12c], 0xc
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x124], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.UContext
lea edx, [ebp - 0x118]
push edx
call esi
lea eax, [ebp - 0x118]
push 0x44ea84
push eax
call fcn.00431843
mov ebx, eax
add esp, 8
mov dword [ebp - 0x11c], ebx
cmp ebx, edi
je 0x40b62c
call fcn.00414ca0
mov edi, edx
mov edx, dword [section..data]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x120], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
push edi
push esi
push str._I64d__s
lea edi, [ebp - 0x120]
call fcn.0040e9a0
mov edi, dword [ebp - 0x120]
add esp, 0x10
test edi, edi
jne 0x40b59d
xor ecx, ecx
jmp 0x40b5ea
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x40b5e6
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004383d0
mov esi, esp
test esi, esi
je 0x40b5e0
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0x11c]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40b5e8
mov ebx, dword [ebp - 0x11c]
xor eax, eax
mov ecx, eax
mov eax, ecx
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b5f0
push ebx
sub eax, esi
push eax
push 1
push ecx
call fcn.004319b1
push ebx
call fcn.00431a98
lea eax, [edi - 0x10]
add esp, 0x14
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b62c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b652
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430efe
mov esp, ebp
pop ebp
ret 4
Function at 0x410420
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446bda
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4590c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
call fcn.00401a60
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
sub eax, 0x10
call fcn.00401a60
add eax, 0x10
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
mov eax, dword [edi + 8]
sub eax, 0x10
call fcn.00401a60
add eax, 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 2
mov eax, dword [edi + 0xc]
sub eax, 0x10
call fcn.00401a60
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x10]
sub eax, 0x10
call fcn.00401a60
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 4
mov eax, dword [edi + 0x14]
sub eax, 0x10
call fcn.00401a60
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 5
mov eax, dword [edi + 0x18]
sub eax, 0x10
call fcn.00401a60
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 6
mov eax, dword [edi + 0x1c]
sub eax, 0x10
call fcn.00401a60
add eax, 0x10
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 0x24]
mov dword [esi + 0x24], ecx
mov edx, dword [edi + 0x28]
mov dword [esi + 0x28], edx
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x34], edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov ecx, dword [edi + 0x48]
mov dword [esi + 0x48], ecx
mov edx, dword [edi + 0x4c]
mov dword [esi + 0x4c], edx
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov ecx, dword [edi + 0x54]
mov dword [esi + 0x54], ecx
mov edx, dword [edi + 0x58]
mov dword [esi + 0x58], edx
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x5c], eax
mov ecx, dword [edi + 0x60]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0x64]
mov dword [esi + 0x64], edx
mov eax, dword [edi + 0x68]
mov dword [esi + 0x68], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x412a60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push str.DSound.dll
mov word [ebp - 4], 0xcc2
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412ba2
push esi
push edi
push str.DirectSoundCreate
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, eax
test edi, edi
je 0x412abe
lea eax, [ebp - 8]
push eax
push 0x40
push 3
push edi
call esi
mov cx, word [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x20
push 3
xor al, al
mov word [edi], cx
push edi
mov byte [edi + 2], al
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.Winmm.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x412b99
push str.midiStreamOpen
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.midiStreamOut
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [ebp - 0x10]
push str.waveOutWrite
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test edi, edi
je 0x412b31
lea ecx, [ebp - 8]
push ecx
push 0x40
push 3
push edi
call esi
mov dx, word [ebp - 4]
xor al, al
mov word [edi], dx
mov byte [edi + 2], al
lea eax, [ebp - 8]
push eax
push 0x20
push 3
push edi
call esi
test ebx, ebx
je 0x412b57
lea ecx, [ebp - 8]
push ecx
push 0x40
push 3
push ebx
call esi
mov dx, word [ebp - 4]
xor al, al
mov word [ebx], dx
mov byte [ebx + 2], al
lea eax, [ebp - 8]
push eax
push 0x20
push 3
push ebx
call esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x412b83
lea ecx, [ebp - 8]
push ecx
push 0x40
push 3
push eax
call esi
mov eax, dword [ebp - 0xc]
mov dx, word [ebp - 4]
xor cl, cl
mov word [eax], dx
mov byte [eax + 2], cl
lea ecx, [ebp - 8]
push ecx
push 0x20
push 3
push eax
call esi
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4139a0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x288
call fcn.00432a5d
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov esi, eax
add esp, 4
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0x288
call ebx
push esi
call fcn.00432af1
mov eax, dword [ebp - 4]
lea ecx, [eax - 1]
add esp, 4
cmp ecx, 0x752e
ja 0x413a2b
push eax
call fcn.00432a5d
add esp, 4
lea edx, [ebp - 4]
mov edi, eax
push edx
push edi
call ebx
test eax, eax
jne 0x413a2b
mov esi, edi
test edi, edi
je 0x413a22
lea ebx, [eax + 6]
lea eax, [esi + 0x10c]
push 0x450140
push eax
call fcn.00432b30
add esp, 8
cmp dword [esi + 0x190], ebx
jae 0x413a34
mov esi, dword [esi]
test esi, esi
jne 0x413a00
push edi
call fcn.00432af1
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x194]
mov dword [0x45c8d8], ecx
mov edx, dword [esi + 0x198]
push edi
mov dword [0x45c8dc], edx
call fcn.00432af1
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414b10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446570
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4590c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
test edi, edi
je 0x414b9c
cmp dword [esi], 0
jne 0x414b9c
push 0x10
mov dword [ebp - 4], 0
call fcn.00431099
add esp, 4
test eax, eax
je 0x414b6a
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
jmp 0x414b6c
xor eax, eax
mov dword [esi], eax
test eax, eax
je 0x414b9c
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esi]
mov dword [ecx + 4], eax
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x414bb0
push eax
call fcn.00430ef3
add esp, 4
mov dword [esi], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
add eax, 8
push eax
push 0
push edx
push edi
push 0
push 0
call fcn.00432e51
mov ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
add esp, 0x18
cmp dword [eax], 0
je 0x414b8d
mov dword [eax + 0xc], 0x7d0
mov edx, dword [esi]
mov eax, dword [edx + 4]
test eax, eax
je 0x414beb
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414c10
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x414c8e
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x414c37
mov eax, dword [esi]
mov ecx, dword [eax]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi]
cmp dword [eax], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x414c58
cmp dword [eax + 8], 0
je 0x414c58
mov edx, dword [eax]
push edx
call edi
mov eax, dword [esi]
mov dword [eax], 0
mov ecx, dword [esi]
mov dword [ecx + 8], 0
mov edx, dword [esi]
mov eax, dword [edx + 4]
test eax, eax
je 0x414c76
push eax
call edi
mov eax, dword [esi]
mov dword [eax + 4], 0
mov ecx, dword [esi]
push ecx
call fcn.00430ef3
add esp, 4
mov dword [esi], 0
mov eax, 1
pop edi
ret
xor eax, eax
ret

Function at 0x414db0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446b68
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4590c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
lea esi, [edi + 0x18]
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x30]
sub eax, 0x10
call fcn.00401a60
add eax, 0x10
mov dword [ebx], eax
test esi, esi
je 0x414e0d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret