joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487ff4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x75066c
push 0x750664
push str.FlsAlloc
push 0x1e
call fcn.00487e20
mov esi, eax
add esp, 0x10
test esi, esi
je 0x488028
push dword [ebp + 8]
mov ecx, esi
call dword [0x4974f0]
call esi
jmp 0x48802e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x488072
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x75067c
push 0x750674
push str.FlsGetValue
push 0x20
call fcn.00487e20
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4880a9
push dword [ebp + 8]
mov ecx, esi
call dword [0x4974f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x488b67
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004889d8
Function at 0x48a8c2
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0048a83e
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x48aa3a
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x48aa3a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x48a9e9
jg 0x48a91b
test eax, eax
je 0x48a9df
push 1
push 0x1000
call fcn.00487b22
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x48a941
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x48a9d6
push 0x8000
push ebx
call fcn.0048384c
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x48a96d
jg 0x48a968
cmp ecx, 0x1000
jb 0x48a96d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00486af9
add esp, 0x10
cmp eax, 0xffffffff
je 0x48a9b2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x48a968
jl 0x48a999
test ecx, ecx
jne 0x48a95a
push dword [ebp - 0xc]
push ebx
call fcn.0048384c
push esi
call fcn.00487ae8
add esp, 0xc
xor edi, edi
jmp 0x48aa4b
cmp byte [edi + 0x24], 0
je 0x48a9c9
cmp dword [edi + 0x20], 5
jne 0x48a9c9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x48a9d4
mov edi, dword [edi + 0x18]
jmp 0x48a9d6
xor edi, edi
push esi
call fcn.00487ae8
pop ecx
jmp 0x48aa4b
test ecx, ecx
jg 0x48a9ab
jl 0x48a9e9
test eax, eax
jae 0x48a9ab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004807bf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x48aa0c
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x48a9ab
jmp 0x48aa43
push ebx
call fcn.0048a7d4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x48a9ab
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x48aa4b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x48aa48
mov edi, dword [edi + 0x18]
jmp 0x48aa4b
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004807bf
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48cb29
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x75a440]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x48cb74
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0048ccc8
test al, al
jne 0x48cb6e
sub edx, 2
cmp edx, edi
jne 0x48cb54
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x48cb96
lea eax, [edi + 2]
cmp edx, eax
je 0x48cb96
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0048ca75
add esp, 0x10
jmp 0x48cc90
push esi
lea ecx, [ebp - 0x255]
call fcn.0048ccc8
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48cbd9
push dword [ebp - 0x25c]
jmp 0x48cb86
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x48cc16
cmp word [ebp - 0x226], 0
je 0x48cc37
cmp word [ebp - 0x226], ax
jne 0x48cc16
cmp word [ebp - 0x224], 0
je 0x48cc37
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0048ca75
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x48cc83
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x48cbf0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x48cc6b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x48cc90
push 0x48c8a5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0047e7d0
add esp, 0x10
jmp 0x48cc60
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c2a8
leave
ret

Function at 0x48d5b4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x48d5c5
pop esi
ret
push ebx
push edi
push esi
call fcn.0048d57d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00488eef
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x48d5ed
push ebx
push esi
push edi
call fcn.0046d280
add esp, 0xc
push 0
call fcn.00487ae8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x48d9b1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048d602
Function at 0x4941a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4941cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4941cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10b07f5
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 4]
jbe 0x10bbdab
pushal
adc dl, dl
mov byte [esp], dh
mov byte [esp], ch
call fcn.010bf2d1

Function at 0x10b39e1
Capabilities:
Encode data using xor

Disassembly:
mov word [esp + 0xc], 0x32de
lea esp, [esp + 0x28]
jb 0x10bf2df
push ebp
pushfd
xor dh, dl
test bl, al
test dh, 1
pushal
mov dh, 0
push esi
pushfd
mov byte [esp], 0x51
jmp 0x10be05c
xchg ebp, eax
push cs
xchg ebx, eax
mov edx, 0x73bdbbf9
push edx
mov bl, 0x8a
lea esp, [esp + 0x30]
je 0x10b0031
movsx eax, al
pushal
call fcn.010ae73c
or al, 0x4b
jae 0x10bdff6
xchg ebp, eax
nop
stosb byte es:[edi], al
wait
test dword [edi + edx*4], esi
pop ebp
invalid
Function at 0x404c3c
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.00406ffc
test esi, esi
jne 0x404c72
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.00407164
jmp 0x404c90
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404b80
mov edi, eax
test esi, esi
je 0x404c90
cmp dword [ebx], 0
je 0x404c90
dec esi
jmp 0x404c79
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405ca0
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.00406098
mov byte [esp], al
cmp byte [esp], 0
jne 0x405e2c
test edi, edi
je 0x405e2c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405d63
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405d3e
cmp edi, 0xffffffff
je 0x405cff
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405cff
mov byte [esp], 0
jmp 0x405e2c
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405d3e
test ebx, ebx
jne 0x405d34
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004028d0
test eax, eax
jne 0x405d34
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405e2c
call 0x4061bc
dec ebp
test ebp, ebp
jg 0x405ce4
cmp edi, 0xffffffff
je 0x405d63
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d61
mov byte [esp], 0
jmp 0x405e2c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405cae
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004028d0
cmp ebx, eax
jne 0x405d63
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405e9c
mov edx, eax
mov ebx, dword [0x5578f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405dca
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405dc8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405dca
xor edi, edi
cmp byte [esp], 0
je 0x405df3
mov ebx, dword [esi]
test bl, 1
jne 0x405e0c
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004028d0
cmp ebx, eax
jne 0x405dd0
mov byte [esp + 1], 1
jmp 0x405e0c
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004028d0
cmp ebx, eax
jne 0x405df3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405d7d
cmp byte [esp], 0
je 0x405e2c
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 0x4069c0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x559b18
cmp dword [ebp + 0xc], 2
jl 0x4069d4
mov ebx, 0x559b48
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x406a0c
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x402974
mov dword [0x557018], eax
mov eax, 0x40297c
mov dword [0x55701c], eax
mov eax, ebx
call fcn.004068a4
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x406a41
cmp al, 3
jge 0x406a41
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x406a52
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x406a5d
call dword [ecx + eax*4]
cmp dword [0x55703c], 0
jne 0x406a73
mov byte [0x557044], 1
fnstcw word [0x54d028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00406cf0
call fcn.00406954
ret 4

Function at 0x406c58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x557058], 0
je 0x406cbf
cmp word [0x557344], 0xd7b2
jne 0x406c81
cmp dword [0x55734c], 0
jbe 0x406c81
mov eax, 0x557340
call dword [0x55735c]
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, 0x406cec
call fcn.00407858
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x54d032], 0
jne 0x406cdb
push 0
push 0x54d9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406eb8
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 [0x54d034], 0
je 0x406ee3
mov edx, edi
mov eax, esi
call dword [0x54d034]
mov ebx, eax
jmp 0x406ef4
mov eax, 8
call fcn.0040486c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x557059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406e80
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 0x406f29
mov edx, 8
mov eax, ebx
call fcn.00404888
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40930c
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 0x409471
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406ffc
cmp si, word [0x54da00]
jb 0x4093a4
cmp si, word [0x54dc00]
ja 0x4093a4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4093a4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x54da00]
jae 0x40937e
mov edi, ebx
dec edi
jmp 0x40939f
cmp si, word [ebx*8 + 0x54da00]
jbe 0x40938e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40939f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x54da04]
call fcn.0040921c
jmp 0x4093a4
cmp edi, dword [ebp - 8]
jae 0x409368
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409453
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409453
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.00407c00
push dword [ebp - 0x160]
push 0x40948c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407c00
push dword [ebp - 0x164]
push 0x40949c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407c00
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407e38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409478
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040705c
ret
Function at 0x409624
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 0x409727
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x559b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x559ba0]
jne 0x409670
mov eax, esi
mov edx, 0x559ba2
mov ecx, 0x55
call fcn.00407c00
push 0x559b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409711
push 0x559b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406ffc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4096df
cmp byte [0x559b84], 0
je 0x4096a4
mov edx, esi
mov eax, ebx
call fcn.00409508
jmp 0x4096df
mov edx, esi
mov eax, ebx
call fcn.0040930c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4096df
cmp dword [esi], 0
je 0x4096c8
mov eax, esi
mov edx, 0x409740
call fcn.00407d58
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040930c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407d58
push 0x559b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x559ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407b54
push eax
push 0x559ba2
call sub.kernel32.dll_lstrcpynW
push 0x559b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40972e
lea eax, [ebp - 4]
call fcn.00406ffc
ret
Function at 0x40995c
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.004070e0
xor eax, eax
push ebp
push 0x409b81
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40999c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4099b6
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407b54
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409b6b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409b90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409a85
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409b90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409a85
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409bcc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409a85
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409bcc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409a85
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409a85
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c34
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409b6b
xor eax, eax
push ebp
push 0x409b64
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409768
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 0x409af4
mov eax, dword [ebp - 0x10]
call fcn.0040486c
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.00407bac
jmp 0x409b3f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409c74
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409b3f
mov eax, dword [ebp - 0x10]
call fcn.0040486c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409c74
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407bac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b6b
cmp dword [ebp - 8], 0
je 0x409b5a
mov eax, dword [ebp - 8]
call fcn.00404888
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 0x409b88
lea eax, [ebp - 4]
call fcn.00406ffc
ret
Function at 0x409e64
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.004070e0
xor eax, eax
push ebp
push 0x409f24
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.00407c00
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407db0
mov eax, dword [ebx]
call fcn.00409d2c
test al, al
jne 0x409f01
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407c00
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407db0
mov eax, dword [ebx]
call fcn.00409d2c
test al, al
jne 0x409f01
mov eax, ebx
call fcn.00406ffc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f2b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040705c
lea eax, [ebp - 4]
call fcn.00406ffc
ret

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

Disassembly:
cmp eax, edx
je 0x41c21d
test eax, edx
je 0x41c220
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41c1db
movzx eax, word [eax]
sub eax, ecx
jmp 0x41c202
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 0x41c203
add ecx, 4
js 0x41c1f3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41c200
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41c202
xor eax, eax
ret
test eax, eax
je 0x41c22c
test edx, edx
jne 0x41c1cc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41c850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x41c868
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41c870
mov al, 1
jmp 0x41c88d
movzx esi, word [ebp]
mov eax, esi
call fcn.0040e88c
test al, al
jne 0x41c889
cmp si, 0x5f
je 0x41c889
xor eax, eax
jmp 0x41c88b
mov al, 1
xor al, 1
test al, al
jne 0x41c91d
test bl, bl
je 0x41c8dd
mov eax, ebp
test eax, eax
je 0x41c8a4
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41c919
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040e918
test al, al
jne 0x41c8d1
cmp di, 0x5f
je 0x41c8d1
cmp di, 0x2e
je 0x41c8d1
xor eax, eax
jmp 0x41c8d3
mov al, 1
test al, al
je 0x41c91d
inc esi
dec ebx
jne 0x41c8b1
jmp 0x41c919
mov eax, ebp
test eax, eax
je 0x41c8e8
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41c919
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040e918
test al, al
jne 0x41c90f
cmp di, 0x5f
je 0x41c90f
xor eax, eax
jmp 0x41c911
mov al, 1
test al, al
je 0x41c91d
inc esi
dec ebx
jne 0x41c8f5
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41d4fc
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.00407b54
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d566
test ah, 4
je 0x41d55f
test bl, bl
jne 0x41d524
mov al, 1
jmp 0x41d58d
test al, 0x10
je 0x41d52c
xor eax, eax
jmp 0x41d58d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41d550
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41d58d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41d58d
test al, 0x10
sete al
jmp 0x41d58d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41d587
cmp ebx, 3
je 0x41d587
cmp ebx, 0x7b
je 0x41d587
mov eax, esi
call fcn.0041d4bc
test al, al
jne 0x41d58b
xor eax, eax
jmp 0x41d58d
mov al, 1
pop edi
pop esi
pop ebx
ret