joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409130
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410570
push 0x409416
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x20], 0
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x38], edi
push str.RegCreateKeyExA
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x2c], eax
push str.RegSetValueExA
push edi
call esi
mov dword [ebp - 0x34], eax
push str.RegDeleteKeyA
push edi
call esi
mov dword [ebp - 0x1c], eax
push str.RegDeleteValueA
push edi
call esi
mov dword [ebp - 0x40], eax
push str.RegOpenKeyExA
push edi
call esi
mov ebx, eax
push str.RegCloseKey
push edi
call esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.0x40921f.3
jmp dword [eax*4 + 0x4092e8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x2c]
test eax, eax
jne case.0x40921f.3
lea ecx, [ebp - 0x3c]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call ebx
test eax, eax
jne case.0x40921f.3
mov ebx, dword [ebp + 0x14]
lea eax, [ebx - 1]
cmp eax, 6
ja case.0x40921f.3
jmp dword [eax*4 + 0x4092f8]
mov esi, dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
jmp 0x40923b
push 4
lea eax, [ebp + 0x1c]
push eax
push ebx
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [ebp - 0x34]
test eax, eax
jne case.0x40921f.3
jmp 0x4092a1
lea eax, [ebp - 0x3c]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call ebx
test eax, eax
jne case.0x40921f.3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [ebp - 0x1c]
test eax, eax
jne case.0x40921f.3
jmp 0x4092a1
lea edx, [ebp - 0x3c]
push edx
push 0x2001f
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call ebx
test eax, eax
jne case.0x40921f.3
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [ebp - 0x40]
test eax, eax
jne case.0x40921f.3
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004092d6
test edi, edi
je 0x4092bf
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40933e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40933e
xor eax, eax
ret
mov eax, 1
ret
Function at 0x10004770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
nop
nop
mov eax, 0xb06ce18d
mov eax, ebx
mov eax, ebx
cmp eax, 0x27
inc eax
nop
cmp eax, 0xb2e76201
mov eax, 0x829da370
mov eax, 0x41143c4c
mov eax, ebx
cmp eax, 0xd1d102ff
nop
mov eax, ecx
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
mov eax, 0x5e4d914e
mov eax, ebx
mov eax, ecx
mov eax, 0xc97b8180
mov eax, 0x833de7fa
cmp eax, 0x1d
inc eax
mov eax, ebx
mov eax, ebx
inc eax
inc eax
nop
mov eax, ecx
mov eax, ecx
nop
cmp eax, 0x886365c3
inc eax
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0xcdc6da9
mov eax, ecx
mov eax, 0xa454aff9
mov eax, ecx
mov eax, ebx
inc eax
nop
cmp eax, 0xb4c4a9c1
cmp eax, 6
nop
cmp eax, 0xffffffb5
cmp eax, 0x2fa44552
inc eax
cmp eax, 0x4a
nop
inc eax
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc eax
cmp eax, 0xc6768619
mov eax, 0x27849c96
nop
cmp eax, 0x6e
mov eax, 0x3fc341fe
mov eax, 0xe1613640
inc eax
inc eax
cmp eax, 0xffffff83
mov eax, 0xd0c48262
mov eax, ebx
inc eax
nop
nop
nop
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
cmp eax, 0x1f
mov eax, ecx
cmp eax, 0x2f
mov eax, 0x46277b15
mov eax, 0xbdab283f
cmp eax, 0xfffffff4
nop
cmp eax, 0x53
cmp eax, 0x9bd33372
cmp eax, 0x1fd31d6d
cmp eax, 0xb89a5de5
inc eax
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491f
push 0x41030
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 0xffffff97
inc eax
mov eax, ecx
mov eax, 0x1456748d
inc eax
cmp eax, 0x6b2650f2
mov eax, ebx
nop
mov eax, ebx
mov eax, 0x88a8b43f
mov eax, 0x79617bc3
mov eax, 0x55237bb9
nop
inc eax
inc eax
nop
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x10004931
mov dword [ebp - 4], 1
jmp 0x10004938
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x662055c0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x662164fb
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x178]
call fcn.66209400
xor ebx, ebx
cmp dword [esi + 0x160], ebx
jne 0x662056ef
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x662056b8
lea ecx, [esp + 0x48]
call fcn.66202d60
mov dword [esp + 0x100], ebx
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.6620a140
add esp, 8
lea ecx, [esp + 0x48]
call fcn.66202e50
xor edx, edx
cmp byte [esi + 0x18c], bl
mov dword [esp + 0x18], eax
setne dl
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
lea edi, [esi + 0x170]
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0x40
dec edx
and edx, 0x20
or edx, 0x40
push edx
mov edx, dword [esi + 0x188]
push 1
push eax
push ecx
push edx
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov ebp, eax
cmp ebp, ebx
jge 0x662056a4
mov dword [edi], ebx
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.66203260
mov eax, ebp
jmp 0x66205783
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.66203260
mov edx, dword [esi + 0x170]
push 5
push 0x18
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
cmp eax, ebx
jl 0x66205783
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x168], eax
mov dword [esi + 0x16c], ecx
mov ecx, esi
call fcn.66204db0
mov edi, eax
cmp edi, ebx
jge 0x66205712
lea ecx, [esi + 0x178]
call fcn.66209400
mov ecx, esi
call fcn.662045e0
mov eax, edi
jmp 0x66205783
cmp byte [esp + 0x108], bl
je 0x6620571f
xor eax, eax
jmp 0x66205783
mov edi, dword [esi + 0x178]
mov ecx, edi
call fcn.66205820
test al, al
je 0x6620571b
cmp byte [esp + 0x10c], bl
je 0x6620571b
mov edx, dword [esi + 0x170]
mov eax, dword [esp + 0x110]
mov dword [esi + 0x174], edx
mov dword [esi + 0x170], ebx
push 0xffffffffffffffff
cmp eax, ebx
je 0x66205762
push eax
mov ecx, esi
call fcn.662032c0
jmp 0x66205778
mov ecx, edi
call fcn.66205840
push eax
mov ecx, esi
call fcn.662039b0
mov ecx, eax
call fcn.66201025
push ebx
push ebx
push 1
mov ecx, esi
call fcn.662055c0
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf4
ret 0xc
Function at 0x66208140
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x3c
push ebx
push edi
mov edi, dword [esp + 0x48]
cmp byte [edi + 0x118], 0
mov ebx, ecx
jne 0x66208161
pop edi
mov eax, 0xc000000d
pop ebx
add esp, 0x3c
ret 4
cmp word [edi + 0x14], 2
mov eax, dword [edi + 0x110]
mov ecx, dword [edi + 0x114]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jb 0x66208181
mov edx, 0x10b
mov eax, dword [edi + 0x54]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
mov eax, dword [ebx + 0x48]
push 2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, 0x66242060
mov dword [esp + 0x24], 0
call fcn.6620ad90
test eax, eax
jl 0x66208272
movzx eax, word [edi + 0x14]
push ebp
mov ebp, dword [edi + 0x10c]
cdq
push esi
mov esi, eax
add esi, dword [edi + 0x108]
mov dword [esp + 0x50], 0
adc ebp, edx
add esi, 0x18
adc ebp, 0
xor ecx, ecx
cmp cx, word [edi + 6]
jae 0x6620826e
push 0
push 0x28
lea edx, [esp + 0x2c]
push edx
push ebp
push esi
mov ecx, ebx
call fcn.66207320
test eax, eax
jl 0x66208270
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
mov ecx, ebx
call fcn.662080e0
test eax, eax
jl 0x66208270
mov edx, dword [esp + 0x48]
push edx
call fcn.662074b0
mov ecx, dword [esp + 0x30]
add esp, 4
lea edx, [esp + 0x10]
push edx
mov edx, dword [ebx + 0x48]
push eax
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
mov ecx, 0x66242060
mov dword [esp + 0x2c], 0
call fcn.6620ad90
test eax, eax
jl 0x66208270
mov eax, dword [esp + 0x50]
movzx ecx, word [edi + 6]
inc eax
add esi, 0x28
adc ebp, 0
mov dword [esp + 0x50], eax
cmp eax, ecx
jb 0x662081e8
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x3c
ret 4
Function at 0x662150c8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.6620d1d6
and dword [ebp - 4], 0
cmp dword [0x66242a38], 0
mov ebx, eax
jne 0x66215179
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x6621522a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x6621522a
push eax
call fcn.6620d164
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x66242a38], eax
call esi
push eax
call fcn.6620d164
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x66242a3c], eax
call esi
push eax
call fcn.6620d164
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x66242a40], eax
call esi
push eax
call fcn.6620d164
pop ecx
mov dword [0x66242a48], eax
test eax, eax
je 0x66215179
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.6620d164
pop ecx
mov dword [0x66242a44], eax
mov eax, dword [0x66242a44]
cmp eax, ebx
je 0x662151d1
cmp dword [0x66242a48], ebx
je 0x662151d1
push eax
call fcn.6620d1df
push dword [0x66242a48]
mov esi, eax
call fcn.6620d1df
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x662151d1
test edi, edi
je 0x662151d1
call esi
test eax, eax
je 0x662151c8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x662151c8
test byte [ebp - 0xc], 1
jne 0x662151d1
or dword [ebp + 0x10], 0x200000
jmp 0x6621520a
mov eax, dword [0x66242a3c]
cmp eax, ebx
je 0x6621520a
push eax
call fcn.6620d1df
pop ecx
test eax, eax
je 0x6621520a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x6621520a
mov eax, dword [0x66242a40]
cmp eax, ebx
je 0x6621520a
push eax
call fcn.6620d1df
pop ecx
test eax, eax
je 0x6621520a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x66242a38]
call fcn.6620d1df
pop ecx
test eax, eax
je 0x6621522a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x6621522c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404aa3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov dword [ebp - 4], 0x7f83677c
sub dword [ebp - 4], 0x1715
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mul dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov word [ebp - 0x10], 0
jmp 0x404bc4
mov eax, ebx
add eax, esi
push eax
call fcn.0040423c
pop ecx
mov edx, eax
mov byte [ebp - 5], dl
mov eax, dword [ebp - 4]
mov edx, eax
add edx, eax
mov dword [ebp - 4], edx
cmp byte [ebp - 5], 0
jne 0x404b09
mov byte [ebp - 6], 0
jmp 0x404b33
call 0x409b00
mov dword [ebp - 0x20], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 5]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x20]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 6], dl
mov al, byte [esi + ebx]
cmp al, 0x70
jb 0x404b4e
cmp al, 0x7f
ja 0x404b4e
mov eax, ebx
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 6]
sub edx, ecx
mov byte [eax], dl
movzx eax, byte [esi + ebx]
cmp eax, 0xe2
jne 0x404b69
mov eax, ebx
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 6]
sub edx, ecx
mov byte [eax], dl
mov eax, 0x3e96
mul dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
push 8
push 0x90
lea eax, [ebp - 0xe]
push eax
call 0x409adc
movzx eax, byte [ebp - 5]
push eax
mov eax, ebx
add eax, esi
push eax
lea eax, [ebp - 0xe]
movzx edx, byte [ebp - 6]
add eax, edx
push eax
call 0x409ad0
push 6
lea eax, [ebp - 0xe]
push eax
mov eax, ebx
add eax, esi
push eax
call 0x409ad0
add esp, 0x24
mov eax, dword [ebp - 4]
mov edx, eax
xor edx, eax
mov dword [ebp - 4], edx
add esi, 6
inc word [ebp - 0x10]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x404ae3
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x35100e5b
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x6f32b01
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4faf00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb8000]
push edi
jmp 0x4faf1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4faf21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4faf10
mov eax, 1
add ebx, ebx
jne 0x4faf33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4faf44
jne 0x4faf63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4faf63
dec eax
add ebx, ebx
jne 0x4faf50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4faf28
add ebx, ebx
jne 0x4faf5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fafb5
xor ecx, ecx
sub eax, 3
jb 0x4faf7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fafea
sar eax, 1
mov ebp, eax
jmp 0x4faf86
add ebx, ebx
jne 0x4faf86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4faf54
inc ecx
add ebx, ebx
jne 0x4faf94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4faf54
add ebx, ebx
jne 0x4fafa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4faf96
jne 0x4fafb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4faf96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fafd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fafc6
jmp 0x4faf16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fafd4
add edi, ecx
jmp 0x4faf16
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4faff2
cmp byte [edi], 0x13
jne 0x4faff2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4faff7
lea edi, [esi + 0xf6000]
mov eax, dword [edi]
or eax, eax
je 0x4fb06f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1446d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14482c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fb024
mov ecx, edi
jns 0x4fb053
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x144830]
or eax, eax
je 0x4fb069
mov dword [ebx], eax
add ebx, 4
jmp 0x4fb041
call dword [esi + 0x144840]
mov ebp, dword [esi + 0x144834]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4fb0a3
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x405b5d
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, 0x42678d
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xb8
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x10], esp
call fcn.00405d77
push 0xc0
mov byte [ebp - 4], 1
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
mov byte [ebp - 4], 2
je 0x405baa
call fcn.00407522
mov esi, eax
jmp 0x405bac
xor esi, esi
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040751e
lea ecx, [ebp - 0xc4]
push ecx
push eax
call fcn.00416a82
test al, al
pop ecx
pop ecx
jne 0x405beb
and byte [ebp - 4], 0
lea ecx, [ebp - 0xc4]
call fcn.00405dcc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
lea eax, [ebp - 0xac]
push eax
lea ecx, [esi + 0x28]
call fcn.0040c5c1
lea eax, [ebp - 0x60]
push eax
lea ecx, [esi + 0x40]
call fcn.0040c5c1
mov edi, str.list.tmp
push edi
lea ecx, [esi + 0x88]
call fcn.0040bca8
push 0x43c95c
lea ecx, [esi + 0xa0]
call fcn.0040bca8
mov eax, dword [esi]
and byte [esi + 0xb8], 0
and byte [esi + 0xb9], 0
and byte [esi + 0xba], 0
and byte [esi + 0xbc], 0
and byte [esi + 0xbd], 0
mov ecx, esi
mov byte [esi + 0xbb], 1
call dword [eax + 4]
test esi, esi
je 0x405c64
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0x430f24
push edi
call sub.MSVCRT.dll_fopen
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 8], eax
je 0x405bcb
push eax
call fcn.00416a4f
mov edi, eax
pop ecx
lea esi, [edi + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
push edi
push 1
push ebx
call sub.MSVCRT.dll_fread
add esp, 0x1c
push ebx
lea ecx, [ebp - 0x30]
call fcn.0040bb72
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040c6bb
mov edi, eax
push 0x430c84
push edi
call sub.MSVCRT.dll_strstr
test eax, eax
pop ecx
pop ecx
jne 0x405ce2
push 0x430f20
push edi
call sub.MSVCRT.dll_strstr
test eax, eax
pop ecx
pop ecx
je 0x405d45
cmp byte [eax], 0xd
jne 0x405ced
and byte [eax], 0
inc eax
jmp 0x405ce2
cmp byte [eax], 0xa
jne 0x405cf8
and byte [eax], 0
inc eax
jmp 0x405ced
cmp byte [eax], 0xd
jne 0x405d03
and byte [eax], 0
inc eax
jmp 0x405cf8
mov esi, edi
push 0x43c95c
push esi
mov edi, eax
call sub.MSVCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x405cc0
push esi
lea ecx, [ebp - 0x48]
call fcn.0040bb72
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x1ec]
mov byte [ebp - 4], 4
call fcn.00407360
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0040bc75
jmp 0x405cc0
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_fclose
pop ecx
pop ecx
push str.list.tmp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040bc75
jmp 0x405bcb
Function at 0x405d77
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4267c1
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040bb1b
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0040bb1b
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0040bb1b
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
call fcn.0040bb1b
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.0040bb1b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x405dcc
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4267f5
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x64]
mov dword [ebp - 4], 3
call fcn.0040bc75
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
call fcn.0040bc75
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0040bc75
and byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0040bc75
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040bc75
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4076c2
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
mov esi, ecx
mov dword [esi], 0x42a3bc
cmp dword [0x43c960], 0
mov eax, dword [0x43c960]
jne 0x4076fc
inc eax
mov dword [0x43c960], eax
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
jmp 0x407702
inc eax
mov dword [0x43c960], eax
mov al, byte [ebp + 8]
or dword [esi + 0x808], 0xffffffff
and byte [esi + 0x80e], 0
and word [esi + 4], 0
mov byte [esi + 0x80c], al
lea eax, [esi + 6]
push 0x43c95c
push eax
call sub.MSVCRT.dll_strcpy
and byte [esi + 0x80d], 0
pop ecx
pop ecx
mov eax, esi
pop esi
leave
ret 4

Function at 0x407830
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
call fcn.0040782a
test al, al
je 0x4078d3
xor ebx, ebx
cmp byte [esi + 0x80d], bl
jne 0x4078de
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x808], eax
je 0x4078cc
cmp byte [ebp + 0x14], bl
jne 0x407876
push dword [ebp + 0x10]
jmp 0x407877
push ebx
mov ecx, esi
call fcn.00407e70
push edi
mov edi, dword [ebp + 0xc]
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
mov word [esi + 4], di
call sub.MSVCRT.dll_memset
add esp, 0xc
push edi
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x808]
mov word [esi + 4], di
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
pop edi
je 0x4078d7
cmp byte [ebp + 0x10], bl
jne 0x4078d7
mov ecx, esi
call fcn.004078e6
xor al, al
jmp 0x4078e0
mov byte [esi + 0x80d], 1
mov al, 1
pop esi
pop ebx
leave
ret 0x10