joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41372d
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 8]
push eax
push 0x403d30
push 1
xor ebx, ebx
push ebx
push 0x403dd0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x4137e0
mov eax, dword [ebp - 8]
push ebx
lea edx, [ebp - 4]
push edx
push 0x40142c
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jne 0x4137e0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x14]
mov esi, dword [ebp + 0xc]
jmp 0x4137db
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
lea edx, [ebp + 0xc]
push edx
push 1
push eax
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
jne 0x4137df
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
push 0x403d20
push ebx
push ebx
push eax
call dword [ecx + 0x20]
mov edi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jl 0x4137db
push dword [ebp + 8]
push dword [esi]
call fcn.004136bb
mov edi, eax
cmp edi, ebx
jge 0x4137df
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
cmp dword [esi], ebx
je 0x41378b
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 8

Function at 0x414563
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x414645
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x4145e0
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x414630
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x41464f
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x414630
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.0041454b
test eax, eax
je 0x41464f
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x41464f
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x414590
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x414648
Function at 0x415083
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4276dc]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x402c90
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41516f
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
xor edi, edi
test eax, eax
je 0x415163
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x415112
xor edi, edi
jmp 0x41515a
push ebx
lea eax, [ebp - 0x34]
push eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
call esi
test eax, eax
je 0x41510e
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x41513a
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x38]
push ecx
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x41510e
push dword [ebp - 0x38]
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0041640d
leave
ret 8
Function at 0x41517e
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4276dc]
push edi
push 0xf0000000
xor edi, edi
push 0x18
push edi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov dword [ebp - 0x424], 0x20
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x418], edi
mov byte [ebp - 0x14], 0x56
mov byte [ebp - 0x13], 0xc4
mov byte [ebp - 0x12], 0xbc
mov byte [ebp - 0x11], 0x99
mov byte [ebp - 0x10], pe_nt_image_headers32
mov byte [ebp - 0xf], 0x9c
mov byte [ebp - 0xe], 0x86
mov byte [ebp - 0xd], 0x1b
mov byte [ebp - 0xc], 0x41
mov byte [ebp - 0xb], 0xbd
mov byte [ebp - 0xa], 0xf0
mov byte [ebp - 9], 0x55
mov byte [ebp - 8], 0x19
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4152e5
push ebx
push esi
lea eax, [ebp - 0x418]
push eax
push edi
push edi
push 0x800c
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x415221
xor esi, esi
jmp 0x4152d4
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push edi
push 0xd
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x418]
call esi
test eax, eax
jne 0x415241
xor esi, esi
jmp 0x4152c8
push 0x402cfc
push dword [ebp + 8]
mov dword [ebp - 0x420], edi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x4152a8
push ebx
push 0x400
lea eax, [ebp - 0x414]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, edi
jbe 0x4152a0
add dword [ebp - 0x420], eax
push edi
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call esi
test eax, eax
je 0x4152f2
cmp dword [ebp - 0x420], 0x4000
jb 0x41525d
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push edi
lea eax, [ebp - 0x424]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor esi, esi
test eax, eax
je 0x4152c8
inc esi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.0041640d
leave
ret 8
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x4152e3
Function at 0x41640d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4276dc]
jne 0x416416
ret
jmp 0x41641b
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4276dc]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x429974]
test eax, eax
je 0x41643f
call eax
cmp dword [0x429978], 0
je 0x416486
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x429978]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.0041640d
add ebp, 0x2a8
leave
ret
Function at 0x416a17
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
push edi
push 5
pop ecx
mov esi, 0x4040a4
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 5
pop ecx
mov esi, 0x40408c
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x404078
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 8]
movsw word es:[edi], word [esi]
mov esi, 0x404064
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebx
push 0x404044
movsb byte es:[edi], byte [esi]
xor esi, esi
lea eax, [ebp - 0xc4]
push 0x64
push eax
mov dword [0x4298dc], esi
mov dword [0x4298e0], esi
mov dword [0x4298e4], esi
call fcn.004169bf
add esp, 0x10
test eax, eax
jl 0x416bbb
lea eax, [ebp + 8]
push eax
push 0x20019
push esi
lea eax, [ebp - 0xc4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416bc4
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push 0x4298dc
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 4
call edi
test eax, eax
je 0x416ae5
mov dword [0x4298dc], esi
lea eax, [ebp - 4]
push eax
push 0x4298e0
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x416b06
mov dword [0x4298e0], esi
lea eax, [ebp - 4]
push eax
push 0x4298e4
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x416b27
mov dword [0x4298e4], esi
lea eax, [ebp - 4]
push eax
push 0x4298e8
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x416b4c
mov dword [0x4298e8], 0xffff0000
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4298dc], esi
jne 0x416b75
cmp dword [0x4298e0], esi
jne 0x416b85
cmp dword [0x4298e4], esi
jne 0x416b85
xor eax, eax
inc eax
jmp 0x416bf9
cmp dword [0x4298e0], esi
jne 0x416b85
cmp dword [0x4298e4], esi
je 0x416baa
push ebx
push 0x404040
push 0x64
push 0x429878
call fcn.004169bf
add esp, 0x10
test eax, eax
jl 0x416bbb
push esi
push ebx
call sub.rtutils.dll_TraceRegisterExW
mov dword [0x4276e0], eax
cmp dword [0x4298dc], esi
jne 0x416bbf
cmp dword [0x4276e0], 0xffffffff
jne 0x416bbf
xor eax, eax
jmp 0x416bf9
xor eax, eax
inc eax
jmp 0x416bf4
push ebx
push 0x404040
push 0x64
push 0x429878
call fcn.004169bf
add esp, 0x10
test eax, eax
jl 0x416bbb
push esi
push ebx
call sub.rtutils.dll_TraceRegisterExW
mov ecx, eax
xor eax, eax
inc eax
cmp ecx, 0xffffffff
mov dword [0x4276e0], ecx
je 0x416bf9
mov dword [0x4298ec], eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x416c00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
xor esi, esi
cmp dword [0x4298dc], esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x201
jbe 0x416d27
test dword [0x4298e8], edi
je 0x416d27
cmp edi, 0x10002
je 0x416c6c
cmp edi, 0x20002
je 0x416c69
cmp edi, 0x40002
je 0x416c65
cmp edi, 0x80002
je 0x416c60
xor eax, eax
cmp edi, 0x100002
setne al
add eax, 4
mov esi, eax
jmp 0x416c6c
push 3
pop esi
jmp 0x416c6c
push 2
jmp 0x416c62
xor esi, esi
inc esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push dword [esi*4 + 0x4276e4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push 0x429878
push 0x404104
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004169bf
add esp, 0x28
test eax, eax
jl 0x416dbf
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0041693f
test eax, eax
jl 0x416dbf
mov eax, dword [ebp - 4]
cmp eax, ebx
jae 0x416dbf
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x218]
push eax
call fcn.004169a4
test eax, eax
jge 0x416d08
cmp eax, 0x7a
jne 0x416dbf
push 0x404100
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.004169e6
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x4276e0], 0xffffffff
je 0x416dbf
xor eax, eax
cmp dword [0x4298e0], eax
ja 0x416d46
cmp dword [0x4298e4], eax
jbe 0x416dbf
cmp edi, 0x10002
je 0x416d82
cmp edi, 0x20002
je 0x416d7f
cmp edi, 0x40002
je 0x416d7b
cmp edi, 0x80002
je 0x416d76
xor eax, eax
cmp edi, 0x100002
setne al
add eax, 4
jmp 0x416d82
push 3
pop eax
jmp 0x416d82
push 2
jmp 0x416d78
xor eax, eax
inc eax
push dword [ebp + 0xc]
push dword [eax*4 + 0x4276e4]
lea eax, [ebp - 0x218]
push 0x4040f8
push ebx
push eax
call fcn.004169bf
add esp, 0x14
test eax, eax
jl 0x416dbf
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
or edi, 4
push edi
push dword [0x4276e0]
call sub.rtutils.dll_TraceVprintfExA
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4236a1
Capabilities:
Create thread

Disassembly:
mov eax, 0x4252a1
call fcn.00416768
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x4298ec], edi
mov esi, ecx
mov ebx, 0x80002
je 0x4236ce
push 0x40f2a8
push ebx
call fcn.00416c00
pop ecx
pop ecx
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x30], edi
mov dword [ebp - 4], edi
jne 0x42374e
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x3c], eax
jne 0x423711
cmp dword [0x4298ec], edi
je 0x42370a
push 0x40f288
push 0x10002
call fcn.00416c00
pop ecx
pop ecx
mov edi, 0x80004005
jmp 0x423766
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x423695
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x40], eax
jne 0x42374e
cmp dword [0x4298ec], edi
je 0x42370a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40f26c
push 0x10002
call fcn.00416c00
add esp, 0xc
jmp 0x42370a
inc dword [esi + 0x30]
cmp dword [0x4298ec], edi
je 0x423766
push 0x40f24c
push ebx
call fcn.00416c00
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40218e
Capabilities:
Get number of processors

Disassembly:
push ebp
sub esp, 0x504
lea ebp, [esp - 4]
mov eax, dword [0x47fe60]
xor eax, ebp
mov dword [ebp + 0x504], eax
push 0x80
mov eax, 0x46078e
call fcn.00434f43
mov eax, dword [ebp + 0x514]
mov edi, dword [ebp + 0x510]
mov esi, ecx
push dword [esi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x518]
xor ebx, ebx
push str.SMUpdate
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x28], 0x64
mov dword [ebp - 0x18], ebx
call fcn.004018be
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x14], ebx
call fcn.00416689
mov byte [ebp - 4], 2
call fcn.00417520
push eax
lea ecx, [ebp - 0x30]
call fcn.0041689a
mov byte [ebp - 4], 3
call fcn.00417520
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041689a
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x5c]
push eax
push edi
mov byte [ebp - 4], 4
call fcn.00420471
cmp eax, ebx
je 0x402618
cmp dword [ebp - 0x5c], 3
jne 0x402618
push 0xffffffffffffff83
in al, dx
sub al, 0x56
lea ecx, [esp + 0x10]
add eax, ebp
push ecx
call eax
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
call fcn.00424eb1
add esp, 4
push 0x67
jmp 0x402386
push str.Error:_can_only_use_URLs_beginning_with_http:___n
jmp 0x402408

Function at 0x4022c3
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
sub esp, 0x220
xor ecx, ecx
mov eax, dword [eax + 0xc]
push ebx
push ebp
push esi
mov eax, dword [eax + 0xc]
push edi
mov ebp, dword [eax + 0x18]
mov edi, dword [eax + 0x30]
mov esi, dword [ebp + 0x6c929]
mov ebx, dword [ebp + 0x6c92d]
test esi, esi
je 0x402307
lea edx, [ebp + 0x6c931]
mov eax, dword [edx]
lea edx, [edx + 4]
add eax, ebx
mov dword [esp + ecx*4 + 0x2c], eax
inc ecx
cmp ecx, esi
jb 0x4022f7
lea eax, [esp + 0x2c]
push eax
call fcn.00402253
xor ecx, ecx
add esp, 4
cmp word [eax], cx
je 0x402328
inc ecx
cmp word [eax + ecx*2], 0
jne 0x40231b
cmp ecx, 0x1f
ja 0x402392
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x148]
add edx, ebp
cmp dword [edx], 0
je 0x40237f
movzx ebx, word [edi]
xor eax, eax
test bx, bx
je 0x402350
inc eax
cmp word [edi + eax*2], 0
jne 0x402348
cmp al, byte [edx]
je 0x402359
cmp al, byte [edx + 1]
jne 0x402392
xor ecx, ecx
xor esi, esi
cmp word [edi], cx
je 0x402375
mov eax, ebx
movzx eax, ax
lea ecx, [ecx + 1]
add esi, eax
movzx eax, word [edi + ecx*2]
test ax, ax
jne 0x402364
cmp esi, dword [edx + 4]
je 0x40237f
cmp esi, dword [edx + 8]
jne 0x402392
mov eax, dword [esp + 0x128]

Function at 0x404a45
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x14
mov dword [esp], eax
mov eax, dword [eax + 0x3c]
mov dword [esp + 4], edx
mov edi, dword [ebx + eax + 0x78]
add edi, ebx
mov esi, dword [edi + 0x1c]
add ebx, dword [edi + 0x20]
mov dword [esp + 0xc], esi
mov esi, dword [edi + 0x24]
Function at 0x40601c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xa4
mov eax, dword [0x47fe60]
xor eax, ebp
mov dword [ebp + 0x70], eax
push edi
mov edi, dword [ebp + 0x7c]
push 0x9c
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.00434ac0
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x406064
xor eax, eax
jmp 0x4060e7
cmp dword [ebp - 0x28], 6
jb 0x4060c1
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40605d
push str.GetProductInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40605d
lea ecx, [ebp - 0x30]
push ecx
movzx ecx, word [ebp + 0x6a]
push ecx
movzx ecx, word [ebp + 0x68]
push ecx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call eax
test eax, eax
je 0x40605d
push dword [ebp - 0x30]
movzx eax, word [ebp + 0x68]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push str._u._u._u._u
push edi
call fcn.00401fed
add esp, 0x18
jmp 0x4060e4
lea eax, [ebp - 0x2c]
push eax
call fcn.00405e18
push eax
movzx eax, word [ebp + 0x68]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push str._u._u._u._u
push edi
call fcn.00401fed
add esp, 0x1c
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop edi
call fcn.00434f01
add ebp, 0x74
leave
ret

Function at 0x406f84
Capabilities:
Create process on windows

Disassembly:
push 1
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x4085a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x47fe60]
xor eax, ebp
mov dword [ebp + 0x90], eax
push esi
mov esi, dword [ebp + 0x9c]
push edi
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
push 0x4676b0
push SysReAllocString
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40862b
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push esi
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push dword [ebp - 0x78]
jne 0x408625
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x74]
push eax
mov ecx, edi
call fcn.00401fc8
xor eax, eax
inc eax
jmp 0x40862d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
xor ecx, ebp
pop esi
call fcn.00434f01
add ebp, 0x94
leave
ret 4
Function at 0x408e33
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x3c]
push 0
push eax
mov edi, ecx
call fcn.00434ac0
mov al, byte [ebp + 0x10]
add esp, 0xc
neg al
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x20], 1
sbb eax, eax
and eax, 0xffffffc0
add eax, 0x40
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x408e90
mov dword [edi + 0x2c], 5
xor al, al
jmp 0x408eda
cmp byte [ebp + 0x10], 0
jne 0x408ed1
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x408eb2
cmp dword [ebp + 0x10], 0x103
jne 0x408ec8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x408e9e
mov dword [edi + 0x2c], 4
jmp 0x408e8c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x2c], 2
mov al, 1
pop edi
pop esi
leave
ret 0xc

Function at 0x40a021
Capabilities:
Create directory

Disassembly:
push 0xc
mov eax, 0x461a52
call fcn.00434f10
mov dword [ebp - 0x18], ecx
call fcn.00417520
push eax
lea ecx, [ebp - 0x10]
call fcn.0041689a
mov eax, dword [0x481410]
xor edi, edi
cmp dword [eax - 0xc], edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x10]
je 0x40a058
push eax
call fcn.00401fc8
jmp 0x40a0c3
push 0x46786c
call fcn.004085a5
test eax, eax
je 0x40a0b2
push 0x467860
lea ecx, [ebp - 0x10]
call fcn.004076fa
lea ecx, [ebp - 0x10]
call fcn.00407e9c
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jne 0x40a08f
push edi
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x40a0b2
push 0x467858
lea ecx, [ebp - 0x10]
call fcn.004076fa
lea ecx, [ebp - 0x10]
call fcn.00407e9c
test eax, eax
jne 0x40a0c3
push edi
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40a0c3
push edi
lea ecx, [ebp - 0x10]
call fcn.004072e4
lea ecx, [ebp - 0x10]
call fcn.0040806a
call fcn.00417520
push eax
lea ecx, [ebp - 0x14]
call fcn.0041689a
mov esi, dword [ebp + 8]
cmp dword [esi + 0x4c], edi
mov byte [ebp - 4], 1
jne 0x40a106
cmp dword [esi + 0x18], 0x10
push edi
lea eax, [ebp - 0x14]
push eax
jb 0x40a0ed
mov eax, dword [esi + 4]
jmp 0x40a0f0
lea eax, [esi + 4]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00402092
mov ecx, dword [ebp - 0x18]
call fcn.00409b9a
jmp 0x40a11d
cmp dword [esi + 0x50], 0x10
jb 0x40a111
mov eax, dword [esi + 0x3c]
jmp 0x40a114
lea eax, [esi + 0x3c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401fc8
mov edi, dword [ebp - 0x14]
push edi
lea ecx, [ebp - 0x10]
call fcn.004076fa
mov ebx, dword [ebp - 0x10]
push ebx
lea ecx, [esi + 0x1c]
call fcn.00402f84
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
add ecx, 0x12e4
call fcn.00401f7b
lea ecx, [edi - 0x10]
call fcn.00401097
lea ecx, [ebx - 0x10]
call fcn.00401097
call fcn.00434fe8
ret 4