joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4857b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e75a
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4b701c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x48], esp
lea eax, [ebp + 8]
push eax
call fcn.00404570
lea ecx, [ebp - 0x28]
push ecx
call fcn.00485690
add esp, 0x1c
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp + 8]
call fcn.00417060
lea ecx, [ebp - 0x28]
call fcn.004087f0
lea ecx, [ebp + 8]
call fcn.00409e50
test eax, eax
je 0x48583b
lea ecx, [ebp + 8]
call fcn.00408140
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x485856
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004087f0
mov eax, dword [ebp - 0x38]
jmp 0x4858bc
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0
je 0x485888
lea edx, [ebp + 8]
push edx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x2c
call fcn.0042412f
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004087f0
mov eax, dword [ebp - 0x3c]
jmp 0x4858bc
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4c], esp
lea eax, [ebp + 8]
push eax
call fcn.00404570
mov ecx, dword [ebp - 0x2c]
call fcn.00484e90
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004087f0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c11
mov esp, ebp
pop ebp
ret 0x18
Function at 0x485b80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e837
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4b701c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x24]
test ecx, ecx
je 0x485bba
xor al, al
jmp 0x485c70
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x24], 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004044d0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x30], eax
mov ecx, dword [ebp - 0x10]
call fcn.004863b0
push 0x18
call fcn.00422990
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x485c1e
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00486080
mov dword [ebp - 0x18], eax
jmp 0x485c25
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0x28
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
push 0x485ce0
push 0
push 0
call fcn.00463244
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x485c66
mov dword [ebp - 0x1c], 1
jmp 0x485c6d
mov dword [ebp - 0x1c], 0
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4863b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e941
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x4b701c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4d0], ecx
lea ecx, [ebp - 0x4cc]
call fcn.00429400
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4bc]
call fcn.00427370
mov byte [ebp - 4], 1
push 0x4a24e4
lea ecx, [ebp - 0x28]
call fcn.00404500
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x4d0]
add ecx, 4
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.00483b10
add esp, 0xc
mov dword [ebp - 0x4d4], eax
mov eax, dword [ebp - 0x4d4]
mov dword [ebp - 0x4d8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4d8]
call fcn.00408140
push eax
lea ecx, [ebp - 0x4bc]
call fcn.00427590
mov dword [ebp - 0x4dc], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.004087f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004087f0
cmp dword [ebp - 0x4dc], 0
je 0x48652b
lea ecx, [ebp - 0x4bc]
call fcn.004274e0
test eax, eax
jne 0x486518
lea ecx, [ebp - 0x4bc]
call fcn.00427570
test eax, eax
jne 0x486518
lea ecx, [ebp - 0x4e8]
push ecx
lea ecx, [ebp - 0x4bc]
call fcn.00429240
mov dword [ebp - 0x4e0], eax
mov edx, dword [ebp - 0x4e0]
mov dword [ebp - 0x4e4], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4e4]
call fcn.00416490
push eax
lea ecx, [ebp - 0x40]
call fcn.00404500
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x4f0]
push ecx
lea ecx, [ebp - 0x4cc]
call fcn.004298c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004087f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4e8]
call fcn.00417340
lea ecx, [ebp - 0x4bc]
call fcn.004276f0
test eax, eax
jne 0x486485
lea edx, [ebp - 0x4c4]
push edx
lea ecx, [ebp - 0x4cc]
call fcn.00429440
mov dword [ebp - 0x4c0], 0
jmp 0x486558
mov eax, dword [ebp - 0x4c0]
add eax, 1
mov dword [ebp - 0x4c0], eax
lea ecx, [ebp - 0x4cc]
call fcn.00429420
sub eax, 5
cmp dword [ebp - 0x4c0], eax
jge 0x486594
lea ecx, [ebp - 0x4c4]
call fcn.004293e0
mov ecx, eax
call fcn.00408140
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x4c4]
call fcn.004293c0
jmp 0x486549
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4bc]
call fcn.004273b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4cc]
call fcn.00429370
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c11
mov esp, ebp
pop ebp
ret
Function at 0x405138
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.00407494
test esi, esi
jne 0x40516e
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.0040761c
jmp 0x40518c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040501c
mov edi, eax
test esi, esi
je 0x40518c
cmp dword [ebx], 0
je 0x40518c
dec esi
jmp 0x405175
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4061c8
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.004065a0
mov byte [esp], al
cmp byte [esp], 0
jne 0x406348
test edi, edi
je 0x406348
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406288
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x406263
cmp edi, 0xffffffff
je 0x406227
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406227
mov byte [esp], 0
jmp 0x406348
mov ebx, dword [esi]
cmp ebx, 1
jg 0x406263
test ebx, ebx
jne 0x406259
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x406259
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406348
call 0x4066c0
dec ebp
test ebp, ebp
jg 0x40620c
cmp edi, 0xffffffff
je 0x406288
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406286
mov byte [esp], 0
jmp 0x406348
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4061d6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406288
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004063b4
mov edx, eax
mov ebx, dword [0x6888f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4062ec
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4062ea
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4062ec
xor edi, edi
cmp byte [esp], 0
je 0x406312
mov ebx, dword [esi]
test bl, 1
jne 0x406328
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4062f2
mov byte [esp + 1], 1
jmp 0x406328
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406312
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40629f
cmp byte [esp], 0
je 0x406348
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 0x407130
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x688058], 0
je 0x407197
cmp word [0x688344], 0xd7b2
jne 0x407159
cmp dword [0x68834c], 0
jbe 0x407159
mov eax, 0x688340
call dword [0x68835c]
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, 0x4071c4
call fcn.00407edc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x670034], 0
jne 0x4071b3
push 0
push 0x6709ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407354
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 [0x670038], 0
je 0x40737f
mov edx, edi
mov eax, esi
call dword [0x670038]
mov ebx, eax
jmp 0x407390
mov eax, 8
call fcn.00404d58
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x688059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40731c
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 0x4073c0
mov eax, ebx
call fcn.00404d74
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40a18c
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 0x40a2f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407494
cmp si, word [0x670a08]
jb 0x40a224
cmp si, word [0x670c08]
ja 0x40a224
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a224
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x670a08]
jae 0x40a1fe
mov edi, ebx
dec edi
jmp 0x40a21f
cmp si, word [ebx*8 + 0x670a08]
jbe 0x40a20e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a21f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x670a0c]
call fcn.0040a0ac
jmp 0x40a224
cmp edi, dword [ebp - 8]
jae 0x40a1e8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a2d3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a2d3
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.004083b8
push dword [ebp - 0x160]
push 0x40a30c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004083b8
push dword [ebp - 0x164]
push 0x40a31c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004083b8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004085f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a2f8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004074f4
ret
Function at 0x40a4a4
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 0x40a5a8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x68ab88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x68aba0]
jne 0x40a4f0
mov eax, esi
mov edx, 0x68aba2
mov ecx, 0x55
call fcn.004083b8
push 0x68ab88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a592
push 0x68ab88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407494
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a55f
cmp byte [0x68ab84], 0
je 0x40a524
mov edx, esi
mov eax, ebx
call fcn.0040a388
jmp 0x40a55f
mov edx, esi
mov eax, ebx
call fcn.0040a18c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a55f
cmp dword [esi], 0
je 0x40a548
mov eax, esi
mov edx, 0x40a5c0
call fcn.00408510
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a18c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408510
push 0x68ab88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x68aba0], bx
mov eax, dword [esi]
call fcn.004082fc
mov ecx, eax
mov eax, 0x68aba2
mov edx, 0xaa
call fcn.0040a00c
push 0x68ab88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a5af
lea eax, [ebp - 4]
call fcn.00407494
ret
Function at 0x40a7d8
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.00407578
xor eax, eax
push ebp
push 0x40a9fd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a818
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a832
mov eax, dword [ebp - 4]
call fcn.004082fc
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a00c
cmp word [ebp - 0x21a], 0
je 0x40a9e7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40aa0c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a901
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40aa0c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a901
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40aa48
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a901
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40aa48
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a901
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40aa7c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a901
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40aab0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a9e7
xor eax, eax
push ebp
push 0x40a9e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a5e8
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 0x40a970
mov eax, dword [ebp - 0x10]
call fcn.00404d58
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.00408364
jmp 0x40a9bb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40aaf0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a9bb
mov eax, dword [ebp - 0x10]
call fcn.00404d58
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40aaf0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00408364
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a9e7
cmp dword [ebp - 8], 0
je 0x40a9d6
mov eax, dword [ebp - 8]
call fcn.00404d74
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 0x40aa04
lea eax, [ebp - 4]
call fcn.00407494
ret
Function at 0x40acec
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.00407578
xor eax, eax
push ebp
push 0x40adac
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.004083b8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408568
mov eax, dword [ebx]
call fcn.0040abb4
test al, al
jne 0x40ad89
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004083b8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408568
mov eax, dword [ebx]
call fcn.0040abb4
test al, al
jne 0x40ad89
mov eax, ebx
call fcn.00407494
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40adb3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004074f4
lea eax, [ebp - 4]
call fcn.00407494
ret

Function at 0x41bec8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41bf21
test eax, edx
je 0x41bf24
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41bedf
movzx eax, word [eax]
sub eax, ecx
jmp 0x41bf06
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 0x41bf07
add ecx, 4
js 0x41bef7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41bf04
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41bf06
xor eax, eax
ret
test eax, eax
je 0x41bf30
test edx, edx
jne 0x41bed0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41d0d0
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 0x41d0fd
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41d1d0
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.004082fc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d23a
test ah, 4
je 0x41d233
test bl, bl
jne 0x41d1f8
mov al, 1
jmp 0x41d261
test al, 0x10
je 0x41d200
xor eax, eax
jmp 0x41d261
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41d224
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41d261
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41d261
test al, 0x10
sete al
jmp 0x41d261
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41d25b
cmp ebx, 3
je 0x41d25b
cmp ebx, 0x7b
je 0x41d25b
mov eax, esi
call fcn.0041d190
test al, al
jne 0x41d25f
xor eax, eax
jmp 0x41d261
mov al, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.004082fc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41d30f
test esi, 0x400
jne 0x41d2a4
test esi, 0x10
setne bl
jmp 0x41d33f
cmp byte [esp], 0
je 0x41d2d8
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41d33f
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41d33f
test esi, 0x10
je 0x41d2e4
mov bl, 1
jmp 0x41d33f
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41d30b
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41d33f
mov bl, 1
jmp 0x41d33f
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41d339
cmp eax, 3
je 0x41d339
cmp eax, 0xa1
je 0x41d339
cmp eax, 0x7b
je 0x41d339
cmp eax, 0x35
je 0x41d339
cmp eax, 0x15
je 0x41d339
cmp eax, 0x43
jne 0x41d33d
xor ebx, ebx
jmp 0x41d33f
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41d578
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.004082fc
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41d5cd
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d5c7
test ah, 4
je 0x41d5c7
test al, 0x10
je 0x41d5c7
mov eax, esi
call fcn.004082fc
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41d5cd
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret