joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418220
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5470bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x41832b
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x418243
sub edx, ecx
sar edx, 1
je 0x41832b
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x418274
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004264c2
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41828a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x418263
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004d8530
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x20c]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4182f6
test dx, dx
je 0x4182f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4182f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4182d0
xor eax, eax
jmp 0x4182fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x41832b
lea ecx, [ebp - 0x20c]
call fcn.00418220
test al, al
je 0x41832b
push esi
call fcn.004df7af
add esp, 4
neg eax
sbb eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004264c2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.004264c2
mov esp, ebp
pop ebp
ret
Function at 0x418340
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501cc3
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x5470bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
test ebx, ebx
jne 0x41837b
mov al, 1
jmp 0x418562
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebx], ax
jne 0x418398
xor ecx, ecx
jmp 0x4183af
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4183a0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.004020c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x418549
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x4183dc
push str.invalid_string_position
call fcn.0041b364
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2], 0x5c
je 0x4183fa
push 0x5c
push 1
lea ecx, [ebp - 0x28]
call fcn.00419d10
push 0x532c20
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.004086b0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41841a
mov eax, dword [eax]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x294]
mov edi, eax
cmp ecx, 8
jb 0x418448
inc ecx
push ecx
push dword [ebp - 0x2a8]
lea ecx, [ebp - 0x2a8]
call fcn.004024e0
xor eax, eax
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], 0
mov word [ebp - 0x2a8], ax
cmp edi, 0xffffffff
jne 0x418471
xor bl, bl
jmp 0x41854b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop word [eax + eax]
test byte [ebp - 0x278], 0x10
lea eax, [ebp - 0x24c]
je 0x4184e4
push 0x5343e4
push eax
call esi
test eax, eax
je 0x418525
push 0x5343e8
lea eax, [ebp - 0x24c]
push eax
call esi
test eax, eax
je 0x418525
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.004086b0
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x4184d7
mov eax, dword [eax]
mov ecx, eax
call fcn.00418340
mov byte [ebp - 4], 0
jmp 0x418507
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.004086b0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x418500
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x418525
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.004024e0
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418480
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov bl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x418560
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004024e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004264c2
mov esp, ebp
pop ebp
ret
Function at 0x418580
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov edi, eax
push esi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov dword [ebp - 4], eax
call edi
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push ebx
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push dword [ebp - 4]
test eax, eax
push dword [ebp - 8]
setne bl
call edi
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418a00
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501d42
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x5470bc]
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, ecx
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2ac], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x2b4], esi
mov dword [esi + 0x10], 0
jb 0x418a6b
mov eax, dword [esi]
jmp 0x418a6d
mov eax, esi
mov byte [eax], 0
push 0x190
lea eax, [ebp - 0x2a8]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x2ac], 1
call fcn.004d8530
add esp, 0xc
lea eax, [ebp - 0x2a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x418b14
push 0x104
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004d8530
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x418b14
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
cmp byte [edx], 0
jne 0x418afd
xor ecx, ecx
jmp 0x418b0b
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418b02
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00402250
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
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.004264c2
mov esp, ebp
pop ebp
ret
Function at 0x418d90
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501da8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5470bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x418e7a
cmp dword [esi + 0x14], 0x10
jb 0x418dcf
mov eax, dword [esi]
jmp 0x418dd1
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x418e7a
push esi
lea ecx, [ebp - 0x7c]
call fcn.0041ab70
push 0x5344a4
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040a6a0
add esp, 8
lea ecx, [ebp - 0x7c]
call fcn.004031b0
push 0x38
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004d8530
add esp, 0xc
mov dword [ebp - 0x64], 0x3c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], 0
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x58], str.Open
mov dword [ebp - 0x54], 0x5344c0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x60], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x418e72
push 0x40
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
lea ecx, [ebp - 0x28]
call fcn.004031b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004264c2
mov esp, ebp
pop ebp
ret
Function at 0x418ea0
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501ddb
mov eax, dword fs:[0]
push eax
mov eax, 0x12ac
call fcn.004277c0
mov eax, dword [0x5470bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x418ee1
xor eax, eax
jmp 0x419070
push 0x250
lea eax, [ebp - 0x12a0]
push 0
push eax
call fcn.004d8530
add esp, 0xc
lea eax, [ebp - 0x1050]
push 0x820
push 0
push eax
call fcn.004d8530
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x820
push 0
push eax
call fcn.004d8530
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x418f2d
mov eax, dword [esi]
jmp 0x418f2f
mov eax, esi
push eax
push 0x5344c4
lea eax, [ebp - 0x1050]
push 0x410
push eax
call fcn.004168e0
add esp, 0x10
lea eax, [ebp - 0x12a0]
push eax
lea eax, [ebp - 0x1050]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41906b
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
push 0x820
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004d8530
add esp, 0xc
lea eax, [ebp - 0x1274]
mov ecx, esi
push eax
call fcn.00401ee0
push eax
push 0x533328
lea eax, [ebp - 0x830]
push 0x410
push eax
call fcn.004168e0
add esp, 0x14
test byte [ebp - 0x12a0], 0x10
je 0x419036
lea eax, [ebp - 0x1274]
push 0x5343e4
push eax
call fcn.004de58d
add esp, 8
test eax, eax
je 0x41903f
lea eax, [ebp - 0x1274]
push 0x5343e8
push eax
call fcn.004de58d
add esp, 8
test eax, eax
je 0x41903f
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x12b8]
call fcn.00401f30
lea ecx, [ebp - 0x12b8]
mov dword [ebp - 4], 0
call fcn.00419090
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x12a4]
cmp eax, 8
jb 0x41903f
inc eax
lea ecx, [ebp - 0x12b8]
push eax
push dword [ebp - 0x12b8]
call fcn.004024e0
jmp 0x41903f
lea eax, [ebp - 0x830]
push eax
call ebx
lea eax, [ebp - 0x12a0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418f70
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
jb 0x419064
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004264c2
mov esp, ebp
pop ebp
ret
Function at 0x419160
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501e4b
mov eax, dword fs:[0]
push eax
sub esp, 0x97c
mov eax, dword [0x5470bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x41919d
xor eax, eax
jmp 0x41935c
push 0x140
lea eax, [ebp - 0x970]
push 0
push eax
call fcn.004d8530
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x410
push 0
push eax
call fcn.004d8530
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x410
push 0
push eax
call fcn.004d8530
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x4191e9
mov eax, dword [esi]
jmp 0x4191eb
mov eax, esi
push eax
push str._s.
lea eax, [ebp - 0x830]
push 0x410
push eax
call fcn.0040b750
add esp, 0x10
lea eax, [ebp - 0x970]
push eax
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x419357
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop word [eax + eax]
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004d8530
add esp, 0xc
lea eax, [ebp - 0x944]
mov ecx, esi
push eax
call fcn.00402040
push eax
push str._s_s
lea eax, [ebp - 0x420]
push 0x410
push eax
call fcn.0040b750
add esp, 0x14
test byte [ebp - 0x970], 0x10
je 0x419322
lea eax, [ebp - 0x944]
push 0x533844
push eax
call fcn.004df92a
add esp, 8
test eax, eax
je 0x41932b
lea eax, [ebp - 0x944]
push 0x5344e4
push eax
call fcn.004df92a
add esp, 8
test eax, eax
je 0x41932b
cmp byte [ebp - 0x420], 0
mov dword [ebp - 0x974], 0xf
mov dword [ebp - 0x978], 0
mov byte [ebp - 0x988], 0
jne 0x4192d7
xor ecx, ecx
jmp 0x4192e9
lea ecx, [ebp - 0x420]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4192e0
sub ecx, edx
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x988]
call fcn.00402250
lea ecx, [ebp - 0x988]
mov dword [ebp - 4], 0
call fcn.00419160
lea ecx, [ebp - 0x988]
mov dword [ebp - 4], 0xffffffff
call fcn.004031b0
jmp 0x41932b
lea eax, [ebp - 0x420]
push eax
call ebx
lea eax, [ebp - 0x970]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x419230
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 0x10
jb 0x419350
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004264c2
mov esp, ebp
pop ebp
ret

Function at 0x421452
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x421460
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
and eax, 1
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x421508
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x421967
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x42197b
xor eax, eax
pop ebp
ret
push edi
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
je 0x421990
xor eax, eax
jmp 0x421a6d
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push dword [edi + 0x50]
push dword [edi + 0x34]
call esi
mov ebx, eax
test ebx, ebx
jne 0x4219c4
push 4
push 0x2000
push dword [edi + 0x50]
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x421a69
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
push 0x1000
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
push dword [edi + 0x50]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x54]
add eax, dword [ecx + 0x3c]
push eax
push ecx
push ebx
call fcn.004d7fb0
mov ecx, dword [ebp + 8]
push esi
push edi
push ecx
mov eax, dword [ecx + 0x3c]
add eax, ebx
mov dword [esi], eax
mov dword [eax + 0x34], ebx
call fcn.00421706
mov eax, ebx
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0x421a2f
push eax
push esi
call fcn.00421a70
pop ecx
pop ecx
push esi
call fcn.004215f2
pop ecx
test eax, eax
je 0x421a62
push esi
call fcn.004217a8
mov eax, dword [esi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x421a5e
add eax, ebx
je 0x421a62
push 0
xor edi, edi
inc edi
push edi
push ebx
call eax
test eax, eax
je 0x421a62
mov dword [esi + 0x10], edi
mov eax, esi
jmp 0x421a6b
push esi
call fcn.00421865
pop ecx
xor eax, eax
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x423471
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x423497
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x423497
xor al, al
jmp 0x4234ab
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4257da
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x503167
call fcn.00426d39
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4257fa
mov al, 1
jmp 0x425842
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42580b
xor al, al
jmp 0x425842
lea ecx, [ebp - 0x44]
call fcn.00425942
lea ecx, [ebp - 0x1c]
call fcn.00424fd2
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.00425a4d
test al, al
je 0x425837
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.004269d7
pop ecx
mov al, bl
call fcn.00426d02
ret

Function at 0x42589c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x425fbe
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret
Function at 0x42bad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.0042bb00
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.004f8df1

Function at 0x430e40
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x430e89
mov al, byte [esi]
push eax
call fcn.0043b690
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x430e67
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x432020
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2b0], 2
jne 0x432035
pop ebp
jmp fcn.00431fd0
mov al, 1
pop ebp
ret
Function at 0x438be0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x600], 0
je 0x438c24
push esi
push 1
push edi
call fcn.0042d840
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0042d840
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x438c5a
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x50de90
push 2
push eax
call fcn.004de530
push dword [edi + 0x590]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004de530
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x5470bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x1b8]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x88], ecx
call fcn.00439550
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x4390aa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x43906c
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004264c2
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.0045ad80
push eax
mov eax, dword [ebp - 0x88]
push str.Send_failure:__s
push dword [eax]
call fcn.00438c60
mov eax, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xcac], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004264c2
mov esp, ebp
pop ebp
ret
Function at 0x439550
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x1b8]
lea esi, [ebx + 0x1dc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x2a8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x43960d
cmp dword [ebx + ecx*4 + 0x1cc], 0x438f00
jne 0x43960d
cmp dword [esi], 0
je 0x43959f
test edi, edi
je 0x43960d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.00438790
add esp, 0x14
cmp eax, 0xffffffff
je 0x43960d
test al, 1
je 0x43960d
cmp dword [esi], 0
jne 0x4395f4
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x5470f0]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x4395f4
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x43960d
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4396f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test byte [eax + 0x204], 1
je 0x439703
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1b8]
cmp eax, 0xffffffff
je 0x4396ff
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret

Function at 0x439e90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x54bbb4]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x439ee1
push 3
push 2
push eax
push 6
call fcn.0043b390
add esp, 0x10
test al, al
je 0x439ed5
mov dword [0x54bbb4], 2
mov esp, ebp
pop ebp
ret
mov dword [0x54bbb4], 1
jmp 0x439ee6
cmp eax, 2
je 0x439f26
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x439f0d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x439f26
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret