joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c6e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46f2b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044c290
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044c310
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044c310
lea ecx, [esi + 0xc]
call fcn.00460bae
lea ecx, [esi + 0x10]
call fcn.00460bae
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044eb40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044eb40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044eb40
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00460c23
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00460c23
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44d388
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46f4d8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44d398
call fcn.0044d8b0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44d47b
cmp byte [edi], 0
je 0x44d47b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44d3bd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044c0b0
test eax, eax
jne 0x44d3dd
push 0x4b5488
lea ecx, [esi + 0x38]
call fcn.00460d60
jmp 0x44d47b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044c100
test eax, eax
jne 0x44d40c
mov ecx, esi
call fcn.0044c200
push edi
add esi, 0x38
push 0x4b5464
push esi
call fcn.0045ea27
add esp, 0xc
jmp 0x44d47b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044e130
test eax, eax
je 0x44d474
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044d550
test eax, eax
jne 0x44d490
push edi
lea eax, [esi + 0x38]
push 0x4b5440
push eax
call fcn.0045ea27
add esp, 0xc
mov ecx, esi
call fcn.0044d8b0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44d538
mov ecx, dword [0x4b5768]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0045ea27
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044c1b0
test eax, eax
jne 0x44d4fa
push 0x4b5424
lea ecx, [esi + 0x38]
call fcn.00460d60
jmp 0x44d50a
push 0xfa
mov ecx, esi
call fcn.0044e130
test eax, eax
jne 0x44d527
mov ecx, esi
call fcn.0044d8b0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00460c23
jmp 0x44d47b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00460c23
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x462fc7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462fff
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046107e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00461056
jmp 0x46300b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4646b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4646fb
call fcn.0046a279
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4646fb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4646f2
xor eax, eax
jmp 0x464703
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464709
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a7a9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46a7d7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a7f5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a70f
jmp 0x46a7f5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a7f5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a70f
test edi, edi
mov eax, edi
jne 0x46a7df
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x408670
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x40868a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408691
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408680
mov eax, 1
add ebx, ebx
jne 0x4086a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408698
jne 0x4086b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408698
xor ecx, ecx
sub eax, 3
jb 0x4086c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40873a
mov ebp, eax
add ebx, ebx
jne 0x4086d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4086e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x408704
inc ecx
add ebx, ebx
jne 0x4086f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4086e5
jne 0x408701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4086e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x408724
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x408715
jmp 0x408686
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408724
add edi, ecx
jmp 0x408686
pop esi
mov edi, esi
mov ecx, 0x26
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x408742
cmp byte [edi], 0
jne 0x408742
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x408747
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x4087bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9dac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9e04]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x408774
mov ecx, edi
jns 0x4087a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9e0c]
or eax, eax
je 0x4087b9
mov dword [ebx], eax
add ebx, 4
jmp 0x408791
call dword [esi + 0x9e08]
mov ebp, dword [esi + 0x9e10]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4087f3
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x169a1bd4
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x28b93dc7
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4014b7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
lea eax, [ebp - 4]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_time]
mov esi, dword [sym.imp.MSVCRT.dll_localtime]
lea eax, [ebp - 4]
push eax
call esi
push eax
call fcn.00401077
add esp, 0xc
test eax, eax
jne 0x401579
lea eax, [ebp - 4]
push edi
push eax
call esi
pop ecx
mov esi, eax
push 9
mov eax, 0x407800
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push 0x11
mov dword [0x407ce0], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
mov esi, 0x407824
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], 0x44
push eax
lea eax, [ebp - 0x58]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x4060e4
push esi
mov dword [ebp - 0x4c], 0x4060d0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x40156e
push esi
lea eax, [ebp - 0xd8]
push 0x4060ec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xd8]
push eax
call fcn.004022a8
add esp, 0x10
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401579
push 0x40611c
call fcn.004022a8
pop ecx
pop esi
leave
ret
Function at 0x4022a8
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc08
push ebx
lea eax, [ebp - 4]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
lea eax, [ebp - 4]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
push eax
call dword [sym.imp.MSVCRT.dll_asctime]
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x408]
push 0x407140
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0xc08]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0xc08]
push 0x40714c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor esi, esi
lea eax, [ebp - 0xc08]
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40236b
push edi
push 2
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push esi
push eax
lea edi, [ebp - 0x408]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x408]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402759
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4046ac
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 0x407248
push 0x80000002
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], ebx
call esi
cmp eax, ebx
jne 0x402802
lea ecx, [ebp - 0x1c]
call fcn.004026d7
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
jne 0x402802
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x407254
push ecx
call esi
cmp eax, ebx
jne 0x402802
lea ecx, [ebp - 0x10]
call fcn.004026d7
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x402802
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x407260
push ecx
call esi
cmp eax, ebx
jne 0x402802
lea ecx, [ebp - 0x18]
call fcn.004026d7
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
je 0x402836
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004026d7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004026d7
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004026d7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004026d7
jmp 0x4028d6
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x40726c
push ecx
call esi
cmp eax, ebx
jne 0x40285d
lea ecx, [ebp - 0x14]
call fcn.004026d7
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
je 0x402880
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004026d7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004026d7
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4028c2
lea eax, [ebp + 0xc]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push eax
push ebx
push 0x407274
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4028da
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4028b2
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x4028bf
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x4028cc
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x4028d6
push dword [ebp - 0x1c]
call esi
xor eax, eax
jmp 0x402914
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4028ed
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x4028fa
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x402907
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x402911
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 0x402b1e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x1f
jne 0x402b4b
lea eax, [ebp + 8]
push eax
call fcn.00402923
test eax, eax
pop ecx
je 0x402bbc
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x402ba9
cmp dword [ebp - 4], ebx
jbe 0x402ba9
push edi
lea edi, [ebp - 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x402ba9
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.WININET.dll_InternetTimeToSystemTime]
test eax, eax
je 0x402ba9
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
jne 0x402bab
xor esi, esi
cmp dword [ebp - 8], ebx
je 0x402bb9
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x402c30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 0x10], esi
je 0x402c53
lea eax, [ebp - 0x20]
push 0x1e
push eax
push esi
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetTimeFromSystemTime]
jmp 0x402c57
and byte [ebp - 0x20], 0
cmp dword [ebp + 8], esi
jne 0x402c6d
lea eax, [ebp + 8]
push eax
call fcn.00402923
test eax, eax
pop ecx
je 0x402ca6
push 1
pop ebx
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 esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
pop edi
neg esi
sbb esi, esi
inc esi
test ebx, ebx
je 0x402ca4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x402d2b
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 0x402dd1
cmp dword [ebp - 0x94], 5
jne 0x402dd1
cmp dword [ebp - 0x90], 1
jae 0x402dcc
lea eax, [ebp - 0x84]
test eax, eax
je 0x402dbd
lea edi, [ebp - 0x84]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402dbd
lea edi, [ebp - 0x84]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402dbd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
push 0x407390
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp dword [ebp - 0x90], 0
jne 0x402dd1
cmp dword [ebp - 4], 2
jb 0x402dd1
push 1
pop eax
jmp 0x402dd3
xor eax, eax
pop edi
leave
ret
Function at 0x402dd6
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 0x402e22
cmp dword [ebp - 0x90], 5
jne 0x402e22
push 1
pop eax
cmp dword [ebp - 0x8c], eax
je 0x402e24
xor eax, eax
leave
ret
Function at 0x4038ae
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x404754
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 0x4075f4
push 0x80000002
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], ebx
call esi
cmp eax, ebx
jne 0x403982
lea ecx, [ebp - 0x1c]
call fcn.004026d7
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
jne 0x403982
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x407600
push ecx
call esi
cmp eax, ebx
jne 0x403982
lea ecx, [ebp - 0x10]
call fcn.004026d7
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x403982
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x40760c
push ecx
call esi
cmp eax, ebx
jne 0x403982
lea ecx, [ebp - 0x18]
call fcn.004026d7
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x403982
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x407618
push ecx
call esi
cmp eax, ebx
jne 0x403982
lea ecx, [ebp - 0x14]
call fcn.004026d7
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
je 0x4039b3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004026d7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004026d7
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004026d7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004026d7
jmp 0x403a31
lea eax, [ebp + 0xc]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push eax
push ebx
push 0x407620
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x4039f5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004026d7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004026d7
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403a1d
cmp dword [ebp + 0xc], ebx
jne 0x403a38
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x403a0d
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x403a1a
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x403a27
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x403a31
push dword [ebp - 0x1c]
call esi
mov eax, 0x80004005
jmp 0x403a71
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x403a4b
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x403a58
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x403a65
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x403a6f
push dword [ebp - 0x1c]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4042d9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0x40777c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push 0x40778c
push ebx
call esi
push 0x4077a8
push ebx
mov dword [ebp - 0x10], eax
call esi
push 0x4077bc
push ebx
mov dword [ebp - 0x14], eax
call esi
push 0x4077d0
push ebx
mov edi, eax
call esi
push 0x4077dc
push ebx
mov dword [ebp - 0x18], eax
call esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x24]
push 2
push eax
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], bl
mov byte [ebp - 0x21], bl
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], 5
mov dword [ebp - 0xc], ebx
call dword [ebp - 0x10]
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x14]
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 8]
call edi
cmp dword [esi], ebx
jbe 0x4043b6
lea edi, [esi + 4]
push dword [edi]
push dword [ebp - 0xc]
call dword [ebp - 0x18]
test eax, eax
jne 0x4043b6
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x4043a2
xor eax, eax
cmp ebx, dword [esi]
push esi
setne al
mov edi, eax
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [ebp - 0x1c]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret