joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007de0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10007df2
ret 4
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
ret 4

Function at 0x10007fa0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push eax
push esi
mov ebx, ecx
push edi
call fcn.10007bd0
test eax, eax
je 0x10008028
cmp eax, 4
jne 0x10007fc8
pop edi
pop esi
pop ebx
ret 0x14
mov ecx, dword [edi]
push 0
push 0x5000
push esi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10008028
test eax, eax
je 0x10008028
cmp byte [esi], 5
jne 0x10008028
mov cl, byte [esi + 3]
cmp cl, 1
je 0x10007ff4
cmp cl, 3
jne 0x10008028
mov edx, dword [esp + 0x20]
and ecx, 0xff
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
push esi
mov ecx, ebx
call fcn.10007e10
test eax, eax
je 0x10008028
mov al, byte [esi + 1]
cmp al, 1
je 0x1000801d
cmp al, 3
jne 0x10008028
pop edi
pop esi
and eax, 0xff
pop ebx
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x14

Function at 0x100080d0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0x10008040
push edx
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x10008140
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.ini.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x118]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x11c]
push eax
push ecx
push edx
push 0x1000cb88
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x100081d0
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.ini.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x120]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x124]
push eax
mov eax, dword [esp + 0x120]
push ecx
mov ecx, dword [esp + 0x120]
push edx
push eax
push ecx
push 0x1000cb88
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x100082a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a258
push 0x10008cf2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push esi
push edi
push str.user32.dll
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebx
mov edi, eax
mov dword [ebp - 0x2c], edi
push str.GetThreadDesktop
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x3c], eax
push str.GetUserObjectInformationA
push edi
call esi
mov dword [ebp - 0x20], eax
push str.SetThreadDesktop
push edi
call esi
mov dword [ebp - 0x140], eax
push str.CloseDesktop
push edi
call esi
mov dword [ebp - 0x38], eax
push str.kernel32.dll
call ebx
mov ebx, eax
mov dword [ebp - 0x30], ebx
push str.GetCurrentThreadId
push ebx
call esi
call eax
push eax
call dword [ebp - 0x3c]
mov esi, eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0x100
lea ecx, [ebp - 0x13c]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x20]
test eax, eax
jne 0x10008359
mov dword [ebp - 0x28], eax
jmp 0x10008370
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x140]
test eax, eax
jne 0x1000836c
mov dword [ebp - 0x28], eax
jmp 0x10008370
push esi
call dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.10008396
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100083f0
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call dword [0x1000dfac]
push 0x128
mov edi, eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000846a
mov ebp, dword [esp + 0x14]
lea ebx, [esi + 0x24]
push ebp
push ebx
call fcn.100083b0
add esp, 8
test eax, eax
jne 0x10008448
mov edi, dword [esi + 8]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000846a
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10008435
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10008453
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10008560
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str.wininet.dll
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov ebp, 1
mov byte [esp + 0x17], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.InternetOpenA
push esi
call edi
push ebx
push ebx
push ebx
push ebx
push str.MSIE_6.0
call eax
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x100085d2
push str.InternetOpenUrlA
push esi
call edi
mov ecx, dword [esp + 0x428]
push 0
push closesocket
push 0
push 0
push ecx
push ebx
call eax
mov ebx, eax
test ebx, ebx
jne 0x100085ea
test esi, esi
je 0x100085dd
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov edx, dword [esp + 0x42c]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x10008683
push 0x400
lea eax, [esp + 0x28]
push 0
push eax
call dword [0x1000e03c]
add esp, 0xc
push str.InternetReadFile
push esi
call edi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push 0x400
push edx
push ebx
call eax
test ebp, ebp
je 0x1000864c
cmp word [esp + 0x24], 0x5a4d
jne 0x10008673
mov ecx, dword [esp + 0x14]
xor ebp, ebp
lea eax, [esp + 0x20]
push ebp
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x10008678
jmp 0x10008610
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.InternetCloseHandle
push esi
call edi
mov edi, eax
push ebx
call edi
mov edx, dword [esp + 0x1c]
push edx
call edi
test esi, esi
je 0x100086aa
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x100086c0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.ADVAPI32.dll
mov byte [esp + 0x18], 1
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenProcessToken
push edi
call esi
push str.AdjustTokenPrivileges
push edi
mov ebx, eax
call esi
push str.LookupPrivilegeValueA
push edi
mov dword [esp + 0x24], eax
call esi
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call ebp
push str.GetCurrentProcess
push eax
mov dword [esp + 0x28], eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x28
call eax
push eax
call ebx
test eax, eax
jne 0x1000872e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
neg edx
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 1
sbb edx, edx
push eax
and edx, 2
push ecx
push 0
mov dword [esp + 0x3c], edx
call dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x2c]
push 0x10
push edx
push 0
push eax
call dword [esp + 0x34]
push str.KERNEL32.dll
call ebp
push str.GetLastError
push eax
call esi
call eax
test eax, eax
je 0x10008785
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x1000879d
push edi
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100087a8
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x24
ret
Function at 0x4055d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x14], 0x10
jb 0x405612
mov dword [ebp - 0x10], 1
jmp 0x405619
mov dword [ebp - 0x10], 0
movzx edx, byte [ebp - 0x10]
test edx, edx
je 0x405629
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0x811c9dc5
mov dword [ebp - 8], 0
jmp 0x405648
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x18]
jae 0x40566b
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
imul ecx, dword [ebp - 4], 0x1000193
mov dword [ebp - 4], ecx
jmp 0x40563f
mov edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret 4

Function at 0x408450
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c4
call fcn.00442080
mov eax, dword [0x4b20bc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x3e76
je 0x408474
xor eax, eax
jmp 0x4084e0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10c0], ecx
cmp dword [ebp - 0x10c0], 0xfffffffc
je 0x408494
cmp dword [ebp - 0x10c0], 0xfffffffe
je 0x408494
jmp 0x4084de
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10c4], edx
mov eax, dword [ebp - 0x10c4]
add eax, 0xc
push 0x10b8
push eax
lea ecx, [ebp - 0x10bc]
push ecx
call fcn.00445f30
add esp, 0xc
cmp dword [ebp - 0x10b8], 0
jne 0x4084de
push 5
push 0
push 0
lea edx, [ebp - 0x104c]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442022
mov esp, ebp
pop ebp
ret
Function at 0x411550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov dword [ebp - 4], 0
push esi
push edi
mov dword [ebp - 8], 0
cmp dword [ebp + 8], ebx
je 0x4116a2
cmp dword [ebp + 0x14], ebx
je 0x4116a2
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x4116a2
push ebx
push ebx
push edi
call fcn.0045c9d8
add esp, 0xc
cmp eax, 0xffffffff
je 0x4116a2
mov esi, dword [ebp + 0x18]
test esi, esi
jne 0x4115db
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 8]
push edi
call fcn.0045cfb0
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x4115c1
cmp ebx, esi
je 0x411691
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4116af
pop edi
pop esi
mov dword [eax], 0xd
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
mov edi, edi
mov eax, dword [esi]
cmp eax, edi
jae 0x411641
test eax, eax
je 0x41161e
sub eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
add eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0045cfb0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x4115c1
mov edx, dword [esi]
mov ecx, edx
mov eax, dword [ebp - 4]
sub ecx, eax
cmp dword [ebp - 0xc], ecx
jne 0x4115c1
sub edx, eax
add dword [ebp - 8], edx
add ebx, dword [ebp - 0xc]
mov ecx, dword [esi + 8]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x411691
lea eax, [ecx + 1]
push 0
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.0045c9d8
add esp, 0xc
cmp eax, 0xffffffff
je 0x4115c1
cmp dword [esi + 0x10], 0
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
je 0x411651
cmp dword [esi], edi
jb 0x411687
mov eax, edi
sub eax, dword [ebp - 4]
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0045cfb0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4115c1
cmp eax, dword [ebp - 0xc]
jne 0x4115c1
add ebx, eax
cmp dword [esi], edi
jae 0x411691
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
test esi, esi
jne 0x4115e0
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ebx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4116af
mov dword [eax], 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x412dbc
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x412dbc
cmp dword [ebp + 0x10], 0
je 0x412dbc
push 0x40
call fcn.0045d4a0
mov esi, eax
add esp, 4
test esi, esi
je 0x412dbc
push 0
push 0
push edi
call fcn.0045c9d8
add esp, 0xc
cmp eax, 0xffffffff
je 0x412db3
push 0x40
push esi
push edi
call fcn.0045cfb0
add esp, 0xc
cmp eax, 0x40
jne 0x412db3
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x412d9e
mov eax, dword [esi + 0x3c]
push 0
lea ecx, [eax + 0x58]
add eax, 0x18
push eax
push edi
mov dword [ebp - 8], ecx
call fcn.0045c9d8
add esp, 0xc
cmp eax, 0xffffffff
je 0x412db3
push 4
lea eax, [ebp - 4]
push eax
push edi
call fcn.0045cfb0
add esp, 0xc
cmp eax, 4
jne 0x412db3
xor eax, eax
mov edx, 0x10b
cmp word [ebp - 4], dx
push esi
setne al
dec eax
and eax, 0xfffffff0
add eax, 0xa8
add eax, dword [esi + 0x3c]
mov dword [ebp + 8], eax
call fcn.0045d485
mov esi, dword [ebp + 8]
push 0
push esi
push edi
call fcn.0045c9d8
add esp, 0x10
cmp eax, 0xffffffff
je 0x412dbc
push 8
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.0045cfb0
add esp, 0xc
cmp eax, 8
jne 0x412dbc
push 0x14
call fcn.0045d4a0
add esp, 4
test eax, eax
je 0x412dbc
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
add ecx, 3
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
push 0x14
mov dword [ebx], eax
call fcn.0045d4a0
mov edx, eax
add esp, 4
test edx, edx
je 0x412dbc
mov dword [edx], esi
lea ecx, [esi + 7]
mov dword [edx + 4], 0
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov eax, dword [ebx]
mov dword [eax + 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x412da7
push 0x14
call fcn.0045d4a0
mov esi, eax
add esp, 4
test esi, esi
je 0x412dbc
mov ecx, dword [ebp - 0x10]
mov dword [esi], ecx
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0xc]
dec ecx
add ecx, dword [ebp - 0x10]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x412dbc
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x10], esi
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0045d485
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0045d485
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4173c4
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
sub esi, eax
sub edi, eax
lea esp, [esp]
mov ecx, dword [esi + eax]
lea eax, [eax + 4]
xor ecx, dword [eax - 4]
mov dword [edi + eax - 4], ecx
sub edx, 1
jne 0x4173b0
pop edi
pop esi
pop ebp
ret
Function at 0x417840
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x41a990
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4b20bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
mov dword [ebp - 0x60], eax
shr esi, 6
xor eax, eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], 0x67452301
mov dword [ebp - 0x54], 0xefcdab89
mov dword [ebp - 0x50], 0x98badcfe
mov dword [ebp - 0x4c], 0x10325476
push edi
test esi, esi
je 0x41a9fb
mov edi, ecx
mov dword [ebp - 0x48], esi
mov edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.0041a270
add esp, 8
add edi, 0x40
sub esi, 1
jne 0x41a9e0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x5c]
mov edi, ebx
shl eax, 6
and edi, 0x3f
add eax, ecx
push edi
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00445f30
mov eax, ebx
lea esi, [ebp - 0x44]
and eax, 0x3f
add esp, 0xc
add esi, eax
lea eax, [ebx*8]
shr ebx, 0x1d
mov dword [ebp - 0x48], eax
cmp edi, 0x38
jae 0x41aa47
mov eax, 0x38
sub eax, edi
push eax
push 0
push esi
call fcn.00446a30
add esp, 0xc
mov byte [esi], 0x80
jmp 0x41aa77
mov eax, 0x40
sub eax, edi
push eax
push 0
push esi
call fcn.00446a30
lea eax, [ebp - 0x44]
mov byte [esi], 0x80
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041a270
push 0x38
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00446a30
add esp, 0x20
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 8], ebx
push eax
call fcn.0041a270
mov ecx, dword [ebp - 0x60]
add esp, 8
mov eax, dword [ebp - 0x58]
mov dword [ecx], eax
mov eax, dword [ebp - 0x54]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00442022
mov esp, ebp
pop ebp
ret

Function at 0x41ac70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 0x1c]
push ebx
mov ebx, dword [ebp + 8]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x41ac92
mov ecx, 0x19
int 0x29
test byte [ebp - 8], 0x44
je 0x41acde
push esi
push edi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x3c]
xor edx, edx
mov ecx, edi
neg ecx
and ecx, ebx
lea esi, [edi - 1]
mov eax, esi
and esi, dword [ebp + 0xc]
and eax, ebx
dec esi
add eax, edi
add eax, esi
div edi
xor edx, edx
mov esi, eax
mov eax, dword [ebp + 0xc]
div edi
add esi, eax
je 0x41acdc
lea ecx, [ecx]
xor eax, eax
lock or dword [ecx], eax
add ecx, edi
sub esi, 1
jne 0x41acd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41acf0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x40003c]
cmp dword [eax + 0x400074], 0xd
push ebx
push esi
lea esi, [eax + 0x400000]
push edi
jbe 0x41ad4d
mov ebx, dword [esi + 0xe0]
test ebx, ebx
je 0x41ad4d
movzx eax, word [esi + 0x14]
lea ecx, [esi + 0x18]
mov ebx, dword [ebx + 0x40000c]
add ecx, eax
movzx eax, word [esi + 6]
xor edx, edx
mov dword [ebp - 4], eax
test eax, eax
je 0x41ad4d
mov esi, dword [ecx + 0xc]
cmp ebx, esi
jb 0x41ad45
mov edi, dword [ecx + 8]
lea eax, [edi + esi]
cmp ebx, eax
jb 0x41ad5d
mov eax, dword [ebp - 4]
inc edx
add ecx, 0x28
cmp edx, eax
jb 0x41ad31
mov eax, dword [ebp + 0xc]
mov dword [eax], 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x24]
lea esi, [esi + 0x400000]
test esi, esi
je 0x41ad4d
cmp dword [0x4b56d8], 0
jne 0x41ad92
mov dword [0x4b56d8], 1
test eax, eax
js 0x41ad88
mov ecx, 0x19
int 0x29
push edi
push esi
call fcn.0041ac70
add esp, 8
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41ad56
mov ecx, 0x19
int 0x29
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423b1a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x482056
Capabilities:
Set environment variable

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

Function at 0x482468
Capabilities:
Print debug messages

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

Function at 0x486c9e
Capabilities:
Read file on windows

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

Function at 0x486ca9
Capabilities:
Read file on windows

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