joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4500cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47a630]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00446db2
and dword [ebp - 0x14], 0
cmp dword [0x47e1f8], 0
mov dword [ebp - 0x18], eax
jne 0x45017f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x450227
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x450227
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47e1f8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47e1fc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47e200], eax
call edi
push eax
call esi
mov dword [0x47e208], eax
test eax, eax
je 0x45017f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47e204], eax
mov eax, dword [0x47e204]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4501d8
cmp dword [0x47e208], ecx
je 0x4501d8
push eax
call esi
push dword [0x47e208]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4501d8
test ebx, ebx
je 0x4501d8
call edi
test eax, eax
je 0x4501cf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4501cf
test byte [ebp - 8], 1
jne 0x4501d8
or dword [ebp + 0x10], 0x200000
jmp 0x45020b
mov eax, dword [0x47e1fc]
cmp eax, dword [ebp - 0x18]
je 0x45020b
push eax
call esi
test eax, eax
je 0x45020b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45020b
mov eax, dword [0x47e200]
cmp eax, dword [ebp - 0x18]
je 0x45020b
push eax
call esi
test eax, eax
je 0x45020b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47e1f8]
call esi
test eax, eax
je 0x450227
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x450229
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a47b
leave
ret
Function at 0x1001aac3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001ab02
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001ab02
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ab02
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001ab02
cmp dword [ecx + 0x74], 0xe
jbe 0x1001ab02
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001d77f
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 0x1001d81c
push ebx
push esi
call fcn.1001d748
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.1001d6dc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001d7c9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d81b
push edi
push eax
call fcn.1001e73a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001d7e9
call fcn.1001c224
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d81a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d6dc
add esp, 0x20
test eax, eax
jne 0x1001d808
push edi
call fcn.1001c224
jmp 0x1001d810
push ebx
call fcn.1001c224
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 0x1001da89
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025cc8
push 0x10025cc0
push str.FlsAlloc
push 0x1f
call fcn.1001d9a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001dabd
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024150]
call esi
jmp 0x1001dac3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001db07
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025cd8
push 0x10025cd0
push str.FlsGetValue
push 0x21
call fcn.1001d9a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001db3e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001db46
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025ce0
push 0x10025cd8
push str.FlsSetValue
push 0x22
call fcn.1001d9a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001db80
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10024150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10023200
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x407561
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp + 0x10], eax
push edi
push edi
push 2
push edi
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40759b
lea eax, [ebp + 0x10]
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x40759d
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4075a1
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
lea eax, [ebp - 0x158]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x158]
push 0x4074c0
push eax
call esi
mov ebx, 0x6400
mov edi, 0x4010c0
push ebx
push edi
call fcn.00407510
push ebx
lea eax, [ebp - 0x158]
push edi
push eax
call fcn.00407549
add esp, 0x14
test eax, eax
je 0x407654
lea eax, [ebp - 0x25c]
push 0x4074d0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x25c]
push eax
call esi
lea eax, [ebp - 0x25c]
push 0x4074e0
push eax
call esi
push 0x10
xor edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push edx
push edx
push edx
lea eax, [ebp - 0x25c]
push edx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x67060857
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x4001948
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4022e3
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
or eax, 0xffffffff
cmp dword [esp + 0xc], esi
jbe 0x40231f
push edi
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esi + ecx]
movzx edx, al
push 8
xor ecx, edx
shr eax, 8
pop edi
mov dl, cl
shr ecx, 1
and dl, 1
je 0x402312
xor ecx, 0xedb88320
dec edi
jne 0x402303
xor eax, ecx
inc esi
cmp esi, dword [esp + 0x10]
jb 0x4022f0
pop edi
not eax
pop esi
ret

Function at 0x40235f
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x114], eax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x118]
xor esi, esi
push eax
inc esi
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x14], esi
call sub.WS2_32.dll_select
cmp eax, esi
jge 0x4023a6
xor eax, eax
jmp 0x4023f9
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.004027fb
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4023f6
push dword [ebp - 4]
push eax
call fcn.004021ed
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x4023ed
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x4023ed
push 2
push esi
lea eax, [ebp + 0xb]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_recv
dec eax
neg eax
sbb al, al
inc al
mov byte [edi], al
push dword [ebp - 0xc]
call fcn.0040264c
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402687
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push esi
xor bl, bl
xor esi, esi
cmp dword [0x40b010], 0xffffffff
jne 0x4026be
push esi
push esi
push str.bcrypt.dll
mov dword [0x40b010], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
je 0x4026be
push str.BCryptGenRandom
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40b010], eax
mov eax, dword [0x40b010]
cmp eax, esi
je 0x4026de
push 2
push dword [esp + 0x14]
push dword [esp + 0x14]
push esi
call eax
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
jne 0x402722
cmp dword [0x40b00c], 0xffffffff
jne 0x402705
push 0xf0000040
push 1
push esi
push esi
push 0x40b00c
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x402705
mov dword [0x40b00c], esi
mov eax, dword [0x40b00c]
cmp eax, esi
je 0x402722
push dword [esp + 0xc]
push dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
setne bl
pop esi
mov al, bl
pop ebx
ret
Function at 0x40278a
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov ebx, eax
cmp dword [ebp + 0xc], edi
jbe 0x4027f4
mov eax, dword [ebp + 0xc]
push edi
sub eax, esi
push eax
push ebx
push dword [ebp + 8]
call sub.WS2_32.dll_recv
cmp eax, edi
jg 0x4027eb
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4027f4
mov eax, dword [ebp + 8]
push edi
push edi
mov dword [ebp - 0x100], eax
push edi
lea eax, [ebp - 0x104]
push eax
push edi
mov dword [ebp - 0x104], 1
call sub.WS2_32.dll_select
cmp eax, 1
jne 0x4027f4
jmp 0x4027ef
add esi, eax
add ebx, eax
cmp esi, dword [ebp + 0xc]
jb 0x4027a1
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4027fb
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 2
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp + 8]
xor esi, esi
call sub.WS2_32.dll_recv
test eax, eax
jle 0x402881
push 0x18
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
call fcn.0040278a
pop ecx
pop ecx
cmp eax, 0x18
jne 0x402881
push dword [ebp - 0x1c]
call fcn.004025af
mov esi, eax
pop ecx
test esi, esi
je 0x402881
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.0040278a
pop ecx
pop ecx
cmp eax, dword [ebp - 0x1c]
jne 0x402878
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push esi
push 0x10
push eax
call fcn.004029f6
push dword [ebp - 0x1c]
push esi
call fcn.004022e3
add esp, 0x1c
cmp dword [ebp - 0x18], eax
jne 0x402878
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x402881
push esi
call fcn.0040264c
pop ecx
xor esi, esi
mov eax, esi
pop esi
leave
ret

Function at 0x402973
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x14]
mov cl, byte [eax + 0x100]
mov edx, dword [ebp + 0x10]
mov byte [ebp + 0x17], cl
mov cl, byte [eax + 0x101]
mov byte [ebp - 1], cl
test edx, edx
je 0x4029e2
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
sub ecx, edi
mov dword [ebp - 8], ecx
mov dword [ebp + 0x10], edx
inc byte [ebp + 0x17]
movzx esi, byte [ebp + 0x17]
mov dl, byte [esi + eax]
add byte [ebp - 1], dl
movzx ecx, byte [ebp - 1]
mov bl, byte [ecx + eax]
mov byte [esi + eax], bl
mov byte [ecx + eax], dl
movzx ecx, byte [esi + eax]
movzx edx, dl
add ecx, edx
mov edx, dword [ebp - 8]
and ecx, 0xff
mov cl, byte [ecx + eax]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp + 0x10]
jne 0x4029a5
pop edi
pop esi
pop ebx
mov cl, byte [ebp + 0x17]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 1]
mov byte [eax + 0x101], cl
leave
ret
Function at 0x402a35
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 8]
push eax
push 0x20119
xor edi, edi
push edi
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402aba
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x402ab0
push dword [ebp - 4]
call fcn.004025af
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x402ab0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call esi
test eax, eax
je 0x402aa4
push ebx
call fcn.0040264c
pop ecx
xor ebx, ebx
jmp 0x402ab0
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x402ab0
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x402ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402b0d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x402b12
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
lea ecx, [ebp - 0x10c]
push ecx
xor esi, esi
push eax
inc esi
push eax
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x108], ebx
mov dword [ebp - 8], esi
or edi, 0xffffffff
call dword [sym.imp.WS2_32.dll_select]
cmp eax, esi
jne 0x402b68
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402ba7
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x402be7
xor eax, eax
inc eax
mov word [ebp + 8], ax
xor eax, eax
push 4
mov word [ebp + 0xa], ax
lea eax, [ebp + 8]
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
pop ebp
ret
Function at 0x402bea
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402c24
push edi
push edi
push edi
push edi
push 0x10
push dword [esp + 0x20]
push esi
call dword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x402c24
push esi
call fcn.00402ba7
pop ecx
or esi, 0xffffffff
pop edi
mov eax, esi
pop esi
ret

Function at 0x403120
Capabilities:
Encode data using xor
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push edi
push 0x2003
call fcn.004025af
mov ebx, eax
xor edi, edi
pop ecx
cmp ebx, edi
je 0x403204
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
mov dword [ebp - 0x108], eax
mov eax, dword [esi + 4]
push edi
mov dword [ebp - 0x104], eax
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 0x10c], 2
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jl 0x4031eb
mov dword [ebp - 4], edi
cmp dword [ebp - 0x10c], edi
jbe 0x403146
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x108]
mov ecx, dword [esi]
cmp eax, ecx
jne 0x403195
mov ecx, dword [esi + 4]
push edi
push 0x2003
push ebx
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x4031eb
cmp byte [esi + 8], 0
je 0x4031c3
xor eax, eax
test edi, edi
jle 0x4031c3
mov cl, byte [esi + 8]
xor byte [eax + ebx], cl
inc eax
cmp eax, edi
jl 0x4031b8
push 0
push edi
push ebx
push dword [ebp - 8]
call fcn.00402b12
add esp, 0x10
cmp eax, edi
jne 0x4031eb
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
xor edi, edi
cmp eax, dword [ebp - 0x10c]
jb 0x403182
jmp 0x403146
push dword [esi]
call fcn.00402ba7
push dword [esi + 4]
call fcn.00402ba7
push ebx
call fcn.0040264c
add esp, 0xc
pop esi
pop edi
pop ebx
leave
ret

Function at 0x40322b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push 2
xor ebx, ebx
push ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, ebx
je 0x403289
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x403282
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x403282
mov dx, word [eax + 0x32]
mov ecx, dword [esp + 0x10]
mov word [ecx], dx
mov dx, word [eax + 0x30]
mov word [ecx + 2], dx
mov dx, word [eax + 0x36]
mov word [ecx + 4], dx
mov ax, word [eax + 0x34]
mov word [ecx + 6], ax
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov al, bl
pop ebx
ret
Function at 0x4032ac
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0xf0000040
push 0x18
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x403334
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40332a
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0x10
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 8]
test eax, eax
setne byte [ebp - 1]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x40333a
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
push ebx
xor ebx, ebx
cmp byte [0x40b410], bl
jne 0x403487
lea eax, [ebp - 0x17c]
push eax
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x403487
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push edi
lea eax, [ebp - 0x17c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
jmp 0x4033ac
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
je 0x4033bf
lea eax, [ebp - 0x17c]
push eax
call esi
push 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x17c]
push eax
call edi
test eax, eax
je 0x403385
cmp byte [ebp - 0x6e], 0x7b
jne 0x4033c8
mov byte [ebp - 0x48], bl
lea eax, [ebp - 0x6e]
push eax
push dword [0x41b68c]
lea eax, [ebp - 4]
push 0x408450
push eax
call fcn.00402f8b
add esp, 0x10
test eax, eax
je 0x403485
push ebx
push str.MachineGuid
push 0x4083f8
push getsockname
call fcn.00402a35
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x403422
push esi
push 0x4083f4
lea eax, [ebp - 4]
push ebx
push eax
call fcn.00402fdb
push esi
call fcn.0040264c
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call fcn.004032ac
pop ecx
pop ecx
test al, al
je 0x40347c
movzx eax, byte [ebp - 5]
push eax
movzx eax, byte [ebp - 6]
push eax
movzx eax, byte [ebp - 7]
push eax
movzx eax, byte [ebp - 8]
push eax
movzx eax, byte [ebp - 9]
push eax
movzx eax, byte [ebp - 0xa]
push eax
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push 0x40b410
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x34
push dword [ebp - 4]
call fcn.0040264c
pop ecx
pop edi
pop esi
mov eax, 0x40b410
pop ebx
leave
ret
Function at 0x4037c1
Capabilities:
Create process on windows
Move file
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
call fcn.00406c0e
xor ebx, ebx
mov byte [ebp - 8], al
cmp byte [ebp + 8], bl
je 0x403813
cmp al, bl
je 0x403808
lea eax, [ebp - 0x24c]
push eax
push 1
call fcn.00403ef5
pop ecx
push eax
call fcn.00405a89
pop ecx
pop ecx
test al, al
je 0x403813
lea eax, [ebp - 0x24c]
push eax
call fcn.00405a44
jmp 0x403812
push str.shit
call fcn.0040505c
pop ecx
push 6
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
mov esi, 0x41be90
push esi
push 0x3005
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], ebx
cmp byte [ebp + 8], bl
je 0x40385f
push dword [ebp - 8]
call fcn.00403ef5
push eax
push esi
lea eax, [ebp - 4]
push str._d__c_ping__n_2_127.0.0.1___NUL__fsutil_file_setzerodata_offset0_length524288___s___rmdir___s___s__q___NUL__exit
push eax
call fcn.00402f3b
add esp, 0x14
jmp 0x403872
push esi
push esi
lea eax, [ebp - 4]
push str._d__c_ping__n_2_127.0.0.1___NUL__fsutil_file_setzerodata_offset0_length524288___s___del___s____NUL__exit
push eax
call fcn.00402f3b
add esp, 0x10
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x4038bd
push 0x38
lea eax, [ebp - 0x40]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0xc600
mov dword [ebp - 0x38], str.open
mov dword [ebp - 0x34], str._COMSPEC_
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp - 4]
call fcn.0040264c
pop ecx
call fcn.00404042
pop esi
pop ebx
leave
ret

Function at 0x403908
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0x408704
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 6
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.0040679e
pop ecx
pop ecx
leave
ret