joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa3fcc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa52f18
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0xa5b520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
push 0xa5c598
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00a3a1b0
add esp, 8
lea ecx, [ebp - 0x18]
push 0xa5c5fc
push ecx
mov byte [ebp - 4], 1
call fcn.00a3a1b0
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x6a
mov byte [ebp - 4], 3
call fcn.00a36e80
add esp, 4
cmp eax, ebx
je 0xa3fd51
push eax
lea eax, [ebx + 0x6a]
lea edi, [ebp - 0x14]
call fcn.00a369d0
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx - 0xc], ebx
je 0xa3fddd
mov edx, dword [ebp - 0x18]
cmp dword [edx - 0xc], ebx
je 0xa3fddd
cmp dword [esi - 0xc], ebx
je 0xa3fddd
xor eax, eax
mov dword [ebp - 0x14], eax
nop
cmp eax, 2
jge 0xa3fddd
xor ecx, ecx
cmp eax, ebx
setne cl
push 2
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
add ecx, 0x80000001
mov dword [ebp - 0x20], ebx
call fcn.00a3fc30
test eax, eax
jne 0xa3fdc1
mov edi, dword [ebp - 0x18]
cmp esi, ebx
je 0xa3fdc1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push edi
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0xa3fdc4
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0xa3fdd2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
jmp 0xa3fd70
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0xa3fdfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0xa3fe20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0xa3fe42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa40160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0xa401ce
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0xa4019d
cmp eax, 2
jne 0xa401b8
mov eax, dword [ebp - 4]
test esi, esi
je 0xa401c8
test eax, eax
je 0xa401c3
test al, 1
jne 0xa401b8
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0xa401c8
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0xa413cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xa5b520]
jne 0xa413d5
repz ret
jmp fcn.00a4757a
Function at 0xa4fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xa5b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00a46e52
and dword [ebp - 0x14], 0
cmp dword [0xa9d558], 0
mov dword [ebp - 0x18], eax
jne 0xa4fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0xa4fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0xa4fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xa9d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xa9d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0xa9d560], eax
call edi
push eax
call esi
mov dword [0xa9d568], eax
test eax, eax
je 0xa4fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0xa9d564], eax
mov eax, dword [0xa9d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0xa4fc78
cmp dword [0xa9d568], ecx
je 0xa4fc78
push eax
call esi
push dword [0xa9d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0xa4fc78
test ebx, ebx
je 0xa4fc78
call edi
test eax, eax
je 0xa4fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0xa4fc6f
test byte [ebp - 8], 1
jne 0xa4fc78
or dword [ebp + 0x10], 0x200000
jmp 0xa4fcab
mov eax, dword [0xa9d55c]
cmp eax, dword [ebp - 0x18]
je 0xa4fcab
push eax
call esi
test eax, eax
je 0xa4fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0xa4fcab
mov eax, dword [0xa9d560]
cmp eax, dword [ebp - 0x18]
je 0xa4fcab
push eax
call esi
test eax, eax
je 0xa4fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xa9d558]
call esi
test eax, eax
je 0xa4fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0xa4fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a413cb
leave
ret
Function at 0x404750
Capabilities:
Delete file
Move file

Disassembly:
push edi
push esi
push ebx
sub esp, 0x40
mov ebx, dword [esp + 0x54]
lea eax, [esp + 0x10]
mov edi, dword [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__stati64]
test eax, eax
je 0x4047c0
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_rename
test eax, eax
mov esi, eax
je 0x4047b1
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], ebx
mov dword [esp], str.unable_to_rename__s__reason:__s
mov dword [esp + 8], eax
call fcn.00404ca0
mov dword [esp], edi
call sub.msvcrt.dll__unlink
add esp, 0x40
mov eax, esi
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
call sub.msvcrt.dll_remove
jmp 0x404773

Function at 0x404d80
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
test eax, eax
je 0x404df3
mov dword [esp + 8], eax
mov dword [esp + 4], str._s:_supported_targets:
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
call fcn.0040e500
mov edx, dword [eax]
mov edi, eax
lea ebx, [eax + 4]
test edx, edx
je 0x404dd4
mov dword [esp + 8], edx
add ebx, 4
mov dword [esp + 4], 0x479527
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
mov edx, dword [ebx - 4]
test edx, edx
jne 0x404db6
mov dword [esp + 4], esi
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
mov dword [esp + 0x20], edi
add esp, 0x10
pop ebx
pop esi
pop edi
jmp fcn.00474468
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x12
mov dword [esp + 4], 1
mov dword [esp], str.Supported_targets:
call sub.msvcrt.dll_fwrite
jmp 0x404da6
Function at 0x4053d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push esi
push ebx
sub esp, 0x90
mov eax, dword [esp + 0xa8]
mov esi, dword [esp + 0xa0]
mov ebx, dword [esp + 0xa4]
test eax, eax
jne 0x405412
mov eax, dword [ebx]
mov dword [esp], esi
mov dword [esp + 4], 0x479650
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
add esp, 0x90
pop ebx
pop esi
pop edi
ret
mov eax, dword [ebx + 4]
lea edx, [esp + 0x60]
mov eax, dword [eax + 0xfc]
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
test eax, eax
jne 0x4053f2
mov eax, dword [esp + 0x84]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_ctime
test eax, eax
je 0x4054c0
lea edx, [eax + 0x14]
add eax, 4
lea edi, [esp + 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str._.12s__.4s
mov dword [esp], edi
call sub.msvcrt.dll_sprintf
lea eax, [esp + 0x2d]
mov dword [esp + 4], eax
movzx eax, word [esp + 0x66]
mov dword [esp], eax
call fcn.00405a10
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], edi
mov dword [esp + 4], str._s__ld__ld__6lu__s
mov dword [esp], esi
mov dword [esp + 0x14], eax
movsx eax, word [esp + 0x6c]
mov byte [esp + 0x37], 0
mov dword [esp + 0x10], eax
movsx eax, word [esp + 0x6a]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x2e]
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
jmp 0x4053f2
mov dword [esp + 0x38], 0x6d69743c
lea edi, [esp + 0x38]
mov dword [esp + 0x3c], 0x61642065
mov dword [esp + 0x40], 0x63206174
mov dword [esp + 0x44], 0x7572726f
mov dword [esp + 0x48], 0x3e7470
jmp 0x405469
Function at 0x40e330
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x40e3b0
mov edi, str.default
mov ecx, 8
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40e370
mov eax, dword [0x4760a8]
test eax, eax
je 0x40e3a0
test ebx, ebx
je 0x40e366
or byte [ebx + 0x2b], 1
mov dword [ebx + 4], eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
test ebx, ebx
je 0x40e390
and byte [ebx + 0x2b], 0xfe
call fcn.0040e230
test eax, eax
je 0x40e399
mov dword [ebx + 4], eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
call fcn.0040e230
test eax, eax
jne 0x40e366
xor eax, eax
jmp 0x40e366
mov eax, dword [0x4760b0]
mov eax, dword [eax]
jmp 0x40e35b
mov dword [esp], str.GNUTARGET
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40e352
jmp 0x40e342
Function at 0x4722c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00472320
Function at 0x472cb0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x472ce8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x472cde
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x472cea
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x472cd0
xor eax, eax
pop ebx
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebx, dword [ebp + 8]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x473f8e
cmp byte [ebx], 0
je 0x473f58
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x473f70
test al, 0x10
je 0x473f58
lea edi, [ebp - 0x11c]
mov dword [esp + 4], ebx
mov ebx, edi
mov dword [esp + 8], 0x104
mov dword [esp], edi
call sub.msvcrt.dll__fullpath
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x473e44
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
cmove ebx, edx
add al, al
sbb ebx, 3
sub ebx, edi
lea eax, [ebx + 0x233]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x473f7f
lea edx, [eax + 0x22c]
lea eax, [ebx + 1]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x12c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x12c]
cmp byte [esi + 0x22c], 0
je 0x473ed3
movzx eax, byte [esi + ebx + 0x22b]
cmp al, 0x2f
je 0x473ed3
cmp al, 0x5c
je 0x473ed3
mov edi, 0x5c
mov word [edx + ebx], di
mov eax, edx
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x473ed5
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
add dl, dl
sbb eax, 3
mov edx, 0x2a
mov word [eax], dx
xor ecx, ecx
xor eax, eax
lea edx, [esi + 0x120]
xor ebx, ebx
mov word [esi + 0x11c], cx
mov edi, edx
mov ecx, 0x41
mov dword [esi + 0x224], 0xffffffff
mov dword [esi + 0x228], 0
mov dword [esi + 0x118], 0
mov word [esi + 0x11e], bx
rep stosd dword es:[edi], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x473f50
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x473f50
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x473f50
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x27c42ad8
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x2cb8005a
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4030a8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x416024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403698
xor eax, eax
push ebp
push 0x403691
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4036d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403698
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x416024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x416024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4041bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x417044], 0
je 0x40421d
cmp word [0x417218], 0xd7b2
jne 0x4041e5
cmp dword [0x417220], 0
jbe 0x4041e5
mov eax, 0x417214
call dword [0x417230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404244
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x416030], 0
jne 0x404239
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405564
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405794
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4055e7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405794
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4055e7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4057b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405670
xor eax, eax
push ebp
push 0x405669
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004053a0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40564e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4057d0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40564e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405670
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40578a
cmp byte [ebp - 0xd], 0
jne 0x4056b7
cmp byte [ebp - 0x12], 0
je 0x40578a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4056d0
dec ebx
cmp byte [ebx], 0x2e
je 0x4056df
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4056cf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40578a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40571c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40578a
cmp byte [ebp - 0xd], 0
je 0x40578a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40578a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4061a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004047a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4061bd
test al, 0x10
je 0x4061c1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x406350
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.004045ac
add esp, 0x104
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404798
xor eax, eax
push ebp
push 0x4063c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004047a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4063cf
lea eax, [ebp - 4]
call fcn.0040433c
ret

Function at 0x4074e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x407536
test eax, edx
je 0x407539
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4074f9
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40751f
add ecx, 4
js 0x40750f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40751c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x407545
test edx, edx
jne 0x4074ec
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40a3a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a3d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040442c
jmp 0x40a3e2
mov eax, ebx
mov edx, esi
call fcn.00404390
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a3ec
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a40e
movzx eax, byte [esp]
jmp 0x40a410
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40aaa0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a918
mov eax, dword [0x416c0c]
cmp byte [eax], 0
je 0x40ab1c
mov eax, dword [0x416b20]
call fcn.00403128
call fcn.00402eec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407c9c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ab64
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ab52
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x416afc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4197f0]
call fcn.00405348
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c9b4
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
lea edx, [esp + 0xc]
mov eax, dword [0x41b9bc]
mov ecx, 0x40
call fcn.00402f80
mov dword [0x41b908], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x41b908
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x40c9e2
xor ebx, ebx
xor ebp, ebp
xor esi, esi
xor edi, edi
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x41b908]
add eax, esi
add eax, edi
mov dword [esp + 4], 3
mov ecx, dword [esp + 4]
mov edx, eax
shl edx, cl
mov ecx, dword [esp + 4]
neg ecx
shr eax, cl
or edx, eax
mov eax, edx
mov esi, eax
mov dword [ebx*4 + 0x41b908], esi
lea eax, [edi + esi]
mov dword [esp + 8], eax
mov ecx, dword [esp + 8]
mov eax, dword [esp + ebp*4 + 0xc]
add eax, esi
add eax, edi
shl eax, cl
mov ecx, dword [esp + 8]
neg ecx
mov edx, dword [esp + ebp*4 + 0xc]
add edx, esi
add edi, edx
shr edi, cl
or eax, edi
mov edi, eax
mov dword [esp + ebp*4 + 0xc], edi
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc ebp
and ebp, 0x8000000f
jns 0x40ca7a
dec ebp
or ebp, 0xfffffff0
inc ebp
dec dword [esp]
jne 0x40ca02
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret