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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608078
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x6f7f90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x2c]
call fcn.004636a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push 0x61bb04
push 0xc8
call fcn.00459b50
add esp, 0xc
movzx ecx, al
test ecx, ecx
jne 0x4596ec
push 0x10
push 0x61bb0c
push str.No_steam_api.dll_resource
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00463750
jmp 0x4597d7
mov dword [ebp - 0x18], 0x61bb30
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.005c0800
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00463860
push eax
lea ecx, [ebp - 0x2c]
call fcn.00463890
push eax
call fcn.005c04b0
add esp, 8
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x34]
jne 0x45974e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00463750
jmp 0x4597d7
push 0x80
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x61bb40
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.005e5d15
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x45979c
push 0x10
push str.Warning
push str.Can_not_update_steam_api.dll
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00463750
jmp 0x4597d7
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00463860
push eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.00463890
push eax
call fcn.005e689b
add esp, 0x10
mov eax, dword [ebp - 0x10]
push eax
call fcn.005e50e5
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00463750
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x459b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0x10]
call fcn.00463830
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x459b7b
xor al, al
jmp 0x459bc2
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x459ba1
xor al, al
jmp 0x459bc2
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00463a10
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x5cdab0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x61746b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push edi
mov esi, ecx
push 0x8c38e0
lea ecx, [esp + 0xc]
call fcn.005c2080
mov edi, dword [esp + 0x128]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x12c], 0
call fcn.005cd260
mov edx, dword [esp + 0x12c]
push edi
push edx
lea eax, [esp + 0x1c]
push 0x69db44
push eax
call fcn.00451eb0
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea edx, [esp + 0x14]
push 0x69d518
push edx
call fcn.005e5d15
mov esi, eax
add esp, 8
test esi, esi
jne 0x5cdb73
mov eax, dword [esp + 0xc]
push eax
call fcn.005c0a50
lea ecx, [esp + 0x18]
push ecx
push str.r3dFS:_unable_to_open__s_for_writing_n
call fcn.005bead0
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0xffffffff
call fcn.005c08d0
xor al, al
jmp 0x5cdbaa
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push esi
push edx
push 1
push edi
call fcn.005e689b
push esi
call fcn.005e50e5
push edi
call fcn.005c0a50
add esp, 0x18
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0xffffffff
call fcn.005c08d0
mov al, 1
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret 8

Function at 0x5cfe60
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x61744b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
mov ebx, ecx
push 0x8c38e0
lea ecx, [esp + 0xc]
call fcn.005c2080
push 0
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
mov dword [esp + 0x120], 0
call fcn.005ccbb0
lea ecx, [esp + 0xc]
push 0x6bf038
push ecx
call fcn.005e5d15
mov esi, eax
add esp, 8
test esi, esi
jne 0x5cfefd
lea edx, [esp + 0xc]
push edx
push str.r3dFS:_there_is_no_volume_file__s_n
call fcn.005bead0
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call fcn.005c08d0
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
push ebp
push edi
push 2
push 0
push esi
call fcn.005ea277
push esi
call fcn.005ea4b1
push 0
push 0
push esi
mov edi, eax
call fcn.005ea277
lea eax, [edi + 1]
push 1
push eax
call fcn.005c0a10
push esi
push 1
mov ebp, eax
push edi
push ebp
call fcn.005ea827
push esi
call fcn.005e50e5
add esp, 0x38
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
lea ecx, [ebx + 0x104]
call fcn.005cfb60
push ebp
mov bl, al
call fcn.005c0a50
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.005c08d0
mov ecx, dword [esp + 0x118]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x5e4a11
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6f7f90]
jne 0x5e4a1b
repz ret
jmp fcn.005ef4dc

Function at 0x5e4efb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5e4f2c
call fcn.005eb8ee
mov dword [eax], esi
call fcn.005eb8db
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005e617a
add esp, 0x14
push 0x16
pop eax
jmp 0x5e4f81
test dword [ebp + 0xc], 0xfffffff9
jne 0x5e4f08
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5e4f59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005eb901
pop ecx
call fcn.005eb8db
mov eax, dword [eax]
jmp 0x5e4f81
test al, 0x10
jne 0x5e4f7f
test al, 1
je 0x5e4f7f
test byte [ebp + 0xc], 2
je 0x5e4f7f
call fcn.005eb8ee
mov dword [eax], 5
call fcn.005eb8db
mov dword [eax], 0xd
jmp 0x5e4f50
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5f9554
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.005eee1a
and dword [ebp - 4], 0
cmp dword [0x8df4e0], 0
mov ebx, eax
jne 0x5f9605
push 0x6b408c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5f96b6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6b4080
push edi
call esi
test eax, eax
je 0x5f96b6
push eax
call fcn.005eeda8
mov dword [esp], 0x6b4070
push edi
mov dword [0x8df4e0], eax
call esi
push eax
call fcn.005eeda8
mov dword [esp], 0x6b405c
push edi
mov dword [0x8df4e4], eax
call esi
push eax
call fcn.005eeda8
mov dword [esp], 0x6b4040
push edi
mov dword [0x8df4e8], eax
call esi
push eax
call fcn.005eeda8
pop ecx
mov dword [0x8df4f0], eax
test eax, eax
je 0x5f9605
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005eeda8
pop ecx
mov dword [0x8df4ec], eax
mov eax, dword [0x8df4ec]
cmp eax, ebx
je 0x5f965d
cmp dword [0x8df4f0], ebx
je 0x5f965d
push eax
call fcn.005eee23
push dword [0x8df4f0]
mov esi, eax
call fcn.005eee23
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5f965d
test edi, edi
je 0x5f965d
call esi
test eax, eax
je 0x5f9654
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5f9654
test byte [ebp - 0xc], 1
jne 0x5f965d
or dword [ebp + 0x10], 0x200000
jmp 0x5f9696
mov eax, dword [0x8df4e4]
cmp eax, ebx
je 0x5f9696
push eax
call fcn.005eee23
pop ecx
test eax, eax
je 0x5f9696
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5f9696
mov eax, dword [0x8df4e8]
cmp eax, ebx
je 0x5f9696
push eax
call fcn.005eee23
pop ecx
test eax, eax
je 0x5f9696
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x8df4e0]
call fcn.005eee23
pop ecx
test eax, eax
je 0x5f96b6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5f96b8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5ee008], 0x8088405
inc edx
mov dword [ebx + 0x5ee008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
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 0x41d27c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x5d189e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d18a5
ret
Function at 0x4205fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5d2c17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x5f05f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x5f05f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x5ef3fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4207e9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d2c1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x67ea0b64
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1f447c31
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401117
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401148
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401144
cmp esi, eax
jae 0x401148
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401134
cmp esi, eax
jb 0x40114e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x401930
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push esi
push edi
push 0x4944b8
push eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0
call fcn.00451b69
add esp, 0xc
test eax, eax
jne 0x4019cc
mov eax, dword [esp + 8]
test eax, eax
je 0x4019cc
push 2
push 0
push eax
call fcn.00453351
mov edx, dword [esp + 0x14]
push edx
call fcn.00453259
push 0
mov edi, eax
mov eax, dword [esp + 0x1c]
push 0
push eax
call fcn.00453351
push edi
call fcn.004517e0
push edi
mov esi, eax
push 0
push esi
call fcn.00458270
mov ecx, dword [esp + 0x34]
push ecx
push edi
push 1
push esi
call fcn.00452f9a
mov edx, dword [esp + 0x44]
push edx
call fcn.0045349e
add esp, 0x40
push edi
mov ecx, esi
call fcn.004018e0
add esp, 4
mov edi, eax
test esi, esi
je 0x4019c6
push esi
call fcn.00452cef
add esp, 4
mov eax, edi
pop edi
pop esi
pop ecx
ret
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x405950
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x210
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
call fcn.00425065
test eax, eax
je 0x4059da
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
je 0x4059da
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00458270
lea edx, [esp + 0x14]
push edx
call fcn.004251eb
lea eax, [esp + 0x18]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4059a6
sub eax, edx
sar eax, 1
je 0x4059da
lea eax, [esp + 8]
push eax
call esi
test eax, eax
je 0x4059da
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00451a7d
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor al, al
call fcn.00451a7d
add esp, 0x210
ret

Function at 0x406e90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x486c6b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov eax, dword [0x4a5584]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov eax, dword [0x4a8404]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a8404
mov dword [esp + 8], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x220], 0
cmp dword [eax - 0xc], 0
jne 0x406f4d
push 0x208
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00458270
add esp, 0xc
push 0
push 0x1a
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.LudashiComputerZ.set
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0xc]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406f30
sub eax, edx
sar eax, 1
lea ecx, [esp + 0xc]
mov ebx, eax
push ecx
mov eax, esi
call fcn.00404790
mov eax, esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00451a7d
add esp, 0x21c
ret
Function at 0x407020
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREQiLu_Inc.Ios
push 0x80000002
mov edi, ecx
mov ebx, 1
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4070e7
mov esi, dword [esp + 0x10]
push 0x200
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00458270
mov edi, dword [edi]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push edi
push esi
mov dword [esp + 0x24], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40710a
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x4070b4
cmp eax, 2
jne 0x4070c2
cmp dword [esp + 0xc], 0
jne 0x4070c2
xor edx, edx
mov word [esp + 0x18], dx
test esi, esi
je 0x4070cd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00451a7d
add esp, 0x218
ret
cmp eax, 2
jne 0x40706b
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00451a7d
add esp, 0x218
ret
cmp eax, 2
jne 0x4070c2
xor edi, edi
test esi, esi
je 0x40711c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x21c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00451a7d
add esp, 0x218
ret

Function at 0x407140
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x407190
lea ecx, [esp]
push ecx
call fcn.00406f80
mov eax, dword [esp]
mov edx, dword [eax - 0xc]
add edx, edx
push edx
push eax
mov eax, dword [esi]
push 1
push eax
push str.SOFTWAREQiLu_Inc.Ios
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [esp]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407190
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ecx
ret

Function at 0x4071a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
push eax
push edx
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40720e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4071df
cmp eax, 2
jne 0x4071fa
mov eax, dword [esp]
test esi, esi
je 0x407208
test eax, eax
je 0x407203
test al, 1
jne 0x4071fa
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x407208
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x407330
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0x208
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0
call fcn.00458270
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x498190
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea ecx, [esp + 8]
call fcn.004030f0
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, esi
call fcn.00451a7d
add esp, 0x210
ret