joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a89e0
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x835120]
sub esp, 0x47c
push ebx
push ebp
push esi
shr eax, 3
xor ebx, ebx
push edi
mov edi, dword [0x4b5184]
cmp eax, ebx
jbe 0x4a8bd6
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x4a8a16
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0x835120], 0x1c
jne 0x4a8a2d
lea eax, [esp + 0x3c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x4ae708]
mov eax, dword [0x4ae70c]
mov esi, dword [edi]
mov ebp, dword [0x4ae710]
mov dword [esp + 0x14], ecx
mov ecx, dword [str.VL_v0]
mov edi, 0xc6ef3720
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], 0x20
jmp 0x4a8a6a
xor ebx, ebx
mov eax, esi
mov edx, esi
shl eax, 4
shr edx, 5
add edx, dword [esp + 0x28]
add eax, ebp
lea ecx, [edi + esi]
xor eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [0x8340a4], ebx
mov eax, dword [esp + 0x18]
add dword [0x8340a4], eax
mov edx, dword [0x8340a4]
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0x835120], 0x1be
mov eax, dword [esp + 0x14]
lea ebx, [edi + eax]
jne 0x4a8b04
lea edx, [esp + 0x34]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x30]
cmp dword [0x835120], 0x979
mov dword [0x8340a8], 0xff6b3619
mov dword [0x8340ac], 0xffffffff
mov dword [esp + 0x18], eax
jne 0x4a8b58
mov eax, dword [esp + 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
lea ecx, [esp + 0x8c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
sub esi, dword [esp + 0x10]
add edi, 0x61c88647
dec dword [esp + 0x20]
jne 0x4a8a68
cmp dword [0x835120], 0x8d4
jne 0x4a8b8f
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
cmp dword [0x835120], 0x17
jne 0x4a8bc5
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea ecx, [esp + 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x4a8a10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x47c
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, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
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
popal
nop
nop
jmp loc.00401219
Function at 0x4015f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406890
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
nop
mov al, 0x45
mov bl, 5
mov byte [ebp - 0x2b], al
mov byte [ebp - 0x28], al
mov al, 0x6c
mov byte [ebp - 0x2c], 0x4b
mov byte [ebp - 0x2a], 0x52
mov byte [ebp - 0x29], 0x4e
mov byte [ebp - 0x27], 0x4c
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], al
mov byte [ebp - 0x20], bl
nop
push str.HeapFree
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
mov al, 0x65
mov byte [ebp - 0x3b], al
mov byte [ebp - 0x35], al
mov byte [ebp - 0x31], al
lea eax, [ebp - 0x14]
mov cl, 0x73
push 0x4081e0
push eax
mov byte [ebp - 0x3c], 0x47
mov byte [ebp - 0x3a], 0x74
mov byte [ebp - 0x39], 0x50
mov byte [ebp - 0x38], 0x72
mov byte [ebp - 0x37], 0x6f
mov byte [ebp - 0x36], 0x63
mov byte [ebp - 0x34], cl
mov byte [ebp - 0x33], cl
mov byte [ebp - 0x32], 0x48
mov byte [ebp - 0x30], 0x61
mov byte [ebp - 0x2f], 0x70
mov byte [ebp - 0x2e], bl
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x25
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, 0x4016d3
ret
Function at 0x401f20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4068e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov ecx, dword [ebp + 0x10]
xor edx, edx
push ebx
push esi
mov eax, dword [ecx + 4]
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
mov dx, word [eax + 0x14]
lea eax, [edx + eax + 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dx, word [ecx + 6]
cmp eax, edx
jge 0x4020a7
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x401fda
lea ecx, [ebp - 0x24]
push 0x4081e0
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x36
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x401fd4
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push 4
push 0x1000
mov eax, dword [ebx + 0xc]
push esi
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 0x402088
ret
lea eax, [ebp - 0x28]
push 0x4081e0
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], 0x43
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
push 4
push 0x1000
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x1c]
add edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
mov eax, 0x40201c
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4036c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x408008
push 0
push 9
push 0x19
push 0x14
push 0x14
lea ecx, [esi + 0x168]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CImageList::Create
push 0xa1
push 2
push 0xa1
call sub.MFC42.DLL_AfxFindResourceHandle
mov edi, dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
call edi
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
neg eax
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_Add]
push 0
sbb eax, eax
and eax, edx
push eax
mov eax, dword [esi + 0x16c]
push eax
call ebx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::Detach
push 0
push 9
push 0x19
push 0x14
push 0x14
lea ecx, [esi + 0x170]
call sub.MFC42.DLL_CImageList::Create
push 0xa2
push 2
push 0xa2
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call edi
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
neg eax
sbb eax, eax
push 0
and eax, ecx
mov ecx, dword [esi + 0x174]
push eax
push ecx
call ebx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::Detach
push 0
push 9
push 0x19
push 0x14
push 0x14
lea ecx, [esi + 0x178]
call sub.MFC42.DLL_CImageList::Create
push 0xa3
push 2
push 0xa3
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call edi
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0x10]
mov edx, dword [esi + 0x17c]
lea eax, [esp + 0xc]
push 0
neg eax
sbb eax, eax
and eax, edi
push eax
push edx
call ebx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::Detach
mov dword [esp + 0xc], 0x407ff4
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4049e0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x406d08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov eax, dword [esi + 0x10]
push eax
call sub.MFC42.DLL_CBrush::CBrush
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x30], 0
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CBrush::CBrush
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x38]
lea edx, [ecx + eax + 2]
lea eax, [esp + 0x10]
neg eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_FillRect]
sbb eax, eax
and eax, edx
push eax
lea eax, [esp + 0x40]
push eax
push ecx
call edi
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
neg eax
sbb eax, eax
and eax, edx
lea edx, [esp + 0x18]
push eax
mov eax, dword [esi + 4]
push edx
push eax
call edi
mov esi, 0x407ff4
mov dword [esp + 8], esi
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 8], 0x40801c
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
Function at 0x412540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
add edx, ebx
mov dword [ebp - 0x14], edx
add ecx, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 4], edx
test edx, edx
je 0x4125c6
nop dword [eax + eax]
mov esi, dword [ecx + edi*4]
xor eax, eax
mov cl, byte [esi + ebx]
add esi, ebx
test cl, cl
je 0x4125b9
nop
shl eax, 4
lea esi, [esi + 1]
movsx ecx, cl
add eax, ecx
mov edx, eax
and edx, 0xf0000000
je 0x4125ac
mov ecx, edx
shr ecx, 0x18
xor eax, ecx
mov cl, byte [esi]
not edx
and eax, edx
test cl, cl
jne 0x412590
mov edx, dword [ebp - 4]
cmp eax, dword [ebp - 8]
je 0x4125cf
mov ecx, dword [ebp - 0xc]
inc edi
cmp edi, edx
jb 0x412580
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx eax, word [eax + edi*2]
pop edi
pop esi
mov eax, dword [ecx + eax*4]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4136d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, 0x7a120
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop word [eax + eax]
push 4
push 0
call edi
push eax
call ebx
push eax
push 0
mov dword [eax], 0x12345678
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esi, 1
jne 0x413700
nop
xchg ebx, ebx
xchg ecx, ecx
xchg esp, esp
xchg ebp, ebp
mov eax, eax
xor eax, eax
xor eax, 0
sub eax, eax
add eax, 0xf
push 1
pop eax
push 0x4268
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x4135e0
push esi
push 0x65
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
mov ebx, ebx
xor ebx, ebx
xor ebx, 0
sub ebx, ebx
add ebx, 0xf
push 1
pop ebx
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, ecx
xor ecx, ecx
xor eax, 0
sub ecx, ecx
add ebx, 0xf
push 1
pop ecx
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x20]
push 0
push 0
push 0
push eax
call edi
test eax, eax
je 0x4137c7
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageA]
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
jne 0x4137b7
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
jne 0x413798
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004153e0
mov esp, ebp
pop ebp
ret
Function at 0x414410
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x41446e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x414430
mov eax, dword [edi]
jmp 0x414559
cmp eax, 0x4e0
jb 0x414559
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x414490
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x4144e0
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x40805c
push eax
call fcn.00401a8b
push eax
pop esi
add esp, 8
test esi, esi
je 0x401077
push 2
push 0
push esi
call fcn.004019df
push esi
call fcn.00401887
mov edi, dword [esp + 0x24]
push esi
mov dword [edi], eax
call fcn.00401833
mov ecx, dword [edi]
push ecx
call fcn.00401781
mov edx, dword [esp + 0x28]
add esp, 0x18
test eax, eax
mov dword [edx], eax
je 0x401063
mov ecx, dword [edi]
push esi
push 1
push ecx
push eax
call fcn.00401699
push esi
call fcn.00401643
add esp, 0x14
pop edi
pop esi
ret
push str.malloc_memery_failed_n
call fcn.00401612
add esp, 4
push 0
call fcn.0040153d
push str.open_file_error_n
call fcn.00401612
add esp, 4
push 0
call fcn.0040153d
nop
pushal
popal
pushal
popal
Function at 0x401420
Capabilities:
Get disk information

Disassembly:
sub esp, 0x208
nop
push 0x41
nop
pop ecx
sub eax, eax
push ebp
push edi
lea edi, [esp + 0x10c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsA]
mov al, byte [esp + 0x10c]
lea ebp, [esp + 0x10c]
test al, al
je 0x401503
push esi
push 0x40
pop ecx
pushal
popal
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebp
pop edi
or ecx, 0xffffffff
sub eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
push edx
pop edi
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
push edx
pop ecx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edi
pop esi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401120
mov edi, ebp
or ecx, 0xffffffff
sub eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + ebp + 1]
lea ebp, [ecx + ebp + 1]
test al, al
jne 0x401462
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0x208
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x208
ret

Function at 0x401d58
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x4070d0
push 0x404e6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.DLL_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40a97c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40a978], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40a974], ecx
shr eax, 0x10
mov dword [0x40a970], eax
push 0
call fcn.004031f5
pop ecx
test eax, eax
jne 0x401dc3
push 0x1c
call fcn.00401e5c
pop ecx
and dword [ebp - 4], 0
call fcn.00404161
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x40bea4], eax
call fcn.00404c40
mov dword [0x40a9b0], eax
call fcn.004049f3
call fcn.0040493a
call fcn.00401510
mov eax, dword [0x40a98c]
mov dword [0x40a990], eax
push eax
push dword [0x40a984]
push dword [0x40a980]
call fcn.00401420
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.0040153d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call fcn.004047b6
pop ecx
pop ecx
ret
Function at 0x402b2e
Capabilities:
Read file on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, dword [0x40ae60]
jae 0x402d0b
push esi
pop eax
and esi, 0x1f
sar eax, 5
shl esi, 3
lea ebx, [eax*4 + 0x40ad60]
mov eax, dword [eax*4 + 0x40ad60]
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x402d0b
and dword [ebp - 8], 0
mov edi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
push edi
pop ecx
je 0x402be3
test dl, 2
jne 0x402be3
test dl, 0x48
je 0x402ba3
mov al, byte [eax + 5]
cmp al, 0xa
je 0x402ba3
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [ebx]
push dword [ebp + 0x10]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
or eax, eax
jne 0x402bf6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x402bde
mov dword [0x40a964], 9
mov dword [0x40a968], ecx
jmp 0x402d1c
cmp eax, 0x6d
jne 0x402bea
xor eax, eax
jmp 0x402d1f
push eax
call fcn.004053de
pop ecx
jmp 0x402d1c
mov eax, dword [ebx]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [eax + esi + 4]
test al, 0x80
je 0x402d06
test edx, edx
je 0x402c1b
cmp byte [edi], 0xa
jne 0x402c1b
or al, 4
jmp 0x402c1d
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], eax
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], ecx
jae 0x402d00
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x402cf0
cmp al, 0xd
je 0x402c51
mov byte [edi], al
inc edi
inc dword [ebp + 0x10]
jmp 0x402ce2
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x402c6f
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x402c66
add dword [ebp + 0x10], 2
jmp 0x402cc4
mov byte [edi], 0xd
inc edi
mov dword [ebp + 0x10], eax
jmp 0x402ce2
lea eax, [ebp - 0xc]
push 0
push eax
inc dword [ebp + 0x10]
lea eax, [ebp - 1]
push 1
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
or eax, eax
jne 0x402c97
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x402cde
cmp dword [ebp - 0xc], 0
je 0x402cde
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x402cb9
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x402cc4
mov byte [edi], 0xd
mov ecx, dword [ebx]
inc edi
mov byte [ecx + esi + 5], al
jmp 0x402ce2
cmp edi, dword [ebp + 0xc]
jne 0x402cc9
cmp byte [ebp - 1], 0xa
jne 0x402cc9
mov byte [edi], 0xa
jmp 0x402ce1
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004040c7
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x402ce2
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x402c35
jmp 0x402d00
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x402d00
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 8], edi
mov eax, dword [ebp - 8]
jmp 0x402d1f
and dword [0x40a968], 0
mov dword [0x40a964], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret