joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407cfb
mov dword [ebp - 0x14], eax
cmp dword [0x4480d8], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4480d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4480dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4480e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4480e8], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4480e4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x4480d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x4480e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x4480e8], edi
je 0x40d429
push eax
call ebx
push dword [0x4480e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x4480dc]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x4480e0]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4480d8]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440e
mov esp, ebp
pop ebp
ret
Function at 0x406f90
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x430639
call fcn.00430290
sub esp, 0x210
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
mov edi, dword [ebp + 0xc]
push ebx
push 0x104
push eax
push 0x43ace4
push 0x43c1d0
push edi
mov dword [ebp - 0x10], ecx
call esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [eax + 4]
call fcn.00405ed5
push ebx
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x43ace4
push 0x43c1e0
push edi
call esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ecx + 0x20]
call fcn.00405ed5
mov ecx, dword [ebp - 0x10]
push 0x43a6ac
lea ecx, [ecx + 0xc]
call fcn.00405ed5
push ebx
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x43cd9c
push 0x43dd3c
push edi
call esi
push 0x30
pop ecx
xor eax, eax
cmp word [ebp - 0x21c], cx
mov ecx, dword [ebp - 0x10]
push ebx
setne al
push 0x104
mov dword [ecx + 0x28], eax
lea eax, [ebp - 0x21c]
push eax
push 0x43cd9c
push str.HTTPSECURE
push edi
call esi
mov ebx, dword [ebp - 0x10]
xor eax, eax
push 0x30
pop ecx
cmp word [ebp - 0x21c], cx
mov ecx, ebx
setne al
mov dword [ebp + 0xc], eax
je 0x407083
push str.HTTPS
jmp 0x407088
push str.HTTP
call fcn.00405ed5
xor edi, edi
mov dword [ebp + 8], edi
lea eax, [ebp + 8]
mov dword [ebp - 4], edi
push eax
push 0x43dd38
lea esi, [ebx + 4]
push 1
mov ecx, esi
call fcn.0040603b
test eax, eax
je 0x4070ee
push esi
lea ecx, [ebp + 0xc]
call fcn.00405f30
push esi
push 0x43dd38
push edi
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040603b
cmp dword [ebp + 8], edi
mov eax, 0x43ace4
cmovne eax, dword [ebp + 8]
push eax
call fcn.00420be9
pop ecx
mov dword [ebx + 8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
call fcn.00406689
jmp 0x407100
cmp dword [ebp + 0xc], 0
mov ecx, 0x1bb
push 0x50
pop eax
cmovne eax, ecx
mov dword [ebx + 8], eax
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 8]
call fcn.00406689
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4047d8
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.00406ee0
test esi, esi
jne 0x40480e
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.00407068
jmp 0x40482c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040471c
mov edi, eax
test esi, esi
je 0x40482c
cmp dword [ebx], 0
je 0x40482c
dec esi
jmp 0x404815
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405c40
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.0040602c
mov byte [esp], al
cmp byte [esp], 0
jne 0x405dc9
test edi, edi
je 0x405dc9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405d00
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405cdb
cmp edi, 0xffffffff
je 0x405c9f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405c9f
mov byte [esp], 0
jmp 0x405dc9
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405cdb
test ebx, ebx
jne 0x405cd4
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.0040262c
test eax, eax
jne 0x405cd4
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405dc9
pause
dec ebp
test ebp, ebp
jg 0x405c84
cmp edi, 0xffffffff
je 0x405d00
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405cfe
mov byte [esp], 0
jmp 0x405dc9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405c4e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.0040262c
cmp ebx, eax
jne 0x405d00
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405e3c
mov edx, eax
mov ebx, dword [0x5268cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405d67
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405d65
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405d67
xor edi, edi
cmp byte [esp], 0
je 0x405d90
mov ebx, dword [esi]
test bl, 1
jne 0x405da9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.0040262c
cmp ebx, eax
jne 0x405d6d
mov byte [esp + 1], 1
jmp 0x405da9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.0040262c
cmp ebx, eax
jne 0x405d90
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405d1a
cmp byte [esp], 0
je 0x405dc9
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 0x406b44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x526054], 0
je 0x406ba5
cmp word [0x526330], 0xd7b2
jne 0x406b6d
cmp dword [0x526338], 0
jbe 0x406b6d
mov eax, 0x52632c
call dword [0x526348]
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
push 0x406bd0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x522028], 0
jne 0x406bc1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406d9c
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 [0x52202c], 0
je 0x406dc7
mov edx, edi
mov eax, esi
call dword [0x52202c]
mov ebx, eax
jmp 0x406dd8
mov eax, 8
call fcn.00404444
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x526055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406d64
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 0x406e0d
mov edx, 8
mov eax, ebx
call fcn.00404460
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x409338
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 0x40949d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406ee0
cmp si, word [0x5227fc]
jb 0x4093d0
cmp si, word [0x5229fc]
ja 0x4093d0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4093d0
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5227fc]
jae 0x4093aa
mov edi, ebx
dec edi
jmp 0x4093cb
cmp si, word [ebx*8 + 0x5227fc]
jbe 0x4093ba
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4093cb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x522800]
call fcn.00409248
jmp 0x4093d0
cmp edi, dword [ebp - 8]
jae 0x409394
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40947f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40947f
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.00407ae8
push dword [ebp - 0x160]
push 0x4094b8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407ae8
push dword [ebp - 0x164]
push 0x4094c8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407ae8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094a4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406f40
ret
Function at 0x409650
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 0x409753
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x528b55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x528b6e]
jne 0x40969c
mov eax, esi
mov edx, 0x528b70
mov ecx, 0x55
call fcn.00407ae8
push 0x528b55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40973d
push 0x528b55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406ee0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40970b
cmp byte [0x528b54], 0
je 0x4096d0
mov edx, esi
mov eax, ebx
call fcn.00409534
jmp 0x40970b
mov edx, esi
mov eax, ebx
call fcn.00409338
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40970b
cmp dword [esi], 0
je 0x4096f4
mov eax, esi
mov edx, 0x40976c
call fcn.00407c40
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409338
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407c40
push 0x528b55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x528b6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407a5c
push eax
push 0x528b70
call sub.kernel32.dll_lstrcpynW
push 0x528b55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40975a
lea eax, [ebp - 4]
call fcn.00406ee0
ret
Function at 0x409988
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.00406fc4
xor eax, eax
push ebp
push 0x409bad
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4099c8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4099e2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407a5c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409b97
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409bbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ab1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409bbc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ab1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409bf8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ab1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409bf8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ab1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c2c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ab1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409b97
xor eax, eax
push ebp
push 0x409b90
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409794
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 0x409b20
mov eax, dword [ebp - 0x10]
call fcn.00404444
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.00407aac
jmp 0x409b6b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409ca0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409b6b
mov eax, dword [ebp - 0x10]
call fcn.00404444
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409ca0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407aac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b97
cmp dword [ebp - 8], 0
je 0x409b86
mov eax, dword [ebp - 8]
call fcn.00404460
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 0x409bb4
lea eax, [ebp - 4]
call fcn.00406ee0
ret
Function at 0x409eec
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.00406fc4
xor eax, eax
push ebp
push 0x409fac
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
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.00407ae8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407c98
mov eax, dword [ebx]
call fcn.00409db4
test al, al
jne 0x409f89
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407ae8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407c98
mov eax, dword [ebx]
call fcn.00409db4
test al, al
jne 0x409f89
mov eax, ebx
call fcn.00406ee0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409fb3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406f40
lea eax, [ebp - 4]
call fcn.00406ee0
ret

Function at 0x40a8cc
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 0x41cc5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41ccb5
test eax, edx
je 0x41ccb8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41cc73
movzx eax, word [eax]
sub eax, ecx
jmp 0x41cc9a
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 0x41cc9b
add ecx, 4
js 0x41cc8b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41cc98
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41cc9a
xor eax, eax
ret
test eax, eax
je 0x41ccc4
test edx, edx
jne 0x41cc64
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41dae8
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.00407a5c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41db52
test ah, 4
je 0x41db4b
test bl, bl
jne 0x41db10
mov al, 1
jmp 0x41db79
test al, 0x10
je 0x41db18
xor eax, eax
jmp 0x41db79
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41db3c
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41db79
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41db79
test al, 0x10
sete al
jmp 0x41db79
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41db73
cmp ebx, 3
je 0x41db73
cmp ebx, 0x7b
je 0x41db73
mov eax, esi
call fcn.0041daa8
test al, al
jne 0x41db77
xor eax, eax
jmp 0x41db79
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41db80
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.00407a5c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41dc27
test esi, 0x400
jne 0x41dbbc
test esi, 0x10
setne bl
jmp 0x41dc41
cmp byte [esp], 0
je 0x41dbf0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41dc41
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41dc41
test esi, 0x10
je 0x41dbfc
mov bl, 1
jmp 0x41dc41
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41dc23
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41dc41
mov bl, 1
jmp 0x41dc41
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x41dc3b
cmp eax, 3
je 0x41dc3b
cmp eax, 0x7b
jne 0x41dc3f
xor ebx, ebx
jmp 0x41dc41
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41dc4c
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.00407a5c
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41dca1
call sub.kernel32.dll_GetLastError_1
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41dc9b
test ah, 4
je 0x41dc9b
test al, 0x10
je 0x41dc9b
mov eax, esi
call fcn.00407a5c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41dca1
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x421274
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_1
test eax, eax
jle 0x4212ad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407068
jmp 0x4212b6
mov eax, ebx
mov edx, esi
call fcn.004072c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4212c0
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_1
test eax, eax
jle 0x4212e2
movzx eax, word [esp]
jmp 0x4212e4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret