joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5310a1
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6a1564]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x5313d5
push ebx
push ebx
mov dword [0x6b13b8], ebx
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x24]
push ecx
push eax
call esi
lea eax, [ebp - 0x34]
push eax
push edi
call esi
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 0x10]
mov eax, dword [0x6b13b8]
cmp eax, 1
jle 0x53115f
test eax, eax
jle 0x53115f
mov edi, 0x6b13cc
push dword [ebp + 0xc]
lea eax, [edi - 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x531153
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x531151
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 0x10]
jmp 0x531153
mov esi, dword [edi]
inc ebx
add edi, 0x10
cmp ebx, dword [0x6b13b8]
jl 0x531121
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e9c4
mov esp, ebp
pop ebp
ret

Function at 0x5312d8
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6a1564]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x24]
push ecx
push eax
call esi
lea eax, [ebp - 0x34]
push eax
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
sub eax, dword [ebp - 0x10]
pop edi
pop esi
call fcn.0044e9c4
mov esp, ebp
pop ebp
ret
Function at 0x531338
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6a1564]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push 0x5313d5
push esi
push esi
mov dword [0x6b13b8], esi
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x24]
push ecx
push eax
call esi
lea eax, [ebp - 0x34]
push eax
push edi
call esi
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov edx, dword [0x6b13b8]
pop edi
pop esi
cmp edx, 1
jle 0x5313c7
test edx, edx
jle 0x5313c7
mov ecx, 0x6b13c8
cmp dword [ecx], eax
cmovg eax, dword [ecx]
lea ecx, [ecx + 0x10]
sub edx, 1
jne 0x5313ba
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044e9c4
mov esp, ebp
pop ebp
ret
Function at 0x5316de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x6b1500], 0
mov dword [ebp - 8], ecx
je 0x531831
add ecx, 8
cmp dword [ecx + 0x14], 8
jb 0x5316ff
mov ecx, dword [ecx]
push esi
push 0x6601e0
push ecx
push dword [0x6a22e8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x531830
push ebx
push edi
push esi
push dword [0x6a22e8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x6a22e8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.00542720
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor esi, esi
push esi
push dword [ebp - 4]
call fcn.00531eee
pop ecx
pop ecx
test eax, eax
je 0x53182e
mov ebx, dword [ebp - 8]
mov ecx, 0x6b1504
mov dword [ebx + 4], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.005314d2
mov eax, dword [ebp - 0xc]
push esi
mov dword [eax + 0x14], ebx
push dword [0x6a22e8]
push esi
push dword [ebp + 8]
push esi
push esi
push esi
push SysReAllocStringLen
push 0x80880000
push esi
push dword [0x6a22e4]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [ebp + 8]
mov dword [ebx + 0x20], eax
call esi
test eax, 0x10000000
jne 0x5317ee
mov byte [ebx + 0x28], 1
jmp 0x531814
test eax, 0x21000000
je 0x5317fb
mov byte [ebx + 0x28], 5
jmp 0x531814
push 8
push dword [ebx + 0x20]
mov byte [ebx + 0x28], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, ebx
call fcn.00532209
push 0xfffffffffffffffc
push dword [ebp + 8]
call esi
push 0x53200c
push 0xfffffffffffffffc
push dword [ebp + 8]
mov dword [ebx + 0x24], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x532721
Capabilities:
Enumerate files on windows

Disassembly:
push 0x474
mov eax, 0x5f793b
call fcn.0044ea40
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x532740
mov eax, dword [esi]
jmp 0x532742
mov eax, esi
push eax
lea eax, [ebp - 0x218]
push str._s.
push eax
call fcn.00517f4c
add esp, 0xc
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x532806
lea eax, [ebp - 0x480]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x532806
push 0x2e
pop eax
cmp word [ebp - 0x454], ax
je 0x532776
cmp word [ebp - 0x452], 0
je 0x532776
cmp word [ebp - 0x452], ax
jne 0x5327b1
cmp word [ebp - 0x450], 0
je 0x532776
test byte [ebp - 0x480], 0x10
jne 0x532776
lea eax, [ebp - 0x454]
push eax
call fcn.00546031
pop ecx
test eax, eax
je 0x532776
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0040b146
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, ebx
push eax
call fcn.0040984e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
push 0
push 1
call fcn.004037bf
jmp 0x532776
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.0044e9ea
ret
Function at 0x5344a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x6a1564]
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 edi, ecx
mov dword [ebp - 0x5c], edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00533b70
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x50]
push eax
call fcn.00539180
mov ebx, eax
test ebx, ebx
jne 0x534507
xor esi, esi
jmp 0x534643
push ebx
lea eax, [ebp - 0x68]
push 0x538f20
push eax
call fcn.00533870
add esp, 0xc
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
push ebx
call fcn.00539030
test eax, eax
je 0x534532
xor esi, esi
jmp 0x534637
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403b4a
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 2
jb 0x53455e
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x53458e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x53458e
push 0x5fc284
lea ecx, [ebp - 0x28]
call fcn.005339b0
cmp dword [ebp - 0x34], 0
mov dword [ebp - 0x54], 0
jb 0x534609
ja 0x5345a3
cmp dword [ebp - 0x38], 0
jbe 0x534609
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call fcn.005346b0
test eax, eax
je 0x534605
mov esi, dword [ebp - 0x38]
mov eax, esi
mov edi, dword [ebp - 0x34]
add eax, 0xffffffff
mov dword [ebp - 0x58], eax
mov ecx, edi
mov eax, dword [ebp - 0x54]
adc ecx, 0xffffffff
cdq
cmp edx, ecx
ja 0x5345ed
jb 0x5345dd
cmp eax, dword [ebp - 0x58]
jae 0x5345ed
push ebx
call fcn.005390d0
test eax, eax
jne 0x534605
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cdq
cmp edx, edi
jb 0x534600
ja 0x534609
cmp eax, esi
jae 0x534609
nop
mov edi, dword [ebp - 0x5c]
jmp 0x5345a3
xor esi, esi
jmp 0x53460e
mov esi, 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x534623
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0045077e
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x68]
push eax
call fcn.005338d0
add esp, 4
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x53468d
mov ecx, dword [ebp - 0x50]
inc eax
cmp eax, 0x1000
jb 0x534684
test cl, 0x1f
je 0x534660
call fcn.00545fe1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x53466c
call fcn.00545fe1
sub ecx, eax
cmp ecx, 4
jae 0x534678
call fcn.00545fe1
cmp ecx, 0x23
jbe 0x534682
call fcn.00545fe1
mov ecx, eax
push ecx
call fcn.00421079
add esp, 4
mov eax, esi
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.0044e9c4
mov esp, ebp
pop ebp
ret 8
Function at 0x5363a0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [eax], 0x12345678
mov dword [eax + 4], 0x23456789
mov dword [eax + 8], 0x34567890
mov cl, byte [ebx]
test cl, cl
je 0x53641a
push esi
push edi
mov edi, dword [eax + 4]
mov esi, 0x34567890
nop
mov edx, dword [eax]
lea ebx, [ebx + 1]
movsx ecx, cl
xor ecx, dword [eax]
mov eax, dword [ebp + 0x10]
movzx ecx, cl
shr edx, 8
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp + 0xc]
xor ecx, edx
mov edx, dword [ebp + 0x10]
mov dword [eax], ecx
movzx ecx, cl
add ecx, edi
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [eax + 4], edi
shr ecx, 0x18
xor ecx, esi
shr esi, 8
movzx ecx, cl
xor esi, dword [edx + ecx*4]
mov dword [eax + 8], esi
mov cl, byte [ebx]
test cl, cl
jne 0x5363d0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x536420
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp dword [esi + 0x100ac], ebx
je 0x5364cb
cmp dword [esi + 0x7c], ebx
jbe 0x5364cb
mov eax, 0xffffff5c
lea ebx, [esi + 0xa4]
sub eax, esi
mov dword [ebp + 8], eax
movzx eax, byte [ebx]
mov ecx, dword [esi + 0x100d0]
xor eax, ecx
mov edx, dword [esi + 0x100dc]
mov edi, dword [esi + 0x100d8]
movzx eax, al
and edi, 0xfffd
shr ecx, 8
or edi, 2
mov eax, dword [edx + eax*4]
xor eax, ecx
mov ecx, dword [esi + 0x100d8]
mov dword [esi + 0x100d0], eax
movzx eax, al
add eax, dword [esi + 0x100d4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edx + eax*4]
mov eax, edi
xor eax, 1
mov dword [esi + 0x100d8], ecx
imul eax, edi
shr eax, 8
xor byte [ebx], al
inc ebx
mov eax, dword [ebp + 8]
add eax, ebx
cmp eax, dword [esi + 0x7c]
jb 0x536450
xor ebx, ebx
mov edi, dword [esi + 0x7c]
lea eax, [esi + 0xa4]
push edi
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
mov dword [esi + 0x7c], 0
or ecx, 0xffffffff
cmp eax, edi
cmovne ebx, ecx
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, ebx
adc dword [esi + 0x100c4], 0
add dword [esi + 0x100c8], ecx
pop edi
adc dword [esi + 0x100cc], 0
mov dword [esi + 0x48], 0
pop esi
pop ebx
pop ebp
ret
Function at 0x53b690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
nop dword [eax]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp + 8], edx
cmp dword [edi + 0x6c], eax
jb 0x53b71f
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00542720
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x53b6ef
sub eax, esi
jmp 0x53b6f1
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x53b6e0
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x53b710
sub eax, esi
jmp 0x53b712
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x53b701
mov edx, dword [ebp + 8]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x53b849
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x53b74c
xor eax, eax
jmp 0x53b795
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x53b769
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.0053f4c0
jmp 0x53b779
cmp eax, 2
jne 0x53b77f
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.0053baf0
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x30], eax
push ecx
push dword [ebx]
push dword [ebp - 4]
call fcn.00542720
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x53b7bd
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x53b7d1
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x53b6a0
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0x53b849
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp edx, esi
jae 0x53b819
sub ecx, esi
mov eax, 0x102
cmp ecx, eax
cmova ecx, eax
mov eax, dword [edi + 0x38]
push ecx
add eax, esi
mov dword [ebp + 8], ecx
push 0
push eax
call fcn.00543220
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x102]
cmp edx, eax
jae 0x53b849
mov eax, dword [edi + 0x38]
sub esi, edx
sub ecx, edx
add esi, 0x102
cmp esi, ecx
cmova esi, ecx
add eax, edx
push esi
push 0
push eax
call fcn.00543220
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x540547
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6a1564]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, 0x6a2328
cmp dword [esi], eax
je 0x540580
add esi, 0x50
cmp esi, 0x6a2b98
jl 0x54056a
xor al, al
jmp 0x54064a
push 0x190
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.00543220
add edi, 4
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x5405a1
mov edi, dword [edi]
lea eax, [esi + 0x38]
cmp dword [eax + 0x14], 8
jb 0x5405ac
mov eax, dword [eax]
lea ecx, [esi + 0x20]
cmp dword [ecx + 0x14], 8
jb 0x5405b7
mov ecx, dword [ecx]
lea edx, [esi + 8]
cmp dword [edx + 0x14], 8
jb 0x5405c2
mov edx, dword [edx]
push edi
push 0xc8
lea edi, [ebp - 0x194]
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x194], 0
jne 0x5405e6
xor eax, eax
jmp 0x5405f3
lea eax, [ebp - 0x194]
push eax
call fcn.00546031
pop ecx
push eax
lea eax, [ebp - 0x194]
lea edi, [ebx + 8]
push eax
mov ecx, edi
call fcn.00403bdf
mov eax, dword [esi + 4]
mov dword [ebx], eax
cmp dword [esi + 4], 1
jne 0x540626
cmp dword [edi + 0x14], 8
jb 0x54061a
mov eax, dword [edi]
jmp 0x54061c
mov eax, edi
push eax
call fcn.0054fc97
pop ecx
mov dword [ebx + 4], eax
cmp dword [esi + 4], 3
jne 0x540648
cmp dword [edi + 0x14], 8
jb 0x540634
mov edi, dword [edi]
push edi
call fcn.0054fc97
pop ecx
xor ecx, ecx
mov dword [ebx + 4], eax
test eax, eax
setg cl
mov dword [ebx + 0x20], ecx
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e9c4
mov esp, ebp
pop ebp
ret 8

Function at 0x55ddc3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055da83

Function at 0x561f70
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00561def

Function at 0x568d41
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x57f410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x57f43c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x57f42d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x57f470
cmp dword [esi + 8], 0
jne 0x57f460
push 0x6258dc
push dword [eax + 8]
call fcn.0055016c
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x57f460
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00555bc9
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x57f492
mov eax, dword [esi + 8]
test eax, eax
je 0x57f48c
push eax
call fcn.005501f9
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x57f8b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6a1564]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x57f900
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x57f8fa
shr eax, 8
cmp al, 2
jne 0x57f8fa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044e9c4
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.0044e9c4
mov esp, ebp
pop ebp
ret
Function at 0x580960
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00591740

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x168]
call fcn.00581c70
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x581a14
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x5819ec
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.0057fa00
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00581650
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x85b8], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x18c]
mov ebx, dword [ecx + edx*4 + 0x168]
add esi, eax
mov eax, dword [ecx + 0x248]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x581d20
cmp dword [ecx + edx*4 + 0x17c], 0x5818e0
jne 0x581d20
cmp dword [esi], 0
je 0x581cb8
test edi, edi
je 0x581d20
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0058fd20
add esp, 0x10
cmp eax, 0xffffffff
je 0x581d20
test al, 1
je 0x581d20
cmp dword [esi], 0
jne 0x581d09
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x6a35e4]
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 0x581d09
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 ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x581d20
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x581d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x581d59
push dword [esi + 0x11c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x581d8f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x66ca78
push 2
push eax
call fcn.005504b1
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005504b1
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x587d00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x587d1e
cmp dword [esi + 0x48], 0
je 0x587d1e
push 2
push 3
push esi
call fcn.00595790
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00595f70
add esp, 4
test esi, esi
je 0x587d3e
cmp dword [esi + 0x48], 0
je 0x587d3e
push 3
push esi
call fcn.005957d0
add esp, 8
pop esi
pop ebp
ret