joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003bd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.10002cbb
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10002c70
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.10002cab
adc ebp, eax
or dword fs:[eax + 4], ebp
add dword [eax], eax
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid

Function at 0x10004110
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x72a5b], al
inc dword [eax]
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.10002cab
or eax, 0x8d75483d
test esp, edx
clc
invalid

Function at 0x10004830
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
add byte [eax - 0x78b5b], al
inc dword [eax]
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
invalid
movsd dword es:[edi], dword [esi]
invalid
Function at 0x10008953
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1000faa0]
je 0x1000896e
inc edi
cmp edi, 0x17
jb 0x1000895f
cmp edi, 0x17
jae 0x10008aee
push ebp
push 3
call fcn.1000a9ec
cmp eax, 1
pop ecx
je 0x10008aba
push 3
call fcn.1000a9ec
test eax, eax
pop ecx
jne 0x100089a2
cmp dword [0x1000fcd0], 1
je 0x10008aba
cmp ebx, 0xfc
je 0x10008aed
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10010310
push ebp
call fcn.10004c90
add esp, 0xc
test eax, eax
je 0x100089d8
push esi
push esi
push esi
push esi
push esi
call fcn.100061bc
add esp, 0x14
push 0x104
mov esi, 0x10010329
push esi
push 0
mov byte [0x1001042d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10008a1c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10004c90
add esp, 0xc
test eax, eax
je 0x10008a1c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100061bc
add esp, 0x14
push esi
call fcn.10008560
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10008a61
push esi
call fcn.10008560
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10010624
push 0x1000d1ac
sub ecx, eax
push ecx
push eax
call fcn.100080a6
add esp, 0x14
test eax, eax
je 0x10008a61
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100061bc
add esp, 0x14
jmp 0x10008a63
xor esi, esi
push 0x1000d1a8
push ebx
push ebp
call fcn.10007fe2
add esp, 0xc
test eax, eax
je 0x10008a83
push esi
push esi
push esi
push esi
push esi
call fcn.100061bc
add esp, 0x14
push dword [edi*8 + 0x1000faa4]
push ebx
push ebp
call fcn.10007fe2
add esp, 0xc
test eax, eax
je 0x10008aa5
push esi
push esi
push esi
push esi
push esi
call fcn.100061bc
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1000a82f
add esp, 0xc
jmp 0x10008aed
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10008aed
cmp ebp, 0xffffffff
je 0x10008aed
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1000faa4]
push dword [esi]
call fcn.10008560
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1000a82f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10005b86
xor ebx, ebx
cmp dword [0x10010714], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1000a905
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000a9e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000a9e5
push eax
call fcn.10005b18
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10010714], eax
call esi
push eax
call fcn.10005b18
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10010718], eax
call esi
push eax
call fcn.10005b18
mov dword [0x1001071c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10006544
test eax, eax
pop ecx
pop ecx
je 0x1000a8d3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100061bc
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1000a905
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10005b18
cmp eax, ebx
pop ecx
mov dword [0x10010724], eax
je 0x1000a905
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10005b18
pop ecx
mov dword [0x10010720], eax
mov eax, dword [0x10010720]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1000a98a
cmp dword [0x10010724], ecx
je 0x1000a98a
push eax
call fcn.10005b8f
push dword [0x10010724]
mov esi, eax
call fcn.10005b8f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1000a98a
cmp edi, ebx
je 0x1000a98a
call esi
cmp eax, ebx
je 0x1000a957
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000a957
test byte [ebp - 0x18], 1
jne 0x1000a98a
lea eax, [ebp - 0x10]
push eax
call fcn.1000657b
test eax, eax
pop ecx
je 0x1000a972
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100061bc
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1000a981
or dword [ebp + 0x10], 0x200000
jmp 0x1000a9c5
or dword [ebp + 0x10], 0x40000
jmp 0x1000a9c5
mov eax, dword [0x10010718]
cmp eax, dword [ebp - 8]
je 0x1000a9c5
push eax
call fcn.10005b8f
cmp eax, ebx
pop ecx
je 0x1000a9c5
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000a9c5
mov eax, dword [0x1001071c]
cmp eax, dword [ebp - 8]
je 0x1000a9c5
push eax
call fcn.10005b8f
cmp eax, ebx
pop ecx
je 0x1000a9c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10010714]
call fcn.10005b8f
cmp eax, ebx
pop ecx
je 0x1000a9e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000a9e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406c04
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040956c
test esi, esi
jne 0x406c3a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004096f4
jmp 0x406c58
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406ae8
mov edi, eax
test esi, esi
je 0x406c58
cmp dword [ebx], 0
je 0x406c58
dec esi
jmp 0x406c41
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406c8c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x665008], 0x8088405
inc edx
mov dword [ebx + 0x665008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4082cc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004086b0
mov byte [esp], al
cmp byte [esp], 0
jne 0x408456
test edi, edi
je 0x408456
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408396
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408371
cmp edi, 0xffffffff
je 0x408331
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408331
mov byte [esp], 0
jmp 0x408456
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408371
test ebx, ebx
jne 0x408363
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408363
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408456
lea eax, [esp + 0xc]
call fcn.00407fac
dec ebp
test ebp, ebp
jg 0x408316
cmp edi, 0xffffffff
je 0x408396
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408394
mov byte [esp], 0
jmp 0x408456
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4082da
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408396
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004084c4
mov edx, eax
mov ebx, dword [0x66f8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4083fa
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4083f8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4083fa
xor edi, edi
cmp byte [esp], 0
je 0x408420
mov ebx, dword [esi]
test bl, 1
jne 0x408436
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408400
mov byte [esp + 1], 1
jmp 0x408436
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408420
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4083ad
cmp byte [esp], 0
je 0x408456
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4091fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x66f05c], 0
je 0x409263
cmp word [0x66f348], 0xd7b2
jne 0x409225
cmp dword [0x66f350], 0
jbe 0x409225
mov eax, 0x66f344
call dword [0x66f360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409290
call fcn.00409de0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x665032], 0
jne 0x40927f
push 0
push 0x6659ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40942c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x665034], 0
je 0x409457
mov edx, edi
mov eax, esi
call dword [0x665034]
mov ebx, eax
jmp 0x409468
mov eax, 8
call fcn.004067ec
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x66f05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4093f4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409498
mov eax, ebx
call fcn.00406808
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40bcc4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40be29
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040956c
cmp si, word [0x665a08]
jb 0x40bd5c
cmp si, word [0x665c08]
ja 0x40bd5c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bd5c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x665a08]
jae 0x40bd36
mov edi, ebx
dec edi
jmp 0x40bd57
cmp si, word [ebx*8 + 0x665a08]
jbe 0x40bd46
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bd57
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x665a0c]
call fcn.0040bbe4
jmp 0x40bd5c
cmp edi, dword [ebp - 8]
jae 0x40bd20
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40be0b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40be0b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a1e0
push dword [ebp - 0x160]
push 0x40be44
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a1e0
push dword [ebp - 0x164]
push 0x40be54
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a1e0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a418
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be30
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004095cc
ret
Function at 0x40bfdc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c0e0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x671b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x671ba4]
jne 0x40c028
mov eax, esi
mov edx, 0x671ba6
mov ecx, 0x55
call fcn.0040a1e0
push 0x671b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c0ca
push 0x671b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040956c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c097
cmp byte [0x671b88], 0
je 0x40c05c
mov edx, esi
mov eax, ebx
call fcn.0040bec0
jmp 0x40c097
mov edx, esi
mov eax, ebx
call fcn.0040bcc4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c097
cmp dword [esi], 0
je 0x40c080
mov eax, esi
mov edx, 0x40c0f8
call fcn.0040a338
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bcc4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a338
push 0x671b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x671ba4], bx
mov eax, dword [esi]
call fcn.0040a13c
mov ecx, eax
mov eax, 0x671ba6
mov edx, 0xaa
call fcn.0040bb44
push 0x671b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0e7
lea eax, [ebp - 4]
call fcn.0040956c
ret
Function at 0x40c824
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.00409650
xor eax, eax
push ebp
push 0x40c8e4
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.0040a1e0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a390
mov eax, dword [ebx]
call fcn.0040c6ec
test al, al
jne 0x40c8c1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a1e0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a390
mov eax, dword [ebx]
call fcn.0040c6ec
test al, al
jne 0x40c8c1
mov eax, ebx
call fcn.0040956c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8eb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004095cc
lea eax, [ebp - 4]
call fcn.0040956c
ret

Function at 0x40d264
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 0x421eec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42201a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x421ff4
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x421fdd
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040a1e0
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a710
test eax, eax
jle 0x421fdd
mov eax, dword [ebp - 4]
test eax, eax
je 0x421f91
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x421f9f
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040a500
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040a1a4
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040a390
jmp 0x421ff4
add ebx, 2
cmp word [ebx], 0
jne 0x421fda
add ebx, 4
test ebx, ebx
je 0x421fee
cmp word [ebx], 0
jne 0x421f3e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422021
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.004095cc
lea eax, [ebp - 4]
call fcn.0040956c
ret
Function at 0x422114
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x422351
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.0040956c
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov ebx, eax
test ebx, ebx
jne 0x4221eb
cmp dword [ebp - 0x14], 0
jne 0x4221eb
xor edx, edx
mov eax, 6
call fcn.0042ad08
test al, al
je 0x4221eb
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x4221eb
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a1e0
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.00421eec
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.0040994c
mov byte [ebp - 9], 1
jmp 0x422333
test ebx, ebx
jne 0x4221f9
cmp dword [ebp - 0x14], 0
je 0x4222e7
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x4222e7
xor eax, eax
push ebp
push 0x4222e0
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4222c9
xor eax, eax
push ebp
push 0x4222c2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.00413a98
test eax, eax
jbe 0x4222ab
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a1e0
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00421eec
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.0040994c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4222c9
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4222e7
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x422333
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.00422028
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.0040994c
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x422333
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00421eec
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.0040994c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422358
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.004095cc
ret
Function at 0x422364
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.0042ad08
test al, al
je 0x42242c
xor edx, edx
mov eax, ebx
call fcn.00424064
test al, al
je 0x42242c
mov eax, ebx
call fcn.00423bb0
test al, 0x20
je 0x42242c
mov eax, ebx
call fcn.0040a13c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42242c
test ah, 4
je 0x42242c
test al, 0x10
je 0x4223cb
mov edi, 0x2000000
jmp 0x4223cd
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040a13c
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x42242c
xor eax, eax
push ebp
push 0x422425
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00422114
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42242c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x42276c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4227c5
test eax, edx
je 0x4227c8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x422783
movzx eax, word [eax]
sub eax, ecx
jmp 0x4227aa
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 0x4227ab
add ecx, 4
js 0x42279b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4227a8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4227aa
xor eax, eax
ret
test eax, eax
je 0x4227d4
test edx, edx
jne 0x422774
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret