joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10054950
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push esi
push edi
push 0x3c
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push eax
mov edi, ecx
call fcn.100739c0
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
add esp, 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov ecx, 0x3c
movdqu xmmword [ebp - 0x18], xmm0
mov eax, esi
mov dword [ebp - 0x64], 0
movq qword [ebp - 8], xmm0
movdqu xmmword [ebp - 0x84], xmm0
movdqu xmmword [ebp - 0x74], xmm0
lea ecx, [ecx]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x100549b0
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov word [ebp - 0x13], 0
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [edi + 0x9c]
mov dword [ebp - 0x18], eax
lea eax, [esi + 0x34]
mov dword [ebp - 0x20], eax
test edx, 0x100000
je 0x10054a07
mov eax, edx
xor ecx, ecx
shr eax, 0x15
and al, 1
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x78]
add eax, 1
mov dword [ebp - 8], eax
adc ecx, ecx
mov dword [ebp - 4], ecx
test edx, edx
jns 0x10054a16
cmp dword [0x101b0c5c], 0
setne byte [ebp - 0x10]
and dword [ebp - 0x54], 0xfffffffe
lea eax, [ebp - 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0x58]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], 0x20
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x48], 1
call eax
test eax, eax
jne 0x10054aa3
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov dword [esi], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 4], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], 0
mov dword [esi + 0x14], eax
test dword [edi + 0x9c], 0x80000000
je 0x10054a96
mov eax, dword [0x101b0c5c]
mov dword [esi + 0x38], eax
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1006d490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101b6ca8]
push esi
mov dword [ebp - 4], 0
xor esi, esi
mov dword [eax + 4], 1
mov eax, dword [0x101b6ca8]
mov dword [eax + 8], esi
lea eax, [ebp - 4]
push eax
push 1
push esi
push str.SOFTWAREIntelEventTrace
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006d57c
mov eax, dword [0x101b6ca8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [eax + 4], esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [esi*4 + 0x101ab894]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1006d544
test esi, esi
jne 0x1006d530
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x1006d566
test eax, eax
jne 0x1006d551
mov eax, dword [0x101b6ca8]
mov dword [eax + 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x101b6ca8]
xor ecx, ecx
cmp dword [ebp - 8], 1
sete cl
mov dword [eax + esi*4 + 0xc], ecx
jmp 0x1006d551
mov eax, dword [0x101b6ca8]
mov dword [eax + esi*4 + 0xc], 0
inc esi
cmp esi, 0xb
jl 0x1006d4e2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x101b6ca8]
mov dword [eax + 4], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4066e4
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.00408ae4
test esi, esi
jne 0x40671a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00408c6c
jmp 0x406738
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406628
mov edi, eax
test esi, esi
je 0x406738
cmp dword [ebx], 0
je 0x406738
dec esi
jmp 0x406721
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x407b40
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.00407dd0
mov byte [esp], al
cmp byte [esp], 0
jne 0x407cc0
test edi, edi
je 0x407cc0
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407c00
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407bdb
cmp edi, 0xffffffff
je 0x407b9f
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407b9f
mov byte [esp], 0
jmp 0x407cc0
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407bdb
test ebx, ebx
jne 0x407bd1
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407bd1
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407cc0
call 0x407e10
dec ebp
test ebp, ebp
jg 0x407b84
cmp edi, 0xffffffff
je 0x407c00
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407bfe
mov byte [esp], 0
jmp 0x407cc0
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407b4e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407c00
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407d2c
mov edx, eax
mov ebx, dword [0x57a8f0]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407c64
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407c62
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407c64
xor edi, edi
cmp byte [esp], 0
je 0x407c8a
mov ebx, dword [esi]
test bl, 1
jne 0x407ca0
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407c6a
mov byte [esp + 1], 1
jmp 0x407ca0
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407c8a
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407c17
cmp byte [esp], 0
je 0x407cc0
call sub.KERNEL32.DLL_GetCurrentThreadId_1
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 0x40884c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x57a050], 0
je 0x4088b3
cmp word [0x57a33c], 0xd7b2
jne 0x408875
cmp dword [0x57a344], 0
jbe 0x408875
mov eax, 0x57a338
call dword [0x57a354]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4088e0
call fcn.00409304
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x4d3032], 0
jne 0x4088cf
push 0
push 0x4d39da
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40b018
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 0x40b17d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408ae4
cmp si, word [0x4d3a18]
jb 0x40b0b0
cmp si, word [0x4d3c18]
ja 0x40b0b0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40b0b0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4d3a18]
jae 0x40b08a
mov edi, ebx
dec edi
jmp 0x40b0ab
cmp si, word [ebx*8 + 0x4d3a18]
jbe 0x40b09a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40b0ab
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d3a1c]
call fcn.0040af38
jmp 0x40b0b0
cmp edi, dword [ebp - 8]
jae 0x40b074
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40b15f
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x40b15f
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004096a8
push dword [ebp - 0x160]
push 0x40b198
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004096a8
push dword [ebp - 0x164]
push 0x40b1a8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004096a8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004098e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b184
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00408b44
ret
Function at 0x40b330
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 0x40b433
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x57cb80
call sub.KERNEL32.DLL_EnterCriticalSection_1
cmp bx, word [0x57cb98]
jne 0x40b37c
mov eax, esi
mov edx, 0x57cb9a
mov ecx, 0x55
call fcn.004096a8
push 0x57cb80
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x40b41d
push 0x57cb80
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov eax, esi
call fcn.00408ae4
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x40b3eb
cmp byte [0x57cb7c], 0
je 0x40b3b0
mov edx, esi
mov eax, ebx
call fcn.0040b214
jmp 0x40b3eb
mov edx, esi
mov eax, ebx
call fcn.0040b018
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40b3eb
cmp dword [esi], 0
je 0x40b3d4
mov eax, esi
mov edx, 0x40b44c
call fcn.00409800
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b018
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409800
push 0x57cb80
call sub.KERNEL32.DLL_EnterCriticalSection_1
mov word [0x57cb98], bx
push 0xaa
mov eax, dword [esi]
call fcn.00409604
push eax
push 0x57cb9a
call sub.KERNEL32.DLL_lstrcpynW
push 0x57cb80
call sub.KERNEL32.DLL_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b43a
lea eax, [ebp - 4]
call fcn.00408ae4
ret
Function at 0x40b668
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.00408bc8
xor eax, eax
push ebp
push 0x40b88d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40b6a8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
jmp 0x40b6c2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00409604
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40b877
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b89c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b791
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b89c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b791
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b8d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b791
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b8d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b791
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b90c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b791
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b940
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40b877
xor eax, eax
push ebp
push 0x40b870
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b474
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 0x40b800
mov eax, dword [ebp - 0x10]
call fcn.00406384
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.0040966c
jmp 0x40b84b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40b980
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40b84b
mov eax, dword [ebp - 0x10]
call fcn.00406384
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40b980
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040966c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b877
cmp dword [ebp - 8], 0
je 0x40b866
mov eax, dword [ebp - 8]
call fcn.004063a0
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 0x40b894
lea eax, [ebp - 4]
call fcn.00408ae4
ret
Function at 0x40bb7c
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.00408bc8
xor eax, eax
push ebp
push 0x40bc3c
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004096a8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409858
mov eax, dword [ebx]
call fcn.0040ba44
test al, al
jne 0x40bc19
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004096a8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409858
mov eax, dword [ebx]
call fcn.0040ba44
test al, al
jne 0x40bc19
mov eax, ebx
call fcn.00408ae4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc43
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408b44
lea eax, [ebp - 4]
call fcn.00408ae4
ret

Function at 0x41d938
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
Function at 0x41db58
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 0x41dd95
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00408ae4
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 0x41dc2f
cmp dword [ebp - 0x14], 0
jne 0x41dc2f
xor edx, edx
mov eax, 6
call fcn.00424f48
test al, al
je 0x41dc2f
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 0x41dc2f
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.004096a8
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.0041d938
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
inc ebp
clc
test ebx, ebx
jne 0x41dc3d
cmp dword [ebp - 0x14], 0
je 0x41dd2b
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 0x41dd2b
xor eax, eax
push ebp
push 0x41dd24
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 0x41dd0d
xor eax, eax
push ebp
push 0x41dd06
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.0040e988
test eax, eax
jbe 0x41dcef
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.004096a8
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.0041d938
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.00408ec4
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dd0d
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 0x41dd2b
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
cmp byte [ebp - 9], 0
jne 0x41dd77
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.0041da74
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.00408ec4
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x41dd77
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0041d938
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.00408ec4
mov byte [ebp - 9], 1
Function at 0x41dda8
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.00424f48
test al, al
je 0x41de70
xor edx, edx
mov eax, ebx
call fcn.0041f2fc
test al, al
je 0x41de70
mov eax, ebx
call fcn.0041ee5c
test al, 0x20
je 0x41de70
mov eax, ebx
call fcn.00409604
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41de70
test ah, 4
je 0x41de70
test al, 0x10
je 0x41de0f
mov edi, 0x2000000
jmp 0x41de11
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.00409604
push eax
call sub.KERNEL32.DLL_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x41de70
xor eax, eax
push ebp
push 0x41de69
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.0041db58
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41de70
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41df74
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41dfcd
test eax, edx
je 0x41dfd0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41df8b
movzx eax, word [eax]
sub eax, ecx
jmp 0x41dfb2
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 0x41dfb3
add ecx, 4
js 0x41dfa3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41dfb0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41dfb2
xor eax, eax
ret
test eax, eax
je 0x41dfdc
test edx, edx
jne 0x41df7c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x41ee5c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x41efc0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x41edfc]
call fcn.0040a988
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x41ee2c]
call fcn.0040a988
add esp, 4
movzx ebx, byte [0x41efd0]
mov dl, 1
mov eax, esi
call fcn.0041f394
test al, al
jne 0x41eed6
mov dl, 1
mov eax, esi
call fcn.0041f2fc
test al, al
je 0x41ef60
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.0041f544
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042533c
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00409604
mov esi, eax
push esi
call sub.KERNEL32.DLL_GetVolumeInformationW
test eax, eax
je 0x41ef5b
test byte [ebp - 0x14], 1
je 0x41ef26
or bl, 1
test byte [ebp - 0x14], 2
je 0x41ef2f
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x41ef38
or bl, 0x20
push esi
call sub.KERNEL32.DLL_GetDriveTypeW
sub eax, 2
je 0x41ef4c
dec eax
je 0x41ef51
dec eax
je 0x41ef56
dec eax
jne 0x41ef81
or bl, 0x10
jmp 0x41ef81
or bl, 4
jmp 0x41ef81
or bl, 8
jmp 0x41ef81
call fcn.00425914
lea edx, [ebp - 0x20]
mov eax, dword [0x5791ac]
call fcn.0040c3c8
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x418bc8]
call fcn.00423f8c
call fcn.004082ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41efc7
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00408b44
lea eax, [ebp - 0xc]
mov edx, dword [0x41ee2c]
call fcn.0040aaac
lea eax, [ebp - 8]
mov edx, dword [0x41edfc]
call fcn.0040aaac
lea eax, [ebp - 4]
call fcn.00408ae4
ret

Function at 0x41f02c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x41f059
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4