joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c2dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and word [ebp - 0x20c], 0
push ebx
push esi
push edi
push 0x208
mov edi, eax
lea eax, [ebp - 0x20a]
push 0
push eax
call sub.msvcrt.dll_memset
lea esi, [ebp - 0x20c]
call fcn.004069b8
mov eax, esi
push eax
call sub.msvcrt.dll_wcslen
mov esi, str.oui.txt
push esi
mov ebx, eax
call sub.msvcrt.dll_wcslen
add eax, ebx
add esp, 0x14
cmp eax, 0x104
jge 0x40c342
lea eax, [ebp + ebx*2 - 0x20c]
push esi
push eax
call sub.msvcrt.dll_wcscat
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.00406977
test eax, eax
pop ecx
je 0x40c367
lea eax, [ebp - 0x20c]
push eax
mov eax, edi
call fcn.0040c3b4
mov esi, eax
test esi, esi
jne 0x40c3ad
push 0x4157a4
push 0x70
push 0
mov dword [edi], 1
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x40c396
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x40c396
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x40c398
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
mov dword [edi + 4], eax
mov esi, ecx
test esi, esi
je 0x40c3ad
call fcn.0040c175
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40c3b4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push dword [ebp + 8]
mov esi, eax
call fcn.00406354
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x40c41b
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
test edi, edi
jbe 0x40c413
call fcn.0040c06d
lea eax, [edi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push edi
push eax
push ebx
mov dword [esi + 4], eax
call fcn.0040717f
mov eax, dword [esi + 4]
mov byte [edi + eax], 0
add esp, 0x10
mov edi, esi
call fcn.0040c175
xor eax, eax
inc eax
mov dword [esi + 0x10], eax
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4

Function at 0x40d38f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
and word [ebp - 0x248], 0
push 0x208
lea eax, [ebp - 0x246]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x248]
push eax
call fcn.004069a6
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x248]
mov dword [ebp - 0x2c], eax
add esp, 0x1c
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.RunAs
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x28], str._RestartService
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
and dword [esi + 0x738], 0
mov dword [esi + 0x734], 1
leave
ret
Function at 0x40e1d1
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov esi, eax
call fcn.0040cbc8
test eax, eax
je 0x40e1f4
lea edi, [esi + 0x6e8]
call fcn.00406241
jmp 0x40e259
lea edi, [ebp - 0x208]
call fcn.0040682d
push 1
push 1
push 2
mov eax, edi
push eax
mov eax, esi
call fcn.0040c59f
push esi
call fcn.0040e06e
test eax, eax
je 0x40e259
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40e234
mov eax, edi
push eax
call fcn.0040659e
pop ecx
jmp 0x40e23a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40e24c
push dword [esi + 0x208]
mov ecx, eax
call fcn.004063cd
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop edi
pop esi
leave
ret
Function at 0x40e729
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa54
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x278], edi
jne 0x40e971
push 0x208
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x210]
add esp, 0xc
push eax
call fcn.004069a6
pop ecx
lea eax, [ebp - 0x210]
push 0x2e
push eax
call sub.msvcrt.dll_wcsrchr
cmp eax, edi
pop ecx
pop ecx
je 0x40e786
mov word [eax], di
lea eax, [ebp - 0x210]
push str..cfg
push eax
call sub.msvcrt.dll_wcscat
mov esi, dword [ebx + 0x834]
pop ecx
pop ecx
push str._cfg
call fcn.00407eef
cmp eax, edi
jl 0x40e891
mov esi, 0x104
push esi
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [eax + 1]
mov eax, dword [ebx + 0x834]
call fcn.00407edf
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push 0x5c
push eax
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
jne 0x40e891
push 0x208
lea eax, [ebp - 0x83e]
push edi
push eax
mov word [ebp - 0x840], di
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x208
lea eax, [ebp - 0xa4e]
push edi
push eax
mov word [ebp - 0xa50], di
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x840]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
lea eax, [ebp - 0x840]
push eax
call sub.msvcrt.dll_wcslen
mov esi, eax
pop ecx
lea eax, [ebp - 0x210]
push eax
call sub.msvcrt.dll_wcslen
lea eax, [esi + eax + 1]
cmp eax, 0x104
pop ecx
jae 0x40e875
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0xa50]
call fcn.00406b16
pop ecx
pop ecx
jmp 0x40e87c
mov word [ebp - 0xa50], di
lea eax, [ebp - 0xa50]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x628]
push eax
mov dword [ebp - 0x630], 0x415e1c
mov word [ebp - 0x628], di
mov word [ebp - 0x41e], di
mov dword [ebp - 0x62c], esi
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
lea eax, [ebp - 0x630]
call fcn.00411dce
cmp esi, edi
je 0x40e907
push edi
push edi
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebx + 0x6e0]
mov ecx, dword [ebx + 0x698]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0x18], eax
mov eax, dword [ebx + 0x698]
lea esi, [ebp - 0x630]
call fcn.00401f2e
mov eax, ebx
call fcn.00401b07
lea eax, [ebx + 0x75c]
mov edi, esi
call fcn.00411a1b
mov ebx, dword [ebx + 0x69c]
push str.Sort
push str.Columns
call fcn.00409309
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x6a0]
push str.SummarySort
push str.SummaryColumns
call fcn.00409309
cmp dword [ebp + 0xc], 0
jne 0x40e971
mov eax, dword [esi + 0x698]
mov ecx, dword [esi + 0x6e0]
mov eax, dword [eax + 0x18]
mov dword [ecx + 0xc], eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40edbc
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 0x698]
mov eax, dword [eax + 0x20]
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffb
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
add eax, 5
push eax
mov eax, dword [esi + 0x69c]
push dword [eax + 0x2a8]
call edi
mov eax, dword [esi + 0x698]
cmp dword [eax + 0x30], 0
je 0x40ee03
mov eax, dword [eax + 0x20]
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 5
push eax
jmp 0x40ee05
push 0
push dword [esi + 0x6e8]
call edi
mov eax, dword [esi + 0x698]
mov eax, dword [eax + 0x20]
dec eax
neg eax
sbb eax, eax
and eax, 5
push eax
mov eax, dword [esi + 0x6a0]
push dword [eax + 0x2a8]
call edi
pop edi
ret
Function at 0x411ab0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.00413150
cmp dword [ebp + 8], 0
je 0x411b15
test esi, esi
je 0x411b03
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x411b03
and word [ebp - 0x20000], 0
push esi
push str.__s_
lea eax, [ebp - 0x20000]
push 0xfffe
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20000]
push eax
jmp 0x411b07
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
leave
ret

Function at 0x411b2d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.00413150
push esi
push edi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
mov edi, ecx
push eax
je 0x411b8c
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.004071bd
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
mov esi, eax
jmp 0x411bcd
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x4144f0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea edi, [ebp - 0x4004]
neg esi
call fcn.00407246
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x411bd3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x411bf1
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00411a63
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret

Function at 0x411c1e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411c57
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x411c53
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret
Function at 0x411f88
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x412063
push str.advapi32.dll
call fcn.00407831
cmp eax, ebx
pop ecx
mov dword [esi], eax
je 0x412063
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.OpenSCManagerW
push eax
call edi
push str.OpenServiceW
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.ChangeServiceConfigW
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.CloseServiceHandle
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.QueryServiceConfigW
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.QueryServiceConfig2W
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.ControlService
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.EnumServicesStatusW
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.EnumServicesStatusExW
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.StartServiceW
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.QueryServiceStatus
push dword [esi]
mov dword [esi + 0x28], eax
call edi
cmp dword [esi + 4], ebx
mov dword [esi + 0x2c], eax
pop edi
je 0x41205f
cmp dword [esi + 8], ebx
je 0x41205f
cmp dword [esi + 0xc], ebx
je 0x41205f
cmp dword [esi + 0x10], ebx
je 0x41205f
cmp dword [esi + 0x14], ebx
je 0x41205f
cmp dword [esi + 0x1c], ebx
je 0x41205f
cmp dword [esi + 0x20], ebx
je 0x41205f
cmp dword [esi + 0x28], ebx
je 0x41205f
cmp eax, ebx
jne 0x412063
xor eax, eax
pop ebx
ret
xor eax, eax
inc eax
pop ebx
ret

Function at 0x4121f6
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push edi
call fcn.004121c7
xor edi, edi
cmp dword [0x419820], edi
je 0x412221
call fcn.00406ae1
push edi
push 0x10
push ebx
push edi
call dword [0x419820]
jmp 0x41229e
push 0x206
lea eax, [ebp - 0x24a]
push edi
push eax
mov word [ebp - 0x24c], di
call sub.msvcrt.dll_memset
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.00411c04
add esp, 0x18
cmp eax, edi
jne 0x412287
push esi
lea eax, [ebp - 0x44]
push str.Desktop
push eax
call sub.msvcrt.dll_wcscpy
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
mov eax, 0x104
lea esi, [ebp - 0x24c]
call fcn.00411c1e
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea eax, [ebp - 0x24c]
push eax
push ebx
call sub.msvcrt.dll_wcscpy
xor eax, eax
cmp word [ebx], di
pop ecx
pop ecx
setne al
pop edi
leave
ret
Function at 0x4128e9
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 4], eax
jbe 0x412a7b
push ebx
mov eax, edi
call fcn.00408065
push dword [ebp - 4]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
push ebx
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x415018
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41296c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov ecx, dword [eax + 0x14]
mov dword [edi + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 0x24]
mov dword [edi + 0x10], ecx
mov eax, dword [eax + 0x28]
mov dword [edi + 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4129bb
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str._4.4X_4.4X
lea eax, [ebp - 0x38]
push 0x14
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
push 0x4144f0
lea eax, [ebp - 0x38]
push eax
push ebx
lea esi, [ebp - 0x238]
call fcn.0041285a
test eax, eax
jne 0x4129cb
lea eax, [ebp - 0x38]
push str.040904E4
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push 0x416154
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x18]
push ebx
call fcn.0041285a
push 0x41616c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x218]
push ebx
call fcn.0041285a
push 0x41618c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x418]
push ebx
call fcn.0041285a
push 0x4161a4
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x618]
push ebx
call fcn.0041285a
push 0x4161c4
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x818]
push ebx
call fcn.0041285a
push 0x4161dc
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xa18]
push ebx
call fcn.0041285a
push 0x4161f8
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xc18]
push ebx
call fcn.0041285a
push str.OriginalFileName
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xe18]
push ebx
call fcn.0041285a
xor esi, esi
push ebx
inc esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
mov eax, esi
pop esi
leave
ret 4
Function at 0x412aa5
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x412b3e
push str.Wlanapi.dll
call fcn.00407831
test eax, eax
pop ecx
mov dword [esi], eax
je 0x412b3e
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.WlanOpenHandle
push eax
call edi
push str.WlanCloseHandle
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.WlanGetAvailableNetworkList
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.WlanScan
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.WlanRegisterNotification
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.WlanFreeMemory
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.WlanEnumInterfaces
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.WlanGetNetworkBssList
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.WlanQueryInterface
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.WlanConnect
push dword [esi]
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
pop edi
ret
Function at 0x412ed2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x414470
call fcn.004130e4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x412f0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412f0d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x412f25
cmp eax, 0x20b
je 0x412f12
mov dword [ebp - 0x1c], edi
jmp 0x412f39
cmp dword [ecx + 0x84], 0xe
jbe 0x412f0d
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x412f33
cmp dword [ecx + 0x74], 0xe
jbe 0x412f0d
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x419f88], 0xffffffff
or dword [0x419f8c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4189bc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4189b8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x419f84], eax
call fcn.004130e0
cmp dword [section..data], edi
jne 0x412f96
push fcn.004130e0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004130ce
push 0x414448
push 0x414444
call sub.msvcrt.dll__initterm
mov eax, dword [0x4189b4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x4189b0]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x414440
push 0x414418
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x412ffc
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x4130b6
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x41304a
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x413018
cmp ax, 0x22
jne 0x413005
cmp word [esi], 0x22
jne 0x413023
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x413031
cmp ax, 0x20
jbe 0x41301e
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x413057
movzx eax, word [ebp - 0x48]
jmp 0x41305a
cmp word [esi], 0x20
jbe 0x413023
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x41304a
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x41307b
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x4130b0
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0041311d
ret
Function at 0x402ed3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x4493b0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x408010]
cmp eax, ebx
jne 0x402f4e
mov esi, dword [0x408008]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402f55
cmp dword [ebp + 0x10], ebx
jne 0x402f42
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ed3
test eax, eax
jne 0x402f55
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402f15
push dword [ebp - 4]
call dword [0x40801c]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [0x40801c]
push 2
call fcn.004065cf
cmp eax, ebx
je 0x402f7a
push ebx
push dword [0x4493b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f4e
cmp dword [0x4493b0], ebx
jne 0x402f4b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x408014]
test eax, eax
jne 0x402f4b
jmp 0x402f4e

Function at 0x405fc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x408010]
test eax, eax
jne 0x406031
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [section..rdata]
test eax, eax
jne 0x406020
cmp dword [ebp + 0x14], 1
je 0x406022
cmp dword [ebp + 0x14], 2
je 0x406022
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [0x40801c]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x406645
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x440274], esi
push edi
jne 0x40667f
mov ecx, 0x440270
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40665b
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440670
jl 0x406656
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4066b4
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440270]
xor eax, esi
inc ecx
dec edx
jne 0x406697
pop edi
pop esi
not eax
ret 0xc
Function at 0x420b4b
Capabilities:
Parse pe header

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

Function at 0x433300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43332d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43332d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
jmp loc.00401219