joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4152c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x854
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x456]
mov word [esp + 0x454], bp
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x868]
mov ecx, esi
stosw word es:[edi], ax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebp
push eax
push ebp
push 0x20000007
push ebx
call fcn.00415280
test eax, eax
je 0x415319
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x854
ret 4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x454]
push ecx
push edx
push 0x20000007
push ebx
mov ecx, esi
call fcn.00415280
test eax, eax
jge 0x415346
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x854
ret 4
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push ebp
push 0x2000000b
push ebx
call fcn.00415280
test eax, eax
je 0x41536c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x854
ret 4
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], 0x20
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
push 0x2000000b
push ebx
mov ecx, esi
call fcn.00415280
test eax, eax
jge 0x4153ab
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x854
ret 4
xor esi, esi
call fcn.00407bd0
push eax
push ebp
push 0x42d330
push str.KeyBoard
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebp, eax
xor edx, edx
cmp ebp, edx
jle 0x41547a
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x24e]
mov word [esp + 0x24c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46]
mov word [esp + 0x44], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
cmp ebp, edx
jle 0x41547a
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
inc edi
lea eax, [esp + 0x24c]
push edi
push str.RCName_d
push eax
call fcn.00418544
add esp, 0xc
call fcn.00407bd0
push eax
lea ecx, [esp + 0x48]
push 0x104
push ecx
lea edx, [esp + 0x258]
push 0x437430
push edx
push str.KeyBoard
call ebx
test eax, eax
je 0x415472
lea eax, [esp + 0x44]
push eax
call fcn.00418527
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x45c]
push ecx
push edx
call fcn.00418b03
mov esi, eax
add esp, 0x10
neg esi
sbb esi, esi
inc esi
jne 0x4154e9
cmp edi, ebp
jl 0x41540a
test esi, esi
jne 0x4154e9
mov dword [esp + 0x14], str.__HIDVid_03eePid_2501
mov dword [esp + 0x18], str.__HIDVid_045ePid_006d
mov dword [esp + 0x1c], str.__HIDVid_0471Pid_0815
mov dword [esp + 0x20], str.__HIDVid_1130Pid_cc01
xor ebp, ebp
lea ebx, [esp + 0x14]
mov esi, dword [ebx]
push esi
call fcn.00418527
mov edi, eax
lea eax, [esp + 0x458]
push eax
call fcn.00418527
add esp, 8
cmp eax, edi
jb 0x41539c
push edi
lea ecx, [esp + 0x458]
push esi
push ecx
call fcn.00418b03
mov esi, eax
add esp, 0xc
neg esi
sbb esi, esi
inc esi
cmp esi, 1
je 0x4154e9
inc ebp
add ebx, 4
cmp ebp, 4
jb 0x4154a0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x854
ret 4
Function at 0x415b30
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x439fa8]
sub esp, 0x208
cmp eax, 1
push ebx
mov ebx, ecx
je 0x415bbd
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push edi
mov esi, 0x42d840
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, ebx
stosw word es:[edi], ax
call fcn.00416d60
push eax
lea eax, [esp + 0x14]
push 0x104
push eax
lea ecx, [esi - 0x208]
push 0x437430
push ecx
push str.ShortcutKeyMap
call ebp
cmp word [esp + 0x10], 0
je 0x415ba2
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
call fcn.00415bd0
mov dword [esi], eax
add esi, 0x20c
cmp esi, str.KEY_08x_08d
jl 0x415b51
pop edi
pop esi
mov dword [0x439fa8], 1
pop ebp
pop ebx
add esp, 0x208
ret

Function at 0x416ed0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x628
push ebx
mov ebx, dword [esp + 0x630]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x416fe7
lea eax, [esi + 4]
push ebx
push eax
call fcn.004182c8
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push 0x425700
push ecx
stosw word es:[edi], ax
call fcn.004182c8
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.0041829e
add esp, 0x18
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x416fe7
mov eax, dword [esp + 0xc]
test eax, eax
je 0x416fe7
mov ecx, 0x105
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], 0
rep stosd dword es:[edi], eax
mov edx, dword [esi]
mov ecx, esi
stosw word es:[edi], ax
lea eax, [esp + 0x21c]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x21c]
push ecx
call fcn.00418527
mov ecx, dword [esp + 0x10]
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [eax + eax + 1]
lea eax, [esp + 0x21c]
push edx
push eax
push 2
push 0
push str.EventMessageFile
push ecx
call esi
test eax, eax
jne 0x416fe7
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x1c]
push str.TypesSupported
push eax
mov dword [esp + 0x28], 7
call esi
test eax, eax
jne 0x416fe7
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x628
ret 4

Function at 0x417000
Capabilities:
Access the windows event log

Disassembly:
add ecx, 4
push esi
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x417037
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
ret 8
Function at 0x417210
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x208
xor ecx, ecx
xor edx, edx
push esi
push edi
mov edi, dword [esp + 0x21c]
mov dword [esp + 8], ecx
mov esi, 8
mov al, byte [esp + 8]
shr word [esp + 8], 1
and eax, 1
test ax, ax
je 0x417241
xor dword [esp + 8], edi
dec esi
jne 0x41722c
mov al, byte [esp + 8]
mov byte [esp + edx + 0x10], al
xor eax, eax
mov al, byte [esp + 9]
inc ecx
mov byte [esp + edx + 0x110], al
inc edx
cmp cx, 0x100
jb 0x417223
mov edi, dword [esp + 0x214]
or cl, 0xff
or dl, 0xff
xor esi, esi
test edi, edi
mov byte [esp + 8], cl
mov byte [esp + 9], dl
jbe 0x4172c0
push ebp
mov ebp, dword [esp + 0x21c]
mov al, byte [esi + ebp]
xor al, cl
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x10]
and eax, 0xff
mov cl, byte [esp + eax + 0x14]
xor cl, dl
mov dl, byte [esp + eax + 0x114]
inc esi
mov byte [esp + 0xc], cl
cmp esi, edi
mov byte [esp + 0xd], dl
jb 0x417285
mov ax, word [esp + 0xc]
pop ebp
pop edi
pop esi
add esp, 0x208
ret
mov ax, word [esp + 8]
pop edi
pop esi
add esp, 0x208
ret

Function at 0x417460
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
mov eax, dword [esp + 0xc]
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 0x10000080
push 3
push ebp
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x417552
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x41754b
cmp edi, 0xffff
jae 0x41754b
cmp edi, 0x80
jbe 0x41754b
push edi
call fcn.00417ebc
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x41754b
lea edx, [esp + 0x10]
push ebp
push edx
push edi
push ebx
push esi
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x41753a
cmp edi, dword [esp + 0x10]
jne 0x41753a
mov esi, dword [esp + 0x20]
cmp dword [esi], 0
jne 0x417503
mov dword [esi], edi
mov eax, dword [esi]
cmp eax, edi
jne 0x417552
push eax
push ebx
call fcn.00417370
add esp, 8
test eax, eax
je 0x417552
mov eax, dword [esi]
push ebx
push eax
call fcn.004172d0
mov ecx, dword [esp + 0x24]
push ebx
mov dword [ecx], eax
call fcn.0041783a
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
call fcn.0041783a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x417560
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x214
push esi
mov esi, dword [esp + 0x21c]
push esi
lea eax, [esp + 0x14]
push 0x104
push eax
push str.KEY0000000000000000
push 0x434064
push 0x434064
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x4175b2
pop esi
add esp, 0x214
ret
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
lea eax, [esp + 0x18]
push str.KEY_08x_08d
push eax
call fcn.00418c20
mov eax, dword [esp + 0x14]
add esp, 0x10
test eax, eax
jne 0x4175e0
xor eax, eax
pop esi
add esp, 0x214
ret
lea ecx, [esp + 4]
push edi
lea edx, [esp + 0x10]
push ecx
push edx
push esi
call fcn.00417460
add esp, 0xc
mov edi, eax
lea eax, [esp + 0x14]
push esi
push eax
push 0x434064
push 0x434064
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test edi, edi
pop edi
jne 0x41761b
xor eax, eax
pop esi
add esp, 0x214
ret
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
xor eax, eax
cmp ecx, edx
sete al
pop esi
add esp, 0x214
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41b0be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041ae4c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41b0df
test byte [esp + 8], 2
je 0x41b0df
mov dword [0x439fe4], 0xd
mov dword [0x439fe8], 5
jmp 0x41b0ba
xor eax, eax
ret

Function at 0x4225b5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov dword [ebp - 0x464], 0
cmp dword [ebp + 8], 0
je 0x4225df
mov eax, dword [ebp + 8]
push eax
call fcn.00418527
add esp, 4
cmp eax, 3
jae 0x4225e7
or eax, 0xffffffff
jmp 0x4226b9
mov dword [ebp - 0x210], 3
jmp 0x422602
mov ecx, dword [ebp - 0x210]
add ecx, 1
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00418527
add esp, 4
cmp dword [ebp - 0x210], eax
jae 0x4226b7
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + eax*2 + 2]
test edx, edx
je 0x422643
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + eax*2 + 2]
cmp edx, 0x5c
jne 0x4226b2
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.004182c8
add esp, 8
mov edx, dword [ebp - 0x210]
mov word [ebp + edx*2 - 0x206], 0
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
jne 0x4226a5
push 0
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4226a3
mov eax, 0xfffffffe
jmp 0x4226b9
jmp 0x4226b2
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4225f3
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x422de0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
push esi
push edi
cmp dword [ebp + 8], 0
je 0x422e01
mov eax, dword [ebp + 8]
push eax
call fcn.00418527
add esp, 4
test eax, eax
jne 0x422e0a
xor eax, eax
xor edx, edx
jmp 0x422f86
mov ecx, 6
mov esi, str.kernel32.dll
lea edi, [ebp - 0x650]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x654], str.GetDiskFreeSpaceExW
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x624]
push eax
lea ecx, [ebp - 0x870]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004183a3
add esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x870]
push eax
call fcn.00418527
add esp, 4
mov word [ebp + eax*2 - 0x86e], 0
lea ecx, [ebp - 0x870]
push ecx
call fcn.00418527
add esp, 4
mov word [ebp + eax*2 - 0x870], 0x5c
lea edx, [ebp - 0x650]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x658], eax
cmp dword [ebp - 0x658], 0
jne 0x422eb5
xor eax, eax
xor edx, edx
jmp 0x422f86
mov eax, dword [ebp - 0x654]
push eax
mov ecx, dword [ebp - 0x658]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x62c], eax
cmp dword [ebp - 0x62c], 0
je 0x422f0e
lea edx, [ebp - 0x878]
push edx
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x660]
push ecx
lea edx, [ebp - 0x870]
push edx
call dword [ebp - 0x62c]
mov eax, dword [ebp - 0x660]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x65c]
mov dword [ebp - 4], ecx
jmp 0x422f73
lea edx, [ebp - 0x634]
push edx
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x628]
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x422f73
mov ecx, dword [ebp - 0x214]
imul ecx, dword [ebp - 0x628]
imul ecx, dword [ebp - 0x630]
xor edx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jg 0x422f73
jl 0x422f65
cmp dword [ebp - 8], 0
jae 0x422f73
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x658]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42306c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0x10000000
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 1
mov eax, dword [0x4371a0]
mov dword [ebp - 8], eax
mov ecx, dword [0x4371a4]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 0
jmp 0x4230ba
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x1f
jge 0x4230fc
mov eax, dword [ebp - 0x18]
and eax, dword [ebp - 0x1c]
test eax, eax
je 0x4230e6
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x4230e6
mov edx, dword [ebp - 0x1c]
not edx
mov eax, dword [ebp - 0x18]
and eax, edx
mov dword [ebp - 0x18], eax
mov cx, word [ebp - 8]
add cx, 1
mov word [ebp - 8], cx
mov edx, dword [ebp - 0x1c]
shl edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x4230b1
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret

Function at 0x423413
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3b28
call fcn.004187f0
push edi
cmp dword [ebp + 8], 0
jne 0x42342e
xor eax, eax
jmp 0x423554
mov dword [ebp - 0x3b20], 0
mov ax, word [0x43a1f8]
mov word [ebp - 0x200], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x1fe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea ecx, [ebp - 0x3b1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x3b20]
push edx
lea eax, [ebp - 0x3b1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x3b28], eax
lea ecx, [ebp - 0x3910]
push ecx
mov edx, dword [ebp - 0x3b28]
push edx
mov eax, dword [ebp - 0x3b20]
push eax
lea ecx, [ebp - 0x3b1c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
lea edx, [ebp - 0x3b28]
push edx
lea eax, [ebp - 0x3b24]
push eax
push 0x437230
lea ecx, [ebp - 0x3910]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42353c
mov edx, dword [ebp - 0x3b24]
mov eax, dword [edx]
shr eax, 0x10
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x3b24]
mov edx, dword [ecx]
and edx, 0xffff
and edx, 0xffff
push edx
push str.StringFileInfo_04x_04xProductName
lea eax, [ebp - 0x1200]
push eax
call fcn.00418544
add esp, 0x10
lea ecx, [ebp - 0x3b28]
push ecx
lea edx, [ebp - 0x3914]
push edx
lea eax, [ebp - 0x1200]
push eax
lea ecx, [ebp - 0x3910]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42353c
mov edx, dword [ebp - 0x3914]
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004182c8
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004182c8
add esp, 8
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x423559
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3b3c
call fcn.004187f0
push edi
cmp dword [ebp + 8], 0
jne 0x423574
xor eax, eax
jmp 0x423769
mov dword [ebp - 0x3b20], 0
mov ax, word [0x43a1fc]
mov word [ebp - 0x200], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x1fe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea ecx, [ebp - 0x3b1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x3b20]
push edx
lea eax, [ebp - 0x3b1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x3b2c], eax
lea ecx, [ebp - 0x3910]
push ecx
mov edx, dword [ebp - 0x3b2c]
push edx
mov eax, dword [ebp - 0x3b20]
push eax
lea ecx, [ebp - 0x3b1c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
lea edx, [ebp - 0x3b2c]
push edx
lea eax, [ebp - 0x3b24]
push eax
push str.VarFileInfoTranslation
lea ecx, [ebp - 0x3910]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x423682
mov edx, dword [ebp - 0x3b24]
mov eax, dword [edx]
shr eax, 0x10
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x3b24]
mov edx, dword [ecx]
and edx, 0xffff
and edx, 0xffff
push edx
push str.StringFileInfo_04x_04xProductVersion
lea eax, [ebp - 0x1200]
push eax
call fcn.00418544
add esp, 0x10
lea ecx, [ebp - 0x3b2c]
push ecx
lea edx, [ebp - 0x3914]
push edx
lea eax, [ebp - 0x1200]
push eax
lea ecx, [ebp - 0x3910]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x423682
mov edx, dword [ebp - 0x3914]
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004182c8
add esp, 8
mov ecx, dword [0x436d7c]
mov dword [ebp - 0x3b28], ecx
mov word [ebp - 0x3b30], 0x2e
push 0x2c
lea edx, [ebp - 0x200]
push edx
call fcn.004239f0
add esp, 8
test eax, eax
je 0x4236b5
mov word [ebp - 0x3b30], 0x2c
cmp dword [ebp - 0x3b28], 3
jg 0x423751
cmp dword [ebp - 0x3b28], 0
jl 0x423751
lea eax, [ebp - 0x200]
mov dword [ebp - 0x3b38], eax
mov dword [ebp - 0x3b3c], 0
jmp 0x4236f6
mov ecx, dword [ebp - 0x3b3c]
add ecx, 1
mov dword [ebp - 0x3b3c], ecx
mov edx, dword [ebp - 0x3b3c]
cmp edx, dword [ebp - 0x3b28]
jge 0x42373d
mov ax, word [ebp - 0x3b30]
push eax
mov ecx, dword [ebp - 0x3b38]
push ecx
call fcn.004239f0
add esp, 8
mov dword [ebp - 0x3b34], eax
cmp dword [ebp - 0x3b34], 0
jne 0x42372c
jmp 0x42373d
mov edx, dword [ebp - 0x3b34]
add edx, 2
mov dword [ebp - 0x3b38], edx
jmp 0x4236e7
cmp dword [ebp - 0x3b34], 0
je 0x423751
mov eax, dword [ebp - 0x3b34]
mov word [eax], 0
lea ecx, [ebp - 0x200]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004182c8
add esp, 8
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x424144
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x424153
cmp dword [ebp + 0xc], 1
jge 0x424157
xor eax, eax
jmp 0x42417b
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4373dc
mov edx, dword [ebp + 8]
push edx
call fcn.0041829e
add esp, 8
mov eax, 1
pop ebp
ret
Function at 0x40c290
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48374b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00475e1d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c312
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047380d
mov eax, dword [eax]
push 0x59b210
push eax
call fcn.00466274
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004760a8
test bl, bl
je 0x40c312
push 0x59b210
lea ecx, [esp + 0xc]
call fcn.00476484
push 0x59eda8
lea ecx, [esp + 0xc]
call fcn.00476484
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40c34e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004760a8
jmp 0x40c419
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40c3d2
lea edx, [esp + 0x7c]
push 0x59eda4
push edx
call fcn.00466274
add esp, 8
test eax, eax
je 0x40c3d2
lea eax, [esp + 0x7c]
push 0x59eda0
push eax
call fcn.00466274
add esp, 8
test eax, eax
je 0x40c3d2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c362
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004760a8
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40cc10
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40cc72
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40cc80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4837cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5ab5b8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40cdb8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40cce6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004760a8
xor eax, eax
jmp 0x40ce2f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00476231
push esi
lea ecx, [esp + 0xc]
call fcn.004764c0
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40ce0d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040cc10
test eax, eax
jne 0x40ce0d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040cc10
test eax, eax
jne 0x40ce0d
lea eax, [esp + 0x14]
push 0x59edbc
push eax
call fcn.00467350
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cdec
lea ecx, [esp + 0x14]
push 0x59edb8
push ecx
call fcn.004672d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cdec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40cdef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004761e1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ccfe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004760a8
xor eax, eax
jmp 0x40ce2f
mov byte [esi], 0
push 0x59edb4
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004760a8
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4