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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x24
call fcn.00433c21
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
je 0x432c02
lea ecx, [esi + 8]
call fcn.0041e8d1
jmp 0x432c04
xor esi, esi
push dword [ebp + 8]
lea ecx, [esi + 8]
call fcn.004016f0
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x432bb3
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.00431e46
pop edi
pop esi
leave
ret 8

Function at 0x432da1
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, 0xf003f
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 0x432e54
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 0x432e54
push 0x206
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.0043db80
add esp, 0xc
cmp dword [ebx + 0x34], 8
jb 0x432e25
mov ebx, dword [ebx + 0x20]
jmp 0x432e28
add ebx, 0x20
push ebx
lea eax, [ebp - 0x78]
push 0x4ca39c
push eax
call fcn.0043ec84
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.0043db65
add ebp, 0x194
leave
ret
Function at 0x432e94
Capabilities:
Set registry value

Disassembly:
push 0x620
mov eax, 0x4c573d
call fcn.0043e75b
xor edi, edi
inc edi
push 0x4e31d4
lea ecx, [ebp + 0x24]
mov dword [ebp - 4], edi
call fcn.0040d2f7
xor esi, esi
test eax, eax
jne 0x432ecd
push esi
push edi
lea ecx, [ebp + 8]
call fcn.00401770
push esi
push edi
jmp 0x432fd8
mov edi, 0x206
push edi
lea eax, [ebp - 0x626]
push esi
push eax
mov word [ebp - 0x628], si
call fcn.0043db80
push edi
lea eax, [ebp - 0x41e]
push esi
push eax
mov word [ebp - 0x420], si
call fcn.0043db80
mov eax, dword [ebp + 0x28]
add esp, 0x18
cmp dword [ebp + 0x3c], 8
jae 0x432f0b
lea eax, [ebp + 0x28]
push eax
mov ebx, 0x4ca39c
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.0043ec84
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp dword [ebp + 0x20], 8
jae 0x432f2d
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.0043ec84
push edi
lea eax, [ebp - 0x216]
push esi
push eax
mov word [ebp - 0x218], si
call fcn.0043db80
lea eax, [ebp - 0x218]
push 0x4ca120
push eax
call fcn.0043dd4e
lea eax, [ebp - 0x218]
push str.WnIE
push eax
call fcn.0043dd24
add esp, 0x28
push esi
lea eax, [ebp - 0x62c]
push eax
push esi
push 0xf003f
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 0x432fbe
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.00401770
push esi
push 1
lea ecx, [ebp + 0x24]
call fcn.00401770
call fcn.0043e7de
ret 0x38

Function at 0x433042
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.0043db80
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, 0x4e31b4
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.00401ce0
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.0043db65
leave
ret
Function at 0x433321
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, 0x4c57a9
call fcn.0043e6f2
mov ebx, dword [ebp + 0x41c]
xor esi, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], esi
mov edi, 0x4e31d4
push edi
lea ecx, [ebp + 0x420]
mov dword [ebp - 4], esi
call fcn.0040d2f7
test eax, eax
jne 0x433388
push edi
mov ecx, ebx
call fcn.004015a0
push esi
push 1
lea ecx, [ebp + 0x420]
call fcn.00401770
mov eax, ebx
jmp 0x433463
push 0x206
lea eax, [ebp + 0x20a]
push esi
push eax
mov word [ebp + 0x208], si
call fcn.0043db80
mov eax, dword [ebp + 0x424]
add esp, 0xc
cmp dword [ebp + 0x438], 8
jae 0x4333b9
lea eax, [ebp + 0x424]
push eax
lea eax, [ebp + 0x208]
push 0x4ca39c
push eax
call fcn.0043ec84
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0xf003f
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 0x4333f7
push edi
jmp 0x43344a
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push esi
push str.WnIE
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x4333f4
push 0x206
lea eax, [ebp + 2]
push esi
push eax
mov word [ebp], si
call fcn.0043db80
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.004015a0
push esi
push 1
lea ecx, [ebp + 0x420]
call fcn.00401770
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.0043db65
add ebp, 0x414
leave
ret 0x20
Function at 0x43d04c
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 0x43d089
cmp dword [ebp + 0x14], edi
je 0x43d089
cmp ecx, edi
jne 0x43d090
call fcn.0043ce14
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043e01e
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43d0a4
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43d0c5
cmp ebx, 0xffffffff
je 0x43d0b4
push ebx
push edi
push ecx
call fcn.0043db80
add esp, 0xc
cmp esi, edi
je 0x43d071
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43d071
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43d0e1
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43d0e8
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43d1d9
test word [esi + 0xc], 0x10c
je 0x43d13c
mov eax, dword [esi + 4]
test eax, eax
je 0x43d13c
jl 0x43d23a
cmp ebx, eax
mov edi, ebx
jb 0x43d10d
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43d1e1
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043e0eb
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 0x43d1d1
cmp ebx, dword [ebp - 0xc]
jb 0x43d1a9
cmp dword [ebp - 0xc], 0
je 0x43d166
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43d15b
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43d162
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43d171
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43d171
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43d20d
push eax
push dword [ebp - 8]
push esi
call fcn.00447f18
pop ecx
push eax
call fcn.0044882c
add esp, 0xc
test eax, eax
je 0x43d24c
cmp eax, 0xffffffff
je 0x43d23a
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43d1d1
push esi
call fcn.0044814b
cmp eax, 0xffffffff
pop ecx
je 0x43d23e
cmp dword [ebp - 4], 0
je 0x43d20d
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 0x43d0f0
mov eax, dword [ebp + 0x14]
jmp 0x43d08b
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43d1f8
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043db80
add esp, 0xc
call fcn.0043ce14
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43d081
cmp dword [ebp + 0xc], 0xffffffff
je 0x43d223
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043db80
add esp, 0xc
call fcn.0043ce14
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43d081
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43d08b
or dword [esi + 0xc], 0x10
jmp 0x43d23e
Function at 0x43db65
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x509690]
jne 0x43db6f
repz ret
jmp fcn.00449637

Function at 0x446e94
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 0x446eaf
inc edi
cmp edi, 0x17
jb 0x446ea0
cmp edi, 0x17
jae 0x44702f
push ebp
push 3
call fcn.00453619
cmp eax, 1
pop ecx
je 0x446ffb
push 3
call fcn.00453619
test eax, eax
pop ecx
jne 0x446ee3
cmp dword [0x5097a0], 1
je 0x446ffb
cmp ebx, 0xfc
je 0x44702e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x510d98
push ebp
call fcn.0044b215
add esp, 0xc
test eax, eax
je 0x446f19
push esi
push esi
push esi
push esi
push esi
call fcn.0043df22
add esp, 0x14
push 0x104
mov esi, 0x510db1
push esi
push 0
mov byte [0x510eb5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x446f5d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044b215
add esp, 0xc
test eax, eax
je 0x446f5d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043df22
add esp, 0x14
push esi
call fcn.0043e060
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x446fa2
push esi
call fcn.0043e060
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5110ac
push 0x4d1884
sub ecx, eax
push ecx
push eax
call fcn.00452029
add esp, 0x14
test eax, eax
je 0x446fa2
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043df22
add esp, 0x14
jmp 0x446fa4
xor esi, esi
push 0x4d1e30
push ebx
push ebp
call fcn.00451fb8
add esp, 0xc
test eax, eax
je 0x446fc4
push esi
push esi
push esi
push esi
push esi
call fcn.0043df22
add esp, 0x14
push dword [edi*8 + 0x5098d4]
push ebx
push ebp
call fcn.00451fb8
add esp, 0xc
test eax, eax
je 0x446fe6
push esi
push esi
push esi
push esi
push esi
call fcn.0043df22
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004557e5
add esp, 0xc
jmp 0x44702e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44702e
cmp ebp, 0xffffffff
je 0x44702e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5098d4]
push dword [esi]
call fcn.0043e060
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 0x453262
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00447173
xor ebx, ebx
cmp dword [0x511528], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x453338
push 0x4ce544
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x453418
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4d322c
push edi
call esi
cmp eax, ebx
je 0x453418
push eax
call fcn.00447105
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x511528], eax
call esi
push eax
call fcn.00447105
mov dword [esp], 0x4d3208
push edi
mov dword [0x51152c], eax
call esi
push eax
call fcn.00447105
mov dword [0x511530], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00445e4c
test eax, eax
pop ecx
pop ecx
je 0x453306
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043df22
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x453338
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.00447105
cmp eax, ebx
pop ecx
mov dword [0x511538], eax
je 0x453338
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00447105
pop ecx
mov dword [0x511534], eax
mov eax, dword [0x511534]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4533bd
cmp dword [0x511538], ecx
je 0x4533bd
push eax
call fcn.0044717c
push dword [0x511538]
mov esi, eax
call fcn.0044717c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4533bd
cmp edi, ebx
je 0x4533bd
call esi
cmp eax, ebx
je 0x45338a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45338a
test byte [ebp - 0x18], 1
jne 0x4533bd
lea eax, [ebp - 0x10]
push eax
call fcn.00445e83
test eax, eax
pop ecx
je 0x4533a5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043df22
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4533b4
or dword [ebp + 0x10], 0x200000
jmp 0x4533f8
or dword [ebp + 0x10], 0x40000
jmp 0x4533f8
mov eax, dword [0x51152c]
cmp eax, dword [ebp - 8]
je 0x4533f8
push eax
call fcn.0044717c
cmp eax, ebx
pop ecx
je 0x4533f8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4533f8
mov eax, dword [0x511530]
cmp eax, dword [ebp - 8]
je 0x4533f8
push eax
call fcn.0044717c
cmp eax, ebx
pop ecx
je 0x4533f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x511528]
call fcn.0044717c
cmp eax, ebx
pop ecx
je 0x453418
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45341a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4557e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00447173
xor ebx, ebx
cmp dword [0x51175c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4558bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45599b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x45599b
push eax
call fcn.00447105
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x51175c], eax
call esi
push eax
call fcn.00447105
mov dword [esp], 0x4d3208
push edi
mov dword [0x511760], eax
call esi
push eax
call fcn.00447105
mov dword [0x511764], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00445e4c
test eax, eax
pop ecx
pop ecx
je 0x455889
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043df22
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4558bb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00447105
cmp eax, ebx
pop ecx
mov dword [0x51176c], eax
je 0x4558bb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00447105
pop ecx
mov dword [0x511768], eax
mov eax, dword [0x511768]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x455940
cmp dword [0x51176c], ecx
je 0x455940
push eax
call fcn.0044717c
push dword [0x51176c]
mov esi, eax
call fcn.0044717c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x455940
cmp edi, ebx
je 0x455940
call esi
cmp eax, ebx
je 0x45590d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45590d
test byte [ebp - 0x18], 1
jne 0x455940
lea eax, [ebp - 0x10]
push eax
call fcn.00445e83
test eax, eax
pop ecx
je 0x455928
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043df22
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x455937
or dword [ebp + 0x10], 0x200000
jmp 0x45597b
or dword [ebp + 0x10], 0x40000
jmp 0x45597b
mov eax, dword [0x511760]
cmp eax, dword [ebp - 8]
je 0x45597b
push eax
call fcn.0044717c
cmp eax, ebx
pop ecx
je 0x45597b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45597b
mov eax, dword [0x511764]
cmp eax, dword [ebp - 8]
je 0x45597b
push eax
call fcn.0044717c
cmp eax, ebx
pop ecx
je 0x45597b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x51175c]
call fcn.0044717c
cmp eax, ebx
pop ecx
je 0x45599b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45599d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45eee0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4c5f03
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], 0x5119e0
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], 0x5119e0
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x4e31b0
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.0045e260
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 0x45f310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c5fa9
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], 0x5119e0
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], 0x5119e0
lea ebp, [esi + 0x30]
mov dword [ebp], 0x5119e0
mov dword [esi + 0x34], 0x5119e0
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 0x45f3a0
sub eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, edi
call fcn.0045e260
mov edi, dword [esp + 0x2c]
mov eax, edi
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x45f3c0
sub eax, ecx
push eax
push edi
mov ecx, ebp
call fcn.0045e260
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 0x45f3e0
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x34]
call fcn.0045e260
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 0x461e90
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 0x461ee0
mov ax, word [esp]
cmp al, 2
jne 0x461eda
cmp ah, al
jne 0x461eda
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0043db65
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.0043db65
add esp, 0x194
ret

Function at 0x46d9b0
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 0x46d9e2
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 0x46db30
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x46db4b
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 0x46db7f
cmp eax, 2
jg 0x46db7f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4d55b0]
push 2
push edx
call fcn.0043d462
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.0043d462
add esp, 0x20
xor eax, eax
ret

Function at 0x46de90
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 0x46df0d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x46dee4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00471d90
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0046dd10
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