joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439e92
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x3ac]
sub esp, 0x42c
mov eax, dword [0x4f2720]
xor eax, ebp
mov dword [ebp + 0x3a8], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
push edi
push eax
mov eax, dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x70]
call fcn.00422c4c
mov eax, dword [esi + 0x24]
push eax
push dword [eax + 4]
lea ecx, [ebp - 0x7c]
call fcn.00422c4c
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x70]
call fcn.004335b3
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x439fba
lea ecx, [ebp - 0x70]
call fcn.00422c28
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebx + 4]
cmp byte [eax], 0
lea eax, [ebp + 0x1a0]
je 0x439ef3
push 0x4c4484
jmp 0x439ef8
push 0x4c4480
push 0x4c3d68
push eax
call fcn.00460936
add esp, 0xc
add ebx, 0xc
push ebx
lea eax, [ebp - 0x68]
push str.Is_s
push eax
mov dword [ebp - 0x80], ebx
call fcn.00460936
add esp, 0xc
cmp dword [esi + 0xb0], 8
jb 0x439f2f
mov eax, dword [esi + 0x9c]
jmp 0x439f35
lea eax, [esi + 0x9c]
push eax
lea eax, [ebp + 0x1a0]
push eax
lea eax, [ebp - 0x68]
push eax
mov ebx, str.HotKey
push ebx
call edi
push dword [ebp - 0x80]
lea eax, [ebp - 0x68]
push str.Use_s
push eax
call fcn.00460936
push dword [ebp - 0x74]
lea eax, [ebp + 0x1a0]
push 0x4c3d68
push eax
call fcn.00460936
add esp, 0x18
cmp dword [esi + 0xb0], 8
jb 0x439f82
mov eax, dword [esi + 0x9c]
jmp 0x439f88
lea eax, [esi + 0x9c]
push eax
lea eax, [ebp + 0x1a0]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
call edi
lea ecx, [ebp - 0x70]
call fcn.004395dd
mov eax, dword [esi + 0x24]
push eax
push dword [eax + 4]
lea ecx, [ebp - 0x7c]
call fcn.00422c4c
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x70]
call fcn.004335b3
test al, al
je 0x439ecd
cmp dword [esi + 0xe8], 8
jb 0x439fd3
mov eax, dword [esi + 0xd4]
jmp 0x439fd9
lea eax, [esi + 0xd4]
push eax
push 0x4c4484
push str.ModifyHotKey
mov ebx, str.SetModify
push ebx
call edi
cmp dword [esi + 0xe8], 8
jb 0x439ffd
mov eax, dword [esi + 0xd4]
jmp 0x43a003
lea eax, [esi + 0xd4]
push eax
push 0x4c4484
push str.ModifyHotKey64
push ebx
call edi
cmp dword [esi + 0xe8], 8
jb 0x43a022
mov eax, dword [esi + 0xd4]
jmp 0x43a028
lea eax, [esi + 0xd4]
push eax
push 0x4c4484
push str.TempModifyHotKey
push ebx
call edi
cmp dword [esi + 0xe8], 8
jb 0x43a047
mov eax, dword [esi + 0xd4]
jmp 0x43a04d
lea eax, [esi + 0xd4]
push eax
push 0x4c4484
push str.TempModifyHotKey64
push ebx
call edi
lea eax, [esi + 0xb4]
cmp dword [eax + 0x18], 8
jb 0x43a06c
mov eax, dword [eax + 4]
jmp 0x43a06f
add eax, 4
add esi, 0x98
cmp dword [esi + 0x18], 8
jb 0x43a080
mov esi, dword [esi + 4]
jmp 0x43a083
add esi, 4
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp + 0x3a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045fa14
add ebp, 0x3ac
leave
ret
Function at 0x43e491
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4f2720]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
mov dword [ebp - 0x10], ecx
jle 0x43e529
lea ecx, [eax + 0x80]
add eax, 0x100
push ebx
dec edi
shr edi, 3
push 8
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
inc edi
pop ebx
mov ecx, dword [ebp - 0x10]
mov eax, esi
sub ecx, esi
mov dword [ebp - 0x18], ebx
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec dword [ebp - 0x18]
jne 0x43e4da
push ebx
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.00460a90
mov ecx, dword [ebp - 0x1c]
push esi
mov eax, esi
call fcn.0043db11
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + eax]
xor byte [esi + eax], cl
inc eax
cmp eax, ebx
jl 0x43e502
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
call fcn.00460a90
add dword [ebp - 0x10], ebx
add esp, 0xc
add esi, ebx
dec edi
jne 0x43e4d0
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045fa14
leave
ret

Function at 0x43fbe0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4bfdc3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4f2720]
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
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x4f5164
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x4f5164
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x4df44f
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.0043eef0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
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 0x448dea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x448e2d
call fcn.0044cd7d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x448e2d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x448e48
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004489a4
test ebx, ebx
mov esi, eax
je 0x448e46
test edi, edi
je 0x448e46
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x44ae6d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4f2720]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x44aeaa
push 0x4d07a0
push 4
push eax
call fcn.00461622
push eax
call fcn.00404f0c
add esp, 0x10
jmp 0x44aebc
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44af27
push edi
call fcn.004674cb
mov edi, dword [eax]
call fcn.004674cb
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004609e8
add esp, 0x18
mov ebx, eax
call fcn.004674cb
cmp dword [eax], 0
je 0x44af07
call fcn.004674cb
push dword [eax]
call fcn.0044320a
pop ecx
jmp 0x44af0e
call fcn.004674cb
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x44af27
cmp ebx, esi
jae 0x44af27
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x44af29
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045fa14
leave
ret
Function at 0x44d40f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x44d455
call fcn.0044cd7d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44d455
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x44d498
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x44d481
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44d481
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x44d495
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x44fac2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44faf0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44fb0e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044fa2c
jmp 0x44fb0e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44fb0e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0044fa2c
test edi, edi
mov eax, edi
jne 0x44faf8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4f6da0]
test ecx, ecx
je 0x44fbd1
jmp 0x44fac1
ret 8

Function at 0x45fa14
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f2720]
jne 0x45fa1e
repz ret
jmp fcn.0046d9ea
Function at 0x4638c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4638fd
cmp dword [ebp + 0x14], edi
je 0x4638fd
cmp ecx, edi
jne 0x463904
call fcn.004674cb
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0045fe66
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x463918
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x463939
cmp ebx, 0xffffffff
je 0x463928
push ebx
push edi
push ecx
call fcn.0045fa70
add esp, 0xc
cmp esi, edi
je 0x4638e5
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4638e5
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x463955
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x46395c
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x463a4d
test word [esi + 0xc], 0x10c
je 0x4639b0
mov eax, dword [esi + 4]
test eax, eax
je 0x4639b0
jl 0x463aae
cmp ebx, eax
mov edi, ebx
jb 0x463981
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x463a55
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045fc44
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x463a45
cmp ebx, dword [ebp - 0xc]
jb 0x463a1d
cmp dword [ebp - 0xc], 0
je 0x4639da
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x4639cf
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4639d6
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4639e5
mov eax, closesocket
cmp ebx, eax
ja 0x4639e5
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x463a81
push eax
push dword [ebp - 8]
push esi
call fcn.004736e4
pop ecx
push eax
call fcn.0045ea9a
add esp, 0xc
test eax, eax
je 0x463ac0
cmp eax, 0xffffffff
je 0x463aae
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x463a45
push esi
call fcn.00473917
cmp eax, 0xffffffff
pop ecx
je 0x463ab2
cmp dword [ebp - 4], 0
je 0x463a81
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x463964
mov eax, dword [ebp + 0x14]
jmp 0x4638ff
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x463a6c
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0045fa70
add esp, 0xc
call fcn.004674cb
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4638f5
cmp dword [ebp + 0xc], 0xffffffff
je 0x463a97
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0045fa70
add esp, 0xc
call fcn.004674cb
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4638f5
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4638ff
or dword [esi + 0xc], 0x10
jmp 0x463ab2
Function at 0x468f7c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4f2940]
je 0x468f97
inc edi
cmp edi, 0x17
jb 0x468f88
cmp edi, 0x17
jae 0x469117
push ebp
push 3
call fcn.004787bc
cmp eax, 1
pop ecx
je 0x4690e3
push 3
call fcn.004787bc
test eax, eax
pop ecx
jne 0x468fcb
cmp dword [0x4f261c], 1
je 0x4690e3
cmp ebx, 0xfc
je 0x469116
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4f7110
push ebp
call fcn.0046dc60
add esp, 0xc
test eax, eax
je 0x469001
push esi
push esi
push esi
push esi
push esi
call fcn.0045fd6a
add esp, 0x14
push 0x104
mov esi, 0x4f7129
push esi
push 0
mov byte [0x4f722d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x469045
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0046dc60
add esp, 0xc
test eax, eax
je 0x469045
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0045fd6a
add esp, 0x14
push esi
call fcn.0045f620
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x46908a
push esi
call fcn.0045f620
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4f7424
push 0x4d2bcc
sub ecx, eax
push ecx
push eax
call fcn.00476e1c
add esp, 0x14
test eax, eax
je 0x46908a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0045fd6a
add esp, 0x14
jmp 0x46908c
xor esi, esi
push 0x4d2bc8
push ebx
push ebp
call fcn.0046cb73
add esp, 0xc
test eax, eax
je 0x4690ac
push esi
push esi
push esi
push esi
push esi
call fcn.0045fd6a
add esp, 0x14
push dword [edi*8 + 0x4f2944]
push ebx
push ebp
call fcn.0046cb73
add esp, 0xc
test eax, eax
je 0x4690ce
push esi
push esi
push esi
push esi
push esi
call fcn.0045fd6a
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004785ff
add esp, 0xc
jmp 0x469116
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x469116
cmp ebp, 0xffffffff
je 0x469116
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4f2944]
push dword [esi]
call fcn.0045f620
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x46cbe4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x46cc11
call fcn.004674de
mov dword [eax], esi
call fcn.004674cb
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0045fe66
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x46cbed
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46cc40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004674f1
pop ecx
call fcn.004674cb
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x46cc67
test al, 1
je 0x46cc67
test byte [esp + 0xc], 2
je 0x46cc67
call fcn.004674de
mov dword [eax], 5
call fcn.004674cb
mov dword [eax], 0xd
jmp 0x46cc37
xor eax, eax
pop esi
ret
Function at 0x4785ff
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00469b2c
xor ebx, ebx
cmp dword [0x4f7c20], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4786d5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4787b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4787b5
push eax
call fcn.00469abe
mov dword [esp], 0x4d3fec
push edi
mov dword [0x4f7c20], eax
call esi
push eax
call fcn.00469abe
mov dword [esp], 0x4d3fd8
push edi
mov dword [0x4f7c24], eax
call esi
push eax
call fcn.00469abe
mov dword [0x4f7c28], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004681a1
test eax, eax
pop ecx
pop ecx
je 0x4786a3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045fd6a
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4786d5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00469abe
cmp eax, ebx
pop ecx
mov dword [0x4f7c30], eax
je 0x4786d5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00469abe
pop ecx
mov dword [0x4f7c2c], eax
mov eax, dword [0x4f7c2c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x47875a
cmp dword [0x4f7c30], ecx
je 0x47875a
push eax
call fcn.00469b35
push dword [0x4f7c30]
mov esi, eax
call fcn.00469b35
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x47875a
cmp edi, ebx
je 0x47875a
call esi
cmp eax, ebx
je 0x478727
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x478727
test byte [ebp - 0x18], 1
jne 0x47875a
lea eax, [ebp - 0x10]
push eax
call fcn.004681d8
test eax, eax
pop ecx
je 0x478742
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045fd6a
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x478751
or dword [ebp + 0x10], 0x200000
jmp 0x478795
or dword [ebp + 0x10], 0x40000
jmp 0x478795
mov eax, dword [0x4f7c24]
cmp eax, dword [ebp - 8]
je 0x478795
push eax
call fcn.00469b35
cmp eax, ebx
pop ecx
je 0x478795
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x478795
mov eax, dword [0x4f7c28]
cmp eax, dword [ebp - 8]
je 0x478795
push eax
call fcn.00469b35
cmp eax, ebx
pop ecx
je 0x478795
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f7c20]
call fcn.00469b35
cmp eax, ebx
pop ecx
je 0x4787b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4787b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47d530
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4f2720]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x47d580
mov ax, word [esp]
cmp al, 2
jne 0x47d57a
cmp ah, al
jne 0x47d57a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0045fa14
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0045fa14
add esp, 0x194
ret
Function at 0x47e890
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x47e8b2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x47e8a6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x47e8e2
cmp dword [esi + 8], 0
jne 0x47e8d5
mov ecx, dword [eax + 8]
push 0x4cee20
push ecx
call fcn.00467d09
add esp, 8
test eax, eax
mov dword [esi + 8], eax
jne 0x47e8d5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.00463b5c
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x47e904
mov eax, dword [esi + 8]
test eax, eax
je 0x47e8fe
push eax
call fcn.00463844
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x489880
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4898b2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x489a00
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x489a1b
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x489a4f
cmp eax, 2
jg 0x489a4f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4d6118]
push 2
push edx
call fcn.00467061
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.00467061
add esp, 0x20
xor eax, eax
ret

Function at 0x489d60
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x489ddd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x489db4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0048e0c0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00489be0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x856c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48a5a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4f2720]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x19c], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x48a6db
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x48a61c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0048e0c0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00489be0
add esp, 0x18
jmp 0x48a6e4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x48a65c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0048e0c0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00489be0
add esp, 0x18
jmp 0x48a6e4
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.0048a560
test eax, eax
jne 0x48a69a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0048e0c0
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00489be0
add esp, 0x18
jmp 0x48a6e4
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.0048a560
test eax, eax
jne 0x48a6db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0048e0c0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00489be0
add esp, 0x18
jmp 0x48a6e4
push ebp
call fcn.0048a500
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045fa14
add esp, 0x10c
ret

Function at 0x48a700
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x48a743
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0048e0c0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00489b50
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00489b50
add esp, 8
pop esi
pop ecx
ret

Function at 0x48a760
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x48a7a9
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x48a7c1
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret