joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436f10
Capabilities:
Create thread

Disassembly:
push 0
push 0
push ecx
push 0x436ee0
push 0
push 0
call fcn.0043a6ce
add esp, 0x18
mov eax, 1
ret

Function at 0x436f30
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push esi
call edi
cmp eax, 0xffffffff
jne 0x436f80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x436f6b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call edi
pop edi
ret

Function at 0x437040
Capabilities:
Check http status code
Create http request

Disassembly:
sub esp, 0x20c
mov eax, dword [0x463630]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov edi, ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
cmp esi, ebx
je 0x4370eb
push ebp
push ebx
push accept
push ebx
push ebx
push edi
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, eax
cmp edi, ebx
je 0x4370e7
push 0x1ff
lea eax, [esp + 0x1d]
push ebx
push eax
mov byte [esp + 0x24], bl
call fcn.0043ab70
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push 0x13
push edi
mov dword [esp + 0x24], 0x200
mov dword [esp + 0x28], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4370e4
lea ecx, [esp + 0x18]
push ecx
call fcn.0043bd5b
add esp, 4
cmp eax, 0xc8
sete bl
push edi
call ebp
push esi
call ebp
pop ebp
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0043a5be
add esp, 0x20c
ret
Function at 0x437160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x450dd9
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x463630]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463630]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, 7
mov ebp, ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x8c], eax
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], cx
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], dx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov esi, dword [esp + 0xa8]
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0xa8], ebx
call fcn.0042ec70
test al, al
je 0x4372a9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [esp + 0x3c], eax
call fcn.004301f0
push 0x38
call fcn.0043a173
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
mov byte [esp + 0xa0], 1
cmp edi, ebx
je 0x43728f
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0x24]
push ebx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x20], eax
call fcn.0042cd30
mov ecx, dword [esp + 0x20]
push eax
mov al, byte [esp + 0x28]
and al, 1
movzx eax, al
push eax
push ecx
push esi
mov ecx, edi
call fcn.00430fb0
jmp 0x437291
xor eax, eax
mov byte [esp + 0xa0], bl
cmp eax, ebx
je 0x4372a9
mov ecx, dword [ebp + 4]
cmp ecx, ebx
je 0x4372a9
push eax
call fcn.004308d0
lea ecx, [esp + 0x20]
call fcn.0042e110
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0043a5be
add esp, 0x90
ret 8
Function at 0x4374c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x450e79
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x463630]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463630]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, 7
mov ebp, ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x94], eax
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], cx
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], dx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov edi, dword [esp + 0xb0]
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
push edi
mov dword [esp + 0xb0], ebx
call fcn.0042ec70
test al, al
je 0x437652
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
cmp ecx, 0x3e8
jb 0x437640
mov eax, dword [esp + 0x40]
inc eax
shl eax, 0xc
xor edx, edx
div ecx
push 0x38
mov dword [esp + 0x24], eax
call fcn.0043a173
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov byte [esp + 0xa8], 1
cmp esi, ebx
je 0x43760a
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x2c]
push edx
inc eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call fcn.0042cd30
push eax
mov al, byte [esp + 0x2c]
and al, 1
movzx edx, al
push edx
push ebp
push edi
mov ecx, esi
call fcn.00431060
mov ebp, dword [esp + 0x14]
mov esi, eax
jmp 0x43760c
xor esi, esi
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 8]
push edi
mov byte [esp + 0xb0], bl
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], eax
call fcn.004301f0
cmp esi, ebx
je 0x437652
mov ecx, dword [ebp + 4]
cmp ecx, ebx
je 0x437652
push esi
call fcn.004308d0
jmp 0x437652
mov ecx, dword [ebp + 8]
inc dword [esp + 0x40]
lea edx, [esp + 0x28]
push edx
push edi
call fcn.004301f0
lea ecx, [esp + 0x28]
call fcn.0042e110
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0043a5be
add esp, 0x98
ret 8
Function at 0x4387f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x824
mov eax, dword [0x463630]
xor eax, esp
mov dword [esp + 0x820], eax
mov eax, dword [esp + 0x82c]
push ebx
push ebp
mov ebp, dword [esp + 0x838]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x83c]
push esi
push edi
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x848]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x84c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x850]
xor edi, edi
mov esi, ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
xor bl, bl
mov dword [esp + 0x18], edi
call fcn.00436f30
mov esi, eax
cmp esi, 0xffffffff
je 0x4388ca
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x83c]
push esi
push edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x40]
call fcn.00438330
add esp, 0x14
mov bl, al
call edi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x4388d4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4388d4
mov ecx, ebp
call fcn.00436f90
mov bl, al
test bl, bl
jne 0x4388d4
mov edx, dword [esp + 0x10]
mov dword [edx], 0x3e9
jmp 0x4388d4
mov eax, dword [esp + 0x10]
mov dword [eax], 0x3eb
push 0x7ff
lea ecx, [esp + 0x35]
push 0
push ecx
mov byte [esp + 0x3c], 0
call fcn.0043ab70
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
sub edi, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edx]
mov edx, dword [esp + 0x38]
push edi
movzx ecx, bl
push ecx
mov ecx, dword [esp + 0x34]
push eax
push ecx
push edx
lea eax, [esp + 0x54]
push eax
call fcn.0043a050
lea ecx, [esp + 0x58]
push ecx
call fcn.0043a000
mov ecx, dword [esp + 0x85c]
add esp, 0x2c
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.0043a5be
add esp, 0x824
ret
Function at 0x439230
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x451269
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x463630]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463630]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa4]
xor ebx, ebx
mov eax, 7
mov ebp, ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x88], eax
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], cx
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], dx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0xa4], ebx
call fcn.0042ec70
test al, al
je 0x439365
push 0x30
call fcn.0043a173
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov byte [esp + 0x9c], 1
cmp edi, ebx
je 0x439325
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18], ecx
call fcn.0042cd30
push eax
mov eax, dword [esp + 0x1c]
push eax
push esi
mov ecx, edi
call fcn.00431110
jmp 0x439327
xor eax, eax
mov byte [esp + 0x9c], bl
cmp eax, ebx
je 0x439365
mov ecx, dword [ebp + 4]
cmp ecx, ebx
je 0x43933f
push eax
call fcn.004308d0
push ebx
push 4
push esi
push 0x438ee0
push ebx
push ebx
call fcn.0043a6ce
mov edi, eax
add esp, 0x18
cmp edi, ebx
jne 0x439372
push 0x3f7
push esi
mov ecx, ebp
call fcn.00437e60
lea ecx, [esp + 0x1c]
call fcn.0042e110
xor al, al
jmp 0x43939a
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ebx
call fcn.004301f0
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [esp + 0x1c]
call fcn.0042e110
mov al, 1
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0043a5be
add esp, 0x8c
ret 8

Function at 0x43a050
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
cmp byte [0x466468], 0
jne 0x43a08f
lea eax, [esp]
push eax
push 0x466468
lea ecx, [esp + 0xc]
push ecx
push str.Region
push str.SoftwareSogouInput
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x3ff
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push 0x455698
push 0x466468
push ecx
push str.http:__ping.pinyin.sogou.com_sgdownload.gif_h_sr_sv_ss_ud_du_St_ddz_d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x30
ret

Function at 0x43a5be
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x463630]
jne 0x43a5c8
repz ret
jmp fcn.0043f57c
Function at 0x449071
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043eeb6
and dword [ebp - 4], 0
cmp dword [0x467308], 0
mov ebx, eax
jne 0x449122
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4491d3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4491d3
push eax
call fcn.0043ee44
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x467308], eax
call esi
push eax
call fcn.0043ee44
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46730c], eax
call esi
push eax
call fcn.0043ee44
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x467310], eax
call esi
push eax
call fcn.0043ee44
pop ecx
mov dword [0x467318], eax
test eax, eax
je 0x449122
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043ee44
pop ecx
mov dword [0x467314], eax
mov eax, dword [0x467314]
cmp eax, ebx
je 0x44917a
cmp dword [0x467318], ebx
je 0x44917a
push eax
call fcn.0043eebf
push dword [0x467318]
mov esi, eax
call fcn.0043eebf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44917a
test edi, edi
je 0x44917a
call esi
test eax, eax
je 0x449171
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x449171
test byte [ebp - 0xc], 1
jne 0x44917a
or dword [ebp + 0x10], 0x200000
jmp 0x4491b3
mov eax, dword [0x46730c]
cmp eax, ebx
je 0x4491b3
push eax
call fcn.0043eebf
pop ecx
test eax, eax
je 0x4491b3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4491b3
mov eax, dword [0x467310]
cmp eax, ebx
je 0x4491b3
push eax
call fcn.0043eebf
pop ecx
test eax, eax
je 0x4491b3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x467308]
call fcn.0043eebf
pop ecx
test eax, eax
je 0x4491d3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4491d5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433940
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x23000]
push edi
jmp 0x43395a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x433961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x433950
mov eax, 1
add ebx, ebx
jne 0x433973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x433968
jne 0x433984
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x433968
xor ecx, ecx
sub eax, 3
jb 0x433998
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x433a0a
mov ebp, eax
add ebx, ebx
jne 0x4339a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4339b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4339d4
inc ecx
add ebx, ebx
jne 0x4339c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4339b5
jne 0x4339d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4339b5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4339f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4339e5
jmp 0x433956
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4339f4
add edi, ecx
jmp 0x433956
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x433a12
cmp byte [edi], 0x12
jne 0x433a12
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 al, bl
loop 0x433a17
lea edi, [esi + 0x31000]
mov eax, dword [edi]
or eax, eax
je 0x433a8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x41070]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x41150]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x433a44
mov ecx, edi
jns 0x433a73
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 + 0x41158]
or eax, eax
je 0x433a89
mov dword [ebx], eax
add ebx, 4
jmp 0x433a61
call dword [esi + 0x41154]
mov ebp, dword [esi + 0x4115c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x433ac3
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
push ebx
pop eax
and eax, 0x1f
push ebx
pop edx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
sub eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
push eax
pop edi
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
mov esi, eax
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
or eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp int.00401219
Function at 0x10005990
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.1004e880
mov eax, dword [0x1006f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ecx]
lea eax, [ebp - 0x108]
xor esi, esi
push str..PhysicalDrive_d
push eax
call fcn.10006260
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10005bb3
push 0x2710
lea eax, [ebp - 0x37b8]
mov dword [ebp - 0x37bc], esi
push esi
push eax
mov dword [ebp - 0x37c0], esi
mov dword [ebp - 0x37c8], esi
mov dword [ebp - 0x37c4], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push esi
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0xc
lea eax, [ebp - 0x37c8]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10005ba6
mov edx, dword [ebp - 0x37ac]
lea eax, [ebp - 0x8d8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10005800
mov edx, dword [ebp - 0x37a8]
lea eax, [ebp - 0xcc0]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10005800
mov edx, dword [ebp - 0x37a4]
lea eax, [ebp - 0x10a8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10005800
mov edx, dword [ebp - 0x37a0]
lea eax, [ebp - 0x4f0]
push eax
push 1
lea ecx, [ebp - 0x37b8]
call fcn.10005800
add esp, 0x20
cmp byte [0x10070ad8], 0
jne 0x10005b69
movsx eax, byte [ebp - 0x4f0]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
jne 0x10005ae2
movsx eax, byte [ebp - 0x4dd]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
je 0x10005b69
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x8d8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100706d7], al
test al, al
jne 0x10005af0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0xcc0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x1006fed7], al
test al, al
jne 0x10005b10
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x4f0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x10070ad7], al
test al, al
jne 0x10005b30
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x10a8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100702d7], al
test al, al
jne 0x10005b50
mov esi, 1
push 0x2710
lea eax, [ebp - 0x37b8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0
push 0
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x10005bac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1004d4d9
mov esp, ebp
pop ebp
ret