joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465f48
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0x4ee2e4
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.004026a4
add esp, 8
cmp eax, 0
jne 0x465fb0
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004c88b0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x465faa
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
push 0x4ee2e4
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call fcn.004026a4
add esp, 8
cmp eax, 0
jne 0x466008
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004c88b0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x466002
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
cmp dword [ebp + 0x1c], 0
jne 0x466019
mov dword [ebp + 0x18], 1
mov ebx, dword [ebp + 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x466037
push eax
mov ebx, eax
call fcn.004025dc
inc eax
push eax
call fcn.004c4d96
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x466048
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x4ee2e4
push dword [ebp - 4]
call fcn.004026a4
add esp, 8
cmp eax, 0
jne 0x46607f
mov eax, str.open
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x46607b
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x4ee2e4
mov ebx, dword [ebp + 0x30]
push dword [ebx]
call fcn.004026a4
add esp, 8
cmp eax, 0
jne 0x4660d7
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004c88b0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp + 0x30]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4660d1
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov ebx, dword [ebp + 0x30]
mov dword [ebx], eax
mov dword [ebp - 8], esp
push dword [ebp + 0x18]
mov ebx, dword [ebp + 0x30]
push dword [ebx]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
push dword [ebp + 0x20]
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 8], esp
je 0x466118
push 0x35e
push 0x40fa551
push 6
call fcn.004c4d9c
add esp, 0xc
jmp 0x46611d
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x46612e
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x30
Function at 0x4b9118
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.004c91f0
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push 0xe
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4b9190
push 0x75
push 0x40fa465
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4b91a7
mov eax, 0
jmp 0x4b91e2
mov eax, dword [ebp]
mov eax, dword [eax + 8]
mov ecx, eax
mov ebx, dword [ebp + 8]
dec ebx
imul ebx, ebx, 4
mov eax, dword [eax]
mov eax, dword [eax]
add eax, ebx
mov ebx, dword [eax]
mov eax, dword [ebp - 4]
mov word [eax], 0xb85b
mov dword [eax + 2], ebx
mov byte [eax + 6], 0x68
mov dword [eax + 7], ecx
mov word [eax + 0xb], 0xff53
mov byte [eax + 0xd], 0xe0
mov eax, dword [ebp - 4]
jmp 0x4b91e2
mov esp, ebp
pop ebp
ret 4

Function at 0x4c8710
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.004dcd0e
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4c877a
push esi
lea edi, [eax + 0x400]
call fcn.004dcd37
push edi
call fcn.004dcd0e
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x4c874a
push esi
xor edi, edi
call dword [0x61b0ec]
add esp, 4
test eax, eax
je 0x4c8796
push eax
push esi
call fcn.004cf6f0
add esp, 8
mov edi, eax
push esi
call fcn.004dcd37
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4c8a40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x4c8a81.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x4c8a81.2
jmp dword [eax*4 + 0x4c8b0c]
mov word [esp + 0x48], di
jmp 0x4c8aba
mov word [esp + 0x48], 2
jmp 0x4c8aba
mov word [esp + 0x48], 3
jmp 0x4c8aba
mov word [esp + 0x48], 4
jmp 0x4c8aba
mov word [esp + 0x48], 7
jmp 0x4c8aba
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x4c8b04
cmp dword [esp + 0x70], edi
je 0x4c8af0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x4c8b30
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4c8bc2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4c8bb4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4c8bac
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4c8b75
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x4c8ef0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
ja 0x4c8f71
je 0x4c8f62
cmp eax, 0x80000101
ja 0x4c8f5b
je 0x4c8f62
cmp eax, 0x80000004
je 0x4c8f3c
cmp eax, 0x80000005
jne 0x4c8f86
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 3
test eax, eax
je 0x4c8fd3
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x4c8fd3
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 1
push eax
call dword [0x61b0ec]
mov ebp, dword [esp + 0x44]
mov ebx, eax
add esp, 4
inc ebx
jmp 0x4c8fd3
cmp eax, 0x80000201
jne 0x4c8f86
mov ebx, 4
lea ebp, [esp + 0x40]
mov dword [esp + 8], ebx
jmp 0x4c8fd3
cmp eax, 0x80000401
je 0x4c8fbe
cmp eax, 0x80000501
je 0x4c8fa6
cmp eax, 0x80000601
je 0x4c8f8e
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call fcn.004d0ee4
mov dword [esp + 0xc], eax
jmp 0x4c8fcf
fld dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call fcn.004d0ee4
mov dword [esp + 0xc], eax
jmp 0x4c8fcf
mov ecx, dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea ebp, [esp + 0xc]
mov edx, dword [esp + 0x28]
push esi
push edx
call fcn.004cfa40
mov esi, eax
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0
call dword [0x61b0ec]
add esp, 8
test esi, esi
je 0x4c90ac
test eax, eax
je 0x4c90ac
inc eax
push edi
push eax
call fcn.004dcd0e
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004d0fb0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4c904e
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4c90a2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4c9097
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004dcd37
add esp, 4
pop edi
mov eax, dword [esp + 0x18]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4cb8f0
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
ret

Function at 0x4cbcd0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4cbcee
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4cbce3
pop esi
ret

Function at 0x4cbde0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4cbe0a
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4cbe0a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret
Function at 0x4cc220
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push eax
call fcn.004cfa40
mov edi, dword [esp + 0x28]
mov ebp, eax
push edi
xor esi, esi
call dword [0x61b0ec]
add esp, 8
test ebp, ebp
je 0x4cc2ea
test eax, eax
je 0x4cc2ea
inc eax
push ebx
push eax
call fcn.004dcd0e
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004d0fb0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4cc28c
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4cc2c6
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4cc2d9
mov eax, dword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push ebx
call fcn.004dcd37
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x4cca60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.004cfa40
mov edi, dword [esp + 0x38]
xor ebp, ebp
push edi
mov ebx, eax
mov dword [esp + 0x18], ebp
call dword [0x61b0ec]
add esp, 8
test ebx, ebx
je 0x4ccba4
test eax, eax
je 0x4ccba4
inc eax
push eax
call fcn.004dcd0e
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004d0fb0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4ccad2
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4ccb91
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.004dcd0e
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x4ccb5a
cmp eax, 0xea
jne 0x4ccb7d
push esi
call fcn.004dcd37
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004dcd0e
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x4ccb25
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x4ccb68
cmp eax, 2
jne 0x4ccb7d
push esi
call dword [0x61b0ec]
push eax
push esi
call fcn.004cf6f0
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call fcn.004dcd37
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.004dcd37
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x4ccbcd
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4ccbd9
mov esi, dword [esp + 0x40]
test esi, esi
je 0x4ccbd9
push esi
call dword [0x61b0ec]
push eax
push esi
call fcn.004cf6f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4cccc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push esi
push edi
push eax
call fcn.004cfa40
mov edi, dword [esp + 0x34]
xor esi, esi
push edi
mov ebx, eax
mov dword [esp + 0x18], esi
call dword [0x61b0ec]
add esp, 8
test ebx, ebx
je 0x4ccdfb
test eax, eax
je 0x4ccdfb
inc eax
push ebp
push eax
call fcn.004dcd0e
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004d0fb0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4ccd32
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4ccde7
push 0x400
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x1c], 3
call fcn.004dcd0e
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x4ccdba
cmp eax, 0xea
jne 0x4ccdd3
push esi
call fcn.004dcd37
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004dcd0e
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x10]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x4ccd85
cmp dword [esp + 0x18], 3
jne 0x4ccdd3
mov edx, dword [esp + 0x10]
push edx
push esi
call fcn.004cfa90
add esp, 8
mov dword [esp + 0x14], eax
push esi
call fcn.004dcd37
mov eax, dword [esp + 0x20]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.004dcd37
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
pop ebp
jne 0x4cce22
mov esi, eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4cce2d
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4cce2d
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
call fcn.004cfa90
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x4cce80
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4cce96
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret
or eax, 0xffffffff
ret

Function at 0x4ccea0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
push 0x202
xor esi, esi
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x4ccef1
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.004cce80
add esp, 4
cmp eax, 0xffffffff
je 0x4cceec
push eax
call sub.WS2_32.dll_inet_ntoa
mov esi, eax
push esi
call dword [0x61b0ec]
push eax
push esi
call fcn.004cf6f0
add esp, 0xc
mov esi, eax
call sub.WS2_32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x4cd250
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4cd2b9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.004c82d0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x4cd3e0
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4cd3ee
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.004cfd20
add esp, 4
test eax, eax
jne 0x4cd400
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
je 0x4cd41e
cmp ecx, 3
je 0x4cd41e
cmp ecx, 2
jne 0x4cd42d
mov ecx, dword [esi + 4]
call fcn.004d0420
pop esi
ret
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
ret
Function at 0x4cdd20
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x4cdda0
push edi
call dword [0x61b0ec]
add esp, 4
test eax, eax
jbe 0x4cdda0
test esi, esi
je 0x4cdd5e
cmp esi, 0xffffffff
je 0x4cdd5e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x4cdde2
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x4cdd8c
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x4cdda0
jmp 0x4cdd9b
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x4cdda0
mov ebp, 1
test esi, esi
je 0x4cdde2
cmp esi, 0xffffffff
je 0x4cdde2
test ebp, ebp
jne 0x4cde19
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x4cddef
call edi
test eax, eax
je 0x4cdde2
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x4cde19
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x4cddca
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x4cdde2
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x4cde19
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x4cddfc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x61b0ec]
inc eax
push eax
call fcn.004c82d0
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
Function at 0x4ce590
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4ce5a6
mov eax, 1
pop edi
add esp, 0x10
ret
push edi
call fcn.004cfd20
add esp, 4
test eax, eax
jne 0x4ce5bd
mov eax, 1
pop edi
add esp, 0x10
ret
mov eax, dword [edi]
push ebx
push ebp
mov ebp, 1
cmp eax, ebp
push esi
mov dword [esp + 0x10], ebp
je 0x4ce661
cmp eax, 3
je 0x4ce661
cmp eax, 2
jne 0x4ce705
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.004d0420
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jae 0x4ce705
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], 0
test eax, eax
je 0x4ce705
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4ce705
mov edx, dword [esi]
lea eax, [esp + 0x28]
push ebp
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
mov ebx, eax
call dword [edx + 0x18]
test ebx, ebx
je 0x4ce705
mov al, byte [esp + 0x28]
test al, al
je 0x4ce653
cmp al, 0x1a
jne 0x4ce705
mov dword [esp + 0x10], ebp
mov eax, ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
mov esi, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push esi
mov dword [esp + 0x24], eax
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ce705
cmp ebx, dword [esp + 0x14]
jae 0x4ce705
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], 0
test eax, eax
je 0x4ce705
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4ce705
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x30]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push ebx
push esi
mov dword [esp + 0x24], eax
call ebp
cmp dword [edi], 3
jne 0x4ce6e9
mov ecx, dword [edi + 0xc]
lea eax, [edi + 0x10]
push eax
add edi, 0x34
push ecx
push edi
lea edx, [esp + 0x34]
push 1
push edx
push ebx
call fcn.004cf460
add esp, 0x18
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4ce705
mov al, byte [esp + 0x28]
test al, al
je 0x4ce6fd
cmp al, 0x1a
jne 0x4ce705
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret