joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d583
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0041a3e0
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.00419740
cmp byte [0x440cfd], 0
jne 0x40d618
push 6
push dword [0x42f0c0]
lea eax, [ebp - 0x1020]
push eax
call fcn.0040a0ce
push eax
call fcn.004119c7
test eax, eax
jne 0x40d618
push 0x42a628
call fcn.0041972d
lea eax, [ebp - 0x1020]
push eax
call fcn.0041a0a7
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x101e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0041a110
add esp, 0x10
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40d779
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041a3e0
push ebx
xor ebx, ebx
cmp byte [0x440d30], bl
je 0x40d7fe
cmp word [0x437cd0], bx
je 0x40d7fe
push esi
push 0x437cd0
lea esi, [ebp - 0x1008]
call fcn.0040d73c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40d7fe
push dword [ebp + 8]
call fcn.0041a0a7
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40d803
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041a3e0
cmp byte [0x440d30], 0
je 0x40d8aa
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x200c]
call fcn.0040d73c
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40d8aa
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d8a1
shr dword [ebp - 4], 1
mov eax, 0x7ff
cmp dword [ebp - 4], eax
jae 0x40d885
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0041078f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x4100cb
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x4102a1
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret 4
Function at 0x410e04
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi], ebp
jbe 0x410e7f
push ebx
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x410da6
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x410e5b
push str.CreateThread_failed
push 0x432a6c
call fcn.0040634c
pop ecx
pop ecx
mov ecx, 0x432a6c
call fcn.00422fb3
push 2
mov ecx, 0x432a6c
call fcn.004062c3
mov dword [edi], ebx
inc dword [esi + 0x84]
mov eax, dword [0x44ea4c]
test eax, eax
je 0x410e75
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebp
add edi, 4
cmp ebp, dword [esi]
jb 0x410e14
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret

Function at 0x4171b2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4293e8
call fcn.00419dd4
push ecx
push ebx
push esi
mov esi, ecx
push 1
lea ecx, [esi + 4]
mov dword [ebp - 0x10], esi
call fcn.0040948d
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
lea ecx, [esi + 0x4b38]
call fcn.00412035
lea ecx, [esi + 0x98d0]
call fcn.00412a40
lea ecx, [esi + 0xe678]
mov byte [ebp - 4], 5
call fcn.0040a7e1
push 1
lea ecx, [esi + 0xe6b0]
mov byte [ebp - 4], 6
call fcn.0040948d
lea eax, [esi + 0xe6c0]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xe6d0]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xe6e0]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xa
mov dword [esi], eax
mov dword [esi + 0x4b34], ebx
mov byte [esi + 0x4c38], bl
mov byte [esi + 0x4c48], bl
mov byte [esi + 0x4c49], bl
mov byte [esi + 0x4c4a], bl
mov dword [esi + 0x1c], 1
call fcn.00410c7d
push ebx
mov ecx, esi
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xe6f4], ebx
mov dword [esi + 0xe6f8], ebx
call fcn.0041530f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x418cbb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
jl 0x418ced
cmp dword [ebp - 4], edi
jne 0x418d2e
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x418d2e
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x418cda
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x418cda
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x418d84
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x42b0b8
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x418d7b
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x418d72
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x419542
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x21], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.004194db
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x4195a9
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0xc], edi
jne 0x41962b
cmp dword [ebp + 0xc], edi
je 0x41964e
cmp dword [esi + 0x14], edi
jne 0x41964e
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x41964e
push eax
mov ecx, esi
call fcn.004191b6
mov esi, eax
cmp esi, edi
je 0x41964e
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00419dfe
pop ecx
jmp 0x41964e
cmp eax, edi
je 0x419641
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x1c], 0x64
jbe 0x41964e
mov ecx, esi
call fcn.00418ec0
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x419655
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x42b0a8
push 1
xor ebx, ebx
push ebx
push 0x42b158
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x419726
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x42b148
push eax
call dword [ecx]
test eax, eax
jl 0x41971d
cmp byte [ebp + 8], bl
je 0x4196a8
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x4196c5
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x4196d7
push 0x42a53c
jmp 0x4196da
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x4196ef
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x419700
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x419714
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x419740
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x41e0de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f298]
jne 0x41e0e8
repz ret
jmp fcn.0042395b
Function at 0x4251e5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041e15f
and dword [ebp - 4], 0
cmp dword [0x44f6a8], 0
mov ebx, eax
jne 0x425296
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425347
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x425347
push eax
call fcn.0041e0ed
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44f6a8], eax
call esi
push eax
call fcn.0041e0ed
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44f6ac], eax
call esi
push eax
call fcn.0041e0ed
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44f6b0], eax
call esi
push eax
call fcn.0041e0ed
pop ecx
mov dword [0x44f6b8], eax
test eax, eax
je 0x425296
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e0ed
pop ecx
mov dword [0x44f6b4], eax
mov eax, dword [0x44f6b4]
cmp eax, ebx
je 0x4252ee
cmp dword [0x44f6b8], ebx
je 0x4252ee
push eax
call fcn.0041e168
push dword [0x44f6b8]
mov esi, eax
call fcn.0041e168
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4252ee
test edi, edi
je 0x4252ee
call esi
test eax, eax
je 0x4252e5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4252e5
test byte [ebp - 0xc], 1
jne 0x4252ee
or dword [ebp + 0x10], 0x200000
jmp 0x425327
mov eax, dword [0x44f6ac]
cmp eax, ebx
je 0x425327
push eax
call fcn.0041e168
pop ecx
test eax, eax
je 0x425327
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x425327
mov eax, dword [0x44f6b0]
cmp eax, ebx
je 0x425327
push eax
call fcn.0041e168
pop ecx
test eax, eax
je 0x425327
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f6a8]
call fcn.0041e168
pop ecx
test eax, eax
je 0x425347
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425349
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7ffe53e7
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
lea esp, [esp]
clc
pushal
inc eax
popal
cld
pushal
inc eax
popal
nop
pushal
inc eax
popal
clc
and bh, 0xff
stc
and bh, 0xff
stc
lea esp, [esp]
stc
push edx
cdq
pop edx
nop
pushal
inc eax
popal
stc
add eax, 0
cld
and bh, 0xff
stc
and bh, 0xff
cld
lea esp, [esp]
clc
push edx
cdq
pop edx
cld
pushal
inc eax
popal
stc
pushal
inc eax
popal
cld
add eax, 0
clc
push edx
cdq
pop edx
cld
and bh, 0xff
cld
push edx
cdq
pop edx
push edx
cdq
pop edx
call 0x7ffe5444
pop edx
nop
xor dx, dx
add edx, 0xd5e0
push es
pop ds
cld
xor ecx, ecx
cld
nop
mov cl, 0x1e
nop
lea esp, [esp]
clc
xor byte [ecx + edx], 0x46
loop 0x7ffe545d
and bh, 0xff
stc
push dword fs:[0x24]
lea esp, [esp]
stc
push eax
pop eax
nop
pop dword [edx + 0xa]
and bh, 0xff
and al, 0xff
nop
mov cl, 0xff
cld
push edx
loop 0x7ffe5481
mov dword [edx + 0x11], 0xffffacbb
inc esi
dec esi
cld
mov ecx, dword [eax + 0x2c]
stc
clc
mov dword [edx + 0x1b], ecx
and bh, 0xff
stc
stc
mov dword [edx + 0x100], ecx
clc
cld
cld
nop
mov dword [eax + 0x2c], esp
cld
pushal
inc eax
popal
push edx
cdq
pop edx
push 0
lea esp, [esp]
stc
cld
cld
push 0
cld
push 0
push 0
nop
cld
cld
push 0x30
cld
cld
push 0x20
lea esp, [esp]
nop
stc
push 0
cld
nop
cld
clc
push 0
cld
lea esp, [esp]
lea esp, [esp]
add edx, 0xffff7f39
pushal
inc eax
popal
push eax
pop eax
clc
push edx
cld
push edx
push 0
and al, 0xff
cld
call dword [edx + 0x820a]
nop
cld
add esp, 0x3f8
lea esp, [esp]
stc
cld
xor eax, eax
stc
inc esi
dec esi
cld
inc eax
and bh, 0xff
cld
cld
cld
cld
ret 0xc
Function at 0x403214
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x403250
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x403270
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040591c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403578
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004056ac
test esi, esi
jne 0x4035ae
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040579c
jmp 0x4035cc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040341c
mov edi, eax
test esi, esi
je 0x4035cc
cmp dword [ebx], 0
je 0x4035cc
dec esi
jmp 0x4035b5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x642024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4045d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4045b8
xor eax, eax
push ebp
push 0x4045b1
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 0x4045f4
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 0x4045b8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x642024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x642024], ax
mov esp, ebp
pop ebp
ret

Function at 0x405458
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x65b04c], 0
je 0x4054b9
cmp word [0x65b220], 0xd7b2
jne 0x405481
cmp dword [0x65b228], 0
jbe 0x405481
mov eax, 0x65b21c
call dword [0x65b238]
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 0x4054e0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x642034], 0
jne 0x4054d5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405630
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x64203c], 0
je 0x405656
mov edx, esi
mov eax, ebx
call dword [0x64203c]
jmp 0x405665
mov eax, 8
call fcn.0040300c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x65b04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4055f8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x407474
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 0x4076a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4074f7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4076a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4074f7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4076c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x407580
xor eax, eax
push ebp
push 0x407579
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004072b0
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 0x40755e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4076e0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40755e
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 0x407580
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 0x40769a
cmp byte [ebp - 0xd], 0
jne 0x4075c7
cmp byte [ebp - 0x12], 0
je 0x40769a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4075e0
dec ebx
cmp byte [ebx], 0x2e
je 0x4075ef
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4075df
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40769a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40762c
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 0x40769a
cmp byte [ebp - 0xd], 0
je 0x40769a
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 0x40769a
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 0x40acec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40ad3e
test eax, edx
je 0x40ad41
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40ad01
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 0x40ad27
add ecx, 4
js 0x40ad17
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40ad24
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 0x40ad4d
test edx, edx
jne 0x40acf4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405b58
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40c066
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40c087
cmp ebx, 3
je 0x40c087
cmp ebx, 0x7b
je 0x40c087
mov eax, esi
call fcn.0040c008
test al, al
jne 0x40c08b
xor eax, eax
jmp 0x40c08d
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405b58
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40c0a9
test al, 0x10
jne 0x40c0ad
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x410f88
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 0x410fc1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040579c
jmp 0x410fca
mov eax, ebx
mov edx, esi
call fcn.00405700
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x410fd4
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 0x410ff6
movzx eax, byte [esp]
jmp 0x410ff8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret