joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e62
Capabilities:
Check for time delay via gettickcount
Write file on windows

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 0x402e7f
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e8e
mov ebx, 0x417488
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402ea3
mov ecx, dword [0x446738]
add ecx, eax
push ecx
call fcn.0040306b
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403055
test eax, eax
je 0x403000
test byte [ebp + 0x17], 0x80
je 0x402fe9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x4133f8
mov dword [ebp - 0xc], eax
call fcn.00405f83
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40304b
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402ef3
mov esi, dword [ebp + 0x14]
mov edi, 0x413488
push esi
push edi
call fcn.00403055
test eax, eax
je 0x403000
sub dword [ebp + 0x14], esi
mov dword [0x413410], edi
mov dword [0x413414], esi
mov eax, dword [ebp - 8]
mov ecx, 0x4133f8
mov dword [0x413418], ebx
mov dword [0x41341c], eax
call fcn.00405fa3
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402fe1
mov esi, dword [0x413418]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x446794], 1
mov edi, eax
je 0x402f95
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f62
cmp dword [ebp + 0x14], 0
jne 0x402f95
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.00404e63
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fd6
cmp dword [ebp + 0x10], eax
jne 0x402fbe
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fe5
cmp dword [ebp - 0x10], esi
jne 0x402fe5
add dword [ebp - 4], esi
jmp 0x402fca
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x413418]
cmp dword [ebp - 0x14], 1
jne 0x402f16
jmp 0x40304b
cmp dword [ebp + 0x14], eax
jg 0x402ee6
jmp 0x40304b
push 0xfffffffffffffffc
jmp 0x403002
push 0xfffffffffffffffe
jmp 0x403002
test edi, edi
je 0x403040
cmp dword [ebp + 0x14], esi
jge 0x402ff5
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403055
test eax, eax
jne 0x403048
push 0xfffffffffffffffd
pop eax
jmp 0x40304e
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403010
mov esi, dword [ebp + 0x14]
mov edi, 0x413488
push esi
push edi
call fcn.00403055
test eax, eax
je 0x403000
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fe5
cmp esi, dword [ebp + 0x10]
jne 0x402fe5
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403005
jmp 0x40304b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40532b
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004057e4
mov edi, eax
cmp edi, 0xffffffff
je 0x405431
test byte [esp + 0x10], 1
push esi
je 0x405413
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405419
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405422
xor eax, eax
inc eax
jmp 0x405433
test byte [esp + 0x10], 4
jne 0x405431
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405438
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004056f6
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405477
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x446768], eax
jmp 0x405601
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405491
test eax, eax
je 0x4055af
test bl, 2
je 0x4055af
mov esi, 0x4394e0
push edi
push esi
call fcn.00405b78
cmp dword [ebp + 8], 0
je 0x4054b0
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054b6
push edi
call fcn.0040564f
cmp byte [edi], 0
jne 0x4054c4
cmp byte [0x4394e0], 0x5c
jne 0x4054cf
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4055a5
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405633
cmp byte [eax], 0
je 0x405515
cmp byte [ebp - 0x1c], 0
je 0x405515
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40552b
mov al, byte [esi + 1]
test al, al
je 0x405584
cmp al, 0x2e
jne 0x40552b
cmp byte [esi + 2], 0
je 0x405584
push esi
push ebx
call fcn.00405b78
test byte [ebp - 0x14c], 0x10
je 0x405550
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405584
push dword [ebp + 0xc]
push edi
call fcn.00405438
jmp 0x405584
push dword [ebp - 4]
push edi
call fcn.004053f0
test eax, eax
jne 0x40557c
cmp dword [ebp - 4], eax
je 0x405574
push edi
push 0xfffffffffffffff1
call fcn.00404e63
push 0
push edi
call fcn.00405a2c
jmp 0x405584
inc dword [0x446768]
jmp 0x405584
push edi
push 0xfffffffffffffff2
call fcn.00404e63
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4054f3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055af
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405601
cmp dword [ebp - 0xc], esi
jne 0x4055c3
inc dword [0x446768]
jmp 0x405601
push edi
call fcn.00405e7c
test eax, eax
je 0x405601
push edi
call fcn.00405608
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004053f0
test eax, eax
jne 0x4055f9
cmp dword [ebp - 4], esi
je 0x4055bb
push edi
push 0xfffffffffffffff1
call fcn.00404e63
push esi
push edi
call fcn.00405a2c
jmp 0x405601
push edi
push 0xffffffffffffffe5
call fcn.00404e63
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4056f6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43b4e0
push esi
call fcn.00405b78
push esi
call fcn.004056a1
mov edi, eax
test edi, edi
jne 0x405717
xor eax, eax
jmp 0x405769
push edi
call fcn.00405de3
test byte [0x4466f8], 0x80
je 0x405730
mov al, byte [edi]
test al, al
je 0x405713
cmp al, 0x5c
je 0x405713
sub edi, esi
jmp 0x405748
call fcn.00405e7c
test eax, eax
je 0x405742
test byte [eax], 0x10
je 0x405713
push esi
call fcn.0040564f
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405734
call fcn.00405608
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4057e4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405803
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405809
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405838
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409384]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40587d
test edi, edi
jne 0x405843
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405877
Function at 0x4058b0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x43da68
push 0x4093a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x4058ff
push 1
push 0
push esi
call fcn.00405809
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405a26
cmp eax, ebx
jg 0x405a26
mov esi, 0x43de68
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405a26
cmp eax, ebx
jg 0x405a26
push esi
push edi
push str._s_s_r_n
push 0x43d668
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4466f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b9a
push 4
push 0xc0000000
push esi
call fcn.00405809
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405a26
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a1f
push edi
push esi
push ebp
call fcn.00405881
test eax, eax
je 0x405a1f
push str._Rename__r_n
push esi
call fcn.0040576e
test eax, eax
jne 0x4059b5
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4059ea
add eax, 0xa
push 0x409388
push eax
call fcn.0040576e
mov ebp, eax
test ebp, ebp
je 0x4059e6
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4059d7
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4059d1
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x4059ec
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x43d668
push eax
call fcn.004057c4
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405a5f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ad0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405abf
cmp dword [ebp + 0x14], 1
je 0x405ac1
cmp dword [ebp + 0x14], 2
je 0x405ac1
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405f15
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43e26c], 0
push esi
jne 0x405f4c
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f26
mov dword [ecx*4 + 0x43e268], eax
inc ecx
cmp ecx, 0x100
jl 0x405f21
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f7d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43e268]
xor eax, esi
inc ecx
dec edx
jne 0x405f5f
pop edi
not eax
pop esi
ret 0xc
Function at 0x402b00
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push ebp
xor eax, eax
push esi
push edi
xor ebp, ebp
mov dword [ebx], ebp
lea esi, [ebx + 0x14]
mov ecx, 0xc2
mov edi, esi
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x1c]
cmp eax, ebp
push 0x104
je 0x402b44
push eax
push esi
call fcn.00405144
add esp, 0xc
jmp 0x402b76
push esi
call dword [0x41a240]
cmp word [esi], bp
je 0x402b68
push esi
call fcn.00404b0a
add esp, 4
cmp word [ebx + eax*2 + 0x12], 0x5c
je 0x402b68
push str.drivers_tcpip.sys
jmp 0x402b6d
push 0x41a97c
push esi
call fcn.004050fe
add esp, 8
push esi
call dword [0x41a244]
cmp eax, 0xffffffff
je 0x402c3b
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x402c3b
lea edi, [eax + 0xa]
push edi
call fcn.004115e7
mov ebp, eax
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push ebp
add eax, 2
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x402c32
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x41a978
push ebp
mov dword [esp + 0x2c], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402c32
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402c32
cmp dword [esp + 0x10], 0x34
jb 0x402c32
movzx ecx, word [eax + 0xa]
mov dword [ebx + 4], ecx
mov edx, dword [eax + 8]
and edx, 0xffff
mov dword [ebx + 8], edx
movzx ecx, word [eax + 0xe]
mov dword [ebx + 0xc], ecx
mov edx, dword [eax + 0xc]
and edx, 0xffff
mov dword [ebx + 0x10], edx
push ebp
call fcn.004115ec
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 4
Function at 0x409492
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 0x4094c0
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 0x4094c7
cmp ebx, dword [eax + 4]
jae 0x4094c7
xor eax, eax
jmp 0x4096b7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4094d8
xor eax, eax
inc eax
jmp 0x4096b6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4094ee
cmp ecx, edx
jae 0x409633
cmp dword [eax + 4], 0
je 0x4094f7
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4094df
cmp dword [ebp + 8], 0
je 0x409519
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x409633
cmp eax, esi
jae 0x409633
mov eax, dword [0x424e78]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40953e
cmp dword [esi*4 + 0x424e80], edi
je 0x409637
inc esi
cmp esi, eax
jl 0x40952c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x41a0c0]
test eax, eax
je 0x4096b3
cmp dword [ebp - 8], 0x1000000
jne 0x4096b3
test byte [ebp - 0xc], 0xcc
je 0x4095bc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4096b3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4096b3
cmp word [eax + 0x18], 0x10b
jne 0x4096b3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4096b3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4095bc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4095bc
test byte [ecx + 0x27], 0x80
jne 0x409633
push 1
push 0x424ec0
call dword [0x41a26c]
test eax, eax
jne 0x4094d0
mov ecx, dword [0x424e78]
test ecx, ecx
mov edx, ecx
jle 0x4095f0
lea eax, [ecx*4 + 0x424e7c]
cmp dword [eax], edi
je 0x4095f0
dec edx
sub eax, 4
test edx, edx
jg 0x4095e4
test edx, edx
jne 0x409621
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4095fd
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x409615
lea eax, [edx*4 + 0x424e80]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x409603
cmp ecx, 0x10
jge 0x409621
inc ecx
mov dword [0x424e78], ecx
push 0
push 0x424ec0
call dword [0x41a26c]
jmp 0x4094d0
xor eax, eax
jmp 0x4096b6
test esi, esi
jle 0x4094d0
mov ebx, dword [0x41a26c]
push 1
push 0x424ec0
call ebx
test eax, eax
jne 0x4094d0
cmp dword [esi*4 + 0x424e80], edi
je 0x40968d
mov eax, dword [0x424e78]
lea esi, [eax - 1]
test esi, esi
jl 0x40967b
cmp dword [esi*4 + 0x424e80], edi
je 0x409677
dec esi
jns 0x40966b
test esi, esi
jge 0x40968b
cmp eax, 0x10
jge 0x409686
inc eax
mov dword [0x424e78], eax
lea esi, [eax - 1]
jmp 0x40968d
je 0x4096a5
xor ecx, ecx
test esi, esi
jl 0x4096a5
lea eax, [ecx*4 + 0x424e80]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x409693
push 0
push 0x424ec0
call ebx
jmp 0x4094d0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4134d3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x41350c
push dword [esi + 0x1c]
call dword [0x41a30c]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00403470
push eax
push dword [esi + 0x1c]
call dword [0x41a310]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004033ec
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x415b21
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x421948]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [0x41a1d0]
mov esi, eax
mov eax, pe_nt_image_headers32
cmp esi, eax
ja 0x415b70
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [0x41a310]
cmp eax, esi
jne 0x415b70
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call dword [0x41a1e4]
test eax, eax
je 0x415b7c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x41a2d4]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00404630
leave
ret 8

Function at 0x416697
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x421948]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x4166e4
push dword [ebp + 8]
call fcn.004182ab
mov esi, eax
test esi, esi
je 0x41670c
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [0x41a01c]
push esi
mov edi, eax
call dword [0x41a020]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x41670c
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x41a964
push eax
call dword [0x41a2cc]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x41a188]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00404630
leave
ret 0xc
Function at 0x416b55
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x421948]
push ebx
push esi
push edi
mov edi, dword [0x41a1f8]
xor ebx, ebx
push 0x41ab8c
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x30], eax
call dword [0x41a214]
cmp eax, ebx
je 0x416bf7
call eax
mov esi, dword [0x41a1fc]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x2c], ecx
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call dword [0x41a214]
call eax
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 4
xor ebx, ebx
jmp 0x416cf9
call dword [0x41a200]
test eax, eax
jns 0x416ca7
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [ebp - 0x2c], ebx
call dword [0x41a004]
test eax, eax
jne 0x416cfa
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x20
call dword [section..rdata]
test eax, eax
jne 0x416c9c
cmp dword [ebp - 0x34], 1
jne 0x416c9c
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push 0x41aafc
push eax
call fcn.004052fd
add esp, 0xc
cmp eax, 1
jne 0x416c9c
mov eax, dword [ebp - 0x4c]
mov esi, dword [0x41a1fc]
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
push 2
mov dword [ebp - 0x44], eax
pop esi
push dword [ebp - 0x2c]
call dword [0x41a020]
jmp 0x416cfa
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x416cfa
lea ecx, [ebp - 0x28]
push ecx
push 0x416b3f
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [0x41a204]
cmp word [ebp - 0x28], bx
je 0x416cfa
movzx eax, word [ebp - 0x28]
mov esi, dword [0x41a1fc]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x48], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x416d20
push dword [ebp + edi*4 - 0x48]
push dword [ebp + 8]
call fcn.00416ac0
cmp eax, ebx
pop ecx
pop ecx
jne 0x416d22
inc edi
cmp edi, esi
jl 0x416d09
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00404630
leave
ret 4