joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438a40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567940
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5bc324]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0052362a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00529e85
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44a530
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 5
push 0
push 0
push dword [ebp + 8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta al
pop ebp
ret
Function at 0x465b70
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x250
lea eax, [ebp - 0x254]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x465bc4
mov eax, dword [ebp - 0x254]
test al, 1
je 0x465bc4
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
Function at 0x467030
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56af21
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x218]
add esp, 0xc
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x467080
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4670a0
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x21a], 0x5c
jne 0x4670d7
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x467224
xor eax, eax
mov word [ebp + ecx - 0x218], ax
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x467100
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0043e6b0
lea edx, [ebp - 0x230]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00441560
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
cmp ecx, eax
je 0x467161
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x467152
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0043e6b0
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x4671a3
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x467199
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x467199
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0052365a
add esp, 8
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x21c]
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp edx, 8
jb 0x467208
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4671fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4671fe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0052365a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
call fcn.0052474c
int3
Function at 0x469720
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea esi, [ebp - 0x404]
mov dword [ebp - 0x658], edi
mov edx, edi
sub esi, edi
nop word [eax + eax]
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], ax
test ax, ax
jne 0x469750
lea ecx, [ebp - 0x404]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469770
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x406], 0x5c
je 0x4697ac
lea edi, [ebp - 0x404]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x469793
mov eax, dword [0x5914bc]
mov dword [edi], eax
mov edi, dword [ebp - 0x658]
lea ecx, [ebp - 0x404]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4697b5
mov eax, dword [0x592c04]
mov dword [ecx], eax
mov eax, dword [0x592c08]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x65c], esi
cmp esi, 0xffffffff
je 0x469916
push ebx
lea ebx, [ebp - 0x204]
sub ebx, edi
nop
mov eax, edi
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [ebx + eax - 2], cx
test cx, cx
jne 0x469802
lea ecx, [ebp - 0x204]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469820
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x206], 0x5c
je 0x469856
lea edi, [ebp - 0x204]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x469843
mov eax, dword [0x5914bc]
mov dword [edi], eax
lea edx, [ebp - 0x628]
mov esi, edx
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x469860
lea edi, [ebp - 0x204]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x469876
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test byte [ebp - 0x654], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x4698ec
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea eax, [ebp - 0x628]
push 0x592c0c
push eax
call esi
add esp, 8
test eax, eax
je 0x4698ec
lea eax, [ebp - 0x628]
push 0x592c10
push eax
call esi
add esp, 8
test eax, eax
je 0x4698ec
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x204]
push eax
call esi
lea ecx, [ebp - 0x204]
call fcn.00469720
lea eax, [ebp - 0x204]
push eax
call esi
mov esi, dword [ebp - 0x65c]
lea eax, [ebp - 0x654]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [ebp - 0x658]
test eax, eax
jne 0x469800
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
Function at 0x46b5f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b5d7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5bc324]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x591244
mov dword [edi + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.0043ca10
lea ebx, [edi + 4]
mov dword [esi + 0x3c], 0
push 0x20
mov ecx, esi
mov dword [esi + 0x38], ebx
call fcn.00438ca0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x46b694
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.0043c970
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov dword [ebp - 0x18], ebx
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.00438a40
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x48], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x3d], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [0x5c342c]
mov dword [ebx + 0x40], eax
mov eax, dword [0x5c3430]
mov dword [ebx + 0x44], eax
mov eax, edi
mov dword [ebx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46b7b0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b632
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5bc324]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x592cd4
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
sub esp, 8
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
mov dword [ebp - 0x10], 1
push esi
call fcn.004562c0
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00438a40
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x48], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x3d], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x5c342c]
mov dword [esi + 0x40], eax
mov eax, dword [0x5c3430]
mov dword [esi + 0x44], eax
mov dword [esi + 0x38], 0
mov eax, dword [ebp + 0xc]
push ecx
or eax, 1
mov byte [ebp - 4], 2
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.004380d0
test eax, eax
jne 0x46b8f1
mov eax, dword [edi]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, edi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0043c970
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47cce0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x81c], 0xc
push eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x818], 0
push eax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x814], 1
push eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x47cd44
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x860]
mov dword [ebp - 0x860], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x80c]
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x824], eax
xor eax, eax
push 0x3f4
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x3f8]
push eax
mov dword [ebp - 0x834], 0x101
call sub.VCRUNTIME140.dll_memset
movq xmm0, qword [str.Cmd.exe__C]
lea edi, [ebp - 0x404]
mov eax, dword [0x593b40]
add esp, 0xc
movq qword [ebp - 0x404], xmm0
dec edi
mov dword [ebp - 0x3fc], eax
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47cdb8
push esi
mov ecx, 8
lea eax, [ebp - 0x870]
mov esi, str.wmic_diskdrive_get_name__signature
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x860]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x404]
push eax
push 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x80c]
test eax, eax
jne 0x47ce26
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x808]
call esi
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
lea eax, [ebp - 0x804]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push eax
push 0x3ff
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47ced5
nop word [eax + eax]
lea eax, [ebp - 0x804]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47ce78
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x47ce84
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x804]
push 0x400
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push eax
push 0x3ff
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47ce70
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
Function at 0x47ebc0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c6db
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x21c], edi
push 0
push edx
mov dword [ebp - 0x220], edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov esi, eax
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
shl esi, 0x10
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
mov eax, esi
or eax, 0x1000000
cmp dword [ebp + 8], 0
cmove eax, esi
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ec60
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0043e6b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret

Function at 0x482880
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cba0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5bc324]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x10]
mov dword [esi + 0x10], 0
push dword [esi + 8]
call fcn.0052b1e5
add esp, 4
test eax, eax
je 0x4828cf
push eax
call fcn.0052b972
add esp, 4
push dword [esi + 4]
mov byte [esi + 0xc], 1
call fcn.0052b5d9
add esp, 4
test eax, eax
je 0x4828eb
push eax
call fcn.0052b972
add esp, 4
push dword [esi + 8]
call fcn.0052b25a
add esp, 4
test eax, eax
je 0x482903
push eax
call fcn.0052b972
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
push 2
push 0xf170
push 0x112
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
call fcn.0052b616
test edi, edi
je 0x48293f
push 1
push edi
call fcn.0052365a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48b700
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x5bc324]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x48b758
mov eax, dword [esp]
cmp al, 2
jne 0x48b752
shr eax, 8
cmp al, 2
jne 0x48b752
call fcn.00490630
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
mov eax, 2
xor ecx, esp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret

Function at 0x48bb20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x18], esi
test edi, edi
jne 0x48bc5f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
shr eax, 6
mov dword [esp + 0x10], eax
imul eax, eax, 0x3e8
sub ecx, eax
lea eax, [esp + 0xc]
push eax
sub esp, 8
mov dword [esp + 0x20], ecx
mov ecx, ebx
call fcn.0048dee0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x48bb32
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x48bc53
test eax, eax
jne 0x48bbeb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
sub edx, edx
sub edx, dword [esp + 0x10]
imul eax, edx, 0x3e8
sub eax, dword [esp + 0x14]
add eax, ecx
cmp eax, 0xa
jg 0x48bbeb
inc esi
cmp esi, 2
jle 0x48bbed
cmp esi, 0xa
jge 0x48bbdd
mov ecx, dword [esp + 0x18]
mov eax, 1
shl eax, cl
test eax, eax
je 0x48bbed
jns 0x48bbe2
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x48bbed
mov eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x48bbed
xor esi, esi
lea edx, [esp + 0x1c]
mov ecx, ebx
call fcn.0048f3e0
mov edi, eax
test edi, edi
jne 0x48bb32
cmp dword [esp + 0x1c], eax
jne 0x48bb32
test ebx, ebx
je 0x48bb32
cmp dword [ebx], 0xbab1e
jne 0x48bb32
mov ecx, dword [ebx + 0x14]
cmp dword [ecx + 0xc], eax
je 0x48bb32
mov edx, dword [ecx]
push edi
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
call fcn.004a1370
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x48bb32
mov eax, dword [eax + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 3
mov eax, 0x2b
pop edi
mov ecx, 0x1b
pop esi
cmove eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x490ca0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x154]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x490d1e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x490cee
mov dword [edi], 0x51
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, ebx
call fcn.0048cc00
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.004909c0
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax]
mov dword [eax + 0x863c], ebx
mov eax, esi
mov dword [edi], 0x37
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x491140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 0x1e8]
test eax, eax
je 0x491166
push dword [edi + 0x174]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push edi
call eax
add esp, 0x14
pop edi
pop ebp
ret
cmp edx, 2
ja 0x49119c
push dword [edi + 0x170]
lea eax, [edx*2 + 0x58f994]
push 1
add eax, edx
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [edi + 0x170]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x4911b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x320], 0
je case.default.0x4911f4
test eax, eax
je case.default.0x4911f4
mov edx, dword [eax + 0x9c]
test edx, edx
je case.default.0x4911f4
lea ecx, [esi - 1]
mov eax, str.Data
cmp ecx, 3
ja case.default.0x4911f4
jmp dword [ecx*4 + 0x4912c8]
mov eax, str.Header
mov ecx, str.from
jmp 0x491211
mov eax, str.Header
mov ecx, 0x5962a4
push edx
push ecx
push eax
push str.__s__s__s_
lea eax, [ebp - 0xac]
push 0xa0
push eax
call fcn.004a0a20
lea ecx, [ebp - 0xac]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x491236
sub ecx, edx
lea eax, [ebp - 0xac]
push ecx
push eax
xor edx, edx
mov ecx, edi
call fcn.00491140
add esp, 8
test eax, eax
jne 0x4912b7
mov eax, dword [edi + 0x1e8]
test eax, eax
je 0x491283
push dword [edi + 0x174]
push dword [ebp + 0xc]
push ebx
push esi
push edi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
cmp esi, 2
ja 0x4912b5
push dword [edi + 0x170]
lea eax, [esi*2 + 0x58f994]
push 1
add eax, esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push 2
push eax
call esi
push dword [edi + 0x170]
push 1
push dword [ebp + 0xc]
push ebx
call esi
add esp, 0x20
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00523a6a
mov esp, ebp
pop ebp
ret