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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push str.SHELL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x14], edi
je 0x1004a36
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHBrowseForFolder
push edi
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1004a23
push 0xc3
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1004a23
push str.SHGetPathFromIDList
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1004a23
cmp byte [0x100aa80], bl
mov esi, 0x100aa80
jne 0x10049c0
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.USER32.dll_CharPrevA]
add eax, esi
push eax
push esi
call edi
cmp byte [eax], 0x5c
mov dword [ebp - 4], eax
jne 0x10049c0
push eax
push esi
call edi
cmp byte [eax], 0x3a
je 0x10049c0
mov eax, dword [ebp - 4]
mov byte [eax], bl
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
mov byte [edi], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x1002a76
mov dword [ebp - 0x1c], esi
call dword [ebp - 8]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1004a11
push esi
push eax
call dword [ebp - 0xc]
cmp byte [0x100aa80], bl
je 0x1004a0b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
call dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp byte [edi], bl
setne al
jmp 0x1004a4a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 0x10
push ebx
push ebx
push 0x4c1
jmp 0x1004a40
push ebx
push 0x10
push ebx
push ebx
push 0x4c2
push dword [ebp + 8]
call fcn.01003a62
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1004a51
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebx, ebx
inc ebx
push esi
mov edi, ebx
call fcn.01005fcc
test eax, eax
jne 0x1004a6b
mov eax, ebx
jmp 0x1004ac6
cmp dword [0x100ac3c], 0
jne 0x1004ab8
test byte [0x100b898], bl
jne 0x1004ab8
push 6
push 0
push 0x10039d3
push dword [0x100aa4c]
mov dword [0x100ae64], esi
push 0x7d3
push dword [0x100b4a4]
call fcn.0100433e
sub eax, 6
je 0x1004ab6
dec eax
je 0x1004acc
sub eax, 0x832
jne 0x1004ab8
mov dword [0x100ac3c], ebx
mov edi, ebx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
xor edi, edi
jmp 0x1004ac4
Function at 0x1004d72
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x100a2cc]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
push esi
je 0x1004e11
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.010030b9
test eax, eax
je 0x1004e7a
lea eax, [ebp - 0x108]
push eax
mov esi, 0x100ac44
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100b494], 0x20
je 0x1004e04
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x12c]
sub eax, ebx
je 0x1004df9
dec eax
je 0x1004df2
dec eax
je 0x1004deb
dec eax
jne 0x1004e04
push 0x1001420
jmp 0x1004dfe
push 0x1001418
jmp 0x1004dfe
push 0x1001410
jmp 0x1004dfe
push 0x1001408
push esi
call fcn.01005f34
push 0x1001271
push esi
call fcn.01005f34
jmp 0x1004e20
push dword [ebp + 8]
mov esi, 0x100ac44
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.01004006
test eax, eax
jne 0x1004e40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1004e59
mov dword [0x100b880], 1
push ebx
push dword [ebp + 0x10]
push esi
call fcn.010040b3
test eax, eax
je 0x1004e65
xor eax, eax
mov dword [0x100aa5c], ebx
inc eax
jmp 0x1004e7c
call fcn.0100369c
mov dword [0x100aa5c], eax
jmp 0x1004e7a
cmp dword [0x100b880], ebx
je 0x1004e7a
push esi
mov dword [0x100b880], ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01005e37
leave
ret 0xc
Function at 0x1004e8a
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100a2cc]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [0x100b4a4], eax
xor eax, eax
mov ecx, 0x23f
mov edi, 0x100aba0
rep stosd dword es:[edi], eax
push 0x41
mov ecx, 0xcb
mov edi, 0x100b880
rep stosd dword es:[edi], eax
pop ecx
mov edi, 0x100aa80
rep stosd dword es:[edi], eax
push 0x7f
mov esi, 0x100abb4
xor edi, edi
push esi
xor ebx, ebx
inc edi
push 0x100144c
mov dword [ebp - 0x10c], ebx
mov dword [0x100ae4c], edi
call fcn.01002b62
cmp eax, ebx
je 0x10050c0
cmp eax, 0x80
ja 0x10050c0
push ebx
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x100aa50], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
push 0x100b494
push 0x1001440
call fcn.01002b62
test eax, eax
je 0x1004f52
test byte [0x100b494], 0xc0
je 0x1004fe2
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x1001430
call fcn.01002b62
test eax, eax
jne 0x1004f71
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003a62
mov dword [0x100aa5c], 0x80070714
jmp 0x10050d0
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [0x100aa54], eax
je 0x1004fe2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1004fe2
test byte [0x100b494], 0x80
je 0x1004fb1
push ebx
push 0x10
push ebx
push esi
push 0x54b
push ebx
call fcn.01003a62
jmp 0x1004fc7
push 4
push 0x20
push ebx
push esi
push 0x524
push ebx
call fcn.01003a62
cmp eax, 6
je 0x1004fe2
push dword [0x100aa54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100aa5c], 0x800700b7
jmp 0x10050d0
push dword [ebp + 0xc]
mov dword [0x100aa60], ebx
call fcn.010031fe
test eax, eax
jne 0x1005003
push ebx
push 0x10
push ebx
push ebx
push 0x520
jmp 0x10050ca
cmp byte [0x100b89a], bl
je 0x100501a
push 0x100b89a
call fcn.01001d0e
jmp 0x10050d0
push 0xa
push 0x1001424
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x100503e
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10c], eax
cmp dword [0x100a2c4], ebx
je 0x100504c
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x100b884], ebx
jne 0x10050bc
push dword [ebp - 0x10c]
call fcn.010043aa
test eax, eax
je 0x10050d0
mov ax, word [0x100aa64]
cmp ax, di
je 0x100507a
cmp ax, 2
je 0x100507a
cmp ax, 3
jne 0x10050bc
test byte [0x100b495], 1
je 0x10050bc
test byte [0x100b898], 1
jne 0x10050bc
call fcn.010016d7
test eax, eax
jne 0x10050bc
push 0x83e
push 0x547
push 0x100180d
push ebx
push 0x7d6
push dword [0x100b4a4]
call fcn.0100433e
cmp eax, 0x83d
jne 0x10050d0
mov eax, edi
jmp 0x10050d2
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003a62
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01005e37
leave
ret 0xc
Function at 0x1005b72
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100a2cc]
push esi
xor esi, esi
cmp word [0x100b898], si
mov dword [ebp - 4], eax
jne 0x1005bb2
cmp dword [0x100b884], esi
jne 0x1005ba9
call fcn.01003f40
test eax, eax
je 0x1005bc4
cmp word [0x100b898], si
jne 0x1005bb2
call fcn.010046a7
test eax, eax
je 0x1005bc4
call fcn.01003eb9
test eax, eax
je 0x1005bc4
call fcn.010058c5
test eax, eax
jne 0x1005bcb
xor eax, eax
jmp 0x1005cd3
push ebx
push edi
push 0x105
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x1001264
lea eax, [ebp - 0x10c]
push eax
call fcn.01005f34
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
mov edi, 0x100ac44
je 0x1005c1c
push 0x10014a8
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x1005c1c
push esi
push edi
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x100b884], esi
jne 0x1005c43
cmp dword [0x100b490], esi
jne 0x1005c43
call fcn.010042df
test eax, eax
jne 0x1005c43
xor eax, eax
jmp 0x1005cd1
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x1005c6a
push esi
push 0x10
push esi
push esi
push 0x4bc
push esi
call fcn.01003a62
call fcn.0100369c
mov dword [0x100aa5c], eax
jmp 0x1005c3c
cmp dword [0x100b88c], esi
jne 0x1005c7b
call fcn.01005494
test eax, eax
je 0x1005c3c
test byte [0x100bba8], 0xc0
jne 0x1005c99
xor eax, eax
mov ax, word [0x100aa64]
push eax
call fcn.01001fae
mov dword [0x100ab84], eax
jmp 0x1005c9f
mov dword [0x100ab84], esi
cmp dword [0x100b884], esi
jne 0x1005cb8
cmp dword [0x100b490], esi
jne 0x1005cb8
call fcn.01005513
test eax, eax
je 0x1005c3c
cmp word [0x100b898], si
jne 0x1005cce
cmp dword [0x100b884], esi
jne 0x1005cce
call fcn.0100489f
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01005e37
leave
ret

Function at 0x1005d3c
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x1005d63
inc esi
mov al, byte [esi]
test al, al
je 0x1005d5c
cmp al, 0x22
jne 0x1005d51
cmp byte [esi], 0x22
jne 0x1005d74
jmp 0x1005d73
cmp al, 0x20
jle 0x1005d74
inc esi
cmp byte [esi], 0x20
jg 0x1005d67
jmp 0x1005d74
cmp al, 0x20
jg 0x1005d7a
inc esi
mov al, byte [esi]
test al, al
jne 0x1005d6f
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x1005d94
movzx eax, word [ebp - 0x14]
jmp 0x1005d97
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.01005cde
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1005e37
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a2cc]
jne 0x1005e40
ret
jmp 0x1005e45
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x100a2cc]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x100bbe4]
test eax, eax
je 0x1005e69
call eax
cmp dword [0x100bbe8], 0
je 0x1005eb0
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x100bbe8]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01005e37
add ebp, 0x2a8
leave
ret

Function at 0x1005fcc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005fdf
xor eax, eax
jmp 0x1005fe7
shr eax, 4
not eax
and eax, 1
ret 4

Function at 0x1006124
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xb4
mov eax, dword [0x100a2cc]
and dword [ebp - 0x30], 0
cmp dword [0x100a2d8], 0xfffffffe
mov dword [ebp + 0x74], eax
mov dword [ebp - 0x38], 0xc
jne 0x1006213
and dword [0x100a2d8], 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1006213
cmp dword [ebp - 0x1c], 1
jne 0x1006213
cmp dword [ebp - 0x28], 4
jne 0x1006213
cmp dword [ebp - 0x24], 0xa
jae 0x1006213
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1006213
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0
push 0x10014e4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006213
push edi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x1001271
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x34]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1006213
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.0100601e
test eax, eax
je 0x1006213
and dword [ebp - 0x30], 0x3ff
cmp dword [ebp - 0x30], 1
je 0x1006209
cmp dword [ebp - 0x30], 0xd
jne 0x1006213
mov dword [0x100a2d8], 1
mov ecx, dword [ebp + 0x74]
mov eax, dword [0x100a2d8]
call fcn.01005e37
add ebp, 0x78
leave
ret
Function at 0x1006225
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx], al
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
je 0x100625b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x100625f
xor eax, eax
jmp 0x1006275
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
leave
ret 4

Function at 0x1007528
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x1007563
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1007540
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x100757f
dec esi
je 0x1007578
dec esi
jne 0x1007584
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x4017b2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00402ee0
push ebx
push edi
xor ebx, ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1003]
mov byte [ebp - 0x1004], bl
push ebx
rep stosd dword es:[edi], eax
push 0x80
push 3
push ebx
push ebx
stosw word es:[edi], ax
push closesocket
push dword [ebp + 0xc]
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4017ff
xor eax, eax
jmp 0x401863
mov edi, dword [ebp + 0x10]
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1004]
push ebx
push eax
mov dword [ebp + 0xc], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0x1004]
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0xc], ebx
je 0x401856
push dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push eax
mov eax, dword [edi]
add eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0xc]
add esp, 0xc
add dword [edi], eax
jmp 0x401808
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x401867
Capabilities:
Create directory
Create process on windows
Extract resource via kernel32 functions
Get common file path
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
push ebx
push esi
mov esi, 0x100000
push edi
push esi
call sub.MFC42.DLL_operatornew
xor ebx, ebx
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 0xc], edi
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
push dword [eax]
push edi
call fcn.004017b2
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
cmp byte [edi], 0x4d
je 0x4018d5
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
push dword [eax]
push edi
call fcn.004017b2
add esp, 0xc
push 0x64
call esi
cmp byte [edi], 0x4d
jne 0x4018b5
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], bl
mov byte [ebp - 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x28]
push 5
push eax
call fcn.0040174f
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0x1ff
push 0x40
mov dword [ebp - 0x10], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
mov byte [ebp - 0x230], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x230]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x12c]
push str._s_s.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x12c]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
push 0x64
call esi
lea eax, [ebp - 0x18]
push ebx
push eax
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
call edi
push 0x64
call esi
lea eax, [ebp - 0x18]
push ebx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
push dword [ebp - 0xc]
call sub.MFC42.DLL_operatordelete
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x62f]
mov byte [ebp - 0x630], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x630]
push str.cmd.exe__c_ping_127.0.0.1__n_2_s___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x630]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x1f4
call esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40271c
Capabilities:
Create raw socket
Create thread
Create udp socket
Get hostname
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
push 0
push 3
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x40280f
lea eax, [ebp - 0x144]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x40280f
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
mov eax, dword [ebp + 8]
push eax
mov dword [esi + 0x10], eax
mov word [ebp - 0x1c], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
movsx eax, word [edi + 0xa]
push eax
mov eax, dword [edi + 0xc]
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x10
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40280f
push 1
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
lea eax, [ebp - 4]
push 4
push eax
push 4
push 0xffff
push dword [esi + 0xc]
mov dword [ebp - 4], ebx
call edi
lea eax, [ebp - 4]
push 4
push eax
push 2
push 0
mov dword [ebp - 4], ebx
push dword [esi + 0xc]
call edi
cmp eax, 0xffffffff
je 0x40280f
xor edi, edi
lea eax, [ebp - 0xc]
push edi
push edi
push eax
lea eax, [ebp - 0x44]
push 0x28
push eax
lea eax, [ebp - 8]
push 4
push eax
push 0x98000001
push dword [esi + 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x402817
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x402848
push edi
push edi
push esi
push 0x4026b0
push edi
push edi
mov byte [esi + 8], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x402846
push dword [esi + 0xc]
and byte [esi + 8], 0
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov dword [esi + 0xc], eax
jmp 0x402848
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40284f
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
and byte [esi + 8], 0
test eax, eax
je 0x402873
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 4], 0
mov esi, dword [esi + 0xc]
test esi, esi
je 0x402881
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
ret
Function at 0x404360
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x4043c1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x4043a4
cmp edi, 2
jb 0x4043a4
cmp byte [esi], cl
jne 0x4043a4
cmp byte [esi + 1], cl
jne 0x4043a4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x483920]
jmp 0x404375
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x483920]
test edi, edi
jne 0x404375
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x4043f0
cmp cl, 0x23
jne 0x4043d7
cmp byte [esi], cl
jne 0x4043d7
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x483920]
test cl, cl
jne 0x4043c8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x404500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x404514
mov dword [ebx], 0
mov edx, 0x487bbc
call fcn.00404400
mov esi, eax
test esi, esi
je 0x404602
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4045f8
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x4045f8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x4045f8
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x4045f8
mov eax, dword [0x49b7b8]
test eax, eax
je 0x40458c
inc dword [eax + 0xb0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x4045f8
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x4045dd
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x49b7b8]
add esp, 4
test eax, eax
je 0x4045ca
dec dword [eax + 0xb0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x4045ef
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret