joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429eb0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x429ecc
cmp dword [esi + 4], 0
je 0x429ef9
test byte [ebx + 0x45], 1
jne 0x429eeb
mov eax, ebx
call fcn.00428e54
test eax, eax
jne 0x429eeb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x42a009
mov edx, esi
mov eax, ebx
call fcn.00429b28
jmp 0x42a009
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42a002
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042be80
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00426e18
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00429eb0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042be80
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a009
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43e954
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x43e98d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004440f8
jmp 0x43e996
mov eax, ebx
mov edx, esi
call fcn.00444064
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43e9a0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x43e9c1
mov al, byte [esp]
jmp 0x43e9c3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x443134
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x443163
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004440f8
jmp 0x443181
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004430bc
mov edi, eax
test ebx, ebx
je 0x443181
cmp dword [esi], 0
je 0x443181
dec ebx
jmp 0x44316a
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x443430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x453b60]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4434c8
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4434a8
xor eax, eax
push ebp
push 0x4434a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4434e4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4434a8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x453b60]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x453b60], ax
mov esp, ebp
pop ebp
ret
Function at 0x44557c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x445738
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4455dd
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x445754
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x44564f
xor eax, eax
push ebp
push 0x445648
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.004453d4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x445631
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x445774
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44564f
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x445730
cmp byte [ebp - 0xd], 0
jne 0x445691
cmp byte [ebp - 0x12], 0
je 0x445730
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4456aa
dec ebx
cmp byte [ebx], 0x2e
je 0x4456b9
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4456a9
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x445730
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4456e6
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x445730
cmp byte [ebp - 0xd], 0
je 0x445730
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x445730
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445b24
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x445c0c
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x457ae0], 1
jae 0x445bfe
xor eax, eax
mov dword [0x4576ec], eax
xor eax, eax
mov dword [0x4576f4], eax
xor eax, eax
mov dword [0x4576f8], eax
mov byte [0x4576fe], 2
mov byte [0x4576ff], 2
mov byte [0x457700], 3
mov word [0x457aa8], 0
mov word [0x457ab8], 1
mov word [0x457ac8], 0xa
mov dword [0x457ad0], 0x80020004
mov dword [0x457a9c], 0x444d10
mov dword [0x457aa0], 0x444d08
mov dword [0x457aa4], 0x444d10
call fcn.00443400
test al, al
je 0x445bbd
call fcn.00443430
call fcn.004434f4
mov eax, 0x457704
mov edx, 0x445c18
call fcn.00440c06
mov eax, 0x4578d0
mov edx, 0x445c18
call fcn.00440c06
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4576e4], eax
call fcn.00441bac
mov dword [0x4576e0], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4576d8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445c13
ret

Function at 0x44b704
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x44b766
call fcn.0044b6b4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004466e0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004466e0
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44b7e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4557d4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x44b8be
cmp dword [0x4557d0], 0
jne 0x44b8be
cmp dword [0x4559b4], 0
je 0x44b878
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0044b5b4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x44b85e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0044b5b4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x44b85e
lea ebx, [ebp - 0x84]
jmp 0x44b85f
inc ebx
call fcn.0044b7a0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x44b8f9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4557d8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004466e0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4557db
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x44b8f9
cmp dword [0x4557d0], 0
je 0x44b8d8
cmp dword [0x4557d0], 0xffffffff
je 0x44b8f9
push esi
call dword [0x4557d0]
pop ecx
mov eax, dword [0x4557d4]
test eax, eax
je 0x44b8f9
cmp dword [0x4557d4], 0xffffffff
je 0x44b8f9
cmp byte [eax], 0
je 0x44b8f9
push esi
push eax
call fcn.0044b704
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c090
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4583e4], 0
jne 0x44c111
cmp dword [0x458404], 0
jne 0x44c0c0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x458404], eax
test eax, eax
jne 0x44c0c0
push str.GetEnvironmentStrings_failed
call fcn.0044b910
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x458404]
jmp 0x44c0d4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004466e0
pop ecx
mov edi, eax
test eax, eax
jne 0x44c0cc
lea edi, [ebp + 1]
push edi
call fcn.00446140
pop ecx
mov ebx, eax
mov dword [0x4583e8], ebx
test ebx, ebx
jne 0x44c0fe
xor eax, eax
jmp 0x44c1d4
push edi
mov edx, dword [0x458404]
push edx
push ebx
call fcn.00446590
add esp, 0xc
jmp 0x44c131
xor esi, esi
mov ebx, dword [0x4583e4]
jmp 0x44c12b
push eax
call fcn.004466e0
pop ecx
test eax, eax
jne 0x44c127
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x44c11b
lea ebx, [esi + 4]
push 4
mov dword [0x4583ec], ebx
inc ebx
push ebx
call fcn.00445c1c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x44c154
xor eax, eax
jmp 0x44c1d4
cmp dword [0x4583e4], 0
jne 0x44c185
xor esi, esi
mov ebx, dword [0x4583e8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x44c176
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004466e0
pop ecx
mov edi, eax
test eax, eax
jne 0x44c16c
jmp 0x44c1b6
xor esi, esi
mov ebx, dword [0x4583e4]
mov eax, dword [esp]
mov edi, eax
jmp 0x44c1b0
push eax
call fcn.004466e0
pop ecx
test eax, eax
je 0x44c1a5
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x44c1a9
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x44c194
mov eax, dword [0x4583e4]
test eax, eax
je 0x44c1c6
push eax
call fcn.00446150
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4583e4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d47e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x4d4805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x4d4878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x4d483a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x4d486d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x4d486b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x4d4831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4d47fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x80039fd
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043a0], 0x30
mov dword [0x80043a8], 0x80032e8
mov dword [0x80043a4], 2
mov dword [0x80043ac], 0
mov dword [0x80043b0], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003a40
mov dword [0x80043b4], eax
mov dword [0x80043c8], 0x80041d4
mov dword [0x80043c0], 0xf
mov dword [0x80040f6], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043b8], eax
mov dword [0x80043cc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x80040fe], ebp
mov dword [0x80043bc], eax
push 0x80043a0
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004420], eax
push 0
push dword [0x80040f6]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x8004418], eax
push 1
push dword [0x8004418]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x8004418]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003afe
xor edi, edi
lea ebx, [0x80043d0]
jmp 0x8003b16
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003b08
jmp 0x8003b2a
mov eax, dword [0x80043d8]
call 0x80029cd
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x414dcb
Capabilities:
Encode data using xor

Disassembly:
xor dword [edi], ebx
mov edx, eax
mov edx, edx
add edi, 4
and ecx, edx
mov eax, edx
mov ecx, 0xd08d349e
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x4f1063]
shl eax, 2
mov dword [0x4f1067], eax
push edi
push ecx
xor eax, eax
mov edi, 0x5018ec
mov ecx, 0x525964
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push 0
call fcn.00401d47
pop ecx
push 0x4f102c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x4f106b], eax
push 0
jmp fcn.0040da1c

Function at 0x404a20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xff
mov eax, dword [ebp + 8]
push eax
push 0x5254f0
call fcn.00406da8
add esp, 0xc
lea edx, [ebp - 8]
push 0
push 0
push 0
push edx
push 0x5254f0
call fcn.00404c70
add esp, 0x14
push 0x5000b8
lea ecx, [ebp - 8]
push ecx
call fcn.0040123c
add esp, 8
mov byte [0x5254f0], 0
push 0
push 0
push 0
push 0
push 0
push 0xff
push 0x5254f0
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.dll_GetVolumeInformationA
test eax, eax
je 0x404a93
mov eax, 0x5254f0
jmp 0x404a95
xor eax, eax
pop ecx
pop ecx
pop ebp
ret
Function at 0x404a9c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
test byte [ebx + 8], 8
je 0x404ac1
cmp dword [ebx + 4], 0xfffffffe
jne 0x404ac1
or eax, 0xffffffff
jmp 0x404bf9
test byte [ebx + 8], 8
je 0x404b2e
cmp dword [ebx + 4], 0xffffffff
jne 0x404b2e
mov dword [esi + 8], 8
mov edx, dword [ebx + 0xc]
push edx
call fcn.00404a20
pop ecx
mov edi, eax
test edi, edi
je 0x404b16
add esi, 0x10
xor eax, eax
push esi
push edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [ebx + 4], 0xfffffffe
xor eax, eax
jmp 0x404bf9
call fcn.00407338
test eax, eax
jne 0x404b26
xor eax, eax
jmp 0x404bf9
or eax, 0xffffffff
jmp 0x404bf9
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x404b3b
cmp eax, 0xfffffffe
jne 0x404b62
mov dword [ebx + 4], 0xffffffff
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 0xc]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov edi, eax
mov dword [ebx + 4], edi
cmp edi, 0xffffffff
setne al
and eax, 1
jmp 0x404b72
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 4]
push ecx
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x404b88
call fcn.00407338
test eax, eax
jne 0x404b83
xor eax, eax
jmp 0x404bf9
or eax, 0xffffffff
jmp 0x404bf9
mov eax, dword [ebp - 0x148]
test al, 0x16
je 0x404b9c
mov edx, dword [ebx + 8]
and edx, eax
test dl, 0x16
je 0x404b2e
mov ecx, dword [ebp - 0x148]
mov dword [esi + 8], ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x134]
push edx
call sub.KERNEL32.dll_FileTimeToLocalFileTime
lea ecx, [esi + 0xc]
push ecx
lea eax, [esi + 0xe]
push eax
lea edx, [ebp - 8]
push edx
call sub.KERNEL32.dll_FileTimeToDosDateTime
mov ecx, dword [ebp - 0x128]
xor eax, eax
mov dword [esi + 4], ecx
add esi, 0x10
push esi
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406b84
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_SetCurrentDirectoryA
dec eax
je 0x406ba0
call fcn.00407358
jmp 0x406c0f
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
test eax, eax
jne 0x406bbc
call fcn.00407358
jmp 0x406c0f
cmp dword [0x525838], 1
je 0x406c0d
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.0040bc94
pop ecx
cmp al, 0x41
jl 0x406c0d
cmp al, 0x5a
jg 0x406c0d
cmp byte [ebp - 0x107], 0x3a
jne 0x406c0d
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.dll_SetEnvironmentVariableA
dec eax
je 0x406c0d
call fcn.00407358
jmp 0x406c0f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x406c14
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x406c43
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x406c4d
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x406c58
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.dll_GetEnvironmentVariableA
test eax, eax
jne 0x406cbe
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.dll_SetEnvironmentVariableA
dec eax
je 0x406cbe
call fcn.00407358
jmp 0x406cf9
push edi
call sub.KERNEL32.dll_SetCurrentDirectoryA
dec eax
je 0x406cce
call fcn.00407358
jmp 0x406cf9
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x406cf4
push edi
call sub.KERNEL32.dll_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x406cf2
cmp ebx, 1
je 0x406cf2
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x406cdf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406d00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp esi, dword [0x4fffec]
jb 0x406d21
push 6
call fcn.004072f4
pop ecx
jmp 0x406da0
mov ebx, dword [esi*4 + 0x525428]
push 0x22
push 0
push edi
call fcn.00401198
add esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileType
dec eax
je 0x406d4e
dec eax
je 0x406d46
dec eax
je 0x406d98
jmp 0x406d9e
mov word [edi + 4], 0x2000
jmp 0x406d9e
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
push ebx
call sub.KERNEL32.dll_GetFileTime
dec eax
je 0x406d6a
call fcn.00407358
jmp 0x406da0
push 0
push ebx
call sub.KERNEL32.dll_GetFileSize
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
xor eax, eax
test byte [esi*4 + 0x4ffff1], 1
jne 0x406d8c
inc eax
push eax
push edi
call fcn.0040ee18
add esp, 0x18
jmp 0x406d9e
mov word [edi + 4], 0x1000
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406da8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.0040c55c
pop ecx
mov ebx, eax
test eax, eax
jne 0x406dcc
xor eax, eax
jmp 0x406e75
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.dll_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x406ded
cmp esi, 0x104
jb 0x406df8
push ebx
call fcn.0040c454
pop ecx
xor eax, eax
jmp 0x406e75
cmp byte [ebx + 1], 0x3a
jne 0x406e28
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.dll_GetDriveTypeA
cmp eax, 2
jae 0x406e28
push ebx
call fcn.0040c454
pop ecx
xor eax, eax
jmp 0x406e75
inc esi
test edi, edi
je 0x406e6b
cmp esi, dword [ebp + 0x10]
jbe 0x406e3d
push ebx
call fcn.0040c454
pop ecx
xor eax, eax
jmp 0x406e75
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.0040c454
pop ecx
mov eax, edi
jmp 0x406e75
push esi
push ebx
call fcn.0040c9f0
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret