joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430234
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.00423257
and dword [ebp - 4], 0
cmp dword [0x44469c], 0
mov ebx, eax
jne 0x4302e5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x430396
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x430396
push eax
call fcn.004231e5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44469c], eax
call esi
push eax
call fcn.004231e5
mov dword [esp], 0x43c188
push edi
mov dword [0x4446a0], eax
call esi
push eax
call fcn.004231e5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4446a4], eax
call esi
push eax
call fcn.004231e5
pop ecx
mov dword [0x4446ac], eax
test eax, eax
je 0x4302e5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004231e5
pop ecx
mov dword [0x4446a8], eax
mov eax, dword [0x4446a8]
cmp eax, ebx
je 0x43033d
cmp dword [0x4446ac], ebx
je 0x43033d
push eax
call fcn.00423260
push dword [0x4446ac]
mov esi, eax
call fcn.00423260
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43033d
test edi, edi
je 0x43033d
call esi
test eax, eax
je 0x430334
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x430334
test byte [ebp - 0xc], 1
jne 0x43033d
or dword [ebp + 0x10], 0x200000
jmp 0x430376
mov eax, dword [0x4446a0]
cmp eax, ebx
je 0x430376
push eax
call fcn.00423260
pop ecx
test eax, eax
je 0x430376
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x430376
mov eax, dword [0x4446a4]
cmp eax, ebx
je 0x430376
push eax
call fcn.00423260
pop ecx
test eax, eax
je 0x430376
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44469c]
call fcn.00423260
pop ecx
test eax, eax
je 0x430396
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x430398
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7c648d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7cd438
cmp edx, dword [eax]
je 0x7c64af
add eax, 8
inc ecx
cmp eax, 0x7cd4c8
jl 0x7c64a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7cd438]
jne 0x7c65dd
mov eax, dword [0xbcfdd4]
cmp eax, 1
je 0x7c65b7
test eax, eax
jne 0x7c64e0
cmp dword [0x7cd364], 1
je 0x7c65b7
cmp edx, 0xfc
je 0x7c65dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c6517
lea eax, [ebp - 0x1a4]
push 0x7cb540
push eax
call fcn.007c6e70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c7300
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c655a
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c7300
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7cb53c
push edi
call fcn.007c91d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x7cb520
push eax
call fcn.007c6e70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c6e80
lea eax, [ebp - 0xa0]
push 0x7cb51c
push eax
call fcn.007c6e80
push dword [esi + 0x7cd43c]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c6e80
push 0x12010
lea eax, [ebp - 0xa0]
push 0x7cb4f4
push eax
call fcn.007c9144
add esp, 0x2c
pop edi
jmp 0x7c65dd
lea eax, [ebp + 8]
lea esi, [esi + 0x7cd43c]
push 0
push eax
push dword [esi]
call fcn.007c7300
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401320
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0x10], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
je 0x4013c4
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp + 0x10], 3
mov esi, eax
jl 0x4013a8
push dword [esi + 4]
push str._stdio
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x4013a8
push ebx
push ebx
push 4
push ebx
push ebx
push 0xc0000000
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40138c
push 5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push eax
push 0xfffffffffffffff6
call esi
test eax, eax
je 0x401384
push dword [ebp - 4]
push 0xfffffffffffffff5
call esi
test eax, eax
jne 0x4013c4
jmp 0x401384
push str.AttachConsole
push str.kernel32.dll
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4013c4
push 0xffffffffffffffff
call eax
pop ecx
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp + 0x10], ebx
call fcn.0049d000
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x401464
mov eax, dword [section..data]
mov esi, dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
push eax
push ebx
push ebx
mov edi, str..air
push edi
push 2
push ebx
mov dword [ebp + 0x10], ebx
call esi
cmp eax, 1
jne 0x40144e
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp + 0x10]
push ecx
push eax
push ebx
push edi
push 2
push ebx
mov dword [ebp - 8], eax
call esi
test eax, eax
jne 0x40143d
mov eax, dword [str.This_application_requires_a_version_of_nAdobe_AIR_which_is_no_longer_supported._nPlease_contact_the_application_nauthor_for_an_updated_version.]
mov dword [ebp - 4], eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x30
push str.Adobe_AIR
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0xc]
jmp 0x40146e
push dword [ebp + 0x10]
push ebx
call edi
push eax
call dword [ebp - 4]
push eax
jmp 0x401386
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x5ccc1664
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x2d585e8b
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x10e0d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10e0d1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10e0d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10e0d06a
add dl, dl
jne 0x10e0d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10e0d0dc
xor eax, eax
add dl, dl
jne 0x10e0d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10e0d17d
add dl, dl
jne 0x10e0d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10e0d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10e0d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10e0d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10e0d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10e0d075
mov eax, 1
add dl, dl
jne 0x10e0d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10e0d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10e0d0e1
sub eax, ebx
mov ebx, 1
jne 0x10e0d128
mov ecx, 1
add dl, dl
jne 0x10e0d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10e0d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10e0d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10e0d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10e0d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10e0d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10e0d136
cmp eax, 0x7d00
jae 0x10e0d16d
cmp eax, 0x500
jb 0x10e0d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10e0d075
cmp eax, 0x7f
ja 0x10e0d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10e0d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10e0d19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10e0d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403ba9
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push 0x4032a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c01
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x408]
push eax
push ebx
push ebx
push 0x403290
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403bf8
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x403c06
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x4032a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c40
push 0x403290
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x403c42
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x4032a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403cd8
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp + 8], 0
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x404]
je 0x403c98
push 0x4032dc
jmp 0x403c9d
push 0x4032d4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push 0
push 0x403290
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x403f29
Capabilities:
Accept command line arguments
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
call fcn.004033ab
xor ebx, ebx
push ebx
push 0x403ed7
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [0x405d68], bl
jne 0x404087
push 0x403320
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x404087
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x403310
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push ebx
push 0x403db8
push ebx
push 0x66
push dword [ebp + 8]
mov dword [0x405d08], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403304
push dword [ebp - 4]
mov esi, eax
call edi
call eax
push 0x65
push ebx
mov dword [0x405d10], 0x58
mov dword [0x405d1c], 7
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x405008
push 0x405d28
mov dword [0x405d24], eax
mov dword [0x405d18], 1
mov dword [0x405d20], 0x8000
mov dword [0x405d14], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 8], 2
jl 0x40401f
push 0x4032fc
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40403b
push 0x405d10
push ebx
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
call fcn.00403ba9
test al, al
je 0x40403b
push ebx
call fcn.00403c42
pop ecx
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x404057
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
call esi
test eax, eax
jne 0x404043
mov eax, dword [0x405d24]
cmp eax, ebx
je 0x404074
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
push 0x4032ec
push dword [ebp - 4]
call edi
call eax
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
jmp 0x404089
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x8672594
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x23027d89
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402cd0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405f5a
xor ebx, ebx
cmp eax, ebx
jne 0x402db3
test byte [ebp + 0x10], 2
je 0x402d31
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x402d98
lea eax, [ebp - 0x110]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402d6d
test edi, edi
jne 0x402d98
push dword [ebp + 0x10]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call fcn.00402cd0
test eax, eax
jne 0x402d76
lea eax, [ebp - 0x110]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402d46
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004064dd
test eax, eax
jne 0x402da8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x402db3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402db3
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4030d8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4030f5
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x403107
mov dword [ebp - 0xc], 0x796120
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40311c
mov ecx, dword [0x7a2fd8]
add ecx, eax
push ecx
call fcn.004032dd
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004032c7
test eax, eax
je 0x4032b5
test byte [ebp + 0x17], 0x80
je 0x403260
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40b878], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x40b860], 0xb
mov dword [ebp + 8], eax
jle 0x4032bd
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403172
mov esi, dword [ebp + 0x14]
mov edi, 0x792120
push esi
push edi
call fcn.004032c7
test eax, eax
je 0x4032b5
sub dword [ebp + 0x14], esi
mov dword [0x40b850], edi
mov dword [0x40b854], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40b850
mov dword [0x40b858], edi
mov dword [0x40b85c], eax
call fcn.00406602
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403258
mov esi, dword [0x40b858]
sub esi, edi
call ebx
test byte [0x7a3034], 1
mov edi, eax
je 0x403213
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4031e0
cmp dword [ebp + 0x14], 0
jne 0x403213
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.004051fb
mov dword [ebp - 0x10], edi
test esi, esi
je 0x40324c
cmp dword [ebp + 0x10], 0
jne 0x403232
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405d14
test eax, eax
je 0x40325c
add dword [ebp - 4], esi
jmp 0x403240
mov eax, dword [0x40b858]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 4
jne 0x403195
jmp 0x4032bd
cmp dword [ebp + 0x14], 0
jg 0x403165
jmp 0x4032bd
push 0xfffffffffffffffc
jmp 0x4032b7
push 0xfffffffffffffffe
jmp 0x4032b7
test edi, edi
jne 0x4032a2
cmp dword [ebp + 0x14], edi
jle 0x4032bd
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403276
mov esi, ebx
mov edi, 0x792120
push esi
push edi
call fcn.004032c7
test eax, eax
je 0x4032b5
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405d14
test eax, eax
je 0x40325c
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40326c
jmp 0x4032bd
cmp dword [ebp + 0x14], esi
jge 0x4032aa
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004032c7
test eax, eax
jne 0x4032ba
push 0xfffffffffffffffd
pop eax
jmp 0x4032c0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4056c1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408384
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x408374
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405712
xor eax, eax
jmp 0x405739
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405739
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x40570e
call esi
pop esi
leave
ret 4

Function at 0x405773
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a0d70], 0x44
push eax
xor eax, eax
push 0x7a0d70
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4057b2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4057b6
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x405854
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405c48
mov edi, eax
cmp edi, 0xffffffff
je 0x405895
test byte [esp + 0x10], 1
push esi
je 0x405877
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40587d
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405886
xor eax, eax
inc eax
jmp 0x405897
test byte [esp + 0x10], 4
jne 0x405895
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8