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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x24
call fcn.00433c0b
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
je 0x432bec
lea ecx, [esi + 8]
call fcn.0041e95d
jmp 0x432bee
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 0x432b9d
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.00431e30
pop edi
pop esi
leave
ret 8

Function at 0x432d8b
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 0x432e3e
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 0x432e3e
push 0x206
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.0043db40
add esp, 0xc
cmp dword [ebx + 0x34], 8
jb 0x432e0f
mov ebx, dword [ebx + 0x20]
jmp 0x432e12
add ebx, 0x20
push ebx
lea eax, [ebp - 0x78]
push 0x4ca39c
push eax
call fcn.0043ec44
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.0043db25
add ebp, 0x194
leave
ret
Function at 0x432e7e
Capabilities:
Set registry value

Disassembly:
push 0x620
mov eax, 0x4c56b6
call fcn.0043e71b
xor edi, edi
inc edi
push 0x4e3194
lea ecx, [ebp + 0x24]
mov dword [ebp - 4], edi
call fcn.0040d330
xor esi, esi
test eax, eax
jne 0x432eb7
push esi
push edi
lea ecx, [ebp + 8]
call fcn.004017a0
push esi
push edi
jmp 0x432fc2
mov edi, 0x206
push edi
lea eax, [ebp - 0x626]
push esi
push eax
mov word [ebp - 0x628], si
call fcn.0043db40
push edi
lea eax, [ebp - 0x41e]
push esi
push eax
mov word [ebp - 0x420], si
call fcn.0043db40
mov eax, dword [ebp + 0x28]
add esp, 0x18
cmp dword [ebp + 0x3c], 8
jae 0x432ef5
lea eax, [ebp + 0x28]
push eax
mov ebx, 0x4ca39c
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.0043ec44
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp dword [ebp + 0x20], 8
jae 0x432f17
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.0043ec44
push edi
lea eax, [ebp - 0x216]
push esi
push eax
mov word [ebp - 0x218], si
call fcn.0043db40
lea eax, [ebp - 0x218]
push 0x4ca120
push eax
call fcn.0043dd0e
lea eax, [ebp - 0x218]
push str.WnIE
push eax
call fcn.0043dce4
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 0x432fa8
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.0043e79e
ret 0x38

Function at 0x43302c
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.0043db40
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, 0x4e3174
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.0043db25
leave
ret
Function at 0x43330b
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, 0x4c5722
call fcn.0043e6b2
mov ebx, dword [ebp + 0x41c]
xor esi, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], esi
mov edi, 0x4e3194
push edi
lea ecx, [ebp + 0x420]
mov dword [ebp - 4], esi
call fcn.0040d330
test eax, eax
jne 0x433372
push edi
mov ecx, ebx
call fcn.004015d0
push esi
push 1
lea ecx, [ebp + 0x420]
call fcn.004017a0
mov eax, ebx
jmp 0x43344d
push 0x206
lea eax, [ebp + 0x20a]
push esi
push eax
mov word [ebp + 0x208], si
call fcn.0043db40
mov eax, dword [ebp + 0x424]
add esp, 0xc
cmp dword [ebp + 0x438], 8
jae 0x4333a3
lea eax, [ebp + 0x424]
push eax
lea eax, [ebp + 0x208]
push 0x4ca39c
push eax
call fcn.0043ec44
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 0x4333e1
push edi
jmp 0x433434
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push esi
push str.WnIE
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x4333de
push 0x206
lea eax, [ebp + 2]
push esi
push eax
mov word [ebp], si
call fcn.0043db40
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.0043db25
add ebp, 0x414
leave
ret 0x20
Function at 0x43d010
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 0x43d04d
cmp dword [ebp + 0x14], edi
je 0x43d04d
cmp ecx, edi
jne 0x43d054
call fcn.0043cdd8
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043dfde
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43d068
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43d089
cmp ebx, 0xffffffff
je 0x43d078
push ebx
push edi
push ecx
call fcn.0043db40
add esp, 0xc
cmp esi, edi
je 0x43d035
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43d035
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43d0a5
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43d0ac
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43d19d
test word [esi + 0xc], 0x10c
je 0x43d100
mov eax, dword [esi + 4]
test eax, eax
je 0x43d100
jl 0x43d1fe
cmp ebx, eax
mov edi, ebx
jb 0x43d0d1
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43d1a5
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043e0ab
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 0x43d195
cmp ebx, dword [ebp - 0xc]
jb 0x43d16d
cmp dword [ebp - 0xc], 0
je 0x43d12a
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43d11f
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43d126
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43d135
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43d135
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43d1d1
push eax
push dword [ebp - 8]
push esi
call fcn.00447ed8
pop ecx
push eax
call fcn.004487ec
add esp, 0xc
test eax, eax
je 0x43d210
cmp eax, 0xffffffff
je 0x43d1fe
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43d195
push esi
call fcn.0044810b
cmp eax, 0xffffffff
pop ecx
je 0x43d202
cmp dword [ebp - 4], 0
je 0x43d1d1
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 0x43d0b4
mov eax, dword [ebp + 0x14]
jmp 0x43d04f
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43d1bc
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043db40
add esp, 0xc
call fcn.0043cdd8
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43d045
cmp dword [ebp + 0xc], 0xffffffff
je 0x43d1e7
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043db40
add esp, 0xc
call fcn.0043cdd8
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43d045
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43d04f
or dword [esi + 0xc], 0x10
jmp 0x43d202
Function at 0x43db25
Capabilities:
Terminate process

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

Function at 0x446e54
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 0x446e6f
inc edi
cmp edi, 0x17
jb 0x446e60
cmp edi, 0x17
jae 0x446fef
push ebp
push 3
call fcn.00453529
cmp eax, 1
pop ecx
je 0x446fbb
push 3
call fcn.00453529
test eax, eax
pop ecx
jne 0x446ea3
cmp dword [0x5097a0], 1
je 0x446fbb
cmp ebx, 0xfc
je 0x446fee
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x510d60
push ebp
call fcn.0044b175
add esp, 0xc
test eax, eax
je 0x446ed9
push esi
push esi
push esi
push esi
push esi
call fcn.0043dee2
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 0x446f1d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044b175
add esp, 0xc
test eax, eax
je 0x446f1d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043dee2
add esp, 0x14
push esi
call fcn.0043e020
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x446f62
push esi
call fcn.0043e020
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x511074
push 0x4d184c
sub ecx, eax
push ecx
push eax
call fcn.00451f39
add esp, 0x14
test eax, eax
je 0x446f62
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043dee2
add esp, 0x14
jmp 0x446f64
xor esi, esi
push 0x4d1df8
push ebx
push ebp
call fcn.00451ec8
add esp, 0xc
test eax, eax
je 0x446f84
push esi
push esi
push esi
push esi
push esi
call fcn.0043dee2
add esp, 0x14
push dword [edi*8 + 0x5098d4]
push ebx
push ebp
call fcn.00451ec8
add esp, 0xc
test eax, eax
je 0x446fa6
push esi
push esi
push esi
push esi
push esi
call fcn.0043dee2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00455744
add esp, 0xc
jmp 0x446fee
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x446fee
cmp ebp, 0xffffffff
je 0x446fee
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5098d4]
push dword [esi]
call fcn.0043e020
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 0x453172
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00447133
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 0x453248
push 0x4ce50c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x453328
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4d31ec
push edi
call esi
cmp eax, ebx
je 0x453328
push eax
call fcn.004470c5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5114f0], eax
call esi
push eax
call fcn.004470c5
mov dword [esp], 0x4d31c8
push edi
mov dword [0x5114f4], eax
call esi
push eax
call fcn.004470c5
mov dword [0x5114f8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00445e0c
test eax, eax
pop ecx
pop ecx
je 0x453216
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043dee2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x453248
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.004470c5
cmp eax, ebx
pop ecx
mov dword [0x511500], eax
je 0x453248
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004470c5
pop ecx
mov dword [0x5114fc], eax
mov eax, dword [0x5114fc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4532cd
cmp dword [0x511500], ecx
je 0x4532cd
push eax
call fcn.0044713c
push dword [0x511500]
mov esi, eax
call fcn.0044713c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4532cd
cmp edi, ebx
je 0x4532cd
call esi
cmp eax, ebx
je 0x45329a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45329a
test byte [ebp - 0x18], 1
jne 0x4532cd
lea eax, [ebp - 0x10]
push eax
call fcn.00445e43
test eax, eax
pop ecx
je 0x4532b5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043dee2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4532c4
or dword [ebp + 0x10], 0x200000
jmp 0x453308
or dword [ebp + 0x10], 0x40000
jmp 0x453308
mov eax, dword [0x5114f4]
cmp eax, dword [ebp - 8]
je 0x453308
push eax
call fcn.0044713c
cmp eax, ebx
pop ecx
je 0x453308
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x453308
mov eax, dword [0x5114f8]
cmp eax, dword [ebp - 8]
je 0x453308
push eax
call fcn.0044713c
cmp eax, ebx
pop ecx
je 0x453308
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5114f0]
call fcn.0044713c
cmp eax, ebx
pop ecx
je 0x453328
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45332a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x455744
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00447133
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 0x45581a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4558fa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4558fa
push eax
call fcn.004470c5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x511724], eax
call esi
push eax
call fcn.004470c5
mov dword [esp], 0x4d31c8
push edi
mov dword [0x511728], eax
call esi
push eax
call fcn.004470c5
mov dword [0x51172c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00445e0c
test eax, eax
pop ecx
pop ecx
je 0x4557e8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043dee2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45581a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004470c5
cmp eax, ebx
pop ecx
mov dword [0x511734], eax
je 0x45581a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004470c5
pop ecx
mov dword [0x511730], eax
mov eax, dword [0x511730]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45589f
cmp dword [0x511734], ecx
je 0x45589f
push eax
call fcn.0044713c
push dword [0x511734]
mov esi, eax
call fcn.0044713c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45589f
cmp edi, ebx
je 0x45589f
call esi
cmp eax, ebx
je 0x45586c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45586c
test byte [ebp - 0x18], 1
jne 0x45589f
lea eax, [ebp - 0x10]
push eax
call fcn.00445e43
test eax, eax
pop ecx
je 0x455887
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043dee2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x455896
or dword [ebp + 0x10], 0x200000
jmp 0x4558da
or dword [ebp + 0x10], 0x40000
jmp 0x4558da
mov eax, dword [0x511728]
cmp eax, dword [ebp - 8]
je 0x4558da
push eax
call fcn.0044713c
cmp eax, ebx
pop ecx
je 0x4558da
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4558da
mov eax, dword [0x51172c]
cmp eax, dword [ebp - 8]
je 0x4558da
push eax
call fcn.0044713c
cmp eax, ebx
pop ecx
je 0x4558da
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x511724]
call fcn.0044713c
cmp eax, ebx
pop ecx
je 0x4558fa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4558fc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45eea0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4c5ea3
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 0x4e3170
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.0045e220
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 0x45f2c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c5f79
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 0x45f350
sub eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, edi
call fcn.0045e220
mov edi, dword [esp + 0x2c]
mov eax, edi
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x45f370
sub eax, ecx
push eax
push edi
mov ecx, ebp
call fcn.0045e220
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 0x45f390
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x34]
call fcn.0045e220
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 0x461e50
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 0x461ea0
mov ax, word [esp]
cmp al, 2
jne 0x461e9a
cmp ah, al
jne 0x461e9a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0043db25
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.0043db25
add esp, 0x194
ret

Function at 0x46d980
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 0x46d9b2
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 0x46db00
Capabilities:
Write file on windows

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

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