joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40218f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x403790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x402222
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x402222
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
sete al
lea eax, [eax*2 + str.Microsoft_SharedOffice16_]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00402235
jmp 0x402224
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004013e0
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6b23732b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x291572fe
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401921
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor eax, eax
xor esi, esi
push eax
push 0x8000000
push 3
mov dword [ebp - 4], eax
xor edi, edi
pop eax
push eax
push esi
xor eax, eax
inc eax
push eax
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40196f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x401b11
mov ecx, dword [0x40a1e0]
push ebx
mov ebx, 0x4400
test ecx, ecx
jne 0x401afb
mov eax, 0x10000
cmp ebx, 0xfffffff
jae 0x401ad9
push eax
push 0x41a1e8
push 0x40a1e8
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401b23
cmp eax, ebx
jne 0x401b1b
push 0
lea eax, [ebp + 8]
push eax
mov eax, 0x10000
push eax
push 0x41a1e8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401b23
cmp dword [ebp + 8], 0
je 0x401b1b
xor eax, eax
mov ecx, 0x10000
cmp ebx, 0x4400
cmovne eax, ecx
push eax
push 0x40a1e8
push dword [ebp + 8]
push 0x41a1e8
call sub.SCNPST32.dll_RCVR_CountBlocks32_16
add edi, eax
mov ecx, 0x10000
xor eax, eax
cmp ebx, 0x4400
cmovne eax, ecx
push eax
push 0x40a1e8
push dword [ebp + 8]
push 0x41a1e8
call sub.SCNPST64.dll_RCVR_CountBlocks64_16
add esi, eax
mov ecx, 0x10000
xor eax, eax
cmp ebx, 0x4400
cmovne eax, ecx
push eax
push 0x40a1e8
push dword [ebp + 8]
push 0x41a1e8
call sub.SCNPST64C.dll_RCVR_CountBlocks64new_16
mov edx, dword [ebp - 4]
add edx, eax
xor eax, eax
mov dword [ebp - 4], edx
lea ecx, [eax + 1]
cmp edx, esi
jbe 0x401a85
test esi, esi
mov eax, edx
cmovne ecx, esi
xor edx, edx
div ecx
cmp eax, 0x32
jb 0x401a9d
push 3
pop ecx
jmp 0x401abf
cmp esi, edi
jbe 0x401aa5
test edi, edi
mov eax, esi
cmovne ecx, edi
xor edx, edx
div ecx
cmp eax, 0x64
jb 0x401a9d
push 2
jmp 0x401a82
mov ecx, dword [0x40a1e0]
jmp 0x401ac5
test esi, esi
mov eax, edi
push 1
cmovne ecx, esi
xor edx, edx
div ecx
mov ecx, dword [0x40a1e0]
cmp eax, 0x64
pop eax
cmovae ecx, eax
mov dword [0x40a1e0], ecx
mov eax, 0x10000
cmp dword [ebp + 8], eax
jb 0x401ad9
add ebx, eax
test ecx, ecx
je 0x401988
test ecx, ecx
jne 0x401afb
test edi, edi
jne 0x401ae5
test esi, esi
je 0x401afb
cmp esi, edi
push 3
sbb ecx, ecx
add ecx, 2
cmp dword [ebp - 4], esi
pop eax
cmova ecx, eax
mov dword [0x40a1e0], ecx
xor eax, eax
mov esi, 0x80040903
test ecx, ecx
cmovne esi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x40a1e0]
jmp 0x401ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x401b07
Function at 0x402095
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.SoftwareMicrosoftOffice16.0OutlookPST
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4020cc
push str.LastCorruptStore
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x40268b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x407670]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10
pop ecx
mov esi, str.SoftwarePoliciesMicrosoftOffice16.0CommonLanguageResources
and dword [ebp - 0xa0], 0
lea edi, [ebp - 0x8c]
mov eax, dword [0x40a0f8]
mov ebx, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
push 0xe
pop ecx
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x48]
mov esi, str.SoftwareMicrosoftOffice16.0CommonLanguageResources
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x10]
mov esi, str.UILanguage
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
cmp eax, 0xffffffff
jne 0x402800
push 4
pop esi
lea eax, [ebp - 0x94]
mov dword [ebp - 0x90], esi
push eax
push 1
push 0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x98], esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40276a
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40275d
cmp dword [ebp - 0x90], esi
jne 0x40275d
mov eax, dword [ebp - 0x9c]
mov esi, dword [ebp - 0xa0]
mov dword [ebx], eax
jmp 0x402760
xor esi, esi
inc esi
push dword [ebp - 0x94]
call edi
jmp 0x40276d
xor esi, esi
inc esi
test esi, esi
je 0x4027f7
push 4
pop esi
lea eax, [ebp - 0x94]
mov dword [ebp - 0x90], esi
push eax
push 1
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x98], esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4027ef
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4027dd
cmp dword [ebp - 0x90], esi
jne 0x4027dd
mov eax, dword [ebp - 0x9c]
jmp 0x4027e3
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push dword [ebp - 0x94]
mov dword [ebx], eax
call edi
jmp 0x4027f7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [ebx], eax
mov eax, dword [ebx]
mov dword [0x40a0f8], eax
jmp 0x402802
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004049c1
mov esp, ebp
pop ebp
ret 4
Function at 0x402d59
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x407670]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x42a298], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], esi
je 0x402eaa
push 8
push dword [0x42afd4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
je 0x402dab
cmp dword [eax + 8], 0
je 0x402dab
push dword [eax + 8]
push 0x42a290
push esi
call dword [sym.imp.USER32.dll_FillRect]
push ebx
push 0x3f2
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x34]
push eax
push edi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
push 0x20
push eax
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
push 0
push 0x31
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x42a298]
mov esi, dword [sym.imp.GDI32.dll_SetBkColor]
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
cmp eax, dword [ebp - 0x34]
jl 0x402e60
push 2
call edi
push eax
push ebx
call esi
push 0xffffff
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [0x42a298]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x24]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
push 6
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [0x42a298]
cmp eax, dword [ebp - 0x2c]
jge 0x402ea9
push 0xf
call edi
push eax
push ebx
call esi
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [0x42a298]
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x24]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
push 6
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004049c1
mov esp, ebp
pop ebp
ret 8
Function at 0x4036f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x407670]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftOffice16.0OutlookPST
push 0x80000001
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4037a6
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push str.LastCorruptStore
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40379a
mov eax, dword [ebp - 0x214]
shr eax, 1
lea eax, [eax*2 + 2]
cmp eax, 0x20a
jae 0x4037b9
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x210]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
xor eax, eax
inc eax
jmp 0x4037a8
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004049c1
mov esp, ebp
pop ebp
ret 8
call fcn.004051bd
int3

Function at 0x40398b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x407670]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x42a288
push 0xc
call sub.OLMAPI32.dll_Ordinal_259
test eax, eax
jns 0x4039b6
xor eax, eax
jmp 0x403ad5
push edi
push dword [0x40a0f4]
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
push dword [0x40a0f0]
call edi
cmp dword [ebp + 0xc], 0
jne 0x403a7f
test eax, eax
jne 0x403a7f
xor edi, edi
push edi
call fcn.00405cd3
test eax, eax
je 0x403ad2
call fcn.00402890
push str.scanpst_icon
push esi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], 0x402ad8
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push edi
mov dword [ebp - 0x44], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 5
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp - 0x3c], eax
mov eax, dword [str.scanpst]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x38], edi
call fcn.00402a38
test ax, ax
je 0x403ad2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x42adb0
call fcn.00402ebc
push dword [ebp + 0x14]
push edi
push esi
call fcn.00402455
cmp dword [0x42afd8], edi
je 0x403a7a
call fcn.004018f2
xor eax, eax
inc eax
jmp 0x403ad4
push 0x80
mov esi, 0x42a2a0
push esi
push 0x80f2
push dword [0x42a288]
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
push 0
call edi
mov esi, eax
test esi, esi
je 0x403ad2
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x2c
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x403ad2
cmp dword [ebp - 0x28], 2
jne 0x403ad2
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004049c1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4049ce
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x407670], eax
je 0x4049f0
cmp dword [0x407670], ebx
jne 0x404a84
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x407670
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x407670
push 4
push edi
mov dword [0x407670], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x407670]
not eax
mov dword [0x40a100], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404cb4
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x407de8
call fcn.00404cbe
push 1
call fcn.0040530c
pop ecx
test al, al
jne 0x404b5d
push 7
call fcn.00405573
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004052d7
mov byte [ebp - 0x24], al
mov eax, dword [0x42b32c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x404b56
test eax, eax
jne 0x404bc7
mov dword [0x42b32c], ecx
push 0x407288
push 0x407270
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x404baa
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404cae
push 0x40726c
push 0x407264
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x42b32c], 2
jmp 0x404bcc
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00405469
pop ecx
call fcn.00405567
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x404bfc
push esi
call fcn.004053dc
pop ecx
test al, al
je 0x404bfc
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004057a2
call esi
call fcn.0040556d
mov esi, eax
cmp dword [esi], edi
je 0x404c1a
push esi
call fcn.004053dc
pop ecx
test al, al
je 0x404c1a
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.00405688
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.004056bb
test al, al
jne 0x404c53
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x404c5c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00405486
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x404cae
call fcn.00404d04
ret
call fcn.004049ce
jmp 0x404b3e

Function at 0x405a8d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x407670]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push esi
push 0x4076d0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x405af6
cmp dword [ebp - 0x210], 4
jb 0x405af6
test edi, edi
lea eax, [ebp - 0x20c]
cmovne esi, edi
push esi
push eax
call fcn.00405bb0
jmp 0x405af8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004049c1
mov esp, ebp
pop ebp
ret 8
Function at 0x405b0a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x407670]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x405b9d
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x405b9d
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
sete al
lea eax, [eax*2 + str.Microsoft_SharedOffice16_]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00405bb0
jmp 0x405b9f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004049c1
mov esp, ebp
pop ebp
ret 4
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4012e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x401317
push 0
push str.Error
push 0x482180
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x190
ret
mov eax, 1
add esp, 0x190
ret
Function at 0x408770
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x3301464]
mov edx, 1
cmp eax, edx
jne 0x408781
xor eax, eax
ret
push ebx
push esi
push edi
mov ecx, 0x2e248c
xor eax, eax
mov edi, 0x3301440
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x11940c
xor eax, eax
mov edi, 0x19ccfa0
xor esi, esi
rep stosd dword es:[edi], eax
push 0x678b50
push esi
push 0x3301440
push 0x404d90
stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
or ebx, 0xffffffff
push esi
push esi
mov dword [0x3301454], eax
mov dword [0x3301468], 2
mov dword [0x3301460], 0xbb80
mov byte [0x330146c], dl
mov dword [0x330146d], esi
mov dword [0x3301464], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
cmp dword [0x3301464], ebx
jne 0x40881a
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call edi
inc esi
cmp esi, 5
jg 0x40881a
cmp dword [0x3301464], ebx
je 0x408808
mov eax, dword [0x3301464]
pop edi
pop esi
pop ebx
ret

Function at 0x408c70
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x678bcc]
mov edx, 1
cmp eax, edx
jne 0x408c81
xor eax, eax
ret
push ebp
push esi
push edi
mov ecx, 0x4cf74b
xor eax, eax
mov edi, 0x678b58
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [0x19c6cc2], 0x1d
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
push esi
push esi
mov dword [0x678bb8], eax
mov eax, dword [0x47b458]
push 0x3daaaaab
push esi
push 6
push eax
push 0x19b6ca8
mov dword [0x678be8], 2
mov dword [0x678bbc], 0xbb80
mov dword [0x678bd0], 2
mov byte [0x678bec], dl
mov dword [0x678bed], 2
mov dword [0x678bb4], esi
mov dword [0x678bb0], 5
mov dword [0x19c6cc6], eax
call fcn.00408970
add esp, 0x1c
or ebp, 0xffffffff
mov dword [0x678bcc], ebp
push 0x4738d90
push esi
push 0x678b58
push 0x406f50
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
cmp dword [0x678bcc], ebp
jne 0x408d55
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call edi
inc esi
cmp esi, 5
jg 0x408d55
cmp dword [0x678bcc], ebp
je 0x408d43
xor edi, edi
mov esi, 0x32fb344
push edi
call fcn.004088d0
mov word [esi], ax
add esp, 4
add esi, 2
inc edi
cmp esi, 0x32fb544
jl 0x408d5c
mov esi, 0xffff8000
push esi
call fcn.00408860
mov ecx, esi
add esp, 4
and ecx, 0xffff
inc esi
cmp esi, 0x8000
mov byte [ecx + 0x3e8a69c], al
jl 0x408d79
mov eax, dword [0x678bcc]
pop edi
pop esi
pop ebp
ret