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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x30
push ebx
push ebp
mov ebx, 8
cmp dword [esp + 0x54], ebx
push esi
push edi
jae 0x480c2a
lea eax, [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 7
push 0x80000000
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x480c93
cmp dword [esp + 0x5c], ebx
jb 0x480c5f
mov eax, dword [esp + 0x48]
push eax
call fcn.004aef39
add esp, 4
cmp dword [esp + 0x78], ebx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
jb 0x480da5
mov ecx, dword [esp + 0x64]
push ecx
call fcn.004aef39
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30
ret 0x38
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, ebp
jne 0x480d02
mov esi, 8
cmp dword [esp + 0x5c], esi
jb 0x480cce
mov edx, dword [esp + 0x48]
push edx
call fcn.004aef39
add esp, 4
cmp dword [esp + 0x78], esi
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
jb 0x480da5
mov eax, dword [esp + 0x64]
push eax
call fcn.004aef39
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30
ret 0x38
mov eax, dword [esp + 0x64]
mov ebx, 8
cmp dword [esp + 0x78], ebx
jae 0x480d15
lea eax, [esp + 0x64]
push ebp
push 0x80
push 3
push ebp
push 7
push 0x40000000
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x480d72
cmp dword [esp + 0x5c], ebx
jb 0x480d42
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004aef39
add esp, 4
cmp dword [esp + 0x78], ebx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
jb 0x480da5
mov edx, dword [esp + 0x64]
push edx
call fcn.004aef39
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30
ret 0x38
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x480db1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x44]
call fcn.00401470
lea ecx, [esp + 0x60]
call fcn.00401470
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30
ret 0x38
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebp
je 0x480d93
lea ecx, [esp + 0x44]
call fcn.00401470
lea ecx, [esp + 0x60]
call fcn.00401470
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x30
ret 0x38
Function at 0x4834b0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4eb96d
mov eax, dword fs:[0]
push eax
sub esp, 0x610
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x60c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x624]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x1953a]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4836ae
call fcn.0045cdf0
test al, al
je 0x4836ae
cmp byte [esi + 0x1951c], 0
jne 0x4836ae
lea edi, [esi + 0x19892]
lea ebp, [esi + 0x198ae]
push edi
push ebp
mov byte [esi + 0x1951c], 1
call fcn.004412d0
add esp, 8
test al, al
je 0x483625
cmp dword [ebp + 0x18], 8
jb 0x483548
mov eax, dword [ebp + 4]
jmp 0x48354b
lea eax, [ebp + 4]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x483625
cmp dword [edi + 0x18], 8
jb 0x483567
mov eax, dword [edi + 4]
jmp 0x48356a
lea eax, [edi + 4]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x224]
push edx
lea ecx, [esp + 0x428]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call fcn.0048d2b0
add esp, 0x14
cmp dword [edi + 0x18], 8
jb 0x483598
mov eax, dword [edi + 4]
jmp 0x48359b
lea eax, [edi + 4]
push eax
call ebx
test eax, eax
je 0x4835b7
cmp dword [edi + 0x18], 8
jb 0x4835ad
mov edi, dword [edi + 4]
jmp 0x4835b0
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x14]
call fcn.00407400
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x224]
push ecx
lea edx, [esp + 0x428]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push 0x50438c
push ecx
mov dword [esp + 0x644], 0
call fcn.00406da0
add esp, 0x18
cmp dword [ebp + 0x18], 8
jb 0x483602
mov ebp, dword [ebp + 4]
jmp 0x483605
add ebp, 4
mov edx, dword [esp + 0x14]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 0x14]
mov dword [esp + 0x62c], 0xffffffff
call fcn.00406960
mov ecx, esi
call fcn.00438910
mov ecx, esi
call fcn.004ad7c0
mov eax, dword [esi + 0x1971e]
sub eax, dword [esi + 0x19716]
mov ecx, dword [esi + 0x19722]
sbb ecx, dword [esi + 0x1971a]
cmp ecx, dword [esi + 0x1973a]
jg 0x483669
jl 0x48365d
cmp eax, dword [esi + 0x19736]
jae 0x483669
mov dword [esi + 0x19736], eax
mov dword [esi + 0x1973a], ecx
mov ecx, dword [esi + 0x19e7e]
xor eax, eax
cmp ecx, eax
mov dword [esi + 0x196b6], 5
mov dword [esi + 0x19736], eax
mov dword [esi + 0x1973a], eax
je 0x483691
push eax
call fcn.0048cfb0
lea eax, [esi + 0x192ac]
push 0x505470
push eax
call fcn.00418e60
add esp, 8
push 0x11
mov ecx, esi
call fcn.00482e40
mov ecx, dword [esp + 0x624]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60c]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x61c
ret
Function at 0x484450
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4eba04
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
xor ebx, ebx
sub eax, 2
mov esi, ecx
mov byte [esp + 0x13], bl
je 0x484650
sub eax, 4
je 0x4845f7
sub eax, 1
jne 0x4845fc
movzx ecx, word [esi + 0x196c4]
mov eax, dword [esi + 0x196ca]
push eax
lea edi, [esi + 0x1916a]
push ecx
mov ecx, edi
call fcn.0045d040
cmp eax, ebx
je 0x4845d0
add eax, 0x24
push eax
lea ecx, [esp + 0x20]
call fcn.00401430
mov edx, dword [esi + 0x196ca]
movzx eax, word [esi + 0x196c4]
push edx
push eax
mov ecx, edi
mov dword [esp + 0x4c], ebx
call fcn.0046f880
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
lea eax, [esi + 0x198ae]
push ebx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push eax
mov word [ecx + 4], bx
call fcn.00401640
cmp dword [esp + 0x50], 8
mov ecx, dword [esi + 0x196ca]
movzx edx, word [esi + 0x196c4]
mov eax, dword [esi + 0x19712]
push ecx
mov ecx, dword [esi + 0x1970e]
push edx
push eax
mov eax, dword [esp + 0x48]
mov byte [esp + 0x6c], 1
push ecx
jae 0x48454a
lea eax, [esp + 0x4c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.00401430
mov ecx, edi
mov byte [esp + 0x8c], bl
call fcn.0046e0f0
mov ecx, esi
call fcn.004836e0
test eax, eax
je 0x48457d
mov ecx, esi
call fcn.004836e0
mov byte [eax + 0x1c], 7
mov edx, dword [esi + 0x196ca]
movzx eax, word [esi + 0x196c4]
push edx
push eax
mov ecx, esi
call fcn.00437d10
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push eax
mov word [ecx + 4], bx
call fcn.00401640
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
cmp dword [esp + 0x34], 8
jb 0x4845d0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004aef39
add esp, 4
cmp dword [esi + 0x198c6], 8
jb 0x4845e8
mov eax, dword [esi + 0x198b2]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4845fc
lea eax, [esi + 0x198b2]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4845fc
mov byte [esp + 0x13], 1
mov edx, dword [esi + 0x1953a]
mov ecx, dword [edx + 0x24]
call fcn.0045ccf0
mov dword [esi + 0x19716], eax
mov eax, dword [esi + 0x1953a]
mov dword [esi + 0x1971a], edx
mov ecx, dword [eax + 0x24]
call fcn.0045ccf0
mov ecx, eax
mov dword [esi + 0x1971e], eax
mov al, byte [esp + 0x13]
mov dword [esi + 0x19722], edx
mov dword [esi + 0x19756], ecx
mov dword [esi + 0x1975a], edx
mov dword [esi + 0x19736], ebx
mov dword [esi + 0x1973a], ebx
jmp 0x48466c
push 0x15
mov dword [esi + 0x196b6], 3
mov word [esi + 0x19cca], 0x65
call fcn.00482e40
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x38
ret 4
Function at 0x487700
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, ecx
movzx edx, word [esi + 0x1950a]
test dx, dx
push edi
mov edi, dword [esp + 0xc]
je 0x4877cd
mov eax, dword [esi + 0x196c6]
mov ecx, dword [edi + 0xc]
cmp eax, ecx
je 0x4877ac
mov edx, dword [edi + 0x18]
push eax
movzx eax, word [esi + 0x196c4]
push eax
mov eax, dword [edi + 0x14]
push edx
mov edx, dword [edi + 2]
push eax
push ecx
movzx ecx, word [edi + 6]
push ecx
push edx
push 0x5068f0
lea eax, [esi + 0x192ac]
push 2
push eax
call fcn.00418e80
add esp, 0x28
push edi
mov ecx, esi
call fcn.00436fb0
push 0x11
mov ecx, esi
mov dword [esi + 0x196b6], 8
mov word [esi + 0x19cca], 0x6e
call fcn.00482e40
mov ecx, esi
call fcn.004ad0c0
call fcn.00419310
mov eax, dword [eax + 0x162]
and eax, 0x40000000
xor ecx, ecx
or eax, ecx
je 0x4877e5
push 0x5069b8
mov ecx, esi
call fcn.00436c50
pop edi
pop esi
ret 4
cmp dx, 1
jb 0x4877cd
push 0x5069f8
push 2
add esi, 0x192ac
push esi
call fcn.00418e80
add esp, 0xc
pop edi
pop esi
ret 4
push edi
mov ecx, esi
call fcn.00486500
push 1
mov ecx, esi
call fcn.00482e40
mov ecx, esi
call fcn.004ad0c0
pop edi
pop esi
ret 4
Function at 0x48ec20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4ec11b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
push ebx
call fcn.00411700
fld1
fstp dword [esi + 0x10]
push ebx
fld qword [0x5075f8]
sub esp, 0x10
fstp qword [esi + 0x18]
mov eax, 0x19000
fld qword [0x5075f0]
lea ecx, [esi + 0x58]
fstp qword [esp + 8]
mov dword [esi + 0xc], ebx
fld qword [0x5075e8]
mov dword [esi + 0x14], 0x7800000
fstp qword [esp]
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], bl
mov dword [esi + 0x28], eax
mov word [esi + 0x2c], 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x50], bl
call fcn.0045a010
fld qword [0x5075f8]
push ebx
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esi + 0xb0]
fld qword [0x507600]
mov dword [esp + 0x2c], ebx
fstp qword [esp]
call fcn.0045a010
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x490230
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ec1f8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa4]
test eax, eax
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0xac]
jl 0x4902ac
xor ebp, ebp
imul eax, eax, 0xa00000
push ebp
push 0x10000000
push 3
push ebp
push 3
push 0x80000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4902b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 1
jmp 0x49037b
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4902dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49030b
mov ebp, dword [esp + 0xa8]
push ebp
call fcn.004aef3e
add esp, 4
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x490319
push edi
call fcn.004aef39
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x49037b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
call fcn.004a8870
push 3
push ebp
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0xa4], 0
call fcn.004a9490
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [ebx], edx
mov edx, dword [esp + 0x2c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
push edi
mov dword [ebx + 0xc], edx
call fcn.004aef39
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x98], 0xffffffff
call fcn.004a8890
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x88
ret 0x10
Function at 0x493940
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x28
xor eax, eax
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edi
lea eax, [esp + 0x10]
push eax
mov esi, ecx
mov dword [esp + 0x14], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esi + 0x40]
push 0x508450
push edx
call fcn.00406da0
mov eax, dword [esp + 0x24]
shr eax, 0x14
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x4939a8
fadd qword [0x4f9540]
add esp, 4
fst qword [esp + 0x10]
fstp qword [esp]
lea edi, [esi + 0x44]
push 0x508458
push edi
call fcn.00406da0
add esp, 0x10
mov ecx, edi
call fcn.00422e60
fld qword [esp + 8]
call fcn.004c1540
mov ecx, dword [esp + 0x1c]
shr ecx, 0x14
test ecx, ecx
mov dword [esp + 8], ecx
fild dword [esp + 8]
mov dword [esi + 0x50], eax
jge 0x4939ef
fadd qword [0x4f9540]
sub esp, 8
fst qword [esp + 0x10]
fstp qword [esp]
lea edi, [esi + 0x4c]
push 0x508464
push edi
call fcn.00406da0
add esp, 0x10
mov ecx, edi
call fcn.00422e60
fld qword [esp + 8]
call fcn.004c1540
mov edx, dword [esp + 0x28]
shr edx, 0x14
mov dword [esi + 0x54], eax
add esi, 0x48
test edx, edx
mov dword [esp + 8], edx
fild dword [esp + 8]
jge 0x493a39
fadd qword [0x4f9540]
sub esp, 8
fstp qword [esp]
push 0x508470
push esi
call fcn.00406da0
add esp, 0x10
mov ecx, esi
call fcn.00422e60
pop edi
mov al, 1
pop esi
add esp, 0x28
ret
Function at 0x4a4960
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ed5df
mov eax, dword fs:[0]
push eax
mov eax, 0x4058
call fcn.004c3aa0
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x4054], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x406c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x407c]
mov edi, ecx
cmp dword [edi + 0x196ca], 0
mov dword [esp + 0x14], 0
je 0x4a4b88
push 0x2000
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.004c16f0
push 0x2000
lea ecx, [esp + 0x2078]
push 0
push ecx
call fcn.004c16f0
add esp, 0x18
xor eax, eax
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
push 0x2000
lea eax, [esp + 0x74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
je 0x4a4b88
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x206c]
push 0x2000
push edx
call fcn.004c1687
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2078]
push 0x50daac
push ecx
call fcn.004c9462
push eax
lea edx, [esp + 0x54]
push 8
push edx
call fcn.004c1687
lea eax, [esp + 0x5c]
push eax
call fcn.004c1c15
mov ebx, dword [edi + 0x19ce2]
add esp, 0x28
test ebx, ebx
je 0x4a4b84
test eax, eax
jle 0x4a4b5d
mov ebp, dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x14]
push ecx
push 0x50dab0
xor esi, esi
push esi
call fcn.004c9462
push eax
lea edx, [esp + 0x58]
push 0x20
push edx
call fcn.004c1687
lea eax, [esp + 0x2c]
push eax
push 0x50dab4
push esi
call fcn.004c9462
push eax
lea ecx, [esp + 0x68]
push 8
push ecx
call fcn.004c1687
push 0xc0
call fcn.004aef0e
add esp, 0x34
mov dword [esp + 0x28], eax
cmp eax, esi
mov dword [esp + 0x4074], esi
je 0x4a4add
mov ecx, eax
call fcn.00445770
mov esi, eax
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x4078], 0xffffffff
call ebp
mov dword [esi + 0x1e], eax
lea eax, [esp + 0x40]
push eax
call fcn.004c1c15
movzx eax, ax
mov word [esi + 0x22], ax
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
add esp, 4
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 0x1e]
mov dword [esi + 0x30], eax
mov ecx, dword [esp + 0x30]
mov ax, word [esi + 0x22]
push esi
mov dword [esi + 0x34], ecx
mov dword [esp + 0x22], edx
mov dx, word [esp + 0x24]
mov word [esp + 0x20], ax
mov ecx, dword [esp + 0x20]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, ebx
mov word [eax + 4], dx
call fcn.00477050
sub dword [esp + 0x18], 1
jne 0x4a4a7c
mov esi, dword [esp + 0x24]
push 0
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00445490
add esp, 4
mov ecx, ebx
call fcn.00475840
test eax, eax
jbe 0x4a4b84
push ebx
mov ecx, edi
call fcn.004a4150
mov eax, esi
jmp 0x4a4b8a
xor eax, eax
mov ecx, dword [esp + 0x406c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4054]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x4064
ret 4
Function at 0x4a8370
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x28
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
push 1
push 0
push 0
push 0
push 1
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a83b0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x28
ret 0x10
push ebp
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ebp, eax
test ebp, ebp
je 0x4a83f5
push 0x10
push ebp
push esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x4a83ee
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4a8412
push ebp
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x28
ret 0x10
movzx ecx, word [edi + 0x38]
xor eax, eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x18], 2
call ebx
mov edx, dword [edi + 0x34]
mov word [esp + 0x16], ax
push 0x10
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x24], edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4a84a5
mov ecx, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x28], 2
call ebx
mov edx, dword [esp + 0x3c]
mov word [esp + 0x26], ax
push 0x10
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x34], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4a84ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4a84ca
push ebp
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x28
ret 0x10
push ebp
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x34]
pop ebx
pop ebp
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004bfdfd
add esp, 0x28
ret 0x10
Function at 0x4a8500
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 4]
push eax
push 0
mov ebx, ecx
mov dword [esp + 0xc], 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x4a852a
cmp eax, 0x6f
je 0x4a852a
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 4]
push edi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
mov dword [esp + 0xc], edi
je 0x4a8558
lea edx, [esp + 8]
push edx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x4a8560
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
jmp 0x4a8570
lea esi, [edi + 0x1ac]
test esi, esi
je 0x4a8591
lea ebx, [ebx]
lea eax, [esi + 4]
push eax
call ebp
cmp dword [ebx + 0x34], eax
je 0x4a85ac
mov esi, dword [esi]
test esi, esi
jne 0x4a8580
mov edi, dword [edi]
test edi, edi
jne 0x4a8570
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
xor eax, eax
cmp dword [edi + 0x190], eax
jbe 0x4a85d6
jmp 0x4a85c0
mov cl, byte [edi + eax + 0x194]
mov byte [ebx + eax + 0x28], cl
add eax, 1
cmp eax, dword [edi + 0x190]
jb 0x4a85c0
add edi, 0x1d8
push edi
call ebp
mov edx, dword [esp + 0x14]
push edx
mov dword [ebx + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x4a91e0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, ecx
lea ebx, [edi + 0x14]
xor eax, eax
push esi
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], eax
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
mov ebp, 0x2800
call fcn.004a8900
push 0
push 0x8020
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call fcn.004c70eb
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x4a924e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov esi, ecx
or esi, edx
je 0x4a923f
test edx, edx
ja 0x4a9268
jb 0x4a9266
cmp ecx, ebp
jae 0x4a9268
mov ebp, ecx
mov ecx, dword [edi + 0x6c]
push ebp
push ecx
push eax
call fcn.004c9b22
mov edx, dword [edi + 0x6c]
add esp, 0xc
mov esi, eax
push esi
push edx
push ebx
mov ecx, edi
mov ebp, esi
call fcn.004a9050
test esi, esi
je 0x4a92e1
jmp 0x4a9290
cmp ebp, 0x100000
ja 0x4a92e9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
xor edx, edx
sub ecx, ebp
sbb eax, edx
test eax, eax
ja 0x4a92ba
jb 0x4a92b4
cmp ecx, 0x2800
jae 0x4a92ba
mov esi, dword [esp + 0x10]
sub esi, ebp
mov eax, dword [edi + 0x6c]
mov ecx, dword [esp + 0x1c]
push esi
push eax
push ecx
call fcn.004c9b22
mov edx, dword [edi + 0x6c]
add esp, 0xc
mov esi, eax
push esi
push edx
push ebx
mov ecx, edi
add ebp, esi
call fcn.004a9050
test esi, esi
jne 0x4a9290
cmp ebp, 0x100000
jbe 0x4a933b
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov eax, dword [esp + 0x10]
ja 0x4a92fc
cmp eax, 0x102800
jbe 0x4a933b
mov esi, dword [esp + 0x1c]
sub eax, 0x2800
push 0
sbb ecx, 0
push ecx
push eax
push esi
call fcn.004c6fa7
mov eax, dword [edi + 0x6c]
push 0x2800
push eax
push esi
call fcn.004c9b22
add esp, 0x1c
test eax, eax
jbe 0x4a923f
mov ecx, dword [edi + 0x6c]
push eax
push ecx
push ebx
mov ecx, edi
call fcn.004a9050
jmp 0x4a933f
mov esi, dword [esp + 0x1c]
push esi
call fcn.004c71aa
add esp, 4
push ebx
lea edx, [edi + 4]
push edx
mov ecx, edi
call fcn.004a9100
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4