joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432b9a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x24
call fcn.00433bd9
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
je 0x432bba
lea ecx, [esi + 8]
call fcn.0041eab8
jmp 0x432bbc
xor esi, esi
push dword [ebp + 8]
lea ecx, [esi + 8]
call fcn.00401720
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x432b6b
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
mov ecx, esi
call fcn.00431dfe
pop edi
pop esi
leave
ret 8

Function at 0x432d59
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x80]
push eax
xor edi, edi
mov esi, GetMenuState
push esi
push edi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x432e0c
push edi
lea eax, [ebp - 0x7c]
push eax
push edi
push esi
push edi
push edi
push edi
push str.WnIE
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x432e0c
push 0x206
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.0043db10
add esp, 0xc
cmp dword [ebx + 0x34], 8
jb 0x432ddd
mov ebx, dword [ebx + 0x20]
jmp 0x432de0
add ebx, 0x20
push ebx
lea eax, [ebp - 0x78]
push 0x4ca34c
push eax
call fcn.0043ec14
add esp, 0xc
push 0x104
lea eax, [ebp - 0x78]
push eax
push 1
push edi
push str.InstallPath
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043daf5
add ebp, 0x194
leave
ret
Function at 0x432e4c
Capabilities:
Set registry value

Disassembly:
push 0x620
mov eax, 0x4c56bc
call fcn.0043e6eb
xor edi, edi
inc edi
push 0x4e3094
lea ecx, [ebp + 0x24]
mov dword [ebp - 4], edi
call fcn.0040d2c7
xor esi, esi
test eax, eax
jne 0x432e85
push esi
push edi
lea ecx, [ebp + 8]
call fcn.004017a0
push esi
push edi
jmp 0x432f90
mov edi, 0x206
push edi
lea eax, [ebp - 0x626]
push esi
push eax
mov word [ebp - 0x628], si
call fcn.0043db10
push edi
lea eax, [ebp - 0x41e]
push esi
push eax
mov word [ebp - 0x420], si
call fcn.0043db10
mov eax, dword [ebp + 0x28]
add esp, 0x18
cmp dword [ebp + 0x3c], 8
jae 0x432ec3
lea eax, [ebp + 0x28]
push eax
mov ebx, 0x4ca34c
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.0043ec14
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp dword [ebp + 0x20], 8
jae 0x432ee5
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.0043ec14
push edi
lea eax, [ebp - 0x216]
push esi
push eax
mov word [ebp - 0x218], si
call fcn.0043db10
lea eax, [ebp - 0x218]
push 0x4ca120
push eax
call fcn.0043dcde
lea eax, [ebp - 0x218]
push str.WnIE
push eax
call fcn.0043dcb4
add esp, 0x28
push esi
lea eax, [ebp - 0x62c]
push eax
push esi
push GetMenuState
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x432f76
push 0x104
lea eax, [ebp - 0x420]
push eax
push 1
push esi
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 1
lea ecx, [ebp + 8]
call fcn.004017a0
push esi
push 1
lea ecx, [ebp + 0x24]
call fcn.004017a0
call fcn.0043e76e
ret 0x38

Function at 0x432ffa
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov ebx, ecx
mov word [ebp - 0x20c], si
call fcn.0043db10
add esp, 0xc
push esi
push 0x26
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
lea esi, [ebx + 0x1c]
push eax
mov ecx, esi
call fcn.00403360
mov edi, 0x4e3074
push edi
mov ecx, esi
call fcn.00403470
push str.WnIE
mov ecx, esi
call fcn.00403470
push edi
mov ecx, esi
call fcn.00403470
push 0xffffffffffffffff
push 0
add ebx, 0x38
push esi
mov ecx, ebx
call fcn.00401d10
push str.Bin_
mov ecx, ebx
call fcn.00403470
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043daf5
leave
ret
Function at 0x4332d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x10
mov eax, 0x4c5728
call fcn.0043e682
mov ebx, dword [ebp + 0x41c]
xor esi, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], esi
mov edi, 0x4e3094
push edi
lea ecx, [ebp + 0x420]
mov dword [ebp - 4], esi
call fcn.0040d2c7
test eax, eax
jne 0x433340
push edi
mov ecx, ebx
call fcn.004015d0
push esi
push 1
lea ecx, [ebp + 0x420]
call fcn.004017a0
mov eax, ebx
jmp 0x43341b
push 0x206
lea eax, [ebp + 0x20a]
push esi
push eax
mov word [ebp + 0x208], si
call fcn.0043db10
mov eax, dword [ebp + 0x424]
add esp, 0xc
cmp dword [ebp + 0x438], 8
jae 0x433371
lea eax, [ebp + 0x424]
push eax
lea eax, [ebp + 0x208]
push 0x4ca34c
push eax
call fcn.0043ec14
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push GetMenuState
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call ebx
test eax, eax
je 0x4333af
push edi
jmp 0x433402
lea eax, [ebp - 0x14]
push eax
push GetMenuState
push esi
push str.WnIE
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x4333ac
push 0x206
lea eax, [ebp + 2]
push esi
push eax
mov word [ebp], si
call fcn.0043db10
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push esi
push esi
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004015d0
push esi
push 1
lea ecx, [ebp + 0x420]
call fcn.004017a0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0043daf5
add ebp, 0x414
leave
ret 0x20
Function at 0x43cfde
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 0x43d01b
cmp dword [ebp + 0x14], edi
je 0x43d01b
cmp ecx, edi
jne 0x43d022
call fcn.0043cda6
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043dfae
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43d036
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43d057
cmp ebx, 0xffffffff
je 0x43d046
push ebx
push edi
push ecx
call fcn.0043db10
add esp, 0xc
cmp esi, edi
je 0x43d003
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43d003
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43d073
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43d07a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43d16b
test word [esi + 0xc], 0x10c
je 0x43d0ce
mov eax, dword [esi + 4]
test eax, eax
je 0x43d0ce
jl 0x43d1cc
cmp ebx, eax
mov edi, ebx
jb 0x43d09f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43d173
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043e07b
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 0x43d163
cmp ebx, dword [ebp - 0xc]
jb 0x43d13b
cmp dword [ebp - 0xc], 0
je 0x43d0f8
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43d0ed
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43d0f4
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43d103
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43d103
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43d19f
push eax
push dword [ebp - 8]
push esi
call fcn.00447ea8
pop ecx
push eax
call fcn.004487bc
add esp, 0xc
test eax, eax
je 0x43d1de
cmp eax, 0xffffffff
je 0x43d1cc
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43d163
push esi
call fcn.004480db
cmp eax, 0xffffffff
pop ecx
je 0x43d1d0
cmp dword [ebp - 4], 0
je 0x43d19f
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 0x43d082
mov eax, dword [ebp + 0x14]
jmp 0x43d01d
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43d18a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043db10
add esp, 0xc
call fcn.0043cda6
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43d013
cmp dword [ebp + 0xc], 0xffffffff
je 0x43d1b5
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043db10
add esp, 0xc
call fcn.0043cda6
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43d013
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43d01d
or dword [esi + 0xc], 0x10
jmp 0x43d1d0
Function at 0x43daf5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x509690]
jne 0x43daff
repz ret
jmp fcn.004495c7

Function at 0x446e24
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 + 0x5098d0]
je 0x446e3f
inc edi
cmp edi, 0x17
jb 0x446e30
cmp edi, 0x17
jae 0x446fbf
push ebp
push 3
call fcn.004534c9
cmp eax, 1
pop ecx
je 0x446f8b
push 3
call fcn.004534c9
test eax, eax
pop ecx
jne 0x446e73
cmp dword [0x5097a0], 1
je 0x446f8b
cmp ebx, 0xfc
je 0x446fbe
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x510d60
push ebp
call fcn.0044b145
add esp, 0xc
test eax, eax
je 0x446ea9
push esi
push esi
push esi
push esi
push esi
call fcn.0043deb2
add esp, 0x14
push 0x104
mov esi, 0x510d79
push esi
push 0
mov byte [0x510e7d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x446eed
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044b145
add esp, 0xc
test eax, eax
je 0x446eed
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043deb2
add esp, 0x14
push esi
call fcn.0043dff0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x446f32
push esi
call fcn.0043dff0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x511074
push 0x4d174c
sub ecx, eax
push ecx
push eax
call fcn.00451ed9
add esp, 0x14
test eax, eax
je 0x446f32
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043deb2
add esp, 0x14
jmp 0x446f34
xor esi, esi
push 0x4d1cf8
push ebx
push ebp
call fcn.00451e68
add esp, 0xc
test eax, eax
je 0x446f54
push esi
push esi
push esi
push esi
push esi
call fcn.0043deb2
add esp, 0x14
push dword [edi*8 + 0x5098d4]
push ebx
push ebp
call fcn.00451e68
add esp, 0xc
test eax, eax
je 0x446f76
push esi
push esi
push esi
push esi
push esi
call fcn.0043deb2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00455709
add esp, 0xc
jmp 0x446fbe
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x446fbe
cmp ebp, 0xffffffff
je 0x446fbe
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5098d4]
push dword [esi]
call fcn.0043dff0
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 0x453112
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00447103
xor ebx, ebx
cmp dword [0x5114f0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4531e8
push 0x4ce40c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x4532c8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4d30ec
push edi
call esi
cmp eax, ebx
je 0x4532c8
push eax
call fcn.00447095
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5114f0], eax
call esi
push eax
call fcn.00447095
mov dword [esp], 0x4d30c8
push edi
mov dword [0x5114f4], eax
call esi
push eax
call fcn.00447095
mov dword [0x5114f8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00445ddc
test eax, eax
pop ecx
pop ecx
je 0x4531b6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043deb2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4531e8
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.00447095
cmp eax, ebx
pop ecx
mov dword [0x511500], eax
je 0x4531e8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00447095
pop ecx
mov dword [0x5114fc], eax
mov eax, dword [0x5114fc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45326d
cmp dword [0x511500], ecx
je 0x45326d
push eax
call fcn.0044710c
push dword [0x511500]
mov esi, eax
call fcn.0044710c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45326d
cmp edi, ebx
je 0x45326d
call esi
cmp eax, ebx
je 0x45323a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45323a
test byte [ebp - 0x18], 1
jne 0x45326d
lea eax, [ebp - 0x10]
push eax
call fcn.00445e13
test eax, eax
pop ecx
je 0x453255
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043deb2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x453264
or dword [ebp + 0x10], 0x200000
jmp 0x4532a8
or dword [ebp + 0x10], 0x40000
jmp 0x4532a8
mov eax, dword [0x5114f4]
cmp eax, dword [ebp - 8]
je 0x4532a8
push eax
call fcn.0044710c
cmp eax, ebx
pop ecx
je 0x4532a8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4532a8
mov eax, dword [0x5114f8]
cmp eax, dword [ebp - 8]
je 0x4532a8
push eax
call fcn.0044710c
cmp eax, ebx
pop ecx
je 0x4532a8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5114f0]
call fcn.0044710c
cmp eax, ebx
pop ecx
je 0x4532c8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4532ca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x455709
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00447103
xor ebx, ebx
cmp dword [0x511724], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4557df
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4558bf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4558bf
push eax
call fcn.00447095
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x511724], eax
call esi
push eax
call fcn.00447095
mov dword [esp], 0x4d30c8
push edi
mov dword [0x511728], eax
call esi
push eax
call fcn.00447095
mov dword [0x51172c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00445ddc
test eax, eax
pop ecx
pop ecx
je 0x4557ad
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043deb2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4557df
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00447095
cmp eax, ebx
pop ecx
mov dword [0x511734], eax
je 0x4557df
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00447095
pop ecx
mov dword [0x511730], eax
mov eax, dword [0x511730]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x455864
cmp dword [0x511734], ecx
je 0x455864
push eax
call fcn.0044710c
push dword [0x511734]
mov esi, eax
call fcn.0044710c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x455864
cmp edi, ebx
je 0x455864
call esi
cmp eax, ebx
je 0x455831
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x455831
test byte [ebp - 0x18], 1
jne 0x455864
lea eax, [ebp - 0x10]
push eax
call fcn.00445e13
test eax, eax
pop ecx
je 0x45584c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043deb2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45585b
or dword [ebp + 0x10], 0x200000
jmp 0x45589f
or dword [ebp + 0x10], 0x40000
jmp 0x45589f
mov eax, dword [0x511728]
cmp eax, dword [ebp - 8]
je 0x45589f
push eax
call fcn.0044710c
cmp eax, ebx
pop ecx
je 0x45589f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45589f
mov eax, dword [0x51172c]
cmp eax, dword [ebp - 8]
je 0x45589f
push eax
call fcn.0044710c
cmp eax, ebx
pop ecx
je 0x45589f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x511724]
call fcn.0044710c
cmp eax, ebx
pop ecx
je 0x4558bf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4558c1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45ee60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4c5e83
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x509690]
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], 0x5119a8
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], 0x5119a8
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x4e3070
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.0045e1e0
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 0x45f280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c5f59
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509690]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x5119a8
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea edi, [esi + 0x2c]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [esp + 0x20], ebx
mov dword [edi], 0x5119a8
lea ebp, [esi + 0x30]
mov dword [ebp], 0x5119a8
mov dword [esi + 0x34], 0x5119a8
mov ecx, dword [esp + 0x28]
mov eax, ecx
lea edx, [eax + 1]
mov byte [esp + 0x20], 3
mov dword [esp + 0x28], edx
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x45f310
sub eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, edi
call fcn.0045e1e0
mov edi, dword [esp + 0x2c]
mov eax, edi
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x45f330
sub eax, ecx
push eax
push edi
mov ecx, ebp
call fcn.0045e1e0
mov edx, dword [esp + 0x30]
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x45f350
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x34]
call fcn.0045e1e0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x461e10
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x509690]
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 0x461e60
mov ax, word [esp]
cmp al, 2
jne 0x461e5a
cmp ah, al
jne 0x461e5a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0043daf5
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.0043daf5
add esp, 0x194
ret
Function at 0x46dac0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x46dadb
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 0x46db0f
cmp eax, 2
jg 0x46db0f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4d5470]
push 2
push edx
call fcn.0043d3f4
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.0043d3f4
add esp, 0x20
xor eax, eax
ret
Function at 0x46e660
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x509690]
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 0x46e79b
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 0x46e6dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00471d20
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0046dca0
add esp, 0x18
jmp 0x46e7a4
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 0x46e71c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00471d20
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0046dca0
add esp, 0x18
jmp 0x46e7a4
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.0046e620
test eax, eax
jne 0x46e75a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00471d20
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.0046dca0
add esp, 0x18
jmp 0x46e7a4
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.0046e620
test eax, eax
jne 0x46e79b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00471d20
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0046dca0
add esp, 0x18
jmp 0x46e7a4
push ebp
call fcn.0046e5c0
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043daf5
add esp, 0x10c
ret

Function at 0x46e7c0
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 0x46e803
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00471d20
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0046dc10
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0046dc10
add esp, 8
pop esi
pop ecx
ret

Function at 0x46e820
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 0x46e869
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x46e881
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