joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485dec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x1000
mov ebx, 0x76d260
xor esi, esi
push ebx
push 0xffffffffffffffff
push ecx
push esi
push 0xfde9
mov edi, edx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x7573bc
lea eax, [ebp - 4]
push ebx
push eax
call fcn.005ee960
add esp, 0xc
cmp dword [ebp - 4], esi
je 0x485e46
push dword [ebp - 4]
push 1
push dword [ebp + 8]
push edi
call fcn.005f2680
push dword [ebp - 4]
mov esi, eax
call fcn.005ef610
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x485e51
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
xor esi, esi
mov ebx, edx
test ecx, ecx
jne 0x485e6a
xor eax, eax
jmp 0x485f30
push edi
push 0x1000
mov edi, 0x76d260
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x7573c4
lea eax, [ebp - 4]
push edi
push eax
call fcn.005ee960
mov ecx, dword [ebp - 4]
add esp, 0xc
test ecx, ecx
je 0x485f2d
cmp dword [ebx], esi
jne 0x485ef9
push 2
push 0
push ecx
call fcn.005f0210
push dword [ebp - 4]
call fcn.005d15e0
mov edi, eax
cmp edi, dword [ebp + 8]
push 0
cmova edi, dword [ebp + 8]
push 0
push dword [ebp - 4]
call fcn.005f0210
push 0x144
push 0x7573cc
lea eax, [edi + 1]
push 1
push eax
call fcn.005f5c60
add esp, 0x2c
mov dword [ebx], eax
test eax, eax
jne 0x485f19
push dword [ebp - 4]
call fcn.005ef610
pop ecx
xor eax, eax
jmp 0x485f2f
mov edi, dword [ebp + 8]
dec edi
cmp esi, edi
jae 0x485f1e
push ecx
mov eax, edi
sub eax, esi
push eax
push 1
push dword [ebx]
call fcn.005f8d30
add esp, 0x10
add esi, eax
test eax, eax
je 0x485f1e
mov ecx, dword [ebp - 4]
jmp 0x485efd
mov ecx, dword [ebx]
mov byte [esi + ecx], 0
push dword [ebp - 4]
call fcn.005ef610
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x485f64
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sar edx, 2
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
lea eax, [ecx + edx*4]
lea edx, [edx*4 + 3]
shr edx, 2
push edi
xor edi, edi
cmp ecx, eax
cmova edx, ebx
test edx, edx
je 0x485f98
imul esi, esi, 0x1000193
xor esi, dword [ecx]
inc edi
lea ecx, [ecx + 4]
cmp edi, edx
jb 0x485f88
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x485fa0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x6dad44]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [0x76b4dc]
inc eax
mov dword [0x76b4dc], eax
push esi
cmp eax, 1
jg 0x486065
xor esi, esi
push esi
push esi
push esi
call fcn.00593520
push esi
push esi
push 0x200002
call fcn.00593520
push esi
push esi
push 2
call fcn.004c5b50
push esi
push esi
push 0xc
call fcn.004c5b50
push esi
push esi
push 4
call fcn.004c5b50
push esi
push esi
push 8
call fcn.004c5b50
add esp, 0x48
push 0x800
push esi
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x486065
push str.SystemFunction036
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48605e
push 0x40
lea ecx, [esp + 0xc]
push ecx
call eax
test al, al
je 0x48605e
movsd xmm0, qword [0x6c9480]
lea eax, [esp + 8]
push ecx
push ecx
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.004c7640
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
call fcn.005c0e20
mov esp, ebp
pop ebp
ret
Function at 0x486b6a
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ecx
push ebx
push edi
mov edi, ecx
mov dword [esp + 8], edx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jle 0x486bd6
push ebp
push esi
xor ebp, ebp
mov eax, dword [edi + 0x28]
cmp dword [eax + ebx*4], 0
je 0x486bcb
mov eax, dword [edi + 0x20]
push 4
mov esi, dword [eax + 0x34]
mov eax, dword [edi + 0x70]
add eax, 4
add eax, ebp
push eax
push 9
push 0
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [edi + 0x34]
push eax
push 0xa
push 0
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
push dword [esp + 0x14]
push 0
push dword [esp + 0x28]
push dword [esp + 0x28]
push esi
call dword [sym.imp.WS2_32.dll_sendto]
inc ebx
add ebp, 0x10
cmp ebx, dword [edi + 0x74]
jl 0x486b7e
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
Function at 0x4870df
Capabilities:
Terminate process

Disassembly:
mov eax, 0x2614
call fcn.005c1580
mov eax, dword [0x6dad44]
xor eax, esp
mov dword [esp + 0x2610], eax
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 2
push 2
mov dword [esp + 0x24], ebx
mov edi, esi
mov dword [ebx], esi
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, 0xffffffff
jne 0x487124
xor eax, eax
jmp 0x4871f6
push esi
push esi
lea eax, [esp + 0x18]
push eax
push 0x2600
lea eax, [esp + 0x30]
push eax
push esi
push esi
push 0x4004747f
push ebp
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [esp + 0x10]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4871ed
mov eax, ecx
push 0x4c
pop ecx
div ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x487180
lea eax, [esp + 0x28]
cmp dword [eax], 0x100007f
je 0x487178
inc edi
add eax, 0x4c
sub ecx, 1
jne 0x48716f
push 0x1ce
push 0x757910
push 1
shl edi, 4
push edi
call fcn.005f5c60
add esp, 0x10
mov dword [ebx], eax
test eax, eax
je 0x48720f
mov eax, dword [esp + 0x10]
mov edi, esi
test eax, eax
je 0x4871ed
mov ebp, dword [esp + 0x18]
lea ebx, [esp + 0x24]
mov edx, esi
mov dword [esp + 0x14], edx
cmp dword [ebx + 4], 0x100007f
je 0x4871e1
mov ecx, dword [ebp]
push 0x10
push ebx
add ecx, edx
push 0x10
pop edx
call section..text
mov edx, dword [esp + 0x1c]
inc edi
mov eax, dword [esp + 0x18]
add edx, 0x10
pop ecx
pop ecx
mov dword [esp + 0x14], edx
inc esi
add ebx, 0x4c
cmp esi, eax
jb 0x4871b6
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
mov ecx, dword [esp + 0x2620]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0e20
add esp, 0x2614
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x1ce
push esi
push edi
mov edx, 0x75792c
xor ecx, ecx
call fcn.0048f95e
push edi
push 0x757948
push 0x757964
call fcn.00401109
add esp, 0x18
push esi
call fcn.005d08b0
int3
Function at 0x487248
Capabilities:
Get local ipv4 addresses
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x272
mov eax, 0x178
push ebx
push 0x757988
push 1
push eax
mov ebp, ecx
mov dword [esp + 0x20], eax
xor edi, edi
call fcn.005f5c60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4873b2
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
lea eax, [esp + 0x10]
push eax
push esi
push edi
push 0x2a
push 0x17
call ebx
cmp eax, 0x6f
jne 0x4872ea
push 1
push esi
call fcn.005f5b20
push 0x276
push 0x757a00
push 1
push dword [esp + 0x24]
call fcn.005f5c60
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4872ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x276
push esi
push edi
mov edx, 0x757a1c
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x757a38
push 0x757a54
jmp 0x4873da
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0x2a
push 0x17
call ebx
test eax, eax
je 0x48730b
push 1
push esi
call fcn.005f5b20
xor eax, eax
jmp 0x4873aa
mov eax, esi
test esi, esi
je 0x48732b
cmp dword [eax + 0x34], 0
je 0x487324
test byte [eax + 0x38], 0x18
jne 0x487324
cmp dword [eax + 0x44], 1
jne 0x487324
inc edi
mov eax, dword [eax + 8]
test eax, eax
jne 0x487311
mov ebx, 0x28e
mov eax, edi
push ebx
push 0x757a78
shl eax, 2
push 1
push eax
call fcn.005f5c60
mov edx, eax
add esp, 0x10
mov dword [ebp], edx
test edx, edx
jne 0x487379
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x757a94
push esi
push ebx
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push ebx
push 0x757ab0
push 0x757acc
jmp 0x4873da
mov ecx, esi
test esi, esi
je 0x4873a0
cmp dword [ecx + 0x34], 0
je 0x487399
test byte [ecx + 0x38], 0x18
jne 0x487399
cmp dword [ecx + 0x44], 1
jne 0x487399
mov eax, dword [ecx + 4]
mov dword [edx], eax
add edx, 4
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x48737f
push 1
push esi
call fcn.005f5b20
mov eax, edi
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x7579a4
push esi
push ebx
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push ebx
push 0x7579c0
push 0x7579dc
call fcn.00401109
add esp, 0xc
push esi
call fcn.005d08b0
int3
Function at 0x487464
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov ebp, edx
mov esi, ecx
push edi
mov dword [esp + 0x10], ebp
call fcn.00487815
test eax, eax
je 0x487557
mov edi, dword [esi - 0xc]
xor eax, eax
mov ecx, dword [esi - 0x10]
cmp eax, edi
push 0xfffffffffffffff0
sbb eax, eax
mov dword [esp + 0x20], ecx
and eax, 0x10
xor edx, edx
add eax, 0x10
add eax, ecx
add eax, edi
cmp edx, edi
mov dword [esp + 0x1c], eax
sbb ebx, ebx
and ebx, 0x10
add ebx, 0x10
add ebx, edi
add ebx, ebp
pop ebp
cmp ebx, eax
jae 0x4874f1
test edi, edi
je 0x4874f1
mov eax, ecx
sub eax, dword [esp + 0x10]
test edi, edi
je 0x4874cc
lea edx, [ecx + esi]
mov dword [esp + 0x14], edx
jmp 0x4874d0
mov dword [esp + 0x14], ebp
test edi, edi
je 0x4874db
add ecx, 0x10
add ecx, esi
jmp 0x4874dd
xor ecx, ecx
lea edx, [edi + 0x10]
sub ecx, eax
push edx
push dword [esp + 0x18]
sub ecx, 0x10
call fcn.00469703
pop ecx
pop ecx
push 0x41a
push 0x757be4
push 1
lea eax, [esi - 0x10]
push ebx
push eax
call fcn.005f5e10
add esp, 0x14
test eax, eax
je 0x487561
lea esi, [eax + 0x10]
cmp ebx, dword [esp + 0x18]
jbe 0x48754c
test edi, edi
je 0x48754c
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x48753d
mov ebp, dword [esi - 0x10]
add ebp, esi
test eax, eax
je 0x48753d
mov eax, dword [esi - 0x10]
add eax, ecx
lea ecx, [esi + 0x10]
add ecx, eax
lea edx, [edi + 0x10]
add ecx, 0xfffffff0
push edx
push ebp
call fcn.00469703
pop ecx
pop ecx
mov eax, dword [esp + 0x10]
mov dword [esi - 0x10], eax
mov eax, esi
jmp 0x487559
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x41a
push esi
push edi
mov edx, 0x757c00
xor ecx, ecx
call fcn.0048f95e
push edi
push 0x757c1c
push 0x757c38
call fcn.00401109
add esp, 0x18
push esi
call fcn.005d08b0
int3

Function at 0x487604
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
je 0x487676
mov edi, dword [esp + 0x10]
xor eax, eax
cmp eax, edi
sbb eax, eax
and eax, 0x10
add eax, 0x10
add eax, ebx
add eax, edi
push eax
push 0
push esi
call fcn.005c3840
mov dword [esi], ebx
lea edx, [esi + 0x10]
mov dword [esi + 4], edi
add esp, 0xc
mov eax, dword [0x757cb8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
test edi, edi
je 0x487670
cmp dword [edx - 0xc], 0
jbe 0x487657
mov eax, dword [edx - 0x10]
add eax, edx
jmp 0x48765a
push 0xfffffffffffffff0
pop eax
and dword [eax + 4], 0
mov dword [eax], edi
mov ecx, dword [0x757cc0]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 2
pop edi
pop esi
mov eax, edx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edi, 0xfe
mov esi, 0x449
push edi
push esi
mov edx, 0x757c5c
xor ecx, ecx
call fcn.0048f95e
push esi
push 0x757c78
push 0x757c94
call fcn.00401109
add esp, 0x18
push edi
call fcn.005d08b0
int3
Function at 0x4878dc
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebx, ecx
mov eax, edi
not eax
cmp ebx, eax
jae 0x48795f
lea eax, [ebx + edi]
cmp eax, 0xfffffffb
jae 0x48795f
xor eax, eax
cmp eax, edi
push 0x4ec
sbb eax, eax
and eax, 4
push 0x757d64
push 1
lea ebp, [ebx + eax]
add ebp, edi
push ebp
call fcn.005f5c60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48798e
push ebp
push 0
push esi
call fcn.005c3840
add esp, 0xc
test edi, edi
je 0x487942
mov ecx, dword [esp + 0x1c]
mov dword [esi + ebx], edi
test ecx, ecx
je 0x48794d
lea eax, [ebx + 4]
add eax, esi
mov dword [ecx], eax
jmp 0x48794d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x48794d
and dword [eax], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x487957
mov dword [eax], esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x4ea
push esi
push edi
mov edx, 0x757d08
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x757d24
push 0x757d40
jmp 0x4879bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x4ed
push esi
push edi
mov edx, 0x757d80
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x757d9c
push 0x757db8
call fcn.00401109
add esp, 0xc
push esi
call fcn.005d08b0
int3

Function at 0x487e0f
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, 0x788
mov esi, edx
push ebx
push 0x757f78
push 1
push 8
mov edi, ecx
call fcn.005f5c60
mov edx, eax
add esp, 0x10
test edx, edx
je 0x487e6a
xor ecx, ecx
mov dword [edx], edi
push ecx
push 0x78d
push 0x757ff8
mov dword [edx + 4], esi
mov eax, dword [0x757ff0]
push 0x487db7
push 0x487dc5
mov dword [esi + 0x1c], eax
push ecx
mov ecx, dword [edi + 0x500]
call fcn.0048d655
add esp, 0x18
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x757f94
push esi
push ebx
xor ecx, ecx
call fcn.0048f95e
push ebx
push 0x757fb0
push 0x757fcc
call fcn.00401109
add esp, 0x18
push esi
call fcn.005d08b0
int3
Function at 0x487f36
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x39c
mov eax, dword [0x6dad44]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
xor edi, edi
inc ebx
cmp dword [0x76b508], edi
jne 0x487fb8
push edi
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x76b510], eax
cmp dword [0x76b4e4], edi
je 0x487fb8
push 0x7c1
push 0x758030
push 0x76b510
push 0x75804c
lea eax, [esp + 0x1b0]
push 0x200
push eax
call fcn.0040117f
push ebx
push dword [0x76b514]
lea eax, [esp + 0x1c0]
push eax
call dword [0x76b4e4]
add esp, 0x24
inc dword [0x76b508]
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x488046
push edi
push edi
mov edx, esi
mov ecx, 0x540
call fcn.004878dc
pop ecx
pop ecx
push 8
pop ecx
mov esi, eax
call fcn.0048dec7
xor ecx, ecx
mov dword [esi + 0x50c], eax
call fcn.0048dec7
mov dword [esi + 0x510], eax
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push edi
push eax
mov dword [esi + 0x18], eax
call dword [sym.imp.dbghelp.dll_SymInitialize]
test eax, eax
jne 0x488017
mov dword [esi + 0x18], edi
mov ecx, esi
mov dword [esi], edi
call fcn.0048dce4
mov dword [esi + 0x500], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esp + 0x3a4]
mov dword [esi + 0x14], eax
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005c0e20
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
mov esi, 0x7ca
mov edx, 0x758058
push esi
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push esi
push 0x758074
push 0x758090
call fcn.00401109
add esp, 0xc
push ebx
call fcn.005d08b0
int3
Function at 0x489768
Capabilities:
Get socket status

Disassembly:
sub esp, 0x420
mov eax, dword [0x6dad44]
xor eax, esp
mov dword [esp + 0x41c], eax
mov ecx, dword [ecx + 0x50c]
push ebp
push esi
push edi
call fcn.0048dfc9
xor ebp, ebp
mov dword [esp + 0xc], 0x5265c00
mov esi, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
mov edi, ebp
mov dword [esp + 0x14], ebp
test esi, esi
je 0x4898b9
push ebx
mov ecx, esi
call fcn.0048e018
mov ebx, eax
test ebx, ebx
je 0x4898b8
cmp dword [ebx], ebp
je 0x4898a7
lea eax, [esp + 0x10]
mov dword [esp + 0x328], ebp
push eax
lea eax, [esp + 0x124]
mov dword [esp + 0x124], ebp
push eax
lea eax, [esp + 0x22c]
mov dword [esp + 0x22c], ebp
push eax
lea eax, [esp + 0x334]
push eax
push ebx
call dword [ebx]
add esp, 0x14
lea edx, [esp + 0x328]
mov ecx, ebp
mov eax, dword [edx + ecx*4]
lea ebp, [esp + 0x1c]
cmp eax, dword [ebp + ecx*4]
push 0
pop ebp
jne 0x48985d
inc ecx
cmp ecx, 0x41
jne 0x489807
lea edx, [esp + 0x224]
mov ecx, ebp
mov eax, dword [edx + ecx*4]
lea ebp, [esp + 0x1c]
cmp eax, dword [ebp + ecx*4]
push 0
pop ebp
jne 0x48985d
inc ecx
cmp ecx, 0x41
jne 0x489826
lea edx, [esp + 0x120]
mov ecx, ebp
mov eax, dword [edx + ecx*4]
lea ebp, [esp + 0x1c]
cmp eax, dword [ebp + ecx*4]
push 0
pop ebp
jne 0x48985d
inc ecx
cmp ecx, 0x41
jne 0x489845
jmp 0x4898a7
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x22c]
push eax
lea eax, [esp + 0x334]
push eax
push 0x40
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4898a7
push dword [ebx + 0x18]
mov eax, 0x1000
sub eax, edi
push 0x7582a4
push eax
lea eax, [edi + 0x770260]
push eax
call fcn.0040117f
add esp, 0x10
add edi, eax
mov ecx, esi
call fcn.0048dff3
mov esi, eax
test esi, esi
jne 0x4897ad
pop ebx
xor eax, eax
mov ecx, 0x770260
test edi, edi
pop edi
cmovle ecx, eax
mov eax, 0x7582a8
test ecx, ecx
pop esi
cmovne eax, ecx
mov ecx, dword [esp + 0x420]
pop ebp
xor ecx, esp
call fcn.005c0e20
add esp, 0x420
ret
Function at 0x48a25b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov ebx, edx
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
push edi
push esi
push ebp
push dword [esp + 0x28]
mov dword [esp + 0x20], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48a2fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x48a2f7
push esi
push esi
push 0xe64
push 0x758504
push 1
push 0x30
call fcn.005f5c60
add esp, 0x10
mov ecx, eax
push 0x20
pop edx
call fcn.00487604
mov ecx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x24]
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x34]
push eax
mov dword [esi], ecx
mov ecx, dword [esp + 0x34]
push esi
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 8], ebp
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], eax
mov edx, dword [edi + 0x10]
push fcn.0048a0ba
push 0xffffffffffffffff
call fcn.0048a8ba
add esp, 0x18
xor eax, eax
jmp 0x48a2ff
push 0xfffffffffffffffc
pop eax
jmp 0x48a2ff
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x48a3a7
Capabilities:
Read file on windows
Terminate process

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
lea eax, [esp + 8]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
push ebp
push eax
push dword [esp + 0x30]
mov edi, edx
mov dword [esp + 0x1c], ecx
push ebx
xor esi, esi
push edi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48a50d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x48a570
push esi
push esi
push 0xe9c
push 0x7585d0
push 1
push 0x28
call fcn.005f5c60
add esp, 0x10
mov ecx, eax
push 0x18
pop edx
call fcn.00487604
pop ecx
pop ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax], ebx
mov ebx, 0x400
mov dword [esp + 0x18], eax
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ecx
test edi, edi
jne 0x48a43c
mov eax, esi
jmp 0x48a445
push ebx
push edi
call fcn.005f8650
pop ecx
pop ecx
add eax, 0xa
cmp eax, 0xffffffff
jae 0x48a4ab
test edi, edi
jne 0x48a455
mov eax, esi
jmp 0x48a45e
push ebx
push edi
call fcn.005f8650
pop ecx
pop ecx
push 0xfffffffffffffff5
pop ecx
sub ecx, eax
je 0x48a4ab
test edi, edi
jne 0x48a46d
mov eax, esi
jmp 0x48a476
push ebx
push edi
call fcn.005f8650
pop ecx
pop ecx
add eax, 0xa
cmp eax, 0xffffffef
jae 0x48a4ab
test edi, edi
jne 0x48a486
mov eax, esi
jmp 0x48a48f
push ebx
push edi
call fcn.005f8650
pop ecx
pop ecx
push 0xea2
push 0x7585ec
add eax, 0x1a
push 1
push eax
call fcn.005f5c60
add esp, 0x10
mov ebx, eax
jmp 0x48a4ad
mov ebx, esi
test edi, edi
jne 0x48a4b5
mov eax, esi
jmp 0x48a4c2
push 0x400
push edi
call fcn.005f8650
pop ecx
pop ecx
push esi
push esi
lea edx, [eax + 0xa]
mov ecx, ebx
call fcn.00487604
test edi, edi
mov ecx, 0x76b4d7
mov esi, eax
cmovne ecx, edi
push ecx
push 0x758608
push dword [esi - 0x10]
push esi
call fcn.0040117f
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x28]
push esi
push dword [esp + 0x34]
push 0x48a189
push 0xffffffffffffffff
call fcn.0048a8ba
add esp, 0x28
mov ecx, esi
call fcn.004876b9
jmp 0x48a58a
cmp dword [esp + 0x14], esi
jbe 0x48a570
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x48a58a
push 0xeb3
push 0x758614
push 1
push 0x18
call fcn.005f5c60
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x48a592
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x10], eax
mov dword [ecx], ebx
mov dword [ecx + 4], ebp
mov dword [ecx + 8], edi
mov eax, dword [esp + 0x14]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x48a558
mov esi, dword [eax + 0x10]
push ecx
mov dword [ecx + 0x14], esi
mov edx, 0x48a305
mov ecx, dword [esp + 0x14]
push 1
call fcn.00487d40
pop ecx
pop ecx
jmp 0x48a58a
cmp dword [esp + 0x2c], esi
je 0x48a58a
push dword [esp + 0x30]
push esi
push ebx
push 5
push edi
push dword [esp + 0x24]
call dword [esp + 0x44]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0xeb3
push esi
push edi
mov edx, 0x758630
xor ecx, ecx
call fcn.0048f95e
push edi
push 0x75864c
push 0x758668
call fcn.00401109
add esp, 0x18
push esi
call fcn.005d08b0
int3
Function at 0x48a69e
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebx, ebx
mov dword [esp + 8], edx
push esi
push edi
cmp dword [esp + 0x30], ebx
jne 0x48a6b8
mov eax, ebx
mov dword [esp + 0x14], ebx
jmp 0x48a6cc
push 0x400
push dword [esp + 0x34]
call fcn.005f8650
pop ecx
pop ecx
mov dword [esp + 0x14], eax
lea esi, [eax + 0x1c]
cmp esi, 0xffffffff
jae 0x48a6fa
push 0xffffffffffffffe3
pop ecx
sub ecx, eax
je 0x48a6fa
cmp esi, 0xffffffef
jae 0x48a6fa
push 0xee8
push 0x7586a8
add eax, 0x2c
push 1
push eax
call fcn.005f5c60
add esp, 0x10
jmp 0x48a6fc
mov eax, ebx
push ebx
push ebx
mov edx, esi
mov ecx, eax
call fcn.00487604
pop ecx
pop ecx
push ebx
push ebx
push 0xee9
push 0x7586c4
push 1
push 0x28
mov ebp, eax
call fcn.005f5c60
add esp, 0x10
mov ecx, eax
push 0x18
pop edx
call fcn.00487604
mov edi, dword [esp + 0x24]
mov ebx, eax
mov esi, dword [esp + 0x28]
pop ecx
pop ecx
push edi
push 0
push dword [esp + 0x2c]
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x30], 0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x10], eax
mov dword [ebx], esi
mov dword [ebx + 0xc], edi
mov dword [ebx + 4], fcn.0046b1af
mov eax, dword [edi + 0x10]
mov dword [ebp], eax
mov eax, 0x76b4f4
cmovne eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x18]
add eax, 8
mov dword [ebp + 8], ebx
push str._s__READ_
push eax
lea eax, [ebp + 0x14]
mov dword [ebp + 4], 0x48a189
push eax
call fcn.0040117f
add esp, 0x10
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret