joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42866e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a31d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x4a49b0]
test al, al
jne 0x428707
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004332a0
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4286fe
lea eax, [ebp - 0x20c]
push eax
call fcn.00442e18
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.00435403
pop ecx
pop ecx
test eax, eax
jne 0x4286f6
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.00435403
pop ecx
pop ecx
test eax, eax
je 0x4286fe
mov byte [0x4a49b0], bl
jmp 0x428704
mov bl, byte [0x4a49b0]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415b8c
mov esp, ebp
pop ebp
ret
Function at 0x4291e3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a31d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.004332a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x17
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42924e
lea eax, [ebp - 0x20c]
push 0x49b3f8
push eax
call fcn.00442b9c
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00428715
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415b8c
mov esp, ebp
pop ebp
ret 4

Function at 0x4292ae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push str.cd280fea343ccc260f0b1abca33fd2f7
mov dword [ebp - 4], esi
call fcn.00442ab0
mov edi, dword [ebp + 0xc]
mov edx, eax
mov ebx, dword [ebp + 8]
pop ecx
mov ecx, esi
test edi, edi
je 0x4292e9
mov al, byte [esi + str.cd280fea343ccc260f0b1abca33fd2f7]
xor byte [ecx + ebx], al
inc esi
xor eax, eax
cmp esi, edx
cmovge esi, eax
inc ecx
cmp ecx, edi
jb 0x4292d3
lea eax, [ebp - 4]
push eax
push edi
push ebx
call fcn.00401090
test eax, eax
je 0x42930b
mov edx, dword [ebp - 4]
test edx, edx
je 0x42930b
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
jmp 0x429315
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4296dc
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0x8c
mov eax, 0x483f0e
call fcn.00455282
mov ebx, dword [ebp + 0x20]
xor edi, edi
mov dword [ebp - 0x14], 7
push edi
xor eax, eax
mov dword [ebp - 4], edi
push 0x49b404
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
call fcn.00407570
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0042a459
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov esi, edi
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4297a7
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push edi
cmovae eax, dword [ebp + 8]
push 0x80
push 4
push edi
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4297a3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebx], eax
call fcn.00415b9d
mov esi, eax
pop ecx
test esi, esi
je 0x4297a3
push dword [ebx]
push 0
push esi
call fcn.004332a0
add esp, 0xc
lea eax, [ebp - 0x98]
push 0
push eax
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x4297a7
xor edi, edi
mov esi, edi
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.004074b0
push edi
push 1
lea ecx, [ebp + 8]
call fcn.004074b0
mov eax, esi
call fcn.0045523d
ret
Function at 0x4297c5
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xc8
mov eax, 0x483f56
call fcn.00455282
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xd0], ebx
push ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x49b404
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.00407570
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0042a459
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x429939
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ebx
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push ebx
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x429863
push 0x49b404
mov ecx, esi
call fcn.00407440
jmp 0x429944
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc8], eax
inc eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.00415b9d
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4298a2
push 0x49b404
mov ecx, esi
call fcn.00407440
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004074b0
push ebx
jmp 0x429950
push dword [ebp - 0xcc]
push 0
push ebx
call fcn.004332a0
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0
push eax
push dword [ebp - 0xc8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
push ebx
call fcn.0042aea6
push ebx
call fcn.00415ba6
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0042a6f4
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0041b782
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.0041a84e
cmp dword [ebp - 0x30], ebx
jbe 0x42992e
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407790
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004074b0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00407c40
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004074b0
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.004074b0
mov eax, esi
call fcn.0045523d
ret

Function at 0x42a6cd
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x42b4b5
Capabilities:
Check if file exists

Disassembly:
push 0x94
mov eax, 0x4841ec
call fcn.00455282
mov edi, ecx
mov eax, dword [ebp + 0x10]
lea ebx, [edi + 0x10]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0041b782
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0041ac89
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0041ba6e
add esp, 0x18
mov esi, dword [edi]
mov byte [ebp - 4], 2
jmp 0x42b54f
cmp dword [esi + 0x14], 0x10
jb 0x42b521
mov eax, dword [esi]
jmp 0x42b523
mov eax, esi
push eax
lea ecx, [ebp - 0x40]
call fcn.0040f990
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.0042458b
neg eax
lea ecx, [ebp - 0x40]
push 0
sbb al, al
push 1
add al, 1
jne 0x42b587
call fcn.0041a84e
add esi, 0x18
cmp esi, dword [edi + 4]
jne 0x42b517
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.0041a84e
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.004074b0
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.004074b0
mov eax, esi
call fcn.0045523d
ret 0xc
call fcn.0041a84e
cmp dword [ebx + 0x14], 0x10
jb 0x42b596
mov eax, dword [ebx]
jmp 0x42b598
mov eax, ebx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040f990
mov esi, dword [ebp - 0x94]
lea eax, [ebp - 0x40]
push eax
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.0042b2bb
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.0041a84e
and dword [ebp - 0x90], 0
cmp dword [ebp + 0xc], 0
je 0x42b639
cmp dword [edi + 0xb0], 0
je 0x42b65a
push 1
lea eax, [ebp - 0x28]
push eax
sub esp, 0x18
mov eax, esp
push ebx
push eax
call fcn.0041b782
pop ecx
pop ecx
mov ecx, dword [edi + 0xb0]
push esi
call fcn.0041bf48
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b651
lea eax, [ebp - 0x90]
push eax
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00407cc0
call fcn.004296dc
add esp, 0x1c
mov dword [edi + 0x64], eax
jmp 0x42b651
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.0041ab0d
mov ecx, edi
call fcn.0042b133
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x42b65e
xor esi, esi
jmp 0x42b6d7
and dword [ebp - 0xa0], 0
lea ecx, [ebp - 0x89]
and dword [ebp - 0x9c], 0
call fcn.00407b70
lea eax, [edi + 0x40]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x90]
lea ecx, [ebp - 0x89]
push dword [edi + 0x64]
call fcn.004306f6
cmp dword [ebp - 0xa0], 0
je 0x42b6ca
cmp dword [ebp - 0x9c], 0
je 0x42b6ca
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
call fcn.00430469
pop ecx
pop ecx
mov esi, eax
jmp 0x42b6cc
xor esi, esi
lea ecx, [ebp - 0x89]
call fcn.00429970
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004074b0
jmp 0x42b556
Function at 0x42bcc7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [eax + 0x210]
mov esi, dword [edi]
mov dword [ebp - 8], edi
cmp esi, dword [eax + 0x214]
je 0x42bd94
lea edi, [esi + 0x28]
lea ecx, [ebx + 0xa8]
mov dword [ebp + 8], edi
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x485ff4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub edi, 0xffffff80
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x485ff4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x485ff4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x485ff4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx + 0xa8]
push edi
push eax
call fcn.00443110
mov edi, dword [ebp + 8]
pop ecx
pop ecx
test eax, eax
jne 0x42bd70
lea eax, [ebx + 0x28]
push edi
push eax
call fcn.00443110
pop ecx
pop ecx
test eax, eax
je 0x42bdb1
mov eax, 0x1b0
lea ecx, [ebx + 0xa8]
add edi, eax
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], edi
cmp esi, dword [eax + 0x214]
jne 0x42bcfa
mov edi, dword [ebp - 8]
lea eax, [ebx + 0xa8]
push eax
call fcn.00442ab0
pop ecx
test eax, eax
je 0x42bdb1
push ebx
mov ecx, edi
call fcn.0042c6f3
mov al, 1
jmp 0x42bdb3
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42c636
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4a31d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, 0x114
push edi
push ebx
xor edi, edi
mov eax, dword [esi + 0x210]
mov dword [esi + 0x214], eax
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.004332a0
add esp, 0xc
mov dword [ebp - 0x118], ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x42c697
mov ecx, esi
call fcn.0042c08d
jmp 0x42c6ac
mov ebx, edi
test edi, edi
jne 0x42c6ac
mov ecx, esi
call fcn.0042bf68
inc ebx
mov edi, eax
cmp ebx, 0xa
jl 0x42c699
mov eax, dword [esi + 0x214]
mov ecx, 0x1b0
sub eax, dword [esi + 0x210]
cdq
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415b8c
mov esp, ebp
pop ebp
ret

Function at 0x42fa7a
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push str.kernel32.dll
mov esi, ecx
call ebx
mov dword [esi], eax
test eax, eax
je 0x42fafa
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4882e4
push eax
call edi
push 0x4894c0
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x42faf9
mov ebx, str.Wow64RevertWow64FsRedirection
push ebx
push eax
call edi
push ebx
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
Function at 0x42fb56
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.00415bb0
mov eax, dword [0x4a31d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x61c]
push esi
xor edi, edi
push edi
push eax
call fcn.004332a0
push str.C:log_
mov ebx, 0x104
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.00443d9a
push 0x800
lea eax, [ebp - 0x1028]
push edi
push eax
call fcn.004332a0
push 0x4853f0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.log
push eax
call fcn.0042fb1a
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.004332a0
add esp, 0x40
lea eax, [ebp - 0x20c]
push esi
push edi
push eax
call fcn.004332a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004333fa
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x42fd98
lea eax, [ebp - 0x20c]
push eax
call fcn.00442c2f
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.00443d9a
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.0042fb1a
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1028]
push 0x3ff
push 0x400
push eax
call fcn.004087a0
push edi
call fcn.0043a494
mov dword [ebp - 0x2038], eax
lea eax, [ebp - 0x2038]
push eax
mov dword [ebp - 0x2034], edx
call fcn.0044362d
add esp, 0x40
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x1028]
push ecx
push eax
push dword [esi]
mov eax, dword [esi + 0x10]
push dword [esi + 4]
inc eax
push dword [esi + 8]
push dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x2028]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.0042fb38
xor eax, eax
add esp, 0x28
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x414]
push eax
call ebx
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x489524
push eax
cmovne edi, ebx
call fcn.0043ce48
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42fd98
test edi, edi
jne 0x42fd3e
push esi
push 2
lea eax, [ebp - 0x2030]
mov dword [ebp - 0x2030], 0xfeff
push ebx
push eax
call fcn.004439a1
add esp, 0x10
lea eax, [ebp - 0x2028]
push eax
call fcn.00442c2f
push esi
add eax, eax
push eax
lea eax, [ebp - 0x2028]
push ebx
push eax
call fcn.004439a1
push esi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xd
push ebx
push eax
call fcn.004439a1
push esi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xa
push ebx
push eax
call fcn.004439a1
push esi
call fcn.0043cc46
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415b8c
mov esp, ebp
pop ebp
ret
Function at 0x43150f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a31d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x4315a4
lea ecx, [eax + 0x80]
add eax, 0x100
dec edi
mov dword [ebp - 0x14], ecx
shr edi, 3
inc edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
mov edx, ebx
mov ecx, esi
push 8
sub edx, esi
pop edi
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x431554
push 8
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00432d20
push esi
push esi
push dword [ebp - 0x14]
call fcn.004307f5
mov edx, dword [ebp - 0x18]
add esp, 0x18
xor ecx, ecx
mov al, byte [edx + ecx]
xor byte [esi + ecx], al
inc ecx
cmp ecx, 8
jl 0x43157d
push 8
lea eax, [ebp - 0xc]
push eax
push edx
call fcn.00432d20
add esp, 0xc
add ebx, 8
add esi, 8
sub dword [ebp - 0x10], 1
jne 0x43154b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415b8c
mov esp, ebp
pop ebp
ret

Function at 0x448364
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00448024

Function at 0x44cf5e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044cddd

Function at 0x4562f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4a31d8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x456340
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x45633a
shr eax, 8
cmp al, 2
jne 0x45633a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415b8c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.00415b8c
mov esp, ebp
pop ebp
ret
Function at 0x4580c0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x4a3c40]
mov esi, dword [ebp + 8]
mov edi, eax
add esp, 8
mov ebx, 8
mov dword [esi + 0x3bc], edi
test edi, edi
je 0x45819c
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 0x10]
push ecx
push dword [ebp + 0xc]
mov dword [esi + 0x3ac], ecx
mov dword [esi + 0x3b4], 0
mov dword [esi + 0x3b8], 0
mov dword [esi + 0x3b0], 0
push eax
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0
call fcn.004581d0
add esp, 0x10
test eax, eax
je 0x45819c
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x458154
push eax
call dword [0x4a3c34]
add esp, 4
mov dword [esi + 0x3a8], 0
push dword [ebp + 0xc]
call dword [0x4a3c3c]
add esp, 4
mov dword [esi + 0x3a8], eax
test eax, eax
je 0x45819c
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x45819c
lea eax, [edi + 0x10]
push eax
push 0x458030
call fcn.00466790
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x4581b9
call fcn.004446a6
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.00457f40
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x460dbe
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x460d8e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.00465290
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.00460a20
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x856c], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x460fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x460fc9
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x460fff
push dword [esi + 0xf0]
lea eax, [eax + eax*2]
push 1
add eax, 0x4920fc
push 2
push eax
call fcn.004439a1
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004439a1
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x461190
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x530]
cmp ecx, 0xffffffff
je 0x4611eb
mov eax, dword [eax + 0x524]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4611eb
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4611b9
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
je 0x4611cf
or eax, 0xffffffff
pop esi
pop ebp
ret
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
or ecx, 0xffffffff
test eax, eax
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4a31d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x19c], 0
mov ebx, dword [edi]
jne 0x461543
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x46144e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00465290
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00460a20
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415b8c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x80
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4614a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00465290
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00460a20
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415b8c
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00461940
add esp, 0xc
test eax, eax
jne 0x4614f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00465290
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00460a20
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415b8c
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00461940
add esp, 0xc
test eax, eax
jne 0x461543
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00465290
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00460a20
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415b8c
mov esp, ebp
pop ebp
ret
push edi
call fcn.004611f0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00415b8c
mov esp, ebp
pop ebp
ret