joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40debc
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x7540
call fcn.005c1510
mov eax, dword [0x6d9d44]
xor eax, esp
mov dword [esp + 0x753c], eax
push ebx
mov ebx, dword [ecx]
push ebp
mov ebp, dword [ecx + 4]
push esi
push edi
push str.KVM__SLAVE_:__mainloopinput__Starting...
push 2
push 0x200
push dword [0x769ea0]
xor esi, esi
xor edi, edi
and dword [esp + 0x20], esi
call fcn.004920d4
add esp, 0x10
cmp dword [0x6e0530], esi
jne 0x40dfa6
push 0
lea eax, [esp + 0x14]
push eax
mov eax, 0x7530
sub eax, esi
push eax
lea eax, [esp + 0x24]
add eax, esi
push eax
push dword [0x6e0538]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
mov edx, dword [0x6e0530]
test eax, eax
je 0x40df7f
test ecx, ecx
je 0x40df7f
test edx, edx
jne 0x40df7f
add esi, ecx
mov dword [esp + 0x14], esi
jmp 0x40df4d
add edi, eax
push ebp
mov edx, esi
lea ecx, [esp + 0x1c]
push ebx
sub edx, edi
add ecx, edi
call fcn.0040d44a
pop ecx
pop ecx
test eax, eax
jne 0x40df4b
xor eax, eax
cmp edi, esi
cmove esi, eax
cmp edi, dword [esp + 0x14]
cmovne eax, edi
cmp dword [0x6e0530], 0
mov edi, eax
je 0x40df0b
jmp 0x40dfa6
push edx
push ecx
push eax
push str.KVM__SLAVE_:_fSuccess__d__cbBytesRead__d__g_shutdown__d
push 2
push 0x200
push dword [0x769ea0]
call fcn.004920d4
add esp, 0x1c
mov dword [0x6e0530], 1
push str.KVM__SLAVE_:__mainloopinput__Exiting...
push 2
push 0x200
push dword [0x769ea0]
call fcn.004920d4
mov ecx, dword [0x769ea0]
add esp, 0x10
call fcn.00491cec
mov ecx, dword [esp + 0x754c]
xor eax, eax
and dword [0x769ea0], 0
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0db0
add esp, 0x7540
ret
Function at 0x40ebc9
Capabilities:
Create thread

Disassembly:
push esi
push edi
test edx, edx
je 0x40ec16
cmp dword [0x769eac], 1
jne 0x40ebe8
cmp dword [0x6e0530], 0
jne 0x40ebe8
xor eax, eax
jmp 0x40ec7c
push dword [esp + 0x10]
mov eax, dword [esp + 0x18]
and dword [0x769ea8], 0
push 0x401971
push ecx
mov dword [0x6e0548], 5
mov dword [0x6e0534], eax
call fcn.0040e9c4
add esp, 0xc
jmp 0x40ec7c
xor esi, esi
xor edx, edx
push esi
push esi
push 0xc
pop ecx
call fcn.004878dc
pop ecx
xor edi, edi
inc edi
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax], 0x401971
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [0x769ed4], edi
cmp dword [0x769eac], edi
jne 0x40ec5a
cmp dword [0x6e0530], esi
jne 0x40ec5a
push edi
push eax
call fcn.005f5a60
pop ecx
pop ecx
jmp 0x40ebe1
push esi
push esi
push eax
push fcn.0040e789
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x769ee4], eax
test eax, eax
je 0x40ec7a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x4103d5
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x1d9
mov ebx, 0x10000
push edi
push 0x6e0680
push 1
push ebx
mov esi, ecx
call fcn.005f5ba0
add esp, 0x10
mov dword [esi], eax
test eax, eax
je 0x4104ab
push str._netif_:_
push ebx
push eax
call fcn.0040117f
mov ecx, dword [esi]
mov edi, eax
add esp, 0xc
mov edx, ebx
sub edx, edi
add ecx, edi
call fcn.0040fed7
mov ecx, dword [esi]
mov ebp, eax
add edi, ebp
push 0x6e06f8
sub ebx, edi
add ecx, edi
push ebx
push ecx
call fcn.0040117f
add esp, 0xc
add edi, eax
js 0x410495
test ebp, ebp
je 0x410495
mov eax, dword [esi]
mov ebx, 0x1e5
push ebx
push 0x6e06fc
push 1
mov byte [edi + eax], 0
lea eax, [edi + 1]
push eax
push dword [esi]
call fcn.005f5d50
add esp, 0x14
mov dword [esi], eax
test eax, eax
jne 0x410491
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x6e0714
push esi
push ebx
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push ebx
push str...meshcoremeshinfo.c
push 0x6e0744
jmp 0x4104d3
mov eax, edi
jmp 0x4104a5
push 1
push dword [esi]
call fcn.005f5a60
and dword [esi], 0
xor eax, eax
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, 0x6e0698
push esi
push edi
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x6e06b0
push 0x6e06c8
call fcn.00401109
add esp, 0xc
push esi
call fcn.005d0820
int3
Function at 0x4104e2
Capabilities:
Create thread
Shutdown system

Disassembly:
sub esp, 0x1c
mov eax, dword [0x6d9d44]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
test edi, edi
jne 0x410503
xor eax, eax
jmp 0x41064f
cmp edi, 6
jne 0x41051e
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
push 2
call esi
push 4
call esi
xor eax, eax
inc eax
jmp 0x41064f
cmp edi, 7
jne 0x410534
xor ebx, ebx
inc ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov eax, ebx
jmp 0x41064f
cmp edi, 8
jne 0x410543
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x410516
cmp edi, 9
jne 0x41056b
xor esi, esi
push esi
push esi
push esi
push 0x40ce20
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x10], eax
test eax, eax
je 0x410516
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410516
cmp edi, 5
jg 0x4104fc
lea eax, [esp + 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4104fc
lea eax, [esp + 0x18]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], 2
push eax
push esi
push dword [esp + 0x24]
xor ebx, ebx
inc ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4105da
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4104fc
sub edi, 1
je 0x410612
sub edi, 1
je 0x410604
sub edi, 1
je 0x410601
sub edi, 1
je 0x4105fd
sub edi, 1
jne 0x410643
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
jmp 0x410626
push ebp
push ebx
jmp 0x4105f5
push ebx
jmp 0x410605
push esi
push ebx
push 0x1e
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
jmp 0x410626
push bind
test ebp, ebp
je 0x41061f
push 4
jmp 0x410620
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x410643
push esi
push esi
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], esi
push eax
push esi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0db0
add esp, 0x1c
ret
Function at 0x410677
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov esi, edx
push eax
push 0x6c1c90
push reloc.WS2_32.dll_bind
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4106cc
mov ecx, esi
push ebx
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4106a1
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4477e4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
and dword [esp + 4], 0
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov eax, dword [ebx + 0x2c]
mov ebp, dword [eax + 0x88]
mov edx, dword [eax + 0x8c]
add ebp, 0x7f4a7c15
mov ecx, ebp
adc edx, 0x9e3779b9
mov eax, edx
mov dword [esp + 0x18], edx
shrd ecx, eax, 0x1e
push 0xbf58476d
shr eax, 0x1e
xor ecx, ebp
push 0x1ce4e5b9
xor eax, edx
push eax
push ecx
call fcn.005c2120
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1b
push 0x94d049bb
shr ecx, 0x1b
xor esi, eax
push 0x133111eb
xor ecx, edx
push ecx
push esi
call fcn.005c2120
mov edi, edx
mov esi, eax
shrd esi, edi, 0x1f
shr edi, 0x1f
xor esi, eax
mov eax, dword [ebx + 0x2c]
xor edi, edx
mov edx, dword [esp + 0x14]
mov ecx, edx
and ecx, 1
inc edx
mov dword [esp + 0x14], edx
cmp edx, 0x40
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*8 + 0x88], esi
mov dword [eax + ecx*8 + 0x8c], edi
jb 0x447801
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x453f8d
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x6d9d44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x41c]
mov esi, ecx
push eax
push 0x400
lea eax, [ebp - 0x408]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameA]
test eax, eax
je 0x454109
cmp byte [ebp - 0x408], 0
je 0x454109
mov ecx, esi
call fcn.0041c321
lea edx, [ebp - 0x408]
mov ecx, esi
call fcn.0041bf3d
push 0x6e7fec
push 0xfffffffffffffffe
pop ebx
mov edx, ebx
mov ecx, esi
call fcn.004192b8
pop ecx
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x454083
mov edx, dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x410]
call fcn.005c2030
movaps xmm1, xmm0
mov ecx, esi
call fcn.0041bdb7
push 0x6e7ff4
mov edx, ebx
mov ecx, esi
call fcn.004192b8
mov edx, dword [ebp - 0x414]
pop ecx
mov ecx, dword [ebp - 0x418]
call fcn.005c2030
movaps xmm1, xmm0
mov ecx, esi
call fcn.0041bdb7
push str.free
mov edx, ebx
mov ecx, esi
call fcn.004192b8
pop ecx
dec edi
sub edi, 1
je 0x4540c2
sub edi, 1
je 0x4540bb
sub edi, 1
je 0x4540b4
sub edi, 1
je 0x4540ad
mov ecx, esi
sub edi, 1
je 0x4540a6
mov edx, 0x6e8030
jmp 0x4540c9
mov edx, str.RAMDISK
jmp 0x4540c9
mov edx, str.CDROM
jmp 0x4540c7
mov edx, str.REMOTE
jmp 0x4540c7
mov edx, str.FIXED
jmp 0x4540c7
mov edx, str.REMOVABLE
mov ecx, esi
call fcn.0041bf3d
push 0x6e8038
mov edx, ebx
mov ecx, esi
call fcn.004192b8
pop ecx
push 6
push 0x18075380
push 0
mov edx, 0x453f6c
mov ecx, esi
call fcn.0041c5eb
add esp, 0xc
mov edx, ebx
mov ecx, esi
push 0x6e8040
call fcn.004192b8
xor eax, eax
pop ecx
inc eax
jmp 0x45410b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c0db0
mov esp, ebp
pop ebp
ret
Function at 0x4794ea
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov ebx, ecx
or edx, 0xffffffff
push edi
mov dword [esp + 0x1c], ebx
call fcn.00418899
mov dword [esp + 0x18], eax
or edx, 0xffffffff
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.0041a3f9
pop ecx
mov ecx, ebx
call fcn.0041c148
push 0x74d8f0
or edx, 0xffffffff
mov ecx, ebx
call fcn.0045c5c1
pop ecx
mov ecx, ebx
mov edi, eax
call fcn.0041cd62
mov esi, dword [esp + 0x14]
xor edx, edx
test edi, edi
je 0x479597
xor ebx, ebx
lea ecx, [esi + 5]
push ebx
push ebx
call fcn.004878dc
mov ebp, eax
mov edx, esi
push esi
push dword [esp + 0x24]
lea ecx, [ebp + 4]
mov dword [ebp], edi
call section..text
add esp, 0x10
mov byte [esi + ebp + 4], bl
mov ecx, dword [edi]
call fcn.00487815
test eax, eax
je 0x47957e
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jbe 0x47957c
lea ebx, [ecx + 0x10]
add ebx, dword [ecx - 0x10]
mov ebx, dword [ebx]
mov edx, dword [ebx]
mov ecx, dword [edi + 0xc]
push ebp
push 1
push 0x47de76
push dword [edi]
call fcn.0045c31f
add esp, 0x10
jmp 0x4795e5
xor ebp, ebp
lea edi, [esi + 4]
push ebp
push ebp
mov ecx, edi
call fcn.004878dc
mov ebx, eax
mov edx, esi
push esi
push dword [esp + 0x24]
lea ecx, [ebx + 4]
mov dword [ebx], edi
call section..text
add esp, 0x10
lea eax, [esp + 0x20]
push ebp
push eax
push edi
push ebx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
call fcn.0041cd62
push 1
push ebx
call fcn.005f5a60
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x47b885
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
xor edi, edi
push edi
push edi
push 0xa4e
push 0x7525d4
push 1
push 0x40
call fcn.005f5ba0
add esp, 0x10
mov ecx, eax
push 0x30
pop edx
call fcn.00487604
pop ecx
pop ecx
mov esi, eax
call fcn.00485fa0
push 4
push esi
call fcn.004c7660
pop ecx
pop ecx
cmp dword [esi], edi
je 0x47b8ba
call fcn.00486078
xor ecx, ecx
call fcn.0048dec7
push 0x47b26a
push esi
push 0x47b234
mov edx, 0x47b1a6
mov dword [esi + 0x1c], eax
mov ecx, 0x47b138
mov dword [esi + 0x18], edi
call fcn.00418c14
add esp, 0xc
test eax, eax
je 0x47b901
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edi, 0xfe
mov esi, 0xa60
push edi
push esi
mov edx, 0x752604
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push esi
push 0x752634
push 0x752664
call fcn.00401109
add esp, 0xc
push edi
call fcn.005d0820
int3
Function at 0x482d69
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebx, ecx
mov edx, dword [esp + 0x24]
mov ecx, 0x1258
call fcn.004879e1
mov ecx, str.ILibAsyncSocket
mov esi, eax
call fcn.004873e9
mov dword [esi + 0x18], eax
mov dword [esi + 0x30], 0x40
mov dword [esi + 0x20], 0x482d4c
mov dword [esi + 0x24], fcn.00483508
mov dword [esi + 0x28], fcn.00484ff0
mov dword [esi + 0x10], ebx
test edi, edi
je 0x482dd6
mov ebp, 0x1ca
push ebp
push 0x7558ec
push 1
push edi
call fcn.005f5ba0
add esp, 0x10
mov dword [esi + 0x1f8], eax
test eax, eax
jne 0x482de5
jmp 0x482e56
mov edi, 0xffff
mov dword [esi + 0x1f8], 0x780260
mov eax, dword [esp + 0x14]
mov ecx, ebx
or dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x1bc], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1c0], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1c4], eax
mov eax, dword [esp + 0x20]
mov dword [esi], 0x48441a
mov dword [esi + 4], 0x4846f2
mov dword [esi + 8], 0x482c77
mov dword [esi + 0x1c8], eax
mov dword [esi + 0x200], edi
mov dword [esi + 0x1fc], edi
call fcn.00488100
mov dword [esi + 0x1d8], eax
mov edx, esi
mov dword [esi + 0x20c], 0
call fcn.00488084
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x75590c
push esi
push ebp
xor ecx, ecx
call fcn.0048f95e
push ebp
push 0x75592c
push 0x75594c
call fcn.00401109
add esp, 0x18
push esi
call fcn.005d0820
int3
Function at 0x483b81
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
push edi
push 0xfffffffffffffffc
lea eax, [ebx + 0x20c]
pop esi
mov ecx, eax
mov dword [esp + 0xc], eax
call fcn.0044de31
mov eax, dword [ebx + 0x238]
xor edi, edi
cmp dword [eax], edi
jbe 0x483ca4
cmp dword [ebx + 0x208], edi
jne 0x483ca4
cmp dword [ebx + 0x1ec], edi
jne 0x483be7
push edi
push edi
push 0x30
xor edx, edx
pop ecx
call fcn.004878dc
pop ecx
pop ecx
mov esi, edi
mov dword [eax + 0x28], 3
mov dword [ebx + 0x208], eax
mov dword [ebx + 0x204], eax
jmp 0x483ca4
push ebp
push 0xf
push dword [ebx + 0x230]
call fcn.004c2680
mov eax, dword [ebx + 0x238]
pop ecx
pop ecx
push edi
push dword [eax]
push dword [eax + 4]
push dword [ebx + 0x34]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, eax
test ebp, ebp
jle 0x483ca3
mov eax, dword [ebx + 0x238]
mov eax, dword [eax]
cmp ebp, eax
jge 0x483c8d
push edi
push edi
sub eax, ebp
push 0x30
mov edx, eax
pop ecx
call fcn.004878dc
mov edi, eax
mov esi, edi
neg esi
sbb esi, esi
lea ecx, [edi + 0x34]
and esi, ecx
mov dword [edi], esi
mov ecx, esi
mov eax, dword [ebx + 0x238]
mov eax, dword [eax]
sub eax, ebp
mov dword [edi + 0x28], 3
mov edx, eax
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x238]
push edx
mov eax, dword [eax + 4]
add eax, ebp
push eax
call section..text
mov dword [ebx + 0x208], edi
mov dword [ebx + 0x204], edi
xor edi, edi
push edi
push edi
push 1
push dword [ebx + 0x230]
mov esi, edi
call fcn.004c26b0
add esp, 0x20
jmp 0x483ca3
jne 0x483ca3
push edi
xor esi, esi
push edi
inc esi
push esi
push dword [ebx + 0x230]
call fcn.004c26b0
add esp, 0x10
pop ebp
mov eax, dword [esp + 0xc]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4851b0
Capabilities:
Set socket configuration
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
xor edi, edi
inc ebp
mov dword [esi + 0x1cc], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1dc], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], edx
mov dword [esi + 0x1ec], ebp
mov dword [esi + 0x1e8], edi
mov dword [esi + 0x220], edi
test eax, eax
je 0x4851f6
mov eax, dword [eax + 8]
jmp 0x4851f8
mov eax, edi
push esi
push str.AsyncSocket__p__Initialized
push 2
push 0x40
push eax
call fcn.004920d4
mov eax, dword [esi + 0x1f8]
add esp, 0x14
cmp eax, 0x780260
je 0x485249
mov ebx, 0x942
push ebx
push 0x756204
push ebp
push dword [esi + 0x200]
push eax
call fcn.005f5d50
add esp, 0x14
test eax, eax
je 0x485271
mov dword [esi + 0x1f8], eax
mov eax, dword [esi + 0x200]
mov dword [esi + 0x1fc], eax
lea eax, [esp + 0x14]
mov dword [esi + 0x1f0], edi
push eax
push 0x8004667e
push dword [esi + 0x34]
mov dword [esi + 0x1f4], edi
mov dword [esp + 0x20], ebp
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop edi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x756224
push esi
push ebx
xor ecx, ecx
call fcn.0048f95e
push ebx
push str...microstackILibAsyncSocket.c
push 0x756264
call fcn.00401109
add esp, 0x18
push esi
call fcn.005d0820
int3

Function at 0x485352
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6d9d44]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ecx + 0x5c]
push edi
push 0x17
pop edi
mov dword [ebp - 0x24], 0x1c
cmp ax, di
jne 0x485383
movzx eax, word [ecx + 0x5e]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
jmp 0x4853be
push esi
push 2
pop esi
cmp ax, si
jne 0x485393
movzx eax, word [ecx + 0x5e]
push eax
jmp 0x4853b3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ecx + 0x34]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp word [ebp - 0x20], di
je 0x4853b0
cmp word [ebp - 0x20], si
jne 0x4853bb
push dword [ebp - 0x1e]
call dword [sym.imp.WS2_32.dll_ntohs]
jmp 0x4853bd
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005c0db0
mov esp, ebp
pop ebp
ret
Function at 0x4855da
Capabilities:
Create udp socket
Set socket configuration
Terminate process

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x28]
xor eax, eax
push esi
push edi
push eax
push eax
mov dword [esp + 0x28], edx
xor edx, edx
mov dword [esp + 0x2c], ecx
push 0x18
pop ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.004878dc
mov ebx, dword [esp + 0x34]
mov esi, eax
pop ecx
pop ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x3c]
push 0x11
mov dword [esi], ecx
movzx eax, word [ebx]
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48564b
push 1
push esi
call fcn.005f5a60
xor eax, eax
jmp 0x485735
cmp ebp, 1
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
jne 0x48566f
push 4
lea eax, [esp + 0x34]
push eax
push 4
push 0xffff
push edi
call ebp
test eax, eax
jne 0x48573f
push 0x17
pop eax
cmp word [ebx], ax
jne 0x4856a2
push 4
lea eax, [esp + 0x18]
push eax
push 0x1b
push 0x29
push edi
call ebp
test eax, eax
je 0x4856a2
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x83
mov edx, 0x7562dc
jmp 0x485750
push 0x10
pop eax
push 0x1c
pop ecx
push 0x17
pop edx
cmp word [ebx], dx
cmove eax, ecx
push eax
push ebx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4856ca
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x48563c
xor ebp, ebp
lea eax, [esp + 0x18]
push ebp
push ebp
push eax
push ebp
push ebp
push 4
lea eax, [esp + 0x34]
push eax
push 0x9800000c
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0x17
pop eax
cmp word [ebx], ax
movzx eax, word [ebx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push ebp
push 0x4855b2
push 0x4855cc
push ebp
push 0x485520
mov word [esi + 0xc], ax
call fcn.00482d69
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4856be
push esi
push 0x4855cc
mov edx, edi
mov ecx, ebx
call fcn.004851b0
mov eax, ebx
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x7f
mov edx, 0x7562b8
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push 0xfd
call fcn.005d0820
int3

Function at 0x4858a0
Capabilities:
Set socket configuration
Terminate process

Disassembly:
push ecx
cmp word [edx], 0x17
mov ecx, dword [ecx + 0x34]
push 4
jne 0x4858c1
lea eax, [edx + 0x18]
push eax
push 9
push 0x29
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4858e9
jmp 0x4858eb
lea eax, [edx + 4]
push eax
push 9
push 0
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4858e9
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x113
mov edx, 0x756324
jmp 0x4858fe
pop ecx
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10f
mov edx, 0x756300
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push 0xfd
call fcn.005d0820
int3
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, 0x76c260
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 0x7563bc
lea eax, [ebp - 4]
push ebx
push eax
call fcn.005ee8a0
add esp, 0xc
cmp dword [ebp - 4], esi
je 0x485e46
push dword [ebp - 4]
push 1
push dword [ebp + 8]
push edi
call fcn.005f25c0
push dword [ebp - 4]
mov esi, eax
call fcn.005ef550
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, 0x76c260
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x7563c4
lea eax, [ebp - 4]
push edi
push eax
call fcn.005ee8a0
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.005f0150
push dword [ebp - 4]
call fcn.005d1550
mov edi, eax
cmp edi, dword [ebp + 8]
push 0
cmova edi, dword [ebp + 8]
push 0
push dword [ebp - 4]
call fcn.005f0150
push 0x144
push 0x7563cc
lea eax, [edi + 1]
push 1
push eax
call fcn.005f5ba0
add esp, 0x2c
mov dword [ebx], eax
test eax, eax
jne 0x485f19
push dword [ebp - 4]
call fcn.005ef550
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.005f8c70
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.005ef550
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