joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b538
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x43c510
call fcn.0042be5e
push 1
call fcn.0042b6a2
pop ecx
test al, al
jne 0x42b3e1
push 7
call fcn.0042c0e7
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0042b66d
mov byte [ebp - 0x24], al
mov eax, dword [0x447fe8]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x42b3da
test eax, eax
jne 0x42b44b
mov dword [0x447fe8], ecx
push 0x42f2f4
push 0x42f2dc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x42b42e
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x42b532
push 0x42f2d8
push 0x42f2b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x447fe8], 2
jmp 0x42b450
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0042b7ff
pop ecx
call fcn.0042c0db
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x42b480
push esi
call fcn.0042b772
pop ecx
test al, al
je 0x42b480
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0042c316
call esi
call fcn.0042c0e1
mov esi, eax
cmp dword [esi], edi
je 0x42b49e
push esi
call fcn.0042b772
pop ecx
test al, al
je 0x42b49e
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.0042c1fc
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.0042c22f
test al, al
jne 0x42b4d7
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x42b4e0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0042b81c
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x42b532
call fcn.0042bea4
ret
call fcn.0042b247
jmp 0x42b3c2
Function at 0xb580b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb58200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb580d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb580c2
add dl, dl
jne 0xb580e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb58134
xor eax, eax
add dl, dl
jne 0xb580ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb581d5
add dl, dl
jne 0xb580fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb58108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb58113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb5811e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb5812a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb580cd
mov eax, 1
add dl, dl
jne 0xb58142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb5814d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb58139
sub eax, ebx
mov ebx, 1
jne 0xb58180
mov ecx, 1
add dl, dl
jne 0xb58166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb58171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb5815d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb580cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb58197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb581a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb5818e
cmp eax, 0x7d00
jae 0xb581c5
cmp eax, 0x500
jb 0xb581c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb580cd
cmp eax, 0x7f
ja 0xb581c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb580cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb581f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb580cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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

Disassembly:
pushal
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, reloc.authz.dll_AuthzFreeResourceManager
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4047a8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4047ea
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x40480a
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00409f38
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x404a00
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.0040900c
test esi, esi
jne 0x404a36
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.00409194
jmp 0x404a54
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404944
mov edi, eax
test esi, esi
je 0x404a54
cmp dword [ebx], 0
je 0x404a54
dec esi
jmp 0x404a3d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x407d58
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408144
mov byte [esp], al
cmp byte [esp], 0
jne 0x407ee4
test edi, edi
je 0x407ee4
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407e1b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407df6
cmp edi, 0xffffffff
je 0x407db7
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407db7
mov byte [esp], 0
jmp 0x407ee4
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407df6
test ebx, ebx
jne 0x407dec
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004027e0
test eax, eax
jne 0x407dec
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407ee4
call 0x408268
dec ebp
test ebp, ebp
jg 0x407d9c
cmp edi, 0xffffffff
je 0x407e1b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407e19
mov byte [esp], 0
jmp 0x407ee4
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407d66
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004027e0
cmp ebx, eax
jne 0x407e1b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407f54
mov edx, eax
mov ebx, dword [reloc.kernel32.dll_GetPriorityClass]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407e82
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407e80
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407e82
xor edi, edi
cmp byte [esp], 0
je 0x407eab
mov ebx, dword [esi]
test bl, 1
jne 0x407ec4
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004027e0
cmp ebx, eax
jne 0x407e88
mov byte [esp + 1], 1
jmp 0x407ec4
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004027e0
cmp ebx, eax
jne 0x407eab
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407e35
cmp byte [esp], 0
je 0x407ee4
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408c68
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x684058], 0
je 0x408ccf
cmp word [0x684340], 0xd7b2
jne 0x408c91
cmp dword [reloc.user32.dll_UpdateWindow], 0
jbe 0x408c91
mov eax, 0x68433c
call dword [0x684358]
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, 0x408cfc
call fcn.00409a78
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x677032], 0
jne 0x408ceb
push 0
push 0x6779d2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408ec8
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 [0x677034], 0
je 0x408ef3
mov edx, edi
mov eax, esi
call dword [0x677034]
mov ebx, eax
jmp 0x408f04
mov eax, 8
call fcn.004045d0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x684059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408e90
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 0x408f39
mov edx, 8
mov eax, ebx
call fcn.004045ec
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40b998
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 0x40bafd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040900c
cmp si, word [0x677a10]
jb 0x40ba30
cmp si, word [0x677c10]
ja 0x40ba30
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40ba30
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x677a10]
jae 0x40ba0a
mov edi, ebx
dec edi
jmp 0x40ba2b
cmp si, word [ebx*8 + 0x677a10]
jbe 0x40ba1a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40ba2b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x677a14]
call fcn.0040b8a8
jmp 0x40ba30
cmp edi, dword [ebp - 8]
jae 0x40b9f4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40badf
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40badf
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.00409f38
push dword [ebp - 0x160]
push 0x40bb18
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409f38
push dword [ebp - 0x164]
push 0x40bb28
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409f38
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a170
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb04
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040906c
ret
Function at 0x40bcb0
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 0x40bdb3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x686b80
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x686b98]
jne 0x40bcfc
mov eax, esi
mov edx, 0x686b9a
mov ecx, 0x55
call fcn.00409f38
push 0x686b80
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bd9d
push 0x686b80
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040900c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bd6b
cmp byte [0x686b7c], 0
je 0x40bd30
mov edx, esi
mov eax, ebx
call fcn.0040bb94
jmp 0x40bd6b
mov edx, esi
mov eax, ebx
call fcn.0040b998
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bd6b
cmp dword [esi], 0
je 0x40bd54
mov eax, esi
mov edx, 0x40bdcc
call fcn.0040a090
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b998
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a090
push 0x686b80
call sub.kernel32.dll_EnterCriticalSection
mov word [0x686b98], bx
push 0xaa
mov eax, dword [esi]
call fcn.00409e7c
push eax
push 0x686b9a
call sub.kernel32.dll_lstrcpynW
push 0x686b80
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bdba
lea eax, [ebp - 4]
call fcn.0040900c
ret
Function at 0x40bfe8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004090f0
xor eax, eax
push ebp
push 0x40c20d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c028
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c042
push 0x105
mov eax, dword [ebp - 4]
call fcn.00409e7c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40c1f7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c21c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c111
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c21c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c111
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c258
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c111
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c258
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c111
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c28c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c111
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c1f7
xor eax, eax
push ebp
push 0x40c1f0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bdf4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c180
mov eax, dword [ebp - 0x10]
call fcn.004045d0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409ee4
jmp 0x40c1cb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c300
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c1cb
mov eax, dword [ebp - 0x10]
call fcn.004045d0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c300
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409ee4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1f7
cmp dword [ebp - 8], 0
je 0x40c1e6
mov eax, dword [ebp - 8]
call fcn.004045ec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c214
lea eax, [ebp - 4]
call fcn.0040900c
ret
Function at 0x40c4f4
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.004090f0
xor eax, eax
push ebp
push 0x40c5b4
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.00409f38
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a0e8
mov eax, dword [ebx]
call fcn.0040c3bc
test al, al
jne 0x40c591
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409f38
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a0e8
mov eax, dword [ebx]
call fcn.0040c3bc
test al, al
jne 0x40c591
mov eax, ebx
call fcn.0040900c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5bb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040906c
lea eax, [ebp - 4]
call fcn.0040900c
ret

Function at 0x4211bc
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 0x4212e5
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 0x4212bf
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 0x4212a8
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.00409f38
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a464
test eax, eax
jle 0x4212a8
mov eax, dword [ebp - 4]
test eax, eax
je 0x42125c
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x42126a
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.0040a2b8
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.00409ee4
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040a0e8
jmp 0x4212bf
add ebx, 2
cmp word [ebx], 0
jne 0x4212a5
add ebx, 4
test ebx, ebx
je 0x4212b9
cmp word [ebx], 0
jne 0x42120e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4212ec
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040906c
lea eax, [ebp - 4]
call fcn.0040900c
ret
Function at 0x4213d8
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 0x421615
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.0040900c
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_1
mov ebx, eax
test ebx, ebx
jne 0x4214af
cmp dword [ebp - 0x14], 0
jne 0x4214af
xor edx, edx
mov eax, 6
call fcn.0042982c
test al, al
je 0x4214af
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 0x4214af
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00409f38
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.004211bc
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.004093ec
mov byte [ebp - 9], 1
jmp 0x4215f7
test ebx, ebx
jne 0x4214bd
cmp dword [ebp - 0x14], 0
je 0x4215ab
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 0x4215ab
xor eax, eax
push ebp
push 0x4215a4
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 0x42158d
xor eax, eax
push ebp
push 0x421586
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.004126cc
test eax, eax
jbe 0x42156f
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00409f38
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.004211bc
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.004093ec
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42158d
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 0x4215ab
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x4215f7
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.004212f4
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.004093ec
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4215f7
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004211bc
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.004093ec
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42161c
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.0040906c
ret
Function at 0x421628
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.0042982c
test al, al
je 0x4216f0
xor edx, edx
mov eax, ebx
call fcn.00423180
test al, al
je 0x4216f0
mov eax, ebx
call fcn.00422d80
test al, 0x20
je 0x4216f0
mov eax, ebx
call fcn.00409e7c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4216f0
test ah, 4
je 0x4216f0
test al, 0x10
je 0x42168f
mov edi, 0x2000000
jmp 0x421691
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.00409e7c
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4216f0
xor eax, eax
push ebp
push 0x4216e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.004213d8
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4216f0
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 0x4219ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421a45
test eax, edx
je 0x421a48
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x421a03
movzx eax, word [eax]
sub eax, ecx
jmp 0x421a2a
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 0x421a2b
add ecx, 4
js 0x421a1b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421a28
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x421a2a
xor eax, eax
ret
test eax, eax
je 0x421a54
test edx, edx
jne 0x4219f4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret