joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101fe7e
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x10290b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
mov esi, ecx
jne 0x101feba
xor esi, esi
lea ecx, [ebp + 8]
call fcn.01015bce
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01008fe1
leave
ret 8
mov ecx, edi
call fcn.01016536
lea ecx, [ebp - 0x19c]
call fcn.01015d2c
lea ecx, [ebp - 0x1a0]
call fcn.01015d2c
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x19c]
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.010164f9
mov ecx, esi
call fcn.0101fa89
test eax, eax
jne 0x101ff12
lea ecx, [ebp - 0x19c]
call fcn.01016536
lea ecx, [ebp - 0x1a0]
call fcn.01016536
lea ecx, [ebp - 0x19c]
call fcn.01015a9f
test eax, eax
jne 0x1020015
push 0x80
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.01009000
mov esi, 0x114
push esi
lea eax, [ebp - 0x198]
push 0
push eax
call fcn.01009000
add esp, 0x18
lea eax, [ebp - 0x198]
push eax
mov dword [ebp - 0x198], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x188], 2
lea ecx, [ebp - 0x19c]
jne 0x101ff98
call fcn.01020ceb
push eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x10013b4
push 0x1005450
push 0x1005088
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
jmp 0x101ffde
call fcn.01020ceb
push eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x10013b4
push 0x1005448
lea ecx, [ebp + 8]
call fcn.01020ceb
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
test esi, esi
jbe 0x1020015
lea eax, [ebp - 0x84]
push 0x2c
push eax
call fcn.01021156
test eax, eax
pop ecx
pop ecx
je 0x101ffde
and word [eax], 0
test esi, esi
jbe 0x1020015
lea ecx, [ebp - 0x1a0]
call fcn.01015a9f
test eax, eax
lea eax, [ebp - 0x84]
push eax
jne 0x102000e
push dword [ebp - 0x1a0]
push 0x1004c2c
push edi
call fcn.01016426
add esp, 0x10
jmp 0x1020015
mov ecx, edi
call fcn.01015f1e
mov ecx, edi
call fcn.01015a9f
mov esi, eax
dec esi
neg esi
sbb esi, esi
lea ecx, [ebp - 0x1a0]
neg esi
call fcn.01015bce
lea ecx, [ebp - 0x19c]
call fcn.01015bce
jmp 0x101fea0

Function at 0x1020e30
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x102b390], 0
je 0x1020eb4
push edi
xor ecx, ecx
push 2
pop edx
mov eax, 0x400
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010099d0
mov edi, eax
test edi, edi
pop ecx
je 0x1020eb3
push 0x400
push edi
push dword [0x102b390]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 4]
call fcn.01015d2c
push edi
lea ecx, [ebp - 4]
call fcn.01015f1e
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 4]
call fcn.01016040
lea ecx, [ebp - 4]
call fcn.01020ceb
push eax
push dword [0x102b390]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.01008fd1
pop ecx
lea ecx, [ebp - 4]
call fcn.01015bce
pop edi
lea ecx, [ebp + 8]
call fcn.01015bce
leave
ret 4
Function at 0x1023736
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.010105e8
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x14], edx
je 0x10237be
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.010105e8
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x10237be
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
js 0x1023853
jg 0x1023797
cmp esi, ebx
jbe 0x1023853
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x10237ca
call fcn.0100c5be
mov dword [eax], 0xc
call fcn.0100c5be
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.010238f1
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x10237ea
jg 0x10237e6
cmp esi, ebx
jb 0x10237ea
mov eax, ebx
jmp 0x10237ec
mov eax, esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.01010790
add esp, 0xc
cmp eax, 0xffffffff
je 0x1023836
cdq
sub esi, eax
sbb edi, edx
js 0x102380d
jg 0x10237dc
test esi, esi
ja 0x10237dc
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.010238f1
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x10238bc
call fcn.0100c5d6
cmp dword [eax], 5
jne 0x102384b
call fcn.0100c5be
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x1023810
cmp edi, ebx
jg 0x10238c8
jl 0x102385d
cmp esi, ebx
jae 0x10238c8
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010105e8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x10237be
push dword [ebp + 8]
call fcn.01013e8c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
cmp eax, 0xffffffff
mov dword [ebp - 0xc], edx
jne 0x10238c8
call fcn.0100c5be
mov dword [eax], 0xd
call fcn.0100c5d6
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x10237be
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.010105e8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x10237be
xor eax, eax
jmp 0x10237c5
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x20202e51
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6a9f5b4e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x109c8
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push section.INIT
lea eax, [ebp - 0xc]
push eax
call edi
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x22
lea eax, [ebp - 0xc]
push eax
push 0x30
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jl 0x10a54
mov eax, dword [ebp - 4]
or dword [eax + 0x1c], 0x10
mov eax, dword [ebp - 4]
push esi
mov esi, dword [eax + 0x28]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
push 0x109a0
lea eax, [ebp - 0x14]
push eax
call edi
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov esi, eax
test esi, esi
jge 0x10a51
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, esi
jmp 0x10a53
xor eax, eax
pop esi
pop edi
leave
ret 4
Function at 0x4062cf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40dcfc]
jne 0x4062d9
repz ret
jmp fcn.00408725

Function at 0x40760e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40dcfc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004045d5
and dword [ebp - 0x14], 0
cmp dword [0x40e70c], 0
mov dword [ebp - 0x18], eax
jne 0x4076c1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407769
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407769
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40e70c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40e710], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40e714], eax
call edi
push eax
call esi
mov dword [0x40e71c], eax
test eax, eax
je 0x4076c1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40e718], eax
mov eax, dword [0x40e718]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40771a
cmp dword [0x40e71c], ecx
je 0x40771a
push eax
call esi
push dword [0x40e71c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40771a
test ebx, ebx
je 0x40771a
call edi
test eax, eax
je 0x407711
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407711
test byte [ebp - 8], 1
jne 0x40771a
or dword [ebp + 0x10], 0x200000
jmp 0x40774d
mov eax, dword [0x40e710]
cmp eax, dword [ebp - 0x18]
je 0x40774d
push eax
call esi
test eax, eax
je 0x40774d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40774d
mov eax, dword [0x40e714]
cmp eax, dword [ebp - 0x18]
je 0x40774d
push eax
call esi
test eax, eax
je 0x40774d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e70c]
call esi
test eax, eax
je 0x407769
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40776b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004062cf
leave
ret
Function at 0x40102f
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, ecx
mov ebx, 0x1388
xor ebp, ebp
mov dword [esp + 0x10], ebp
push 0x3e8
push dword [esi + 0x88]
call edi
test eax, eax
je 0x401095
cmp byte [0x4afdd1], 0
je 0x401043
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xa
jb 0x401047
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebp
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ebp, ebp
jmp 0x401047
and byte [esi + 0x8c], 0
push ebx
push dword [esi + 0x88]
call edi
test eax, eax
je 0x401095
cmp byte [esi + 0x8c], 0
jne 0x401041
cmp dword [esi + 0x14], ebp
jne 0x401041
push dword [esi + 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push ebp
push 0x12
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4010d9
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x4010f8
xor al, al
jmp 0x401112
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x401116
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret

Function at 0x40121e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
push 0x49
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x130]
mov dword [ebp - 0x134], ebx
push ebx
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x401255
xor al, al
jmp 0x4012da
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4012d8
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.00401174
pop ecx
test al, al
pop ecx
je 0x4012a0
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00401c7c
mov bl, 1
lea eax, [ebp - 0x134]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4012d8
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.00401174
pop ecx
test al, al
pop ecx
je 0x4012a0
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
jmp 0x401295
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012df
Capabilities:
Terminate process

Disassembly:
mov eax, 0x490818
call fcn.004903c0
sub esp, 0x18
mov al, byte [ebp - 0xd]
and byte [ebp - 0x1c], 0
mov byte [ebp - 0x24], al
mov al, byte [ebp - 0xd]
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x23], al
call fcn.004028b4
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 1
push eax
push 0x4ac9e0
call fcn.0040121e
pop ecx
test al, al
pop ecx
je 0x401372
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [ebp - 0x14], eax
je 0x401372
push esi
mov esi, dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
je 0x401361
push esi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401361
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x14]
call fcn.00401db1
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jne 0x40132c
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00401a51
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4033c4
Capabilities:
Set current directory

Disassembly:
mov ecx, 0x4afe00
jmp 0x4033b3
mov eax, 0x490ae7
call fcn.004903c0
sub esp, 0x110
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
call fcn.004053a0
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [ebp - 4], ebx
call fcn.00405059
mov al, byte [ebp - 0xd]
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], ecx
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00404ddb
push ebx
mov byte [ebp - 4], 3
lea ecx, [esi + 0x1c]
push ebx
mov dword [esi + 0x18], ebx
call fcn.0041b3e0
mov cl, byte [ebp - 0xd]
lea eax, [esi + 0x94]
mov byte [ebp - 4], 4
mov byte [eax], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xac]
mov byte [ebp - 4], 5
mov dword [esi + 0xa4], ebx
mov word [esi + 0xa8], bx
mov dword [ebp - 0x14], eax
mov dword [eax], 0x49a5f4
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 6
mov dword [eax], 0x49a5f0
add eax, 4
push eax
call edi
lea eax, [esi + 0xc8]
mov byte [ebp - 4], 7
mov dword [ebp - 0x14], eax
mov dword [eax], 0x49a5f4
mov byte [ebp - 4], 8
mov dword [eax], 0x49a5f0
add eax, 4
push eax
call edi
mov byte [ebp - 4], 9
mov byte [esi + 0xe4], bl
lea ecx, [esi + 0xe8]
call fcn.00405148
lea eax, [esi + 0x114]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x14], eax
mov dword [eax], 0x49a5f4
mov byte [ebp - 4], 0xb
mov dword [eax], 0x49a5f0
add eax, 4
push eax
call edi
mov byte [ebp - 4], 0xc
mov dword [esi], 0x49a5a8
lea edi, [esi + 0x1c]
mov ecx, edi
call fcn.0041b4c0
mov ecx, edi
mov dword [esi + 0x8c], eax
call fcn.0041b4c4
mov dword [esi + 0x90], eax
lea eax, [ebp - 0x11c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x11c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x403505
mov byte [eax], bl
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x408ca5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
lea eax, [ebp - 4]
push edi
push eax
xor esi, esi
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x408d53
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], 0x100
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x408d3e
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 4]
call fcn.00408ca5
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
jne 0x408d30
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x408cf3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x408d53
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
leave
ret

Function at 0x408def
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
xor ebx, ebx
push 0x400
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.004903a4
mov esi, 0x3ff
lea eax, [ebp - 0x404]
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x18
cmp dword [ebp + 0xc], ebx
je 0x408e71
lea eax, [ebp - 0x404]
push edi
push eax
call fcn.004903aa
mov edi, dword [sym.imp.MSVCRT.dll_strncat]
mov ecx, esi
sub ecx, eax
lea eax, [ebp - 0x404]
push ecx
push 0x4aca00
push eax
call edi
lea eax, [ebp - 0x404]
push eax
call fcn.004903aa
sub esi, eax
lea eax, [ebp - 0x404]
push esi
push dword [ebp + 0xc]
push eax
call edi
add esp, 0x20
pop edi
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x404]
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x408e99
xor eax, eax
jmp 0x408ec7
cmp dword [ebp + 0x10], ebx
je 0x408ebb
push dword [ebp + 0x10]
call fcn.004903aa
pop ecx
inc eax
push eax
push dword [ebp + 0x10]
push 1
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop esi
pop ebx
leave
ret

Function at 0x409628
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov byte [esi + 0x18], bl
mov ecx, dword [ebp + 8]
mov dword [esi + 0xc], ecx
lea ecx, [ebp + 8]
lea eax, [esi + 8]
push ecx
push ebx
push eax
push 0x409b51
push ebx
push ebx
mov dword [eax], esi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x409660
mov dword [esi + 4], ebx
cmp dword [esi + 4], ebx
jne 0x40966d
mov byte [esi + 0x18], 1
xor al, al
jmp 0x40966f
mov al, 1
pop esi
pop ebx
pop ebp
ret 4
Function at 0x409f5a
Capabilities:
Initialize winsock library

Disassembly:
mov ecx, 0x4affc8
jmp 0x409f50
sub esp, 0x190
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0x101
mov dword [esi], 0x49a668
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x41036f
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, ebx
call fcn.00414b43
lea eax, [ebp - 0x108]
push 0xff
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4103d7
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4103d7
push edi
xor edi, edi
mov eax, dword [eax]
mov ecx, ebx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401c7c
mov eax, dword [esi + 0xc]
add edi, 4
mov eax, dword [eax + edi]
test eax, eax
jne 0x4103b5
pop edi
xor eax, eax
pop esi
cmp eax, dword [ebx + 0xc]
pop ebx
sbb eax, eax
neg eax
leave
ret 4

Function at 0x410aff
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4ad260
push str.mp_test.dat
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x410b5b
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi + 4]
test eax, eax
je 0x410b5f
mov ecx, dword [edi + 8]
sub ecx, eax
cmp esi, ecx
jae 0x410b5f
movzx eax, byte [eax + esi]
mov dword [ebp + 8], eax
push ebx
push 1
lea eax, [ebp + 8]
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x410b53
inc esi
jmp 0x410b22
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor al, al
jmp 0x410b69
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x410b70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x4ad264
push str.mp_test.dat
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x410bec
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 1
lea eax, [ebp - 4]
push 4
push eax
call esi
mov edi, dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x410bd1
mov al, byte [ebp - 4]
mov ecx, edi
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
call fcn.00412d68
push ebx
push 1
lea eax, [ebp - 4]
push 4
push eax
call esi
add esp, 0x10
test eax, eax
jne 0x410bae
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [edi + 4]
pop ecx
test eax, eax
pop esi
je 0x410bec
mov ecx, dword [edi + 8]
sub ecx, eax
je 0x410bec
mov al, 1
jmp 0x410bee
xor al, al
pop edi
pop ebx
leave
ret 4