joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414080
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
sub esp, 0x83c
lea ebp, [esp - 4]
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x83c], eax
push 4
mov eax, 0x4c0c34
call fcn.0043c032
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 0x848]
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x1e]
push edi
push eax
mov word [ebp + 0x1c], di
call fcn.0043b4c0
add esp, 0xc
push edi
push 0x1a
lea eax, [ebp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.004015c0
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
lea ecx, [ebp]
mov dword [ebp - 4], edi
call fcn.004036c0
push ebx
lea ecx, [ebp]
call fcn.004036c0
push 0x4c89ac
lea ecx, [ebp]
call fcn.004036c0
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x414112
lea eax, [ebp + 4]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
jne 0x414151
push edi
push 1
lea ecx, [ebp]
call fcn.004017c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x83c]
xor ecx, ebp
call fcn.0043b4a5
add ebp, 0x840
leave
ret 4
push esi
lea eax, [ebp + 0x226]
push edi
push eax
mov word [ebp + 0x224], di
call fcn.0043b4c0
push esi
lea eax, [ebp + 0x42e]
push edi
push eax
mov word [ebp + 0x42c], di
call fcn.0043b4c0
mov eax, dword [ebp + 4]
add esp, 0x18
cmp dword [ebp + 0x18], 8
jae 0x41418a
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x224]
push eax
call fcn.0043b68e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x42c]
push eax
lea eax, [ebp + 0x224]
push eax
call fcn.00413760
push esi
lea eax, [ebp + 0x636]
push edi
push eax
mov word [ebp + 0x634], di
call fcn.0043b4c0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x634]
push eax
lea eax, [ebp + 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp + 0x634]
push eax
call fcn.0043b6aa
test eax, eax
pop ecx
jne 0x414206
lea eax, [ebp + 0x42c]
push eax
lea eax, [ebp + 0x634]
push eax
call fcn.0043b68e
pop ecx
pop ecx
lea eax, [ebp + 0x634]
push eax
call ebx
xor esi, esi
test eax, eax
jne 0x414227
push edi
push 1
lea ecx, [ebp]
call fcn.004017c0
mov eax, esi
jmp 0x41412c
inc esi
jmp 0x414215
Function at 0x41422a
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x464
lea ebp, [esp - 4]
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x464], eax
push 0x1c
mov eax, 0x4c0c6c
call fcn.0043c032
mov ebx, dword [ebp + 0x470]
mov edi, 0x206
xor esi, esi
push edi
lea eax, [ebp + 0x25e]
push esi
push eax
mov word [ebp + 0x25c], si
call fcn.0043b4c0
push edi
lea eax, [ebp + 0x56]
push esi
push eax
mov word [ebp + 0x54], si
call fcn.0043b4c0
add esp, 0x18
push ebx
lea ecx, [ebp + 0x38]
call fcn.004015c0
push esi
push 0x4c8a94
lea ecx, [ebp + 0x38]
mov dword [ebp - 4], esi
call fcn.00404000
mov ebx, eax
push ebx
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x38]
call fcn.00403680
cmp dword [eax + 0x18], 8
jb 0x4142b7
mov eax, dword [eax + 4]
jmp 0x4142ba
add eax, 4
push eax
mov edi, 0x4c704c
lea eax, [ebp + 0x25c]
push edi
push eax
call fcn.0043c4d1
add esp, 0xc
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.004017c0
push 0xffffffffffffffff
inc ebx
push ebx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x38]
call fcn.00403680
cmp dword [eax + 0x18], 8
jb 0x4142f6
mov eax, dword [eax + 4]
jmp 0x4142f9
add eax, 4
push eax
lea eax, [ebp + 0x54]
push edi
push eax
call fcn.0043c4d1
add esp, 0xc
xor edi, edi
push esi
inc edi
push edi
lea ecx, [ebp - 0x28]
call fcn.004017c0
lea eax, [ebp + 0x54]
push eax
call fcn.0043c4cc
mov ebx, eax
lea eax, [ebp + 0x25c]
push eax
call fcn.0043b6aa
test eax, eax
pop ecx
pop ecx
je 0x41438e
cmp ebx, esi
jle 0x41438e
lea eax, [ebp + 0x1c]
push eax
call fcn.0040cea1
mov ecx, eax
call fcn.0040af68
push 0x4dfbb4
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004015c0
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x414362
lea eax, [ebp + 0x20]
push eax
push esi
lea eax, [ebp + 0x25c]
push eax
push str.UpdateRecord
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebx
push esi
lea ecx, [ebp]
push edi
jge 0x4143bf
call fcn.004017c0
push esi
push edi
lea ecx, [ebp + 0x1c]
call fcn.004017c0
push esi
push edi
lea ecx, [ebp + 0x38]
call fcn.004017c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x464]
xor ecx, ebp
call fcn.0043b4a5
add ebp, 0x468
leave
ret 4
call fcn.004017c0
push esi
push edi
lea ecx, [ebp + 0x1c]
call fcn.004017c0
push esi
push edi
lea ecx, [ebp + 0x38]
call fcn.004017c0
mov eax, edi
jmp 0x41439a
Function at 0x4144ca
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 8
mov eax, 0x4c0cd1
call fcn.0043c032
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 0x24c]
xor esi, esi
push 0x206
lea eax, [ebp + 0x3a]
push esi
push eax
mov word [ebp + 0x38], si
call fcn.0043b4c0
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push esi
push 0x19
lea eax, [ebp + 0x38]
push eax
push esi
call edi
test eax, eax
je 0x414575
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004015c0
push 0x4dfb94
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], esi
call fcn.004036c0
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x41454b
lea eax, [ebp + 0x20]
mov ecx, dword [ebp - 0x10]
push ebx
push eax
call fcn.00413ac2
cmp eax, esi
push esi
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 0x1c]
push 1
je 0x41456c
call fcn.004017c0
mov eax, dword [ebp - 0x14]
jmp 0x4145ce
or dword [ebp - 4], 0xffffffff
call fcn.004017c0
push esi
push 0x10
lea eax, [ebp + 0x38]
push eax
push esi
call edi
test eax, eax
je 0x4145cc
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp]
call fcn.004015c0
xor edi, edi
inc edi
push 0x4dfb94
lea ecx, [ebp]
mov dword [ebp - 4], edi
call fcn.004036c0
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x4145ae
lea eax, [ebp + 4]
mov ecx, dword [ebp - 0x10]
push ebx
push eax
call fcn.00413ac2
push esi
lea ecx, [ebp]
push edi
mov ebx, eax
call fcn.004017c0
cmp ebx, esi
je 0x4145cc
mov eax, ebx
jmp 0x4145ce
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.0043b4a5
add ebp, 0x244
leave
ret 4

Function at 0x416909
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x416f16
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x416f2c
push 0x80004005
call fcn.00416938
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x416f2f
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x416f5e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.004168a8
mov edi, eax
cmp edi, esi
je 0x416fc6
lea ecx, [ebp - 0x70]
call fcn.00416843
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b4a5
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x416fde
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00416f5e
cmp eax, esi
jne 0x417011
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x416fce
lea ecx, [ebp - 0x70]
call fcn.00416843
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00416843
mov eax, esi
jmp 0x416fac
Function at 0x417f02
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x4c10e9
call fcn.0043c065
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x410]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x18], eax
call dword [0x508740]
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], esi
mov dword [ebp], esi
push 2
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x1c], ebx
jne 0x417f7a
call fcn.00416d98
mov esi, eax
jmp 0x41807b
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x417f97
call fcn.00416d98
jmp 0x418070
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x417f8d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x14], edi
jae 0x417ffe
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x417fca
lea ecx, [ebp]
call fcn.00416e6d
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.00416ebc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0043b4a5
add ebp, 0x408
leave
ret 0x10
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004173a7
mov dword [ebp - 4], 1
jmp 0x41802e
mov ebx, dword [ebp]
cmp ebx, esi
jne 0x41803c
mov esi, 0x8007000e
jmp 0x418072
call dword [0x508740]
push edi
push ebx
push edi
push dword [ebp - 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x417f8d
mov ecx, dword [ebp]
push dword [ebp + 0x41c]
mov word [ecx + eax*2], si
push dword [ebp]
lea ecx, [ebp - 0x28]
call fcn.00417de1
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x417fcf
lea ecx, [ebp]
call fcn.00416e6d
jmp 0x417fcf
Function at 0x419729
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
push ebx
push esi
mov esi, dword [ebp + 0x1c8]
push edi
xor ebx, ebx
xor eax, eax
mov word [ebp + 0x1b4], bx
lea edi, [ebp + 0x1b6]
stosd dword es:[edi], eax
push 0x206
stosw word es:[edi], ax
lea eax, [ebp - 0x52]
push ebx
push eax
mov dword [ebp - 0x58], ecx
mov word [ebp - 0x54], bx
call fcn.0043b4c0
push esi
call fcn.0043b6aa
add esp, 0x10
cmp eax, 3
jl 0x419797
push 3
lea eax, [ebp + 0x1b4]
push esi
push eax
call fcn.0043e2ba
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x58]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 0x5c], eax
and dword [ebp - 0x5c], 0x80000000
and eax, 0x7fffffff
cmp dword [esi + 0x6b0], ebx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], ebx
fild qword [ebp - 0x70]
fild qword [ebp - 0x60]
fchs
faddp st(1)
fstp dword [ebp - 0x5c]
je 0x419844
fld dword [ebp - 0x5c]
call fcn.0043b770
cmp eax, 0x400
jle 0x419823
fld dword [ebp - 0x5c]
push ecx
fmul qword [0x4c8588]
push ecx
lea eax, [ebp - 0x54]
fstp dword [ebp - 0x58]
fld dword [ebp - 0x58]
fstp qword [esp]
push str._.2fGB
push eax
call fcn.0043c4d1
add esp, 0x10
jmp 0x419835
push eax
lea eax, [ebp - 0x54]
push str._dMB
push eax
call fcn.0043c4d1
add esp, 0xc
mov ecx, dword [esi + 0x6b0]
mov eax, dword [ecx]
lea edx, [ebp - 0x54]
push edx
call dword [eax + 0x2c]
mov ecx, dword [ebp + 0x1bc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b4a5
add ebp, 0x1c0
leave
ret 4
Function at 0x419f73
Capabilities:
Check if file exists

Disassembly:
push 0xd0
mov eax, 0x4c136a
call fcn.0043c09b
mov esi, ecx
lea eax, [esi + 0x6a8]
xor edi, edi
cmp dword [eax], edi
je 0x41a119
mov ecx, dword [eax]
mov eax, dword [ecx]
lea edx, [ebp - 0xdc]
xor ebx, ebx
push edx
inc ebx
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], edi
call dword [0x4dfd40]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004015c0
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
call dword [0x4dfccc]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x419fd5
lea eax, [ebp - 0x28]
push eax
call fcn.0043b6aa
cmp eax, 3
pop ecx
jle 0x41a018
push 3
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403680
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x419ffc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41a009
xor ebx, ebx
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.004017c0
cmp ebx, edi
jne 0x41a038
lea eax, [esi + 0x66c]
cmp dword [eax], edi
je 0x41a10e
mov eax, dword [eax]
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0xd8]
jmp 0x41a10e
mov ecx, dword [esi + 0x67c]
cmp ecx, edi
je 0x41a09a
call dword [0x4dfd04]
test al, al
lea eax, [esi + 0x66c]
je 0x41a072
cmp dword [eax], edi
je 0x41a064
mov eax, dword [eax]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xd8]
lea eax, [esi + 0x678]
cmp dword [eax], edi
je 0x41a09a
push 1
jmp 0x41a08e
cmp dword [eax], edi
je 0x41a083
mov eax, dword [eax]
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0xd8]
lea eax, [esi + 0x678]
cmp dword [eax], edi
je 0x41a09a
push edi
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xd8]
lea ebx, [esi + 0x50c]
push ebx
push dword [ebx + 4]
lea ecx, [ebp - 0x50]
call fcn.0040e350
push ebx
push dword [ebx + 8]
lea ecx, [ebp - 0x58]
call fcn.0040e350
jmp 0x41a0ea
lea ecx, [ebp - 0x50]
call fcn.0040ce80
cmp dword [eax], edi
je 0x41a0e2
lea ecx, [ebp - 0x50]
call fcn.0040ce80
cmp dword [ebp - 0x14], 8
mov ecx, dword [eax]
mov eax, dword [ebp - 0x28]
jae 0x41a0dc
lea eax, [ebp - 0x28]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
lea ecx, [ebp - 0x50]
call fcn.00418cb4
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040dde7
test al, al
je 0x41a0ba
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41a106
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00419729
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004017c0
call fcn.0043c11e
ret
Function at 0x41ad49
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edx, edx
xor edi, edi
xor esi, esi
test ebx, ebx
jle 0x41ae56
cmp ebx, 2
mov eax, dword [ebp + 8]
jl 0x41ad81
movzx ecx, byte [esi + eax]
cmp ecx, 0x2f72
jne 0x41ad81
movzx ecx, byte [esi + eax + 1]
cmp ecx, 0x2f6e
je 0x41adb1
mov cl, byte [esi + eax]
movzx eax, cl
cmp eax, 0x2f6e
je 0x41adb1
cmp cl, 0x3d
jne 0x41ad99
inc edi
cmp edi, 2
jg 0x41add8
cmp cl, 0x7f
ja 0x41add8
mov al, byte [eax + 0x4c9e10]
cmp al, 0x7f
je 0x41add8
cmp al, 0x40
jae 0x41adb0
test edi, edi
jne 0x41add8
inc edx
inc esi
dec ebx
cmp esi, dword [ebp + 0xc]
jl 0x41ad60
test edx, edx
je 0x41ae56
mov ebx, dword [ebp + 0x14]
imul edx, edx, 6
add edx, 7
sar edx, 3
mov eax, edx
cmp dword [ebx], eax
jge 0x41addd
mov dword [ebx], eax
push 0xfffffffffffffff0
jmp 0x41adda
push 0xffffffffffffffee
pop eax
jmp 0x41ae58
mov ecx, dword [ebp + 0x10]
xor edx, edx
and dword [ebp + 0xc], edx
test esi, esi
push 3
pop edi
jle 0x41ae51
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp eax, 0x2f72
je 0x41ae46
cmp eax, 0x2f6e
je 0x41ae46
movzx eax, byte [eax + 0x4c9e10]
xor ebx, ebx
cmp al, 0x40
sete bl
shl edx, 6
and eax, 0x3f
or eax, edx
mov edx, eax
sub edi, ebx
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 4
jne 0x41ae46
and dword [ebp + 0xc], 0
test edi, edi
jle 0x41ae31
shr eax, 0x10
mov byte [ecx], al
inc ecx
cmp edi, 1
jle 0x41ae3e
mov eax, edx
shr eax, 8
mov byte [ecx], al
inc ecx
cmp edi, 2
jle 0x41ae46
mov byte [ecx], dl
inc ecx
dec esi
inc dword [ebp + 8]
test esi, esi
jg 0x41adec
mov ebx, dword [ebp + 0x14]
sub ecx, dword [ebp + 0x10]
mov dword [ebx], ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41ae99
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
call fcn.0043b6aa
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043158e
push dword [esp + 0x1c]
mov esi, eax
push esi
call fcn.0043b68e
add esp, 0x10
xor ebp, ebp
test edi, edi
mov bl, 1
jl 0x41af08
cmp word [esi + ebp*2], 0x5c
jne 0x41aeff
and word [esi + ebp*2], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41aef9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41af06
mov word [esi + ebp*2], 0x5c
inc ebp
cmp ebp, edi
jle 0x41aed6
jmp 0x41af08
xor bl, bl
push esi
call fcn.004b79f4
pop ecx
pop edi
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
Function at 0x41b028
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3ac]
push ebx
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41b077
xor eax, eax
jmp 0x41b14a
push esi
push edi
mov edi, 0x206
push edi
lea eax, [ebp - 0x6e]
push ebx
push eax
mov word [ebp - 0x70], bx
call fcn.0043b4c0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x4dfbb4
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 0x104
mov dword [ebp - 0x80], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x70]
push eax
call esi
test eax, eax
jne 0x41b12e
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [ebp + 0x19a]
push ebx
push eax
mov word [ebp + 0x198], bx
call fcn.0043b4c0
add esp, 0xc
push ebx
push 0x26
lea eax, [ebp + 0x198]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x198]
push str.Internet_Exploreriexplore.exe
push eax
call fcn.0043b664
pop ecx
pop ecx
lea eax, [ebp + 0x198]
push eax
call esi
test eax, eax
je 0x41b148
lea eax, [ebp + 0x198]
push eax
push dword [ebp - 0x78]
call fcn.0043b68e
pop ecx
pop ecx
jmp 0x41b145
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call fcn.0043b68e
pop ecx
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop ebx
call fcn.0043b4a5
add ebp, 0x3a4
leave
ret
Function at 0x41b160
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push ebx
push esi
xor ebx, ebx
push edi
push 0x206
lea eax, [ebp - 0x6a]
push ebx
push eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x7c], ebx
mov word [ebp - 0x6c], bx
call fcn.0043b4c0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x4dfc94
push SysReAllocString
call esi
test eax, eax
je 0x41b1ca
xor eax, eax
jmp 0x41b26f
lea eax, [ebp - 0x74]
push eax
push edi
push ebx
push str.shell
push dword [ebp - 0x78]
call esi
test eax, eax
jne 0x41b1c3
lea eax, [ebp - 0x70]
push eax
push edi
push ebx
push str.opencommand
push dword [ebp - 0x74]
call esi
test eax, eax
jne 0x41b1c3
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x4dfbb4
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], 0x104
mov dword [ebp - 0x80], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x70]
call esi
lea eax, [ebp - 0x6c]
push eax
call fcn.0043e4df
mov esi, 0x4c7b60
push esi
push eax
call fcn.0043c416
add esp, 0xc
cmp eax, ebx
je 0x41b1c3
lea edi, [eax + 2]
push esi
push edi
call fcn.0043c416
cmp eax, ebx
pop ecx
pop ecx
je 0x41b1c3
push edi
mov word [eax], bx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b4a5
add ebp, 0x1a0
leave
ret

Function at 0x41b287
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
push esi
push edi
mov edi, dword [ebp + 0x7b0]
push 0x44
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0043b4c0
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], 0x44
call fcn.0043b4c0
push edi
lea eax, [ebp - 0x2c]
push 0x4c704c
push eax
call fcn.0043c4d1
add esp, 0x24
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41b30b
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0x7a4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043b4a5
add ebp, 0x7a8
leave
ret