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

Disassembly:
sub esp, 0x838
mov eax, dword [0x47305c]
xor eax, esp
mov dword [esp + 0x834], eax
push ebp
mov ebp, dword [esp + 0x840]
push esi
push edi
push 0x206
lea eax, [esp + 0x26]
push 0
push eax
mov word [esp + 0x2c], 0
call fcn.00439b80
mov ecx, 0xc
mov esi, 0x45e674
lea edi, [esp + 0x644]
rep movsd dword es:[edi], dword [esi]
push 0x1d6
lea ecx, [esp + 0x67a]
push 0
push ecx
mov dword [esp + 0x28], 0x208
movsw word es:[edi], word [esi]
call fcn.00439b80
push 0x206
lea edx, [esp + 0x246]
push 0
push edx
mov word [esp + 0x24c], 0
call fcn.00439b80
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x660]
push ecx
call fcn.00419fc0
add esp, 0x2c
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x22c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x419f9d
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push 0x45e670
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419f9d
cmp word [esp + 0x20], ax
je 0x419f9d
push 0x206
push eax
lea ecx, [esp + 0x43a]
push ecx
mov word [esp + 0x43c], ax
call fcn.00439b80
lea edx, [esp + 0x43c]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00419fc0
push 0x20
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x44c]
push 7
push edx
call fcn.0041a2f0
add esp, 0x24
push str.Ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x419ed0
pop edi
pop esi
mov eax, 0x1f47
pop ebp
mov ecx, dword [esp + 0x834]
xor ecx, esp
call fcn.00439b33
add esp, 0x838
ret
push str.NtQuerySystemTime
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x419eb3
lea ecx, [esp + 0x18]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 0
push 0x3e8
push edx
push eax
call fcn.0043de50
push 0
push 0xa
push edx
push eax
call fcn.0043de50
push 0
push 0x3e8
push edx
push eax
call fcn.0043de50
push 0
push 0x3c
push edx
push eax
call fcn.0043de50
push 0
push 0x3c
push edx
push eax
call fcn.0043de50
push 0
push 0x18
push edx
push eax
call fcn.0043de50
sub eax, dword [esp + 0x14]
cmp eax, 0x3c
jbe 0x419f64
pop edi
pop esi
mov eax, 0x1f43
pop ebp
mov ecx, dword [esp + 0x834]
xor ecx, esp
call fcn.00439b33
add esp, 0x838
ret
jae 0x419f9d
test ebp, ebp
je 0x419f74
mov ecx, 0x3c
sub ecx, eax
mov dword [ebp], ecx
mov edx, 0x32
cmp edx, eax
sbb eax, eax
pop edi
and eax, 3
pop esi
add eax, 0x1f45
pop ebp
mov ecx, dword [esp + 0x834]
xor ecx, esp
call fcn.00439b33
add esp, 0x838
ret
mov ecx, dword [esp + 0x840]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 0x1f46
call fcn.00439b33
add esp, 0x838
ret
Function at 0x41bbe0
Capabilities:
Get common file path
Set registry value

Disassembly:
sub esp, 0x424
mov eax, dword [0x47305c]
xor eax, esp
mov dword [esp + 0x420], eax
push edi
mov edi, dword [esp + 0x42c]
test edi, edi
jne 0x41bc18
xor eax, eax
pop edi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00439b33
add esp, 0x424
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [esp + 0x10]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorer
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x41bc4d
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00439b33
add esp, 0x424
ret
mov edx, dword [esp + 0x10]
push ebp
lea ecx, [esp + 0xc]
push ecx
push str.DriveIcons
push edx
call esi
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
je 0x41bca3
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push str.DriveIcons
push ecx
call ebp
test eax, eax
je 0x41bca3
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00439b33
add esp, 0x424
ret
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edi
push edx
call esi
test eax, eax
je 0x41bce1
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push edi
push ecx
call ebp
test eax, eax
je 0x41bce1
mov edx, dword [esp + 0x10]
push edx
call ebx
xor eax, eax
jmp 0x41bde6
mov eax, dword [esp + 0x10]
push eax
call ebx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push str.DefaultIcon
push edx
call esi
xor edi, edi
cmp eax, edi
je 0x41bd22
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push str.DefaultIcon
push ecx
call ebp
cmp eax, edi
je 0x41bd22
mov edx, dword [esp + 0x14]
push edx
call ebx
xor eax, eax
jmp 0x41bde6
push 0x206
lea eax, [esp + 0x22e]
push edi
push eax
mov word [esp + 0x234], di
call fcn.00439b80
add esp, 0xc
push 0x104
lea ecx, [esp + 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x206
lea edx, [esp + 0x26]
push edi
push edx
mov word [esp + 0x2c], di
call fcn.00439b80
add esp, 0xc
cmp dword [esp + 0x43c], edi
je 0x41bd88
lea eax, [esp + 0x228]
push eax
push str._s_shadowPowerMaster.exe_1
lea ecx, [esp + 0x28]
push ecx
jmp 0x41bd9a
lea edx, [esp + 0x228]
push edx
push str._s_shadowPowerMaster.exe_2
lea eax, [esp + 0x28]
push eax
call fcn.0043d2ab
lea eax, [esp + 0x2c]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41bdb0
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push 1
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [esp + 0x1c]
push ecx
mov esi, eax
call ebx
xor eax, eax
cmp esi, edi
sete al
mov ecx, dword [esp + 0x430]
pop ebx
pop ebp
pop esi
pop edi
xor ecx, esp
call fcn.00439b33
add esp, 0x424
ret
Function at 0x422272
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4222b5
call fcn.00425136
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4222b5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4222d0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00421e2c
test ebx, ebx
mov esi, eax
je 0x4222ce
test edi, edi
je 0x4222ce
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x42439c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x45869f
call fcn.0043f732
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00425136
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4243e7
call fcn.00425136
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4243f8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x424405
or eax, 0xffffffff
jmp 0x424561
mov ecx, esi
call fcn.00423ecc
mov dword [ebp - 0x14], eax
call fcn.0041f653
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x424483
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x424483
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x424483
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0041e1f8
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x424483
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x424483
mov ecx, ebx
call fcn.004224d1
test eax, eax
je 0x424483
push 0
mov ecx, ebx
call fcn.004224ec
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00421055
push dword [ebp - 0x14]
call fcn.0041f5ab
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004241a4
xor edi, edi
cmp eax, edi
je 0x4244e0
test byte [esi + 0x3c], 0x10
je 0x4244ca
push 4
pop edi
mov ecx, esi
call fcn.0042238e
test ax, 0x100
je 0x4244c0
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041f11c
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4244e0
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004226bf
or dword [ebp - 4], 0xffffffff
jmp 0x42450b
cmp dword [ebp - 0x28], edi
je 0x424519
push 1
mov ecx, ebx
call fcn.004224ec
cmp dword [ebp - 0x2c], edi
je 0x424529
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x424542
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x424542
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00423f06
cmp dword [esi + 0x58], edi
je 0x42455e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043f7d7
ret
Function at 0x426ff0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x47305c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x42702d
push 0x4605b8
push 4
push eax
call fcn.0043f5ca
push eax
call fcn.00401700
add esp, 0x10
jmp 0x42703f
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4270aa
push edi
call fcn.0043f844
mov edi, dword [eax]
call fcn.0043f844
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0043d35d
add esp, 0x18
mov ebx, eax
call fcn.0043f844
cmp dword [eax], 0
je 0x42708a
call fcn.0043f844
push dword [eax]
call fcn.0041c8c1
pop ecx
jmp 0x427091
call fcn.0043f844
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4270aa
cmp ebx, esi
jae 0x4270aa
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4270ac
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00439b33
leave
ret
Function at 0x4285b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4285fb
call fcn.00425136
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4285fb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x42863e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x428627
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x428627
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42863b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x439b33
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47305c]
jne 0x439b3d
repz ret
jmp fcn.0044460c
Function at 0x4410fc
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x473210]
je 0x441117
inc edi
cmp edi, 0x17
jb 0x441108
cmp edi, 0x17
jae 0x441297
push ebp
push 3
call fcn.0044e4ed
cmp eax, 1
pop ecx
je 0x441263
push 3
call fcn.0044e4ed
test eax, eax
pop ecx
jne 0x44114b
cmp dword [0x47303c], 1
je 0x441263
cmp ebx, 0xfc
je 0x441296
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x477ab8
push ebp
call fcn.004461de
add esp, 0xc
test eax, eax
je 0x441181
push esi
push esi
push esi
push esi
push esi
call fcn.0043b8c5
add esp, 0x14
push 0x104
mov esi, 0x477ad1
push esi
push 0
mov byte [0x477bd5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4411c5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004461de
add esp, 0xc
test eax, eax
je 0x4411c5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043b8c5
add esp, 0x14
push esi
call fcn.00446250
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44120a
push esi
call fcn.00446250
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x477dcc
push 0x46287c
sub ecx, eax
push ecx
push eax
call fcn.00448266
add esp, 0x14
test eax, eax
je 0x44120a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043b8c5
add esp, 0x14
jmp 0x44120c
xor esi, esi
push 0x462878
push ebx
push ebp
call fcn.004481ac
add esp, 0xc
test eax, eax
je 0x44122c
push esi
push esi
push esi
push esi
push esi
call fcn.0043b8c5
add esp, 0x14
push dword [edi*8 + 0x473214]
push ebx
push ebp
call fcn.004481ac
add esp, 0xc
test eax, eax
je 0x44124e
push esi
push esi
push esi
push esi
push esi
call fcn.0043b8c5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044e330
add esp, 0xc
jmp 0x441296
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x441296
cmp ebp, 0xffffffff
je 0x441296
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x473214]
push dword [esi]
call fcn.00446250
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44e330
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00441cad
xor ebx, ebx
cmp dword [0x4785cc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44e406
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44e4e6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44e4e6
push eax
call fcn.00441c3f
mov dword [esp], 0x4644e0
push edi
mov dword [0x4785cc], eax
call esi
push eax
call fcn.00441c3f
mov dword [esp], 0x4644cc
push edi
mov dword [0x4785d0], eax
call esi
push eax
call fcn.00441c3f
mov dword [0x4785d4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043a02c
test eax, eax
pop ecx
pop ecx
je 0x44e3d4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043b8c5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44e406
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00441c3f
cmp eax, ebx
pop ecx
mov dword [0x4785dc], eax
je 0x44e406
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00441c3f
pop ecx
mov dword [0x4785d8], eax
mov eax, dword [0x4785d8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44e48b
cmp dword [0x4785dc], ecx
je 0x44e48b
push eax
call fcn.00441cb6
push dword [0x4785dc]
mov esi, eax
call fcn.00441cb6
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44e48b
cmp edi, ebx
je 0x44e48b
call esi
cmp eax, ebx
je 0x44e458
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44e458
test byte [ebp - 0x18], 1
jne 0x44e48b
lea eax, [ebp - 0x10]
push eax
call fcn.0043a063
test eax, eax
pop ecx
je 0x44e473
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043b8c5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44e482
or dword [ebp + 0x10], 0x200000
jmp 0x44e4c6
or dword [ebp + 0x10], 0x40000
jmp 0x44e4c6
mov eax, dword [0x4785d0]
cmp eax, dword [ebp - 8]
je 0x44e4c6
push eax
call fcn.00441cb6
cmp eax, ebx
pop ecx
je 0x44e4c6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44e4c6
mov eax, dword [0x4785d4]
cmp eax, dword [ebp - 8]
je 0x44e4c6
push eax
call fcn.00441cb6
cmp eax, ebx
pop ecx
je 0x44e4c6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4785cc]
call fcn.00441cb6
cmp eax, ebx
pop ecx
je 0x44e4e6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44e4e8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x454204
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x47305c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00454199
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00439b80
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x454253
cmp dword [ebp - 0x1c], 5
jb 0x45426b
jmp 0x454267
cmp dword [ebp - 0x10], 1
jne 0x45426b
cmp dword [ebp - 0x1c], 4
ja 0x454267
jne 0x45426b
cmp dword [ebp - 0x18], 0
jbe 0x45426b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x465690
call fcn.0045408a
test eax, eax
jge 0x45428c
mov byte [0x47596c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00439b33
add ebp, 0x78
leave
ret
Function at 0x40c280
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x467c3b
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.0045c669
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c302
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045a580
mov eax, dword [eax]
push 0x47d1f0
push eax
call fcn.0044d1b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045c8f4
test bl, bl
je 0x40c302
push 0x47d1f0
lea ecx, [esp + 0xc]
call fcn.0045cc84
push 0x480d64
lea ecx, [esp + 0xc]
call fcn.0045cc84
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 0x40c33e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045c8f4
jmp 0x40c409
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 0x40c3c2
lea edx, [esp + 0x7c]
push 0x480d60
push edx
call fcn.0044d1b4
add esp, 8
test eax, eax
je 0x40c3c2
lea eax, [esp + 0x7c]
push 0x480d5c
push eax
call fcn.0044d1b4
add esp, 8
test eax, eax
je 0x40c3c2
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 0x40c352
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.0045c8f4
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 0x40cc00
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 0x40cc62
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 0x40cc70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x467cbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4872c8]
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 0x40cda8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ccd6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045c8f4
xor eax, eax
jmp 0x40ce1f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045ca31
push esi
lea ecx, [esp + 0xc]
call fcn.0045ccc0
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 0x40cdfd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040cc00
test eax, eax
jne 0x40cdfd
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.0040cc00
test eax, eax
jne 0x40cdfd
lea eax, [esp + 0x14]
push 0x480d78
push eax
call fcn.0044e1f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cddc
lea ecx, [esp + 0x14]
push 0x480d74
push ecx
call fcn.0044e170
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cddc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40cddf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045c9e1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ccee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045c8f4
xor eax, eax
jmp 0x40ce1f
mov byte [esi], 0
push 0x480d70
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.0045c8f4
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