joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472f8e
Capabilities:
Get common file path

Disassembly:
push 0x308
mov eax, 0x5a2066
call fcn.0056cecb
mov eax, dword [ebp + 8]
mov ebx, edx
xor esi, esi
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp + 0xc]
cmp dword [ebx + 0x10], esi
jne 0x472fe9
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x25c], str.File_path_must_not_be_empty
call fcn.0055dff9
push 0x5ffac0
lea eax, [ebp - 0x278]
push eax
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::invalid_argument.0
call fcn.005676bc
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], esi
push eax
mov dword [ebp - 4], esi
push ebx
lea edi, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00474837
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0x26c]
cmp eax, edi
je 0x47304a
mov esi, eax
call fcn.004c601a
mov eax, dword [edi]
mov dword [ebp - 0x26c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x268], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x264], eax
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
xor esi, esi
cmp dword [ebp - 0x230], esi
je 0x47305e
push dword [ebp - 0x230]
call fcn.0055e74f
pop ecx
xor eax, eax
mov dword [ebp - 4], esi
push 0x208
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push esi
push eax
call fcn.00560d40
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push 0x28
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, esi
jge 0x47312c
lea eax, [ebp - 0x314]
push eax
call fcn.00409ac6
mov esi, eax
push str.GFE::FeedbackBuilder::AddFile:_SHGetFolderPath_failed_with
push esi
mov byte [ebp - 4], 6
call fcn.0040fa1f
pop ecx
pop ecx
push edi
push esi
call fcn.0040d526
lea eax, [ebp - 0x23c]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 7
cmp dword [ebp - 0x228], 8
mov eax, dword [ebp - 0x23c]
jae 0x4730e8
lea eax, [ebp - 0x23c]
push eax
push 2
pop ecx
call fcn.0047c666
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x23c]
call fcn.0040b028
lea eax, [ebp - 0x314]
mov byte [ebp - 4], 0
call fcn.004021a3
cmp dword [ebp - 0x26c], edi
je 0x473124
push dword [ebp - 0x26c]
call fcn.0055e74f
pop ecx
call fcn.0056cf27
ret 8
push ebx
lea esi, [ebp - 0x258]
call fcn.0040905d
lea eax, [ebp - 0x220]
push eax
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], 8
call fcn.00409096
push ebx
call fcn.0040cedf
pop ecx
push 1
xor edi, edi
mov bl, al
call fcn.0040b028
test bl, bl
je 0x473189
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47316d
sub eax, edx
sar eax, 1
push 0xd
lea ecx, [ebp - 0x258]
call fcn.0040add2
mov ebx, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x268]
sub eax, ebx
push eax
push ebx
push dword [ebp - 0x25c]
lea edx, [ebp - 0x258]
call fcn.004732df
push 1
xor edi, edi
lea esi, [ebp - 0x258]
call fcn.0040b028
test ebx, ebx
je 0x473124
push ebx
jmp 0x47311e
Function at 0x476557
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x47655f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret

Function at 0x4765af
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x4765b7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4765c9
shr eax, 4
and al, 1
ret
xor al, al
ret

Function at 0x4765cc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d59c
mov eax, dword fs:[0]
push eax
mov eax, 0x202c
call fcn.005685b0
mov eax, dword [0x6274d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 0x5da3f0
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 0x2000
lea eax, [ebp - 0x2018]
push 0
push eax
mov dword [ebp - 0x2038], 0x5c
movsw word es:[edi], word [esi]
call fcn.00560d40
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
push ebx
lea eax, [ebp - 0x2018]
push 0x1000
push eax
call fcn.00560dba
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2018]
push eax
call fcn.0055de5f
add esp, 0x18
push 0x5c26ec
lea esi, [ebp - 0x2034]
mov edi, eax
call fcn.00409096
xor esi, esi
mov dword [ebp - 4], esi
jmp 0x4766e4
push edi
lea eax, [ebp - 0x2034]
push eax
call fcn.004090e2
cmp dword [ebp - 0x2024], esi
jbe 0x4766c3
lea eax, [ebp - 0x2034]
call fcn.00476557
test al, al
je 0x4766a2
lea eax, [ebp - 0x2034]
call fcn.004765af
test al, al
jmp 0x4766c1
cmp dword [ebp - 0x2020], 8
mov eax, dword [ebp - 0x2034]
jae 0x4766b7
lea eax, [ebp - 0x2034]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4766fb
lea eax, [ebp - 0x2038]
push eax
lea eax, [ebp - 0x2034]
push eax
call fcn.004090e2
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.0055de5f
pop ecx
pop ecx
mov edi, eax
cmp edi, esi
jne 0x47666f
push 1
xor edi, edi
lea esi, [ebp - 0x2034]
call fcn.0040b028
mov al, 1
jmp 0x47670c
push 1
xor edi, edi
lea esi, [ebp - 0x2034]
call fcn.0040b028
xor al, al
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.0055d7fe
leave
ret
Function at 0x47960e
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x4a8
mov eax, 0x5a1e37
call fcn.0056ce95
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0x380], ebx
cmp dword [esi], ebx
mov dword [ebp - 0x374], eax
setne al
movzx eax, al
push 0x1e1
push eax
mov edi, str.srcwindows_registry.cpp
mov dword [ebp - 0x37c], esi
call fcn.0047a47f
pop ecx
pop ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x378]
push eax
push ebx
push ebx
push ebx
push dword [esi]
mov dword [ebp - 0x378], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, ebx
je 0x4796f4
lea eax, [ebp - 0x41c]
push eax
call fcn.00409ac6
mov esi, eax
push str.RegQueryInfoKey_failed_with
push esi
mov dword [ebp - 4], 1
call fcn.0040fa1f
pop ecx
pop ecx
push edi
push esi
call fcn.0040d526
lea eax, [ebp - 0x24c]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 2
cmp edi, ebx
jle 0x4796c3
and edi, 0xffff
or edi, 0x80070000
push 1
push 0x1f7
push str.srcwindows_registry.cpp
push edi
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00482fec
push 0x5ffba8
lea eax, [ebp - 0x36c]
push eax
call fcn.005676bc
mov edi, dword [ebp - 0x374]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x380], 1
mov dword [ebp - 0x370], ebx
cmp dword [ebp - 0x378], ebx
ja 0x47972d
mov eax, edi
call fcn.0056cf18
ret 4
mov esi, dword [ebp - 0x37c]
push ebx
push ebx
push ebx
xor eax, eax
push ebx
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x384]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x370]
mov dword [ebp - 0x384], 0x100
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x47971d
cmp esi, ebx
jne 0x4797c3
lea eax, [ebp - 0x214]
push eax
lea esi, [ebp - 0x230]
call fcn.00409096
mov dword [ebp - 4], 5
mov edi, dword [ebp - 0x374]
mov ecx, esi
call fcn.004098b1
push 1
xor edi, edi
mov byte [ebp - 4], bl
call fcn.0040b028
inc dword [ebp - 0x370]
mov eax, dword [ebp - 0x370]
mov edi, dword [ebp - 0x374]
cmp eax, dword [ebp - 0x378]
jb 0x479727
jmp 0x47971d
lea eax, [ebp - 0x4b4]
push eax
call fcn.00409ac6
mov edi, eax
push str.RegEnumKeyEx_failed_with
push edi
mov dword [ebp - 4], 3
call fcn.0040fa1f
pop ecx
pop ecx
push esi
push edi
call fcn.0040d526
lea eax, [ebp - 0x230]
push eax
mov eax, edi
call fcn.00409b30
mov byte [ebp - 4], 4
cmp esi, ebx
jle 0x47980e
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x21a
push str.srcwindows_registry.cpp
push esi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.00482fec
push 0x5ffba8
lea eax, [ebp - 0x2dc]
jmp 0x4796ee
Function at 0x479daa
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1cf1
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x6274d0]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x6274d0]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
push 0x31b
setne al
movzx eax, al
push eax
mov edi, str.srcwindows_registry.cpp
mov ebx, edx
call fcn.0047a47f
cmp dword [ebx + 0x14], 8
pop ecx
pop ecx
jb 0x479e11
mov ebx, dword [ebx]
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x479e9f
lea eax, [esp + 0x14]
push eax
call fcn.00409ac6
mov ebx, eax
and dword [esp + 0x170], 0
push str.RegDeleteValue_failed_with
push ebx
call fcn.0040fa1f
pop ecx
pop ecx
push esi
push ebx
call fcn.0040d526
lea eax, [esp + 0xb0]
push eax
mov eax, ebx
call fcn.00409b30
mov byte [esp + 0x170], 1
test esi, esi
jle 0x479e6f
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x324
push edi
push esi
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.00482fec
push 0x5ffba8
lea eax, [esp + 0xd0]
push eax
call fcn.005676bc
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0055d7fe
mov esp, ebp
pop ebp
ret

Function at 0x479ec3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1cf1
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x6274d0]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x6274d0]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
cmp dword [esi], 0
mov dword [esp + 0x10], eax
setne al
movzx eax, al
push 0x32a
push eax
mov edi, str.srcwindows_registry.cpp
mov ebx, edx
call fcn.0047a47f
cmp dword [ebx + 0x14], 8
pop ecx
pop ecx
jb 0x479f31
mov ebx, dword [ebx]
push dword [ebp + 0xc]
push dword [esp + 0x14]
push dword [ebp + 0x10]
push 0
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x479fcb
lea eax, [esp + 0x14]
push eax
call fcn.00409ac6
mov ebx, eax
and dword [esp + 0x170], 0
push str.RegSetValueExW_failed_with
push ebx
call fcn.0040fa1f
pop ecx
pop ecx
push esi
push ebx
call fcn.0040d526
lea eax, [esp + 0xb0]
push eax
mov eax, ebx
call fcn.00409b30
mov byte [esp + 0x170], 1
test esi, esi
jle 0x479f9b
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x339
push edi
push esi
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.00482fec
push 0x5ffba8
lea eax, [esp + 0xd0]
push eax
call fcn.005676bc
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0055d7fe
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47c4dd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x47c4e5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47c4f4
xor al, al
ret
shr eax, 4
not eax
and eax, 1
ret

Function at 0x47e237
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [esi + 0x10]
push ebx
push edi
xor edx, edx
push 0xa
mov eax, ecx
pop ebx
div ebx
xor edi, edi
mov dword [ebp - 4], 0x811c9dc5
inc eax
test ecx, ecx
je 0x47e27b
cmp dword [esi + 0x14], 8
jb 0x47e261
mov edx, dword [esi]
jmp 0x47e263
mov edx, esi
mov ebx, dword [ebp - 4]
movzx edx, word [edx + edi*2]
imul ebx, ebx, 0x1000193
xor edx, ebx
add edi, eax
mov dword [ebp - 4], edx
cmp edi, ecx
jb 0x47e257
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x47edcb
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xe4
mov eax, 0x5a5c9f
call fcn.0056cecb
mov ebx, ecx
mov edi, dword [ebx + 4]
push dword [edi]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebx + 4]
cmp dword [eax + 4], esi
je 0x47ee0a
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
call fcn.0056cf27
ret
add eax, 0x10
push eax
push 4
push ebx
push 0x47ebdd
push esi
push esi
call fcn.00563884
mov ecx, dword [ebx + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
add esp, 0x18
cmp eax, esi
je 0x47ef75
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x47eedb
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 1
call fcn.00481aac
pop ecx
mov edi, eax
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 2
call fcn.00409ac6
mov esi, eax
push str.SetThreadPriority_failed:
push esi
mov byte [ebp - 4], 3
call fcn.0040fa1f
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.0040fbd3
pop ecx
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x47ee9b
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
call fcn.0047c666
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.0040b028
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 2
call fcn.004021a3
push 1
lea esi, [ebp - 0x4c]
call fcn.0040b028
and dword [ebp - 4], edi
jmp 0x47eedb
mov eax, dword [ebx + 4]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x47ef8f
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 6
call fcn.00481aac
pop ecx
mov edi, eax
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 7
call fcn.00409ac6
mov esi, eax
push str.ResumeThread_failed:
push esi
mov byte [ebp - 4], 8
call fcn.0040fa1f
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.0040fbd3
pop ecx
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 9
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x47ef47
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
call fcn.0047c666
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.0040b028
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 7
call fcn.004021a3
push 1
lea esi, [ebp - 0x4c]
call fcn.0040b028
xor bl, bl
mov eax, dword [ebp - 0x54]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x47ee04
mov eax, dword [ebx + 4]
mov byte [eax + 0xc], 1
mov eax, dword [ebx + 4]
mov byte [eax + 0xd], 0
mov bl, 1
jmp 0x47ef77
Function at 0x47f29a
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x6274d0]
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 0x47f2e1
cmp byte [esp], 2
jne 0x47f2db
mov eax, dword [esp]
shr eax, 8
cmp al, 2
jne 0x47f2db
dec al
jmp 0x47f2e3
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0055d7fe
mov esp, ebp
pop ebp
ret

Function at 0x47f2f5
Capabilities:
Resolve dns

Disassembly:
push edi
mov edi, str.localhost
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x47f360
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x47f316
xor al, al
pop edi
ret
mov cx, word [eax + 8]
mov word [esi], cx
mov ecx, dword [eax + 0xc]
xor edi, edi
cmp dword [ecx], edi
je 0x47f312
mov eax, ecx
add eax, 4
inc edi
cmp dword [eax], 0
jne 0x47f328
test edi, edi
je 0x47f312
mov eax, dword [0x630adc]
xor edx, edx
div edi
cmp dword [0x630adc], 0xffffffff
mov eax, dword [ecx + edx*4]
mov eax, dword [eax]
mov dword [esi + 4], eax
jne 0x47f358
and dword [0x630adc], 0
jmp 0x47f369
inc dword [0x630adc]
jmp 0x47f369
push 2
pop ecx
mov word [esi], cx
mov dword [esi + 4], eax
mov al, 1
pop edi
ret

Function at 0x47f36d
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6274d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
je 0x47f38e
push 6
pop eax
jmp 0x47f433
mov eax, dword [esi + 4]
push edi
push 2
pop edi
cmp eax, edi
jne 0x47f39f
push 6
push 1
jmp 0x47f3ab
cmp eax, 1
jne 0x47f42f
push 0x11
push edi
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x47f426
push 0x7f000001
mov word [ebp - 0x14], di
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x47f421
cmp dword [esi + 4], 1
jne 0x47f40e
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push dword [esi + 8]
mov dword [ebp - 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x47f41c
push accept
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x47f42b
call fcn.0047f442
push 0xa
pop eax
jmp 0x47f432
xor eax, eax
jmp 0x47f432
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055d7fe
leave
ret 4
Function at 0x47f456
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xc0
mov eax, 0x59efb4
call fcn.0056ce95
mov esi, dword [ebp + 8]
xor eax, eax
inc eax
cmp dword [esi + 4], eax
jne 0x47f526
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x47f484
push 2
pop eax
jmp 0x47f526
push 0x10
push ecx
push 0
push 0x18
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x47f524
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x47f4b7
mov edx, ebx
mov ecx, esi
call fcn.0047f52e
jmp 0x47f526
lea eax, [ebp - 0xcc]
push eax
call fcn.00409ac6
mov esi, eax
and dword [ebp - 4], 0
push str.sendto_failed_as
push esi
call fcn.0040fa1f
pop ecx
pop ecx
push edi
push esi
call fcn.0040d33e
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x47f4f8
lea eax, [ebp - 0x30]
push eax
push 4
pop ecx
call fcn.0047c666
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.0040b028
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xcc]
call fcn.004021a3
push 0xa
jmp 0x47f47e
xor eax, eax
call fcn.0056cf18
ret 4

Function at 0x4801e0
Capabilities:
Write file on windows

Disassembly:
push 0x44
mov eax, 0x5acd7c
call fcn.0056ce95
push 0x5c26ec
xor ebx, ebx
mov edi, ecx
push ebx
call fcn.0047f8a1
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
call fcn.0047f949
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.00477928
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00477cf3
lea eax, [ebp - 0x2c]
call fcn.00477c4d
mov esi, dword [ebp - 0x1c]
cmp esi, ebx
je 0x4802c0
xor eax, eax
mov ecx, esi
and ecx, eax
mov dword [ebp - 0x50], esi
cmp ecx, 0xffffffff
je 0x4802c0
mov ecx, esi
or ecx, eax
je 0x4802c0
lea eax, [edi + 0x60]
cmp dword [eax + 0x14], 8
jb 0x480257
mov eax, dword [eax]
push 0x5da3f8
push eax
call fcn.0055f2b4
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x4802c0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x480276
lea eax, [ebp - 0x2c]
push edi
push esi
push 1
push eax
call fcn.0055f689
push edi
mov esi, eax
call fcn.0055f884
mov eax, esi
add esp, 0x14
or eax, ebx
je 0x4802c0
mov eax, esi
and eax, ebx
cmp eax, 0xffffffff
je 0x4802c0
cmp esi, dword [ebp - 0x50]
jne 0x4802c0
xor eax, eax
cmp ebx, eax
jne 0x4802c0
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040aadd
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.0040b028
mov al, 1
jmp 0x4802d9
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040aadd
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.0040b028
xor al, al
call fcn.0056cf18
ret
Function at 0x4817ab
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a5b77
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x6274d0]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x6274d0]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
cmp dword [ebx], esi
push 0x50
setne al
movzx eax, al
push eax
mov edi, 0x5dbaa4
call fcn.0047a47f
mov eax, dword [ebx]
dec eax
pop ecx
pop ecx
je 0x48197e
dec eax
jne 0x481949
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0xec]
call fcn.00466a9f
mov dword [esp + 0x1e0], esi
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
inc eax
lea esi, [esp + 0x20]
call fcn.00465046
mov byte [esp + 0x1e0], 1
cmp dword [esp + 0xfc], 8
mov ecx, dword [esp + 0xe8]
mov eax, ecx
jae 0x481875
lea eax, [esp + 0xe8]
cmp dword [esp + 0xfc], 8
mov edx, dword [esp + 0xf8]
lea eax, [eax + edx*2]
jae 0x481890
lea ecx, [esp + 0xe8]
mov esi, dword [esp + 0x1c]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push ecx
push esi
call fcn.0055e180
add esp, 0xc
push 0x1e
lea eax, [esp + 0x30]
push 0
push eax
call fcn.00560d40
mov eax, 0x414
mov word [esp + 0x48], ax
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x48192e
lea eax, [esp + 0x4c]
push eax
call fcn.00409ac6
mov esi, eax
push str.SHFileOperation_failed_with
push esi
mov byte [esp + 0x1e8], 2
call fcn.0040fa1f
pop ecx
pop ecx
push 0
push esi
call fcn.0040d33e
lea eax, [esp + 0x104]
push eax
mov eax, esi
call fcn.00409b30
push 0x69
mov ecx, 0x5dbaa4
lea eax, [esp + 0x108]
mov byte [esp + 0x1e4], 3
call fcn.00401f44
lea esi, [esp + 0x1c]
call fcn.004c601a
push 1
xor edi, edi
lea esi, [esp + 0xec]
call fcn.0040b028
xor esi, esi
push 0x24
mov dword [ebx], esi
push esi
add ebx, 0x20
push ebx
call fcn.00560d40
add esp, 0xc
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.0055d7fe
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0x124]
call fcn.00466a9f
cmp dword [eax + 0x14], 8
jb 0x481996
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb al, al
inc al
push 1
xor edi, edi
lea esi, [esp + 0x124]
mov byte [esp + 0x1b], al
call fcn.0040b028
cmp byte [esp + 0x17], 0
je 0x481947
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4819d2
and eax, 0xffff
or eax, 0x80070000
push 0x58
push 0x5dbaa4
mov edx, eax
lea ecx, [esp + 0x144]
call fcn.00482f5a
push 0x5ffba8
lea eax, [esp + 0x140]
push eax
call fcn.005676bc
int3
Function at 0x481c1d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x24
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00560d40
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x24]
cmp eax, 0xa
ja case.default.0x481c46
jmp dword [eax*4 + 0x481ca1]
mov eax, 0x5dbb24
leave
ret
mov eax, str.MIPS
leave
ret
mov eax, str.ALPHA
leave
ret
mov eax, 0x5dbb44
leave
ret
mov eax, 0x5dbb4c
leave
ret
mov eax, 0x5dbb54
leave
ret
mov eax, str.IA64
leave
ret
mov eax, str.ALPHA64
leave
ret
mov eax, str.MSIL
leave
ret
mov eax, str.AMD64
leave
ret
mov eax, str.IA32_ON_WIN64
leave
ret
mov eax, str.UNKNOWN
leave
ret