joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100315cb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10046f20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10026514
and dword [ebp - 0x14], 0
cmp dword [0x10049dd0], 0
mov dword [ebp - 0x18], eax
jne 0x1003167e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10031726
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10031726
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10049dd0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10049dd4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10049dd8], eax
call edi
push eax
call esi
mov dword [0x10049de0], eax
test eax, eax
je 0x1003167e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10049ddc], eax
mov eax, dword [0x10049ddc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100316d7
cmp dword [0x10049de0], ecx
je 0x100316d7
push eax
call esi
push dword [0x10049de0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100316d7
test ebx, ebx
je 0x100316d7
call edi
test eax, eax
je 0x100316ce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100316ce
test byte [ebp - 8], 1
jne 0x100316d7
or dword [ebp + 0x10], 0x200000
jmp 0x1003170a
mov eax, dword [0x10049dd4]
cmp eax, dword [ebp - 0x18]
je 0x1003170a
push eax
call esi
test eax, eax
je 0x1003170a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1003170a
mov eax, dword [0x10049dd8]
cmp eax, dword [ebp - 0x18]
je 0x1003170a
push eax
call esi
test eax, eax
je 0x1003170a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10049dd0]
call esi
test eax, eax
je 0x10031726
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10031728
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002020d
leave
ret
Function at 0x1002370
Capabilities:
Copy file
Get common file path
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
lea eax, [ebp - 0x104]
push eax
xor eax, eax
push eax
push eax
push 0x25
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jge 0x10023c3
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0x10011dc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x10023c3
push 0x10011c4
lea eax, [ebp - 0x104]
push eax
call ebx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov al, byte [ebp + eax - 0x105]
cmp al, 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x10023f3
cmp al, 0x2f
je 0x10023f3
push 0x10011c0
lea eax, [ebp - 0x104]
push eax
call edi
mov esi, 0x10011b4
push esi
lea eax, [ebp - 0x104]
push eax
call edi
push 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
lea eax, [ebp - 0x208]
push eax
call ebx
push 0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002ec5
Capabilities:
Check if file exists
Check os version
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5e8
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
mov edi, eax
lea eax, [ebp - 0x19c]
push eax
mov dword [ebp - 0x19c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp + edi - 0x2a0]
mov cl, byte [eax - 1]
cmp cl, 0x5c
je 0x1002f1a
cmp cl, 0x2f
je 0x1002f1a
sub esi, edi
push esi
push 0x1001608
jmp 0x1002f22
sub esi, edi
push esi
push 0x1001600
push eax
call fcn.01003690
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax - 0x2a0]
mov byte [ebp + eax - 0x4a8], cl
inc eax
test cl, cl
jne 0x1002f2d
lea edi, [ebp - 0x4a8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002f47
mov esi, 0x10015f4
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x5e8]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x4a8]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10030ca
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov cl, byte [ebp + eax - 0x2a0]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x1002f81
lea eax, [ebp - 0x5bc]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002f9c
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002fac
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.01002ddb
test eax, eax
je 0x10030a3
cmp dword [ebp - 0x198], 6
jne 0x100306e
lea eax, [ebp - 0x108]
mov dword [ebp - 0x3a4], 0x20642d
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002ff7
lea edi, [ebp - 0x3a4]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003007
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
push eax
push eax
push 1
push eax
push 1
lea eax, [ebp - 0x3a4]
push eax
and ecx, 3
push 0x10015e8
rep movsb byte es:[edi], byte [esi]
call fcn.01002458
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10030a3
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100305b
sub eax, edx
mov byte [ebp + eax - 0x2a3], 0x70
jmp 0x100309a
cmp dword [ebp - 0x198], 5
jne 0x10030a3
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003089
sub eax, edx
mov byte [ebp + eax - 0x10b], 0x70
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp - 0x5e8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1002f7f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
pop ebx
jmp 0x10030cc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10031fe
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x1001610
call fcn.010042dc
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10033bf
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x100325a
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10033bf
mov eax, dword [esi + 0x10]
mov dword [0x1007444], eax
mov eax, dword [esi + 4]
mov dword [0x1007450], eax
mov eax, dword [esi + 8]
mov dword [0x1007454], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x1007448], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x1007444], 2
je 0x100329b
or byte [0x1007449], 0x80
mov eax, dword [0x1007450]
shl eax, 8
add eax, dword [0x1007454]
mov dword [0x100744c], eax
call fcn.010031a2
mov dword [ebp - 0x1c], eax
push ebx
call fcn.01004288
pop ecx
test eax, eax
jne 0x10032e2
cmp dword [0x1007434], 1
jne 0x10032cf
call fcn.01003a93
push 0x1c
call fcn.01003932
push 0xff
call fcn.010037b4
pop ecx
pop ecx
mov dword [ebp - 4], 1
call fcn.010040ab
test eax, eax
jge 0x10032fa
push 0x1b
call fcn.0100317d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1007cd4], eax
call fcn.01003f85
mov dword [0x100742c], eax
call fcn.01003ee4
test eax, eax
jge 0x1003320
push 8
call fcn.0100317d
pop ecx
call fcn.01003c9a
test eax, eax
jge 0x1003331
push 9
call fcn.0100317d
pop ecx
call fcn.010037e4
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x1003344
push eax
call fcn.0100317d
pop ecx
call fcn.01003c3d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1003358
movzx eax, word [ebp - 0x40]
jmp 0x100335b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push ebx
push 0x1000000
call fcn.01002777
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100337a
push esi
call fcn.010038f2
call fcn.01003914
jmp 0x10033ac
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x10033c4
mov eax, 0xff
call fcn.01004317
ret
Function at 0x1003932
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x10070b0]
je 0x100394a
inc eax
cmp eax, 0x13
jb 0x100393b
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10070b0]
mov dword [ebp + 8], esi
jne 0x1003a90
mov eax, dword [0x1007434]
cmp eax, 1
push ebx
je 0x1003a60
test eax, eax
jne 0x100397f
cmp dword [0x10070a0], 1
je 0x1003a60
cmp ecx, 0xfc
je 0x1003a8f
push edi
push 6
pop ecx
mov esi, 0x10019b0
mov edi, 0x1007488
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x10074a2
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x10075a6], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10039cd
push 5
pop ecx
mov esi, 0x1001998
mov edi, 0x10074a2
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10039d2
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1003a05
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10039e6
sub eax, edx
push 3
lea eax, [eax + 0x1007467]
push 0x1001994
push eax
call fcn.01003690
add esp, 0xc
mov edx, 0x1007488
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1003a0d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10070b4]
mov esi, 0x1001990
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003a28
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003a34
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001968
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01004ad1
add esp, 0xc
pop edi
jmp 0x1003a8f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1003a8f
mov esi, dword [esi + 0x10070b4]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1003a77
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x1004ad1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10078d8], ebx
push esi
push edi
jne 0x1004b51
push 0x1001a40
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1004b8c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001a34
push edi
call esi
test eax, eax
mov dword [0x10078d8], eax
je 0x1004b8c
push 0x1001a24
push edi
call esi
push 0x1001a10
push edi
mov dword [0x10078dc], eax
call esi
cmp dword [0x1007444], 2
mov dword [0x10078e0], eax
jne 0x1004b51
push 0x10019f4
push edi
call esi
test eax, eax
mov dword [0x10078e8], eax
je 0x1004b51
push 0x10019dc
push edi
call esi
mov dword [0x10078e4], eax
mov eax, dword [0x10078e4]
test eax, eax
je 0x1004b96
call eax
test eax, eax
je 0x1004b7d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10078e8]
test eax, eax
je 0x1004b7d
test byte [ebp - 8], 1
jne 0x1004b96
cmp dword [0x1007450], 4
jb 0x1004b90
or byte [ebp + 0x12], 0x20
jmp 0x1004bb5
xor eax, eax
jmp 0x1004bc5
or byte [ebp + 0x12], 4
jmp 0x1004bb5
mov eax, dword [0x10078dc]
test eax, eax
je 0x1004bb5
call eax
mov ebx, eax
test ebx, ebx
je 0x1004bb5
mov eax, dword [0x10078e0]
test eax, eax
je 0x1004bb5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10078d8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005615
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1005643
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x100564a
cmp ebx, dword [eax + 4]
jae 0x100564a
xor eax, eax
jmp 0x100583a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100565b
xor eax, eax
inc eax
jmp 0x1005839
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1005671
cmp ecx, edx
jae 0x10057b6
cmp dword [eax + 4], 0
je 0x100567a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1005662
cmp dword [ebp + 8], 0
je 0x100569c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x10057b6
cmp eax, esi
jae 0x10057b6
mov eax, dword [0x10078f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x10056c1
cmp dword [esi*4 + 0x10078f8], edi
je 0x10057ba
inc esi
cmp esi, eax
jl 0x10056af
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005836
cmp dword [ebp - 8], 0x1000000
jne 0x1005836
test byte [ebp - 0xc], 0xcc
je 0x100573f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1005836
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1005836
cmp word [eax + 0x18], 0x10b
jne 0x1005836
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1005836
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100573f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100573f
test byte [ecx + 0x27], 0x80
jne 0x10057b6
push 1
push 0x1007938
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1005653
mov ecx, dword [0x10078f0]
test ecx, ecx
mov edx, ecx
jle 0x1005773
lea eax, [ecx*4 + 0x10078f4]
cmp dword [eax], edi
je 0x1005773
dec edx
sub eax, 4
test edx, edx
jg 0x1005767
test edx, edx
jne 0x10057a4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1005780
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1005798
lea eax, [edx*4 + 0x10078f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1005786
cmp ecx, 0x10
jge 0x10057a4
inc ecx
mov dword [0x10078f0], ecx
push 0
push 0x1007938
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1005653
xor eax, eax
jmp 0x1005839
test esi, esi
jle 0x1005653
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1007938
call ebx
test eax, eax
jne 0x1005653
cmp dword [esi*4 + 0x10078f8], edi
je 0x1005810
mov eax, dword [0x10078f0]
lea esi, [eax - 1]
test esi, esi
jl 0x10057fe
cmp dword [esi*4 + 0x10078f8], edi
je 0x10057fa
dec esi
jns 0x10057ee
test esi, esi
jge 0x100580e
cmp eax, 0x10
jge 0x1005809
inc eax
mov dword [0x10078f0], eax
lea esi, [eax - 1]
jmp 0x1005810
je 0x1005828
xor ecx, ecx
test esi, esi
jl 0x1005828
lea eax, [ecx*4 + 0x10078f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1005816
push 0
push 0x1007938
call ebx
jmp 0x1005653
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100649b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.010065a0
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1006595
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x1007444], 2
jne 0x100651a
push 0x10022b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x100651a
push 0x100229c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x100651a
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x100651a
cmp dword [ebp - 4], esi
jbe 0x100651a
mov esi, dword [ebp - 4]
mov edx, dword [0x1007444]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x1006543
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x100654f
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x1006561
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x1006595
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1006595
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1006595
xor eax, eax
inc eax
jmp 0x1006597
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x1005fb9d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1005fbe0
call fcn.10043858
mov dword [eax], 0xf
call fcn.1004386b
mov dword [eax], 0xd
call fcn.1004b843
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100172bf
leave
ret
test eax, eax
jne 0x1005fbe7
inc eax
jmp 0x1005fbd4
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1005fbd2
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1005fbd4

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

Disassembly:
stc
bt dx, 2
test eax, eax
pushfd
pushal
pushfd
lea esp, [esp + 0x28]
je fcn.10278f33
bsf dx, sp
xchg dx, si
not dl
mov esi, dword [eax + 0x3c]
ror dx, cl
add esi, eax
bsf dx, sp
mov edx, dword [esi + 0x78]
pushal
test edx, edx
call fcn.1027ab55
shl ah, 5
bt edx, ebp
bswap ax
push ebp
daa
mov ebp, esp
neg al
ror ax, 6
sub esp, 0x18
bsr eax, esp
bsf ax, sp
push esi
btr ax, bx
pushal
mov dword [esp + 0x1c], edi
ror al, 5
cmc
jmp 0x1049069f
mov dword [esp + 0x18], ebx
test ch, dh
mov dword [esp + 0x14], edx
daa
neg al
mov eax, dword [ebp + 8]
stc
bt ax, 6
lea esp, [esp + 0x14]
ja 0x1027ab5b
test eax, eax
call fcn.102801a0

Function at 0x1028eb1b
Capabilities:
Encode data using xor

Disassembly:
pushal
adc al, al
mov byte [esp], 0x3e
push edx
push 0x799592d0
pushfd
lea esp, [esp + 0x30]
jae 0x1028d9ab
push ecx
jmp 0x1028ef18
pushfd
lea esp, [esp + 0x14]
call fcn.102d4938
pushfd
jmp 0x1028e20d
mov byte [esp], 0x13
lea esp, [esp + 4]
jne 0x1029062a
call fcn.1028e638
Function at 0x419e3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x421f98
cmp edx, dword [eax]
je 0x419e5f
add eax, 8
inc ecx
cmp eax, 0x422028
jl 0x419e50
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x421f98]
jne 0x419f8d
mov eax, dword [0x4222b8]
cmp eax, 1
je 0x419f67
test eax, eax
jne 0x419e90
cmp dword [0x421cd4], 1
je 0x419f67
cmp edx, 0xfc
je 0x419f8d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x419ec7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00417440
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004176d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x419f0a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004176d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41ce18
push edi
call fcn.004182d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00417440
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00417450
lea eax, [ebp - 0xa0]
push 0x41cdf8
push eax
call fcn.00417450
push dword [esi + 0x421f9c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00417450
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041a4fb
add esp, 0x2c
pop edi
jmp 0x419f8d
lea eax, [ebp + 8]
lea esi, [esi + 0x421f9c]
push 0
push eax
push dword [esi]
call fcn.004176d0
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408e84
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x75d81d15
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x555e6ca8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219