joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ce20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430668
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x42cf72
cmp byte [edi + 0x3d], 0
je 0x42cf72
call fcn.004217f0
mov edx, dword [edi]
mov esi, eax
push esi
call dword [edx + 0xc]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
call fcn.00428e60
test al, al
je 0x42ce8a
xor al, al
jmp 0x42cf74
sub esp, 8
lea ecx, [ebp - 0x34]
call fcn.0042ae10
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea esi, [edi + 0x40]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0042ca80
mov ecx, eax
call fcn.0042c8f0
lea ecx, [ebp - 0x34]
mov edx, eax
call fcn.0042ca40
add edx, eax
lea eax, [ebp - 0x18]
push edx
push eax
call fcn.0042ca80
mov ecx, eax
call fcn.0042c8f0
mov ecx, dword [edi + 0x38]
push eax
push esi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x42cf01
sub eax, 1
je 0x42cf05
sub eax, 2
je 0x42cf64
lea ecx, [ebp - 0x34]
xor bl, bl
call fcn.0042ad40
mov al, bl
jmp 0x42cf74
mov byte [edi + 0x3d], 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x34]
call fcn.0042ca80
mov ecx, eax
call fcn.0042c8f0
mov esi, dword [ebp - 0x14]
sub esi, eax
je 0x42cf42
push dword [edi + 0x4c]
lea eax, [ebp - 0x3c]
push esi
push 1
push eax
lea ecx, [ebp - 0x34]
call fcn.0042ca80
mov ecx, eax
call fcn.0042c8f0
push eax
call ebx
add esp, 0x10
cmp esi, eax
jne 0x42cef3
cmp byte [edi + 0x3d], 0
je 0x42cf64
test esi, esi
lea esi, [edi + 0x40]
jne 0x42cea5
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004215b0
jmp 0x42cea2
lea ecx, [ebp - 0x34]
mov bl, 1
call fcn.0042ad40
mov al, bl
jmp 0x42cf74
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ea9e
mov esp, ebp
pop ebp
ret
Function at 0x1002232
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0
jne 0x1002266
push 0x10011d0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 0x24], eax
je 0x1002262
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1002266
and dword [esi + 0x24], 0
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x1002617
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1009030]
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
jne 0x1002672
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x100128c
lea eax, [ebp - 0x20c]
push eax
push 0x10012ac
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.01002587
add esp, 0x14
test eax, eax
jge 0x1002676
xor al, al
jmp 0x10026b0
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, 0x1001220
push edi
push 0
push 1
push 0
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x28], eax
jne 0x10026ad
push edi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [esi + 0x28], eax
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100350e
leave
ret 4

Function at 0x100290c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
add ecx, 0x618
push ecx
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100296d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1001320
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push dword [ebp - 4]
je 0x1002971
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x100297d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
setne al
pop esi
leave
ret
Function at 0x10032ca
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x1009030]
push ebx
mov ebx, dword [ebp + 0x5ac]
test ebx, ebx
push esi
mov dword [ebp + 0x5a0], eax
mov esi, ecx
je 0x10033b6
push edi
mov edi, 0x104
push edi
lea eax, [ebp + 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x100134c
lea eax, [ebp + 0x398]
push eax
push 0x10012ac
lea eax, [ebp - 0x78]
push 0x208
push eax
call fcn.01002587
add esp, 0x14
test eax, eax
jl 0x10033b5
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x7c], eax
je 0x10033b5
push 0x1001378
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 0x80], eax
jne 0x1003362
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10033b5
or byte [esi + 0x14], 1
lea ecx, [esi + 4]
call fcn.01003090
add ebx, 0x410
push ebx
push edi
lea eax, [ebp + 0x190]
push eax
call fcn.01002775
test eax, eax
jl 0x1003397
push 0
lea eax, [ebp + 0x190]
push eax
push 0
push dword [esi + 0x10]
call dword [ebp - 0x80]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and byte [esi + 0x14], 0xfe
mov ecx, esi
call fcn.010030f6
push dword [esi + 0x10]
mov ecx, esi
call fcn.01002a2f
pop edi
mov ecx, dword [ebp + 0x5a0]
pop esi
pop ebx
call fcn.0100350e
add ebp, 0x5a4
leave
ret 4

Function at 0x100350e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1009030]
jne 0x1003517
ret
jmp 0x100351c
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x1009030]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x1009be4]
test eax, eax
je 0x1003540
call eax
cmp dword [0x1009be8], 0
je 0x1003587
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x1009be8]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.0100350e
add ebp, 0x2a8
leave
ret
Function at 0x100362d
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x10013b8
call fcn.010043cc
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10037ee
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x1003689
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10037ee
mov eax, dword [esi + 0x10]
mov dword [0x10096dc], eax
mov eax, dword [esi + 4]
mov dword [0x10096e8], eax
mov eax, dword [esi + 8]
mov dword [0x10096ec], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x10096e0], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x10096dc], 2
je 0x10036ca
or byte [0x10096e1], 0x80
mov eax, dword [0x10096e8]
shl eax, 8
add eax, dword [0x10096ec]
mov dword [0x10096e4], eax
call fcn.010035d1
mov dword [ebp - 0x1c], eax
push ebx
call fcn.01004379
pop ecx
test eax, eax
jne 0x1003711
cmp dword [0x10096cc], 1
jne 0x10036fe
call fcn.01003b78
push 0x1c
call fcn.01003a17
push 0xff
call fcn.01003899
pop ecx
pop ecx
mov dword [ebp - 4], 1
call fcn.0100419c
test eax, eax
jge 0x1003729
push 0x1b
call fcn.010035ac
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100af94], eax
call fcn.01004076
mov dword [0x10096c4], eax
call fcn.01003fd5
test eax, eax
jge 0x100374f
push 8
call fcn.010035ac
pop ecx
call fcn.01003d8b
test eax, eax
jge 0x1003760
push 9
call fcn.010035ac
pop ecx
call fcn.010038c9
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x1003773
push eax
call fcn.010035ac
pop ecx
call fcn.01003d22
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1003787
movzx eax, word [ebp - 0x40]
jmp 0x100378a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push ebx
push 0x1000000
call fcn.01003416
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10037a9
push esi
call fcn.010039d7
call fcn.010039f9
jmp 0x10037db
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x10037f3
mov eax, 0xff
call fcn.01004407
ret
Function at 0x1003a17
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x1009040]
je 0x1003a2f
inc eax
cmp eax, 0x12
jb 0x1003a20
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1009040]
mov dword [ebp + 8], esi
jne 0x1003b75
mov eax, dword [0x10096cc]
cmp eax, 1
push ebx
je 0x1003b45
test eax, eax
jne 0x1003a64
cmp dword [0x1009038], 1
je 0x1003b45
cmp ecx, 0xfc
je 0x1003b74
push edi
push 6
pop ecx
mov esi, 0x1001738
mov edi, 0x1009720
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x100973a
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x100983e], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1003ab2
push 5
pop ecx
mov esi, 0x1001720
mov edi, 0x100973a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003ab7
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1003aea
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003acb
sub eax, edx
push 3
lea eax, [eax + 0x10096ff]
push 0x100171c
push eax
call fcn.010050c0
add esp, 0xc
mov edx, 0x1009720
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1003af2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1009044]
mov esi, 0x1001718
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003b0d
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003b19
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10016f0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01004fc1
add esp, 0xc
pop edi
jmp 0x1003b74
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1003b74
mov esi, dword [esi + 0x1009044]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1003b5c
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x1004fc1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1009b50], ebx
push esi
push edi
jne 0x1005041
push 0x10017c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100507c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10017bc
push edi
call esi
test eax, eax
mov dword [0x1009b50], eax
je 0x100507c
push 0x10017ac
push edi
call esi
push 0x1001798
push edi
mov dword [0x1009b54], eax
call esi
cmp dword [0x10096dc], 2
mov dword [0x1009b58], eax
jne 0x1005041
push 0x100177c
push edi
call esi
test eax, eax
mov dword [0x1009b60], eax
je 0x1005041
push 0x1001764
push edi
call esi
mov dword [0x1009b5c], eax
mov eax, dword [0x1009b5c]
test eax, eax
je 0x1005086
call eax
test eax, eax
je 0x100506d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1009b60]
test eax, eax
je 0x100506d
test byte [ebp - 8], 1
jne 0x1005086
cmp dword [0x10096e8], 4
jb 0x1005080
or byte [ebp + 0x12], 0x20
jmp 0x10050a5
xor eax, eax
jmp 0x10050b5
or byte [ebp + 0x12], 4
jmp 0x10050a5
mov eax, dword [0x1009b54]
test eax, eax
je 0x10050a5
call eax
mov ebx, eax
test ebx, ebx
je 0x10050a5
mov eax, dword [0x1009b58]
test eax, eax
je 0x10050a5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1009b50]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005f96
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1005fc4
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x1005fcb
cmp ebx, dword [eax + 4]
jae 0x1005fcb
xor eax, eax
jmp 0x10061bb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1005fdc
xor eax, eax
inc eax
jmp 0x10061ba
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1005ff2
cmp ecx, edx
jae 0x1006137
cmp dword [eax + 4], 0
je 0x1005ffb
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1005fe3
cmp dword [ebp + 8], 0
je 0x100601d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1006137
cmp eax, esi
jae 0x1006137
mov eax, dword [0x1009b68]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1006042
cmp dword [esi*4 + 0x1009b70], edi
je 0x100613b
inc esi
cmp esi, eax
jl 0x1006030
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10061b7
cmp dword [ebp - 8], 0x1000000
jne 0x10061b7
test byte [ebp - 0xc], 0xcc
je 0x10060c0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x10061b7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10061b7
cmp word [eax + 0x18], 0x10b
jne 0x10061b7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x10061b7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x10060c0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x10060c0
test byte [ecx + 0x27], 0x80
jne 0x1006137
push 1
push 0x1009bb0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1005fd4
mov ecx, dword [0x1009b68]
test ecx, ecx
mov edx, ecx
jle 0x10060f4
lea eax, [ecx*4 + 0x1009b6c]
cmp dword [eax], edi
je 0x10060f4
dec edx
sub eax, 4
test edx, edx
jg 0x10060e8
test edx, edx
jne 0x1006125
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1006101
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1006119
lea eax, [edx*4 + 0x1009b70]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1006107
cmp ecx, 0x10
jge 0x1006125
inc ecx
mov dword [0x1009b68], ecx
push 0
push 0x1009bb0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1005fd4
xor eax, eax
jmp 0x10061ba
test esi, esi
jle 0x1005fd4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1009bb0
call ebx
test eax, eax
jne 0x1005fd4
cmp dword [esi*4 + 0x1009b70], edi
je 0x1006191
mov eax, dword [0x1009b68]
lea esi, [eax - 1]
test esi, esi
jl 0x100617f
cmp dword [esi*4 + 0x1009b70], edi
je 0x100617b
dec esi
jns 0x100616f
test esi, esi
jge 0x100618f
cmp eax, 0x10
jge 0x100618a
inc eax
mov dword [0x1009b68], eax
lea esi, [eax - 1]
jmp 0x1006191
je 0x10061a9
xor ecx, ecx
test esi, esi
jl 0x10061a9
lea eax, [ecx*4 + 0x1009b70]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1006197
push 0
push 0x1009bb0
call ebx
jmp 0x1005fd4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100624b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x100ae68]
push ebx
push esi
push edi
jae 0x10063d0
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x100ae80]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x14], ebx
je 0x10063d0
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x100629f
xor eax, eax
jmp 0x10063e4
test al, 0x20
je 0x10062b0
push 2
push edi
push edi
push ecx
call fcn.010071a2
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100636c
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x10063a4
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
cmp ecx, dword [ebp + 0x10]
jae 0x1006306
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10062f7
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x14]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x10062dc
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006346
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x100634f
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x10062d0
jmp 0x1006351
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x10063cb
cmp dword [ebp + 8], edi
je 0x10063a4
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x1006399
mov dword [0x10096d4], eax
jmp 0x10063d7
push edi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100638e
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x1006351
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x1006351
push dword [ebp + 8]
call fcn.0100708d
pop ecx
jmp 0x10063e1
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10063b9
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x1006298
mov dword [0x10096d0], 0x1c
mov dword [0x10096d4], edi
jmp 0x10063e1
sub eax, dword [ebp - 0x10]
jmp 0x10063e4
and dword [0x10096d4], 0
mov dword [0x10096d0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1007739
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.01007820
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10077d4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x10096dc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10077d4
cmp eax, 1
je 0x10077f5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10077d4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10077a1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10077d0
xor eax, eax
inc eax
jmp 0x1007814
cmp edi, eax
jae 0x10077d8
xor eax, eax
jmp 0x1007814
cmp eax, esi
jae 0x10077df
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10096dc]
jmp 0x10077f8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4039d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
mov eax, dword [0x49b650]
test eax, eax
push edi
mov edi, ecx
je 0x403b18
push esi
lea eax, [ebp - 0x518]
push 0
push eax
mov esi, 0xfa
call fcn.0040ace0
push eax
call fcn.0044db20
add esp, 0xc
cmp eax, 1
jne 0x403a81
lea ecx, [ebp - 4]
push ecx
push 0x2001f
push 0
lea edx, [ebp - 0x514]
mov eax, 4
push edx
push 0x80000002
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
call dword [0x472074]
test eax, eax
jne 0x403a81
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.ATIPOLLINTERVAL
push eax
call dword [0x472078]
test eax, eax
jne 0x403a77
mov esi, dword [ebp - 0xc]
cmp esi, 0xfa
jae 0x403a6a
mov esi, 0xfa
jmp 0x403a77
cmp esi, 0x1388
jbe 0x403a77
mov esi, 0x1388
mov ecx, dword [ebp - 4]
push ecx
call dword [0x47207c]
push str.HKeyPollerTimerEvent
push 0
push 1
push 0
mov dword [0x49b65c], esi
call dword [0x4722a8]
test eax, eax
mov dword [edi + 0x24], eax
jne 0x403ab7
mov edx, dword [0x49a0e8]
test dword [edi + 0x34], edx
je 0x403ab7
push str.FAILURE:_Failed_to_create_event_for_HKeyPollerTimerEvent
call fcn.0040acd0
add esp, 4
mov eax, dword [0x49b650]
push 0
push esi
push 0x4d2
push eax
call dword [0x4723e4]
mov dword [edi + 0x28], eax
test eax, eax
mov eax, dword [edi + 0x34]
jne 0x403ae7
mov ecx, dword [0x49a0e8]
test ecx, eax
je 0x403aff
push esi
push str.FAILURE:_Failed_to_SetTimer__tick_u
jmp 0x403af7
mov edx, dword [0x49a0e8]
test edx, eax
je 0x403aff
push esi
push str.Timer_for_hotkey_poller_setup_ok__tick_u
call fcn.0040acd0
add esp, 8
mov eax, dword [edi + 0x28]
test eax, eax
pop esi
je 0x403b18
mov eax, dword [edi + 0x24]
test eax, eax
je 0x403b18
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40a1d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470440
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
cmp dword [0x49b638], 8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
jae 0x40a327
test byte [0x49b70c], 2
jne 0x40a327
mov ecx, 0x49c088
call fcn.0042de70
cmp eax, dword [0x4a812c]
jae 0x40a327
push eax
mov ecx, 0x49c088
call fcn.00430bd0
mov esi, eax
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x20], esi
je 0x40a327
push 3
mov ecx, esi
call fcn.00437a80
test al, 4
je 0x40a327
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.00437850
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a260
sub eax, edx
mov ebx, eax
mov dword [ebp - 0x1c], ebx
je 0x40a327
lea eax, [ebx + 1]
push eax
mov dword [ebp - 4], edi
call fcn.00460f8e
add esp, 4
mov esi, eax
jmp 0x40a29a
test esi, esi
mov dword [ebp - 4], 0xffffffff
je 0x40a30a
lea ecx, [ebx + 1]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.00437850
push eax
push esi
call fcn.00460860
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push 0
push esi
push 0x80000002
call dword [0x472074]
test eax, eax
jne 0x40a301
mov ecx, dword [ebp - 0x14]
push str.ExtEvent_SetDefault32BppOn2ndDrv
push ecx
call dword [0x472060]
mov edx, dword [ebp - 0x14]
push edx
call dword [0x47207c]
push esi
call fcn.00460851
add esp, 4
mov eax, dword [0x49b650]
push 0
push 0x7d0
push 0x14d0
push eax
call dword [0x4723e4]
mov dword [0x49b660], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret