joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005910
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x124
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x120], eax
call fcn.1000956f
push eax
lea ecx, [esp + 4]
call fcn.1000a377
call fcn.1000c699
test eax, eax
jne 0x10005946
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
push ebx
push ebp
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebx, eax
push 0x104
lea ecx, [esp + 0x2c]
add ebx, 0x10
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RtlExUpd.dll
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.DTSICON
mov edi, eax
push 0xbc9
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov dword [esp + 0x20], eax
je 0x10005aca
test ebp, ebp
je 0x10005aca
cmp dword [esp + 0x1c], 0
je 0x10005aca
test eax, eax
je 0x10005aca
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.TempDTS.ico
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x40]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10005a3e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, dword [esp + 0x20]
je 0x10005aa0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x40]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10005aa0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10005aa0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10005060
cmp dword [esp + 0x14], ebx
je 0x10005b00
mov eax, dword [esp + 0x10]
push eax
jmp 0x10005af9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10005060
cmp dword [esp + 0x14], 0
je 0x10005ac3
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009b1a
mov eax, 1
jmp 0x10005b02
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005aed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x10005b00
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009b1a
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001530a
add esp, 0x124
ret
Function at 0x10005b20
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x124
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x120], eax
call fcn.1000956f
push eax
lea ecx, [esp + 4]
call fcn.1000a377
call fcn.1000c699
test eax, eax
jne 0x10005b56
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
push ebx
push ebp
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebx, eax
push 0x104
lea ecx, [esp + 0x2c]
add ebx, 0x10
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RtlExUpd.dll
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.BANGOLUFSENICON
mov edi, eax
push 0xbcb
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov dword [esp + 0x20], eax
je 0x10005cda
test ebp, ebp
je 0x10005cda
cmp dword [esp + 0x1c], 0
je 0x10005cda
test eax, eax
je 0x10005cda
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.TempBANG_OLUFSEN.ico
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x40]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10005c4e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, dword [esp + 0x20]
je 0x10005cb0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x40]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10005cb0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10005cb0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10005060
cmp dword [esp + 0x14], ebx
je 0x10005d10
mov eax, dword [esp + 0x10]
push eax
jmp 0x10005d09
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10005060
cmp dword [esp + 0x14], 0
je 0x10005cd3
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009b1a
mov eax, 1
jmp 0x10005d12
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005cfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x10005d10
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009b1a
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001530a
add esp, 0x124
ret
Function at 0x10005d30
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x124
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x120], eax
call fcn.1000956f
push eax
lea ecx, [esp + 4]
call fcn.1000a377
call fcn.1000c699
test eax, eax
jne 0x10005d66
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
push ebx
push ebp
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebx, eax
push 0x104
lea ecx, [esp + 0x2c]
add ebx, 0x10
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RtlExUpd.dll
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.BOPLAYICON
mov edi, eax
push 0xbcc
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov dword [esp + 0x20], eax
je 0x10005eea
test ebp, ebp
je 0x10005eea
cmp dword [esp + 0x1c], 0
je 0x10005eea
test eax, eax
je 0x10005eea
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.TempBOPlay.ico
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x40]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10005e5e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, dword [esp + 0x20]
je 0x10005ec0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x40]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10005ec0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10005ec0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10005060
cmp dword [esp + 0x14], ebx
je 0x10005f20
mov eax, dword [esp + 0x10]
push eax
jmp 0x10005f19
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10005060
cmp dword [esp + 0x14], 0
je 0x10005ee3
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009b1a
mov eax, 1
jmp 0x10005f22
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005f0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x10005f20
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009b1a
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001530a
add esp, 0x124
ret
Function at 0x100070c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x1a8], eax
call fcn.1000c699
test eax, eax
jne 0x100070e7
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push esi
call eax
mov esi, eax
lea ecx, [esp + 0xc]
add esi, 0x10
push ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 2
je 0x10007148
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10007130
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.1001530a
add esp, 0x1ac
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0xb0]
push str._d._d
push eax
call fcn.10002470
lea eax, [esp + 0xb8]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10007171
push edi
push 0x20
sub eax, edx
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.100062b0
mov edi, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x100071d3
mov ecx, dword [esp + 8]
lea edx, [esi + esi]
push edx
lea eax, [esp + 0xb0]
push eax
push 1
push 0
push str.OSVer
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x100071f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1ac]
pop esi
xor ecx, esp
mov eax, 1
call fcn.1001530a
add esp, 0x1ac
ret
Function at 0x1000a885
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10033a60]
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 - 0x11c]
jne 0x1000a8c5
push 0x1002b030
push 4
push eax
call fcn.100156f9
push eax
call fcn.10001000
add esp, 0x10
jmp 0x1000a8d7
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1000a945
push edi
call fcn.10016e9e
mov edi, dword [eax]
call fcn.10016e9e
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.100167db
add esp, 0x18
mov ebx, eax
call fcn.10016e9e
cmp dword [eax], 0
je 0x1000a925
call fcn.10016e9e
push dword [eax]
call fcn.1000998a
pop ecx
jmp 0x1000a92c
call fcn.10016e9e
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x1000a945
cmp ebx, esi
jae 0x1000a945
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x1000a947
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001530a
leave
ret
Function at 0x1001530a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10033a60]
jne 0x10015314
repz ret
jmp fcn.1001c80e

Function at 0x1001897d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x10018980
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x10018971
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.1001872c
adc byte [ecx + ecx*4 - 0x57ba72ed], dl
push eax
call fcn.1001873c
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.100186f1
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10018a1a
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
invalid
inc ebp
Function at 0x1001ba37
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 + 0x10034348]
je 0x1001ba52
inc edi
cmp edi, 0x17
jb 0x1001ba43
cmp edi, 0x17
jae 0x1001bbd2
push ebp
push 3
call fcn.10022ca5
cmp eax, 1
pop ecx
je 0x1001bb9e
push 3
call fcn.10022ca5
test eax, eax
pop ecx
jne 0x1001ba86
cmp dword [0x10036dc8], 1
je 0x1001bb9e
cmp ebx, 0xfc
je 0x1001bbd1
push 0x1002c858
mov ebx, 0x314
push ebx
mov ebp, 0x10036fd0
push ebp
call fcn.100156f9
add esp, 0xc
test eax, eax
je 0x1001babc
push esi
push esi
push esi
push esi
push esi
call fcn.1001aa41
add esp, 0x14
push 0x104
mov esi, 0x10036fe9
push esi
push 0
mov byte [0x100370ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001bb00
push 0x1002c840
push 0x2fb
push esi
call fcn.100156f9
add esp, 0xc
test eax, eax
je 0x1001bb00
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1001aa41
add esp, 0x14
push esi
call fcn.10016d80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1001bb45
push esi
call fcn.10016d80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100372e4
push 0x1002c83c
sub ecx, eax
push ecx
push eax
call fcn.100159ac
add esp, 0x14
test eax, eax
je 0x1001bb45
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1001aa41
add esp, 0x14
jmp 0x1001bb47
xor esi, esi
push 0x1002c838
push ebx
push ebp
call fcn.1001575e
add esp, 0xc
test eax, eax
je 0x1001bb67
push esi
push esi
push esi
push esi
push esi
call fcn.1001aa41
add esp, 0x14
push dword [edi*8 + 0x1003434c]
push ebx
push ebp
call fcn.1001575e
add esp, 0xc
test eax, eax
je 0x1001bb89
push esi
push esi
push esi
push esi
push esi
call fcn.1001aa41
add esp, 0x14
push 0x12010
push 0x1002c810
push ebp
call fcn.10022ae8
add esp, 0xc
jmp 0x1001bbd1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1001bbd1
cmp ebp, 0xffffffff
je 0x1001bbd1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1003434c]
push dword [esi]
call fcn.10016d80
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 0x10028a6e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10033a60]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.10028a03
mov eax, 0x10000000
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.10015290
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 0x10028abd
cmp dword [ebp - 0x1c], 5
jb 0x10028ad5
jmp 0x10028ad1
cmp dword [ebp - 0x10], 1
jne 0x10028ad5
cmp dword [ebp - 0x1c], 4
ja 0x10028ad1
jne 0x10028ad5
cmp dword [ebp - 0x18], 0
jbe 0x10028ad5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1002db50
call fcn.100288d7
test eax, eax
jge 0x10028af6
mov byte [0x10034fd4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1001530a
add ebp, 0x78
leave
ret
Function at 0x407740
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x436a3b
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.0042bac3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4077c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004299e7
mov eax, dword [eax]
push 0x4451c0
push eax
call fcn.0041c904
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0042bd4e
test bl, bl
je 0x4077c2
push 0x4451c0
lea ecx, [esp + 0xc]
call fcn.0042c0de
push 0x448d08
lea ecx, [esp + 0xc]
call fcn.0042c0de
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 0x4077fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0042bd4e
jmp 0x4078c9
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 0x407882
lea edx, [esp + 0x7c]
push 0x448d04
push edx
call fcn.0041c904
add esp, 8
test eax, eax
je 0x407882
lea eax, [esp + 0x7c]
push 0x448d00
push eax
call fcn.0041c904
add esp, 8
test eax, eax
je 0x407882
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 0x407812
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.0042bd4e
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 0x4080c0
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 0x408122
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 0x408130
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x436abb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x44d990]
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 0x408268
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408196
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0042bd4e
xor eax, eax
jmp 0x4082df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0042be8b
push esi
lea ecx, [esp + 0xc]
call fcn.0042c11a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x448d40
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4082bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004080c0
test eax, eax
jne 0x4082bd
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.004080c0
test eax, eax
jne 0x4082bd
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0041d940
mov esi, eax
add esp, 8
test esi, esi
jne 0x40829c
lea ecx, [esp + 0x14]
push 0x448d18
push ecx
call fcn.0041d8c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40829c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40829f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0042be3b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4081ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0042bd4e
xor eax, eax
jmp 0x4082df
mov byte [esi], 0
push 0x448d14
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.0042bd4e
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