joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41069b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x41400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x470]
push edi
xor ebx, ebx
push 0x24c
push ebx
push eax
mov dword [ebp - 0x474], ebx
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4106dd
mov eax, dword [esi]
jmp 0x4106df
mov eax, esi
lea ecx, [ebp - 0x474]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4107aa
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x410720
mov eax, dword [esi]
jmp 0x410722
mov eax, esi
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0040cade
test eax, eax
js 0x410788
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f5d5
test eax, eax
js 0x410788
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00409302
lea eax, [ebp - 0x224]
push eax
call fcn.00410678
push ebx
push 1
lea ecx, [ebp - 0x224]
call fcn.004090d5
lea eax, [ebp - 0x474]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
cmp al, 1
je 0x4106f8
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408439
mov esp, ebp
pop ebp
ret 4
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2bab1ac1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..rsrc
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7b346a68
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
mov ecx, dword [ecx + 4]
test ecx, ecx
push esi
je 0x4011c6
lea eax, [esp + 8]
lea edx, [esp + 0xc]
lea esi, [esp + 4]
push eax
mov eax, dword [esp + 0x118]
push edx
mov dword [esp + 0xc], 0
push esi
mov eax, dword [eax]
push 0
add eax, 4
mov dword [esp + 0x18], 0x100
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4011c6
lea eax, [esp + 0xc]
mov esi, dword [esp + 0x110]
push eax
mov ecx, esi
call sub.TL221MN.dll_Ordinal_134
mov eax, esi
pop esi
add esp, 0x108
ret 8
mov esi, dword [esp + 0x110]
mov ecx, esi
call sub.TL221MN.dll_Ordinal_136
mov eax, esi
pop esi
add esp, 0x108
ret 8

Function at 0x4011e0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [ecx + 4]
test edx, edx
je 0x40120c
mov eax, dword [esp + 8]
xor ecx, ecx
mov eax, dword [eax]
mov cx, word [eax]
add eax, 4
push ecx
push eax
mov ecx, dword [esp + 0xc]
push 1
push 0
mov eax, dword [ecx]
add eax, 4
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x401210
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x401228
mov eax, dword [esp + 4]
mov eax, dword [eax]
add eax, 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
ret 4
Function at 0x403880
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [section..bss]
cmp word [eax], 0
je 0x4038b7
push 5
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x10
jne 0x4038b7
push 9
mov eax, dword [0x40f014]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x40f014]
push ecx
call dword [sym.imp.USER32.dll_SetActiveWindow]
ret
Function at 0x40b4de
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4103d8
push 0x40c210
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x411674], eax
mov al, ah
and eax, 0xff
mov dword [0x411680], eax
mov eax, dword [0x411674]
shr dword [0x411674], 0x10
and eax, 0xff
mov dword [0x41167c], eax
shl eax, 8
add eax, dword [0x411680]
mov dword [0x411678], eax
call fcn.0040c166
mov dword [ebp - 4], 0
call fcn.0040c078
call fcn.0040c06d
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40f75c], eax
call fcn.0040bbe1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x411648], eax
call fcn.0040bb16
call fcn.0040b7db
mov esi, dword [0x40f75c]
mov al, byte [esi]
cmp al, 0x22
jne 0x40b59c
mov al, byte [ebp - 0x28]
inc esi
mov al, byte [esi]
test al, al
je 0x40b594
cmp al, 0x22
jne 0x40b589
cmp byte [esi], 0x22
jne 0x40b5a6
inc esi
jmp 0x40b5a6
cmp al, 0x20
jbe 0x40b5a6
inc esi
cmp byte [esi], 0x20
ja 0x40b5a0
cmp byte [esi], 0
je 0x40b5b6
cmp byte [esi], 0x20
ja 0x40b5b6
inc esi
cmp byte [esi], 0
jne 0x40b5ab
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x40b5d6
movzx eax, word [ebp - 0x40]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040b80b
jmp 0x40b612
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b82d
Capabilities:
Terminate process

Disassembly:
mov dword [0x4116ac], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x4116a8], bl
jne 0x40b889
cmp dword [0x40f758], 0
je 0x40b877
mov esi, dword [0x40f750]
sub esi, 4
cmp dword [0x40f758], esi
ja 0x40b877
mov eax, dword [esi]
test eax, eax
je 0x40b86c
call eax
sub esi, 4
cmp dword [0x40f758], esi
jbe 0x40b864
push 0x412520
push 0x41251c
call fcn.0040b8ac
add esp, 8
push 0x412528
push 0x412524
call fcn.0040b8ac
add esp, 8
test ebx, ebx
jne 0x40b8a9
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x40d833
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
test esi, esi
je 0x40da23
push 0x3d
push esi
call fcn.0040db65
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x40da23
cmp ebp, esi
je 0x40da23
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x411694]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x411690], ecx
jne 0x40d890
mov eax, dword [0x411690]
push eax
call fcn.0040da8d
add esp, 4
mov dword [0x411690], eax
cmp dword [0x411690], 0
jne 0x40d91f
cmp dword [esp + 0x1c], 0
je 0x40d8bb
cmp dword [0x411698], 0
je 0x40d8bb
call fcn.0040d3b7
test eax, eax
je 0x40d91f
jmp 0x40da23
cmp dword [esp + 0x10], 0
je 0x40d8c9
xor eax, eax
jmp 0x40da28
cmp dword [0x411690], 0
jne 0x40d8f4
push 4
call fcn.0040c30e
add esp, 4
mov dword [0x411690], eax
test eax, eax
je 0x40da23
mov eax, dword [0x411690]
mov dword [eax], 0
cmp dword [0x411698], 0
jne 0x40d91f
push 4
call fcn.0040c30e
add esp, 4
mov dword [0x411698], eax
test eax, eax
je 0x40da23
mov eax, dword [0x411698]
mov dword [eax], 0
mov edi, dword [0x411690]
sub ebp, esi
push ebp
push esi
call fcn.0040da30
add esp, 8
mov ebx, eax
test ebx, ebx
jl 0x40d975
cmp dword [edi], 0
je 0x40d975
cmp dword [esp + 0x10], 0
je 0x40d970
lea eax, [edi + ebx*4]
cmp dword [eax], 0
je 0x40d959
mov ecx, dword [eax + 4]
inc ebx
mov dword [eax], ecx
add eax, 4
cmp dword [eax], 0
jne 0x40d94b
lea eax, [ebx*4]
push eax
push edi
call fcn.0040c54d
add esp, 8
test eax, eax
je 0x40d9b0
jmp 0x40d9ab
mov dword [edi + ebx*4], esi
jmp 0x40d9b0
cmp dword [esp + 0x10], 0
jne 0x40da1f
test ebx, ebx
jge 0x40d986
neg ebx
lea eax, [ebx*4 + 8]
push eax
push edi
call fcn.0040c54d
add esp, 8
test eax, eax
je 0x40da23
lea ecx, [eax + ebx*4]
mov dword [ecx], esi
mov dword [ecx + 4], 0
mov dword [0x411690], eax
cmp dword [esp + 0x1c], 0
je 0x40da1b
mov edi, esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040c30e
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40da1b
mov edi, esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov ebp, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call ebp
push ebx
call fcn.0040c4e5
add esp, 4
xor eax, eax
jmp 0x40da28
xor eax, eax
jmp 0x40da28
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
jmp 0x50a204
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401442
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push esi
mov esi, 0x40a2f4
push edi
push esi
call dword [sym.imp.MSVCRT.dll_time]
mov edi, dword [sym.imp.MSVCRT.dll_localtime]
push esi
call edi
push eax
call fcn.0040107b
add esp, 0xc
test eax, eax
jne 0x40151a
push esi
call edi
pop ecx
mov esi, eax
push 9
mov eax, 0x40a2f8
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push 0x11
mov dword [0x40a858], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
xor esi, esi
cmp dword [ebp + 8], esi
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x48], 0x4080d0
je 0x4014b0
push str._auto__scheduled
jmp 0x4014b5
push str._auto
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
lea eax, [ebp - 0x10]
pop ecx
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xd4]
mov esi, 0x40a31c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40150f
push esi
mov esi, 0x40a71c
push str.Started_UpdateChecker_process_Successfully:_s_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call fcn.0040603b
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40151a
push str.Failed_to_start_UpdateChecker_Process_n
call fcn.0040603b
pop ecx
pop edi
pop esi
leave
ret
Function at 0x402684
Capabilities:
Delete registry value
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
lea eax, [ebp - 8]
push edi
push eax
call fcn.0040342b
test eax, eax
pop ecx
je 0x402869
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push esi
push 4
pop ebx
lea eax, [ebp - 0x10]
push 0x409190
push eax
mov dword [ebp - 4], ebx
call edi
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x409194
mov dword [ebp - 4], 3
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
and byte [ebp - 0x218], 0
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40919c
mov dword [ebp - 4], 0x100
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x98]
push 0x4091ac
push eax
call edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4091b0
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x118]
push 0x4091c4
push eax
call edi
lea eax, [ebp - 4]
xor edi, edi
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4091c8
mov dword [ebp - 4], 0x80
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4091d8
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4027c5
push edi
lea eax, [ebp - 0x98]
push edi
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4091e8
lea eax, [ebp - 0x218]
push 0x4091ec
push eax
call fcn.00405498
add esp, 0x20
test eax, eax
je 0x4027c5
push 0x4091f0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x409200
mov dword [ebp - 0x14], edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40285c
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x409210
mov dword [ebp - 0x18], edi
push dword [ebp - 8]
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x98]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x409224
lea eax, [ebp - 0x218]
push 0x409228
push eax
call fcn.00405498
add esp, 0x20
test eax, eax
je 0x40285c
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x40922c
push dword [ebp - 8]
call esi
push 0x409240
push dword [ebp - 8]
call esi
push 0x409254
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
jmp 0x40286b
xor edi, edi
mov dword [0x40a8a0], edi
xor eax, eax
pop edi
leave
ret 4
Function at 0x402878
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
call fcn.00404d17
test eax, eax
je 0x402937
push 4
xor ebx, ebx
pop eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
call fcn.0040342b
test eax, eax
pop ecx
jne 0x4028ad
push 1
jmp 0x40290a
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 8]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x409264
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x4028f2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x409274
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop edi
je 0x4028a9
cmp dword [0x40a8a0], ebx
push 1
je 0x40290d
pop eax
jmp 0x402937
cmp dword [ebp + 8], ebx
pop esi
jne 0x402929
push 0x40a8a0
push ebx
push ebx
push fcn.00402684
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x402935
push ebx
mov dword [0x40a8a0], esi
call fcn.00402684
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x402fef
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40686c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x20]
mov edi, 0x20019
push eax
push edi
push ebx
push 0x409488
push 0x80000002
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], ebx
call esi
cmp eax, ebx
jne 0x403098
lea ecx, [ebp - 0x1c]
call fcn.00402e41
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
jne 0x403098
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x409494
push ecx
call esi
cmp eax, ebx
jne 0x403098
lea ecx, [ebp - 0x10]
call fcn.00402e41
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x403098
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x4094a0
push ecx
call esi
cmp eax, ebx
jne 0x403098
lea ecx, [ebp - 0x18]
call fcn.00402e41
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
je 0x4030cc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402e41
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00402e41
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00402e41
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402e41
jmp 0x403169
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x4094ac
push ecx
call esi
cmp eax, ebx
jne 0x4030f3
lea ecx, [ebp - 0x14]
call fcn.00402e41
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
je 0x403116
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402e41
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00402e41
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403155
push dword [ebp + 0x10]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push dword [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40316d
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x403145
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x403152
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x40315f
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x403169
push dword [ebp - 0x1c]
call esi
xor eax, eax
jmp 0x4031a7
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x403180
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x40318d
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x40319a
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x4031a4
push dword [ebp - 0x1c]
call esi
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403656
Capabilities:
Set registry value

Disassembly:
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x4036f8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0x10], 0
je 0x403717
lea eax, [ebp - 0x20]
push 0x1e
push eax
push 0
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetTimeFromSystemTime]
jmp 0x40371b
and byte [ebp - 0x20], 0
push edi
lea edi, [ebp - 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x20]
push ecx
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
leave
ret

Function at 0x40382a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push edi
and dword [ebp - 4], 0
push 0x25
xor eax, eax
pop ecx
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x4038d0
cmp dword [ebp - 0x94], 5
jne 0x4038d0
cmp dword [ebp - 0x90], 1
jae 0x4038cb
lea eax, [ebp - 0x84]
test eax, eax
je 0x4038bc
lea edi, [ebp - 0x84]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4038bc
lea edi, [ebp - 0x84]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4038bc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
push 0x409604
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp dword [ebp - 0x90], 0
jne 0x4038d0
cmp dword [ebp - 4], 2
jb 0x4038d0
push 1
pop eax
jmp 0x4038d2
xor eax, eax
pop edi
leave
ret

Function at 0x4038d5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
pop edi
jne 0x40392f
cmp dword [ebp - 0x90], 6
jne 0x40391b
push 1
pop eax
leave
ret
cmp dword [ebp - 0x90], 5
jne 0x40392f
push 1
pop eax
cmp dword [ebp - 0x8c], eax
je 0x403931
xor eax, eax
leave
ret