joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405dab
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x433c24]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.004160a0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x405e86
push edi
mov edi, str.golfset.ini
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x405dfa
sub eax, edx
sar eax, 1
je 0x405e85
cmp dword [0x434f90], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0x405e37
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42c7e0
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00413c41
add esp, 0xc
jmp 0x405e3f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00413c41
push 0x42c7fc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00413e54
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x405e85
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00414461
push dword [ebp - 0x78]
call fcn.004144f5
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00413a49
add ebp, 0x198
leave
ret

Function at 0x405e9f
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x433c24]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.004160a0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x405f51
push edi
mov edi, str.golfinfo.ini
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x405eea
sub eax, edx
sar eax, 1
je 0x405f50
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00413c41
push 0x42c7fc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00413e54
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x405f50
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00414461
push dword [ebp - 0x78]
call fcn.004144f5
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00413a49
add ebp, 0x198
leave
ret
Function at 0x406061
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406081
mov eax, dword [ebp + 8]
call fcn.004060cc
test eax, eax
je 0x4060c7
push edi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4060c6
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x4060bf
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

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

Disassembly:
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4060df
xor eax, eax
pop esi
ret
test al, 1
je 0x4060e6
xor eax, 1
test al, 4
je 0x4060ed
xor eax, 4
test al, 2
je 0x4060f4
xor eax, 2
test al, 0x20
je 0x4060fb
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
ret

Function at 0x407910
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x40791b
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x4079cd
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42e5b8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42e5b8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42e5b8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42e5b8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42e5b8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42e5b8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42e5b8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42e5b8]
inc ecx
sub edi, 8
dec esi
jne 0x407932
pop ebx
test edi, edi
je 0x4079e6
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x42e5b8]
inc ecx
dec edi
jne 0x4079d1
pop esi
not eax
pop edi
ret
Function at 0x4079eb
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x42e5b8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x42e5b8]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x408060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x408090
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40808b
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4080b8
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4080a1
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0041b600
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x408d68
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x408e0e
cmp dword [ebx + 4], 0xffffffff
jne 0x408e0e
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x408d95
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x408dcc
cmp ax, 0x2f
je 0x408dcc
dec esi
dec esi
mov ax, word [esi + 2]
inc esi
inc esi
test ax, ax
jne 0x408db9
mov edi, esi
mov esi, 0x42c7e0
movsd dword es:[edi], dword [esi]
push 0x20
call fcn.004095df
and dword [eax + 0x1c], 0
and dword [eax + 0xc], 0
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0x10], 0
mov dword [eax + 0x18], ecx
call fcn.004082d9
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x408e13
mov eax, 0x1000000
pop edi
pop esi
pop ecx
ret 8

Function at 0x413a49
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433c24]
jne 0x413a53
repz ret
jmp fcn.0041857b
Function at 0x421faa
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.0041b9d7
and dword [ebp - 4], 0
cmp dword [0x437fc8], 0
mov ebx, eax
jne 0x42205b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42210c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42210c
push eax
call fcn.0041b965
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x437fc8], eax
call esi
push eax
call fcn.0041b965
mov dword [esp], 0x42b6b4
push edi
mov dword [0x437fcc], eax
call esi
push eax
call fcn.0041b965
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x437fd0], eax
call esi
push eax
call fcn.0041b965
pop ecx
mov dword [0x437fd8], eax
test eax, eax
je 0x42205b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041b965
pop ecx
mov dword [0x437fd4], eax
mov eax, dword [0x437fd4]
cmp eax, ebx
je 0x4220b3
cmp dword [0x437fd8], ebx
je 0x4220b3
push eax
call fcn.0041b9e0
push dword [0x437fd8]
mov esi, eax
call fcn.0041b9e0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4220b3
test edi, edi
je 0x4220b3
call esi
test eax, eax
je 0x4220aa
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4220aa
test byte [ebp - 0xc], 1
jne 0x4220b3
or dword [ebp + 0x10], 0x200000
jmp 0x4220ec
mov eax, dword [0x437fcc]
cmp eax, ebx
je 0x4220ec
push eax
call fcn.0041b9e0
pop ecx
test eax, eax
je 0x4220ec
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4220ec
mov eax, dword [0x437fd0]
cmp eax, ebx
je 0x4220ec
push eax
call fcn.0041b9e0
pop ecx
test eax, eax
je 0x4220ec
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437fc8]
call fcn.0041b9e0
pop ecx
test eax, eax
je 0x42210c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42210e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a28
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42ecd0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405c0a
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x42ecd0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42ecd0], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc
Function at 0x405159
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42c090], 0x44
push eax
xor eax, eax
push 0x42c090
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 0x405194
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40521e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.004054c0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405254
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42eca8], eax
jmp 0x4053d9
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x40526f
test eax, eax
je 0x405384
test cl, 2
je 0x405384
mov esi, 0x42b090
push ebx
push esi
call fcn.004058ec
cmp dword [ebp + 8], 0
je 0x40528e
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405294
push ebx
call fcn.00405426
push 0x40900c
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40537a
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040540a
cmp byte [eax], 0
je 0x4052e5
cmp byte [ebp - 0x18], 0
je 0x4052e5
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4052fb
mov al, byte [esi + 1]
test al, al
je 0x405359
cmp al, 0x2e
jne 0x4052fb
cmp byte [esi + 2], 0
je 0x405359
push esi
push edi
call fcn.004058ec
test byte [ebp - 0x148], 0x10
je 0x405320
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405359
push dword [ebp + 0xc]
push ebx
call fcn.0040521e
jmp 0x405359
push ebx
call fcn.004055a4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405351
test byte [ebp + 0xc], 4
je 0x405349
push ebx
push 0xfffffffffffffff1
call fcn.00404c97
push 0
push ebx
call fcn.0040563a
jmp 0x405359
inc dword [0x42eca8]
jmp 0x405359
push ebx
push 0xfffffffffffffff2
call fcn.00404c97
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4052c3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405384
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x4053d9
cmp dword [ebp - 8], esi
jne 0x405399
inc dword [0x42eca8]
jmp 0x4053d9
push ebx
call fcn.00405be3
test eax, eax
je 0x4053d9
push ebx
call fcn.004053df
push ebx
call fcn.004055a4
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4053d1
test byte [ebp + 0xc], 4
je 0x405391
push ebx
push 0xfffffffffffffff1
call fcn.00404c97
push esi
push ebx
call fcn.0040563a
jmp 0x4053d9
push ebx
push 0xffffffffffffffe5
call fcn.00404c97
pop esi
pop ebx
leave
ret 8
Function at 0x4054c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b490
push esi
call fcn.004058ec
push esi
call fcn.00405473
mov edi, eax
test edi, edi
jne 0x4054e1
xor eax, eax
jmp 0x405533
push edi
call fcn.00405b4a
test byte [0x42ec34], 0x80
je 0x4054fa
mov al, byte [edi]
test al, al
je 0x4054dd
cmp al, 0x5c
je 0x4054dd
sub edi, esi
jmp 0x405512
call fcn.00405be3
test eax, eax
je 0x40550c
test byte [eax], 0x10
je 0x4054dd
push esi
call fcn.00405426
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4054fe
call fcn.004053df
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 0x4055a4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

Function at 0x4055c3
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 0x4055f2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
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 0x405636
test edi, edi
jne 0x4055fd
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405630
Function at 0x40563a
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405c0a
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40565e
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405797
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c218], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c218
je 0x4056a2
push 1
push 0
push esi
call fcn.004055c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40579d
cmp eax, edi
jg 0x40579d
mov esi, 0x42bc90
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40579d
cmp eax, edi
jg 0x40579d
push esi
push ebp
push str._s_s_r_n
push 0x42b890
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42ec2c]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040590e
push 4
push 0xc0000000
push esi
call fcn.004055c3
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405797
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 0x405790
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405790
cmp edi, dword [esp + 0x18]
jne 0x405790
push str._Rename__r_n
push esi
call fcn.00405538
test eax, eax
jne 0x4057a4
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004058ec
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b890
push eax
call fcn.00405584
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
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]
inc dword [0x42ecb0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409398
push eax
call fcn.00405538
test eax, eax
je 0x40575b
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4057cb
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4057c0
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40575d
Function at 0x4057d3
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 0x405844
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
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 0x405833
cmp dword [ebp + 0x14], 1
je 0x405835
cmp dword [ebp + 0x14], 2
je 0x405835
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405c76
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c61c], 0
push esi
jne 0x405cad
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 0x405c87
mov dword [ecx*4 + 0x42c618], eax
inc ecx
cmp ecx, 0x100
jl 0x405c82
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cde
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 + 0x42c618]
xor eax, esi
inc ecx
dec edx
jne 0x405cc0
pop edi
not eax
pop esi
ret 0xc
Function at 0x4016a9
Capabilities:
Create thread

Disassembly:
jmp 0x42da50
push esi
push edi
mov edi, ecx
push str.closebtn
lea ecx, [edi + 0x30]
call fcn.00402cc5
push str.minbtn
lea ecx, [edi + 0x30]
mov dword [edi + 0x7e4], eax
call fcn.00402cc5
push str.progress
lea ecx, [edi + 0x30]
mov dword [edi + 0x7e8], eax
call fcn.00402cc5
push 1
mov ecx, eax
mov dword [edi + 0x7ec], eax
call fcn.004013a2
push 0
push 0
push edi
push 0x407bcb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
ret
Function at 0x401ff5
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x482676
sub ecx, 0x6c0
jmp fcn.00402310

Function at 0x402bf3
Capabilities:
Hide graphical window

Disassembly:
jmp 0x497737
push 0xa4
mov eax, 0x52663a
call fcn.00407194
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x590], ebx
cmp dword [edi + 4], ebx
jne 0x4977f4
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 8
push eax
mov dword [ebp - 0x9c], 0x800
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x4977cc
lea eax, [ebp - 0xb0]
mov ecx, edi
push eax
call fcn.00408ee5
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xb0]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40030000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00404bd3
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.00408ea4
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.00406069
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00407db5
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004029c8
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.00401dd4
test bl, bl
je 0x49782c
call fcn.00405ba0
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x588], eax
mov eax, dword [edi + 0x10]
push dword [eax + 0x588]
push 0
push 0x465
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.00408fda
ret 4

Function at 0x402c9d
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x49b5bf
jmp fcn.0049b5b4
sub ecx, 0x6c0
jmp method.DuiLib::CMenuUI.virtual_312
Function at 0x4030fd
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x4af011
mov eax, dword [0x5790e4]
push ebx
xor ebx, ebx
push esi
test eax, eax
jne 0x4af02c
call fcn.004af16c
test eax, eax
je 0x4af07f
mov eax, dword [0x5790e4]
cmp eax, 1
jne 0x4af04b
push 0xd
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4af07f
jmp 0x4af0d4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x4af069
push 0xd
push 0
push esi
call fcn.00403fad
add esp, 0xc
mov eax, esi
jmp 0x4af0d4
push 0x40
mov eax, 0x1000
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4af091
push ebx
push ebx
push ebx
push 0xc0000017
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esi]
push edi
push dword [0x5790e4]
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x4af0b7
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4af0d3
lea edi, [esi + 0xff0]
push esi
push dword [0x5790e4]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4af0bd
mov eax, esi
pop edi
pop esi
pop ebx
ret