joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f00
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040753c
xor eax, eax
push ebp
push 0x409fc0
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407ba4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407cd4
mov eax, dword [ebx]
call fcn.00409db0
test al, al
jne 0x409f9d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407ba4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407cd4
mov eax, dword [ebx]
call fcn.00409db0
test al, al
jne 0x409f9d
mov eax, ebx
call fcn.00407458
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409fc7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004074b8
lea eax, [ebp - 4]
call fcn.00407458
ret

Function at 0x40ba0c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4158b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41590d
test eax, edx
je 0x415910
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4158cb
movzx eax, word [eax]
sub eax, ecx
jmp 0x4158f2
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4158f3
add ecx, 4
js 0x4158e3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4158f0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4158f2
xor eax, eax
ret
test eax, eax
je 0x41591c
test edx, edx
jne 0x4158bc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4163b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00407b14
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x416422
test ah, 4
je 0x41641b
test bl, bl
jne 0x4163e0
mov al, 1
jmp 0x416449
test al, 0x10
je 0x4163e8
xor eax, eax
jmp 0x416449
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41640c
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x416449
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x416449
test al, 0x10
sete al
jmp 0x416449
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x416443
cmp ebx, 3
je 0x416443
cmp ebx, 0x7b
je 0x416443
mov eax, esi
call fcn.00416378
test al, al
jne 0x416447
xor eax, eax
jmp 0x416449
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x417e68
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x417ea1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004075b0
jmp 0x417eaa
mov eax, ebx
mov edx, esi
call fcn.0040772c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x417eb4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x417ed6
movzx eax, word [esp]
jmp 0x417ed8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x419210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x419335
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00419018
mov esi, eax
mov eax, dword [0x42168c]
cmp byte [eax], 0
je 0x4192dd
mov eax, dword [0x4215a0]
call fcn.00404d08
call fcn.00404668
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4191e0]
call fcn.00408cc0
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x419350
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x419319
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x421578]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42562c]
call fcn.00408eac
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41933c
lea eax, [ebp - 4]
mov edx, dword [0x4191e0]
call fcn.00408de4
ret
Function at 0x41a474
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41a574
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407774
lea eax, [ebp - 4]
call fcn.004078e0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407b14
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41a55e
mov eax, ebx
call fcn.00404514
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x41a557
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407b14
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41a541
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41a588
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41a541
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a55e
mov eax, dword [ebp - 0x10]
call fcn.00404530
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a57b
lea eax, [ebp - 4]
call fcn.00407458
ret

Function at 0x41b1fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00407828
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b9ec
mov edi, eax
cmp edi, 0x104
jbe 0x41b1a7
mov eax, edi
add eax, eax
call fcn.00404514
mov esi, eax
jmp 0x41b1a9
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b9ec
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41b1e2
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41b1cc
mov eax, esp
cmp esi, eax
je 0x41b1ef
mov eax, esi
call fcn.00404530
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41b228
cmp bl, 0
je 0x41b224
cmp bl, 0x41
jl 0x41b21f
cmp bl, 0x5a
jg 0x41b21f
or bl, 0x20
xor al, bl
inc esi
jmp 0x41b203
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41b168

Function at 0x41b4c8
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00407ba4
add esp, 0x800
pop ebx
ret
Function at 0x41c260
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040753c
xor eax, eax
push ebp
push 0x41c46d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00407b14
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x41c449
xor edx, edx
push ebp
push 0x41c442
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x200
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x41c234]
call fcn.00408cc0
add esp, 4
xor edx, edx
push ebp
push 0x41c424
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0x200
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
jne 0x41c308
mov al, 1
jmp 0x41c32f
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41c314
sub ebx, 4
mov ebx, dword [ebx]
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
neg eax
test al, al
je 0x41c352
push 0x10
push 0
push 0x41c480
push 0
call sub.user32.dll_MessageBoxW
call fcn.00406d2c
call fcn.00406d2c
jmp 0x41c449
mov eax, dword [ebp - 8]
cmp byte [eax + 0x1ff], 0xaa
jne 0x41c36a
mov eax, dword [ebp - 8]
cmp byte [eax + 0x1fe], 0x55
je 0x41c389
push 0x10
push 0
push 0x41c49c
push 0
call sub.user32.dll_MessageBoxW
call fcn.00406d2c
call fcn.00406d2c
jmp 0x41c449
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
jne 0x41c3a1
mov al, 1
jmp 0x41c3c8
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41c3ad
sub ebx, 4
mov ebx, dword [ebx]
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile
cmp eax, 1
sbb eax, eax
neg eax
test al, al
je 0x41c3e8
push 0x10
push 0
push 0x41c4b8
push 0
call sub.user32.dll_MessageBoxW
call fcn.00406d2c
call fcn.00406d2c
jmp 0x41c449
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0x70140
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_DeviceIoControl
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c42b
lea eax, [ebp - 8]
mov edx, dword [0x41c234]
call fcn.00408de4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c474
lea eax, [ebp - 8]
mov edx, dword [0x41c234]
call fcn.00408de4
lea eax, [ebp - 4]
call fcn.00407458
ret
Function at 0x41c500
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040753c
mov eax, dword [ebp - 8]
call fcn.0040753c
xor eax, eax
push ebp
push 0x41c715
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.00407b14
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x41c6ec
xor eax, eax
push ebp
push 0x41c6e5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x200
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x41c4d4]
call fcn.00408cc0
add esp, 4
xor eax, eax
push ebp
push 0x41c6c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41c5a4
sub ebx, 4
mov ebx, dword [ebx]
push 0
lea eax, [ebp - 0x1c]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41c5cb
call fcn.00406d2c
call fcn.00406d2c
jmp 0x41c6ec
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x1ff], 0xaa
jne 0x41c5e3
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x1fe], 0x55
je 0x41c5f2
call fcn.00406d2c
call fcn.00406d2c
jmp 0x41c6ec
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00407b14
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x41c62a
call fcn.00406d2c
call fcn.00406d2c
jmp 0x41c6ec
xor eax, eax
push ebp
push 0x41c6a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41c644
sub ebx, 4
mov ebx, dword [ebx]
push 0
lea eax, [ebp - 0x1c]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile
test eax, eax
jne 0x41c66d
call fcn.00406d2c
call fcn.00406d2c
call fcn.00406d2c
jmp 0x41c6ec
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0x70140
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_DeviceIoControl
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c6ab
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c71c
lea eax, [ebp - 0xc]
mov edx, dword [0x41c4d4]
call fcn.00408de4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004074b8
ret
Function at 0x401818
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov eax, 0x42982f
call fcn.00428650
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.00402679
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.00401871
lea ecx, [esi + 0x30]
call fcn.00402679
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4038f8
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
and dword [ebp - 4], 0
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov edi, edx
lea ecx, [ebp - 4]
push 0x2002
call fcn.004054f3
test al, al
jne 0x40391f
xor bl, bl
jmp 0x403955
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40391b
push dword [ebp + 8]
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40391b
and dword [ebp - 4], 0
mov bl, 1
lea ecx, [ebp - 4]
call fcn.00405514
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x403b07
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x403c93
Capabilities:
Create directory

Disassembly:
mov eax, 0x429a48
call fcn.00428650
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x403cb6
mov al, 1
jmp 0x403cfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403cc7
xor al, al
jmp 0x403cfc
lea ecx, [ebp - 0x44]
call fcn.00403ed5
lea ecx, [ebp - 0x1c]
call fcn.00402679
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0040418c
test al, al
je 0x403cf1
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.00402153
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40417d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40418b
or eax, eax
ret
Function at 0x404837
Capabilities:
Get disk information

Disassembly:
mov eax, 0x429b20
call fcn.00428650
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00401f1f
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x40490d
mov eax, SysReAllocString
cmp ebx, eax
ja 0x404873
mov eax, ebx
add eax, eax
push eax
call fcn.0040211f
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x404906
cmp ebx, dword [ebp - 0x18]
ja 0x404906
lea ecx, [ebp - 0x2c]
call fcn.00402679
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
jbe 0x4048ee
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4048e3
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.004027b8
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
call fcn.0040f190
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401d25
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x14]
jb 0x4048b1
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.00402153
push esi
call fcn.00402153
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
sete al
jmp 0x40490f
push esi
call fcn.00402153
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404994
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4049be
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4049be
xor al, al
jmp 0x4049de
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00428930
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop edi
leave
ret 4
Function at 0x40c1bb
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x42a216
call fcn.00428650
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.00402679
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0040c20a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40c267
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x42a261
call fcn.00428650
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.0040e666
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0040c2b2
push dword [esi + 0x24]
call fcn.00402153
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.00410e09
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040c80c
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40ec9e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x42a66d
call fcn.00428650
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 3
mov byte [esi + 0x11], bl
mov byte [esi + 0x12], bl
mov byte [esi + 0x13], bl
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bl
mov byte [esi + 0x17], bl
call fcn.00402679
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 4
call fcn.00402679
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call fcn.00402679
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 6
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov word [esi + 0x4c], bx
mov byte [esi + 0x4e], bl
mov byte [esi + 0x4f], bl
call fcn.0040c20a
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 7
call fcn.0040c20a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40eee1
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x42a6ee
call fcn.00428650
push ecx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esi], 0x42d03c
mov dword [esi + 4], 0x42d028
mov dword [esi + 8], 0x42d018
mov dword [esi + 0xc], 0x42c804
mov dword [esi + 0x10], 0x42d004
mov dword [esi + 0x14], eax
mov byte [esi + 0x18], al
mov dword [ebp - 0x10], esi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
call fcn.00402679
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
call fcn.00402679
lea edi, [esi + 0x60]
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00403ed5
lea ecx, [edi + 0x28]
call fcn.00402679
lea ecx, [esi + 0x98]
mov byte [ebp - 4], 5
call fcn.0040ac77
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x42cff0
mov dword [esi + 4], 0x42cfdc
mov dword [esi + 8], 0x42cfcc
mov dword [esi + 0xc], 0x42cfbc
mov dword [esi + 0x10], 0x42cfa8
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret