joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2de0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x4d2e0e
mov ecx, dword [esp + 0x10]
xor eax, eax
mov al, byte [edx]
xor eax, ecx
and eax, 0xff
call fcn.0050c390
shr ecx, 8
xor ecx, eax
inc edx
dec esi
jne 0x4d2df1
mov eax, ecx
pop esi
ret
mov eax, dword [esp + 0x10]
pop esi
ret

Function at 0x4d9a00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
mov dword [esp], ecx
xor eax, eax
xor ecx, ecx
xor edx, edx
push ebx
push ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x5c], edx
push esi
mov esi, dword [esp + 0x78]
test esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x68], edx
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], 0x3f800000
mov dword [esp + 0x34], 0x3f800000
mov dword [esp + 0x38], 0x3f800000
mov dword [esp + 0x3c], 0x3f800000
mov dword [esp + 0x4c], eax
mov word [esp + 0x52], ax
mov word [esp + 0x50], ax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x70], edx
je 0x4d9bd4
push esi
xor bl, bl
call fcn.004da880
test eax, eax
jne 0x4d9bd6
mov edi, dword [esi + 0x5c]
test edi, 0x20000
je 0x4d9ab4
test edi, 0x100000
mov bp, 1
je 0x4d9ad2
mov bp, 0x8001
jmp 0x4d9ad2
test edi, 0x40000
je 0x4d9ac2
mov bp, 2
jmp 0x4d9ad2
test edi, 0x80000
je 0x4d9b4f
mov bp, 4
fld dword [esi + 0x3c]
call fcn.00581d24
fld dword [esi + 0x40]
mov bx, ax
call fcn.00581d24
test edi, 0x10000
mov word [esp + 0x1a], ax
je 0x4d9afc
mov di, word [esi + 0x38]
mov ax, word [esi + 0x3a]
jmp 0x4d9b0f
fld dword [esi + 0x4c]
call fcn.00581d24
fld dword [esi + 0x50]
mov di, ax
call fcn.00581d24
mov cx, word [0xfa3278]
inc cx
mov word [0xfa3278], cx
mov dx, cx
sub esp, 0xc
mov ecx, esp
mov word [ecx + 4], bx
mov bx, word [esp + 0x26]
mov word [ecx + 0xa], ax
mov eax, 0xfa327c
mov word [ecx + 6], bx
mov word [ecx + 8], di
mov word [ecx], bp
mov word [ecx + 2], dx
call fcn.004d9d90
mov bl, 1
mov edx, dword [esp + 0x78]
lea ecx, [esi + 8]
lea eax, [esp + 0x20]
call fcn.004db680
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esi]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call dword [edx + 0x3c]
test byte [esi + 0x5c], 0xc
jne 0x4d9b8d
mov edx, dword [esi]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
jne 0x4d9bd6
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4d9ba7
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d9a00
test eax, eax
jne 0x4d9bd6
test bl, bl
je 0x4d9bc9
mov eax, dword [0xfa3340]
test eax, eax
je 0x4d9bc9
mov ecx, dword [0xfa333c]
add ecx, 0xc
dec eax
mov dword [0xfa333c], ecx
mov dword [0xfa3340], eax
mov esi, dword [esi + 0x70]
test esi, esi
jne 0x4d9a87
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
Function at 0x4ebe80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
xor eax, eax
push eax
push 5
push 0x6a29a0
mov ecx, 0x40
mov edi, 0x6a29a0
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov eax, 0x6a29a0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ebeb0
sub eax, edx
mov dword [esp + 0x10], eax
jne 0x4ebeeb
mov eax, dword [str.C:My_Documents]
mov ecx, dword [0x5ab288]
mov edx, dword [0x5ab28c]
mov dword [0x6a29a0], eax
mov eax, dword [0x5ab290]
mov dword [0x6a29a4], ecx
mov dword [0x6a29a8], edx
mov dword [0x6a29ac], eax
push 0x6a29a0
call fcn.0058015c
mov edi, 0x6a29a0
add esp, 4
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4ebf00
mov ecx, dword [str.EA_Games_Saves]
mov edx, dword [0x5ab278]
mov eax, dword [0x5ab27c]
mov dword [edi], ecx
mov ecx, dword [0x5ab280]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
push 0x6a29a0
mov dword [edi + 0xc], ecx
call fcn.0058015c
mov edi, 0x6a29a0
add esp, 4
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4ebf40
mov dx, word [0x5accc0]
mov eax, dword [0xf913ec]
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ebf60
mov edi, 0x6a29a0
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4ebf70
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x6a29a0
rep movsb byte es:[edi], byte [esi]
call fcn.0058015c
add esp, 4
xor eax, eax
jmp 0x4ebfa0
mov cl, byte [eax + 0x6a29a0]
mov byte [eax + 0x6a28a0], cl
inc eax
test cl, cl
jne 0x4ebfa0
mov edi, 0x6a28a0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4ebfb7
mov ax, word [0x5accc0]
mov word [edi], ax
lea eax, [ebp + 0x80]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4ebfd0
mov edi, 0x6a28a0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4ebfe1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x78]
lea eax, [ebp + 0x4c]
pop edi
pop esi
mov dword [ebp + 0x5c], 0x6a28a0
mov dword [ebp + 0x60], ecx
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0x6a29a0
mov dword [eax], 0x6a28a0
pop ebp
ret 4
Function at 0x50a2e0
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 0x31329147
mov edi, eax
mov esi, ecx
call fcn.0057f689
add esp, 4
mov dword [0xeb0b10], edi
mov dword [0xf91678], edi
call fcn.0050a280
push 0xeab2e0
push 0x200
mov dword [0xf91624], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0xeab2e0
dec edi
xor ebx, ebx
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x50a330
mov ax, word [0x5accc0]
mov word [edi], ax
cmp dword [0xf91624], 1
jne 0x50a36e
mov eax, dword [esi + 0x40]
dec eax
cmp eax, 5
ja case.0x50a353.1
jmp dword [eax*4 + 0x50a3fc]
mov dword [esi + 0x3c], 0xb
jmp 0x50a366
mov dword [esi + 0x3c], ebx
push ebx
mov edi, esi
call fcn.0050a4b0
call fcn.0050ad30
push 0x60e908
call fcn.004ebe80
mov ecx, dword [0x60befc]
push ecx
mov eax, esi
call fcn.0050a670
mov eax, dword [ebp]
cmp eax, ebx
je 0x50a394
call eax
call fcn.00538f30
fild qword [eax]
fst qword [esi + 0x28]
mov edx, dword [esi + 0x2c]
fld qword [0x5befb8]
mov eax, dword [esi + 0x28]
fdiv st(1)
push edx
push eax
push str.CPU_Frequency___f_n
fstp qword [esi + 0x18]
fstp st(0)
call fcn.004fefa0
add esp, 0xc
mov ecx, 1
mov eax, 0xc8
mov dword [esi + 0x38], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call fcn.00515270
call fcn.00508a60
push 0x3e8
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
cmp eax, ebx
pop ebx
je 0x50a3f8
call eax
ret 0xc
Function at 0x50f810
Capabilities:
Encrypt data using rc4 prga
Print debug messages

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push edi
mov esi, eax
lea esp, [esp]
mov al, byte [0xf91509]
test al, al
je 0x50f830
call fcn.0050ef90
jmp 0x50f839
push esi
call fcn.0050f250
add esp, 4
mov edi, dword [esi + 0x10]
test edi, edi
je 0x50f9a5
mov edx, dword [edi + 8]
test edx, edx
jne 0x50f858
mov edi, dword [edi]
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
jmp 0x50f9a5
cmp word [edi + 0xe], 0
jbe 0x50f9a5
mov ecx, dword [edi]
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x50f885
and eax, 3
shr ecx, 0x12
shl eax, 4
add eax, ecx
mov ecx, dword [eax*4 + 0xf8ad78]
mov ebx, dword [ecx + 8]
jmp 0x50f892
and ecx, 0xffff
mov ebx, dword [ecx*4 + 0xf7ad70]
cmp dword [0xf91554], ebx
jne 0x50f8a2
cmp dword [0x5e48ec], edx
je 0x50f8c9
movzx ecx, byte [edi + 0x14]
mov eax, dword [0xf914dc]
mov edx, dword [eax]
push ecx
push ebx
push 0
push eax
call dword [edx + 0x14c]
mov eax, dword [0xef1b78]
inc eax
mov dword [0xf91554], ebx
mov dword [0xef1b78], eax
mov ecx, dword [edi + 4]
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x50f8e1
mov edx, dword [eax*4 + 0xf82d6c]
mov ebx, dword [edx + 4]
jmp 0x50f8ee
and ecx, 0xffff
mov ebx, dword [ecx*4 + 0xf76d58]
test ebx, ebx
je 0x50f925
cmp dword [0xf91558], ebx
jne 0x50f904
mov eax, dword [0x5e48f8]
cmp eax, dword [edi + 0x1c]
je 0x50f925
mov edx, dword [edi + 0x1c]
mov eax, dword [0xf914dc]
mov ecx, dword [eax]
push edx
push ebx
push eax
call dword [ecx + 0x154]
mov eax, dword [edi + 0x1c]
mov dword [0x5e48f8], eax
mov dword [0xf91558], ebx
mov ecx, dword [0xef13e4]
xor ecx, dword [0xef13dc]
test ecx, 0x1607cf
jne 0x50f944
mov edx, dword [0x5e48ec]
cmp edx, dword [edi + 8]
je 0x50f954
mov eax, dword [edi + 8]
call fcn.0050ed70
mov eax, dword [edi + 8]
mov dword [0x5e48ec], eax
mov al, byte [0x5e48f0]
test al, al
je 0x50f9a5
test ebx, ebx
movzx edx, word [edi + 0xe]
mov eax, dword [0xf914dc]
mov ecx, dword [eax]
push edx
jne 0x50f97f
mov edx, dword [edi + 0x10]
push edx
movzx edx, byte [edi + 0x15]
push edx
push eax
call dword [ecx + pe_nt_image_headers32]
jmp 0x50f99a
movzx edx, word [edi + 0xc]
push edx
movzx edx, word [edi + 0x16]
push edx
movzx edx, word [edi + 0x10]
push edx
movzx edx, byte [edi + 0x15]
push edx
push eax
call dword [ecx + 0x11c]
test eax, eax
jge 0x50f9a5
push str.Failed_n
call ebp
mov edx, dword [0xef1b44]
mov eax, dword [esi + 0x14]
inc edx
test eax, eax
mov dword [0xef1b44], edx
je 0x50f9c0
mov esi, eax
jmp 0x50f820
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5141b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4c8
mov eax, dword [esp + 0x4cc]
mov ecx, dword [esp + 0x4d0]
push ebx
mov ebx, dword [esp + 0x4d8]
push ebp
mov ebp, dword [esp + 0x4ec]
push esi
push edi
mov edi, dword [esp + 0x4fc]
lea edx, [esp + 0x34]
push edx
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x4ec]
push edi
push ecx
push eax
lea esi, [esp + 0x50]
lea eax, [esp + 0x5c]
mov edx, ebp
mov ecx, ebx
call fcn.00513880
mov edx, dword [esp + 0x4e8]
mov eax, dword [esp + 0x4dc]
push edi
push ebp
push edx
push eax
mov eax, dword [esp + 0x4fc]
mov ecx, ebx
call fcn.00513820
push edi
lea edi, [esp + 0x24]
mov eax, ebp
call fcn.005139c0
lea ecx, [esp + 0x22]
push ecx
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x2b], al
push ebp
lea eax, [esp + 0x54]
lea edi, [esp + 0x8c]
lea ecx, [esp + 0xa0]
lea edx, [esp + 0x94]
lea esi, [esp + 0xa4]
mov byte [esp + 0x2e], 0
mov byte [esp + 0x2d], 0
call fcn.00514010
mov edx, dword [esp + 0x30]
mov byte [esp + 0x4b], al
lea eax, [esp + 0x2d]
push eax
lea ecx, [esp + 0x7c]
push ecx
push edx
lea eax, [esp + 0x44]
lea ecx, [esp + 0x9c]
lea edx, [esp + 0xa8]
lea esi, [esp + 0xa4]
lea edi, [esp + 0x94]
invalid

Function at 0x515f20
Capabilities:
Inspect section memory permissions

Disassembly:
xor eax, eax
xor ecx, ecx
test dl, 4
je 0x515f33
mov eax, 2
mov ecx, 0xc
test dh, 1
je 0x515f3e
or eax, 0x10
add ecx, 0xc
test edx, 0x80000
je 0x515f4e
or eax, 0x80000000
add ecx, 4
test dh, 4
je 0x515f5b
or eax, 0x40000000
add ecx, 0x18
test dl, 0x10
je 0x515f66
or eax, 0x40
add ecx, 4
test dl, dl
jns 0x515f72
or eax, 0x100
add ecx, 8
test dl, 0x40
je 0x515f95
push ebx
mov bl, byte [0xf91509]
test bl, bl
pop ebx
je 0x515f8d
or eax, 0x20000000
add ecx, 4
jmp 0x515f95
or eax, 0x100
add ecx, 8
test edx, 0x100000
je 0x515fa3
or eax, 0x10000000
inc ecx
mov dword [edi], eax
mov byte [esi], cl
ret

Function at 0x530c70
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push edi
push str.QWCGAME
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x530c9f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
pop ecx
ret 0x10
mov ax, word [0x5a521c]
mov cl, byte [0x5a521e]
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
mov word [esp + 8], ax
mov byte [esp + 0xa], cl
je 0x530d17
mov eax, dword [0xf913e0]
mov dword [eax*4 + 0xf913c0], 0x5cb730
inc eax
lea edx, [esp + 8]
mov dword [0xf913e0], eax
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.0057fb6d
add esp, 8
test eax, eax
je 0x530d17
lea esp, [esp]
mov ecx, dword [0xf913e0]
mov dword [ecx*4 + 0xf913c0], eax
inc ecx
mov dword [0xf913e0], ecx
lea ecx, [esp + 8]
push ecx
push 0
call fcn.0057fb6d
add esp, 8
test eax, eax
jne 0x530cf0
mov edx, dword [esp + 0x10]
mov ecx, dword [0xf913e0]
push 0xf92830
mov eax, 0xf913c0
mov dword [0x60bebc], edx
mov dword [0x60bec0], esi
call fcn.0052eb40
pop esi
lea ecx, [ecx]
mov eax, 0xf92830
call fcn.0052f7f0
test al, al
je 0x530d40
push 0xf92830
call fcn.0052fcb0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop ecx
ret 0x10
Function at 0x534440
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov eax, 0x4010
call fcn.005817c0
mov eax, dword [esp + 0x4018]
push ebx
push ebp
push esi
push edi
push 1
xor edi, edi
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x402c]
push edi
push ecx
push 0x2000
mov ebx, eax
mov eax, dword [esp + 0x4030]
lea edx, [esp + 0x2c]
push edx
push ebx
push eax
mov dword [esp + 0x28], ebx
call fcn.00532d80
add esp, 0x18
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x402c]
mov esi, edi
push 0
push ecx
mov ecx, dword [esp + 0x402c]
xor esi, 1
mov edx, esi
shl edx, 0xd
push 0x2000
lea eax, [esp + edx + 0x2c]
push eax
add ebx, 0x2000
push ebx
push ecx
call fcn.00532d80
mov dword [esp + esi*4 + 0x2c], eax
mov ebx, dword [esp + edi*4 + 0x2c]
push ebx
call fcn.00532420
push ebx
call fcn.005322b0
mov ecx, dword [esp + 0x4048]
add esp, 0x20
push 0
mov ebx, eax
lea eax, [esp + 0x20]
push eax
mov edx, edi
shl edx, 0xd
push ebx
lea ebp, [esp + edx + 0x2c]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x53453d
mov edi, dword [esp + 0x4030]
xor edx, edx
mov dx, word [edi]
push edx
push ebx
push ebp
call fcn.0053a8d0
mov ecx, dword [esp + 0x1c]
add ecx, ebx
add esp, 0xc
cmp ebx, 0x2000
mov word [edi], ax
mov dword [esp + 0x10], ecx
mov edi, esi
jne 0x534580
mov al, byte [0x669478]
test al, al
jne 0x534580
mov ebx, ecx
jmp 0x534490
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x10], 0xffffffff
xor edi, 1
mov edi, dword [esp + edi*4 + 0x14]
push edi
call fcn.00532420
add esp, 4
cmp eax, 1
jne 0x5345a1
mov ecx, dword [str.A_fatal_error_has_occurred_in_the_installer.__Try_deleting_the_file_cache.dat_in_the_Game_Install_Directory_and_run_the_game_again._n]
push ecx
call fcn.00537b20
add esp, 4
push edi
call fcn.005322b0
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4010
ret
Function at 0x535730
Capabilities:
Get disk information

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0x250
push esi
mov esi, dword [esp + 0x258]
push edi
mov edi, dword [esp + 0x260]
lea eax, [esp + 0xc]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x5357b2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x535761
sub eax, edx
inc eax
cmp eax, 0x104
jae 0x535797
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x535777
sub eax, edx
inc eax
push eax
push esi
push edi
call fcn.00537fb0
add esp, 0xc
pop edi
xor eax, eax
pop esi
add esp, 0x250
ret
mov eax, 0x104
push eax
push esi
push edi
call fcn.00537fb0
add esp, 0xc
pop edi
xor eax, eax
pop esi
add esp, 0x250
ret
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00535650
add esp, 8
push 0
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x5357a7
test byte [esp + 8], 2
jne 0x5357f1
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [esp + 8], 4
jne 0x53582a
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x53582a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x144]
mov edi, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x535820
pop edi
mov eax, 1
pop esi
add esp, 0x250
ret
Function at 0x535cd0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x6694d0]
test eax, eax
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
not esi
je 0x535e44
test esi, esi
jl 0x535e44
cmp esi, dword [0x6694cc]
jge 0x535e44
shl esi, 5
cmp byte [esi + eax], 0
je 0x535e44
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x6694d0]
mov ecx, dword [esi + eax + 0x1c]
cmp dword [esi + eax + 0x18], ecx
jle 0x535d29
mov dword [esi + eax + 0x18], ecx
mov edx, dword [esi + eax + 0x18]
mov ecx, dword [esi + eax + 0x1c]
push ebx
push edi
mov edi, dword [esp + 0x1c]
lea ebx, [edx + edi]
cmp ebx, ecx
jle 0x535d46
sub ecx, edx
mov dword [esp + 0x1c], ecx
mov edi, ecx
test edi, edi
mov ebx, dword [esi + eax + 0xc]
mov byte [esi + eax + 2], 1
je 0x535e36
push ebp
mov ebp, dword [esp + 0x1c]
lea esp, [esp]
mov cl, byte [esi + eax + 2]
test cl, cl
je 0x535e35
cmp ebx, edi
jbe 0x535d72
mov ebx, edi
mov ecx, dword [esi + eax + 0x14]
test ecx, ecx
je 0x535d98
mov eax, dword [esi + eax + 0x18]
push ebx
add eax, ecx
push eax
push ebp
call fcn.00537fb0
push 0
mov dword [esp + 0x28], ebx
call fcn.00538100
add esp, 0x10
jmp 0x535db0
mov edx, dword [esi + eax + 4]
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x535df5
mov eax, dword [0x6694d0]
mov ecx, dword [esp + 0x18]
mov edi, dword [esi + eax + 0x18]
mov edx, dword [esp + 0x10]
add edi, ecx
mov dword [esi + eax + 0x18], edi
mov ecx, dword [esp + 0x18]
add edx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esi + eax + 0x1c]
add ebp, ecx
cmp edi, edx
jle 0x535de3
mov dword [esi + eax + 0x18], edx
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jb 0x535e35
mov edx, dword [esp + 0x20]
sub edx, ecx
mov dword [esp + 0x20], edx
mov edi, edx
jmp 0x535e11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x535e28
push 1
call fcn.00538100
mov eax, dword [0x6694d0]
add esp, 4
test edi, edi
jne 0x535d60
pop ebp
pop edi
mov byte [esi + eax + 2], 0
mov eax, dword [esp + 8]
pop ebx
pop esi
pop ecx
ret
mov eax, dword [0x6694d0]
mov dword [esp + 0x10], 0
pop ebp
pop edi
mov byte [esi + eax + 2], 0
mov eax, dword [esp + 8]
pop ebx
pop esi
pop ecx
ret
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ecx
ret
Function at 0x535e60
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x6694d0]
test eax, eax
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
not esi
je 0x535fb5
test esi, esi
jl 0x535fb5
cmp esi, dword [0x6694cc]
jge 0x535fb5
shl esi, 5
cmp byte [esi + eax], 0
je 0x535fb5
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x6694d0]
mov ecx, dword [esi + eax + 0x1c]
cmp dword [esi + eax + 0x18], ecx
jle 0x535eb9
mov dword [esi + eax + 0x18], ecx
mov ecx, dword [esi + eax + 0x14]
test ecx, ecx
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push edi
mov edi, dword [esi + eax + 0xc]
je 0x535ee3
mov edx, dword [esi + eax + 0x18]
mov ecx, dword [esi + eax + 0x1c]
lea ebx, [edx + ebp]
cmp ebx, ecx
jle 0x535ee3
sub ecx, edx
mov ebp, ecx
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x535fab
mov ebx, dword [esp + 0x1c]
nop
cmp edi, ebp
jbe 0x535ef6
mov edi, ebp
mov ecx, dword [esi + eax + 0x14]
test ecx, ecx
je 0x535f1c
mov eax, dword [esi + eax + 0x18]
push edi
add eax, ecx
push ebx
push eax
call fcn.00537fb0
push 0
mov dword [esp + 0x28], edi
call fcn.00538100
add esp, 0x10
jmp 0x535f34
mov edx, dword [esi + eax + 4]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x535f75
mov eax, dword [0x6694d0]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + eax + 0x18]
mov ebp, dword [esp + 0x10]
add edx, ecx
mov dword [esi + eax + 0x18], edx
mov ecx, dword [esp + 0x18]
add ebp, ecx
add ebx, ecx
cmp ecx, edi
mov dword [esp + 0x10], ebp
jae 0x535f5f
xor ebp, ebp
jmp 0x535f65
mov ebp, dword [esp + 0x20]
sub ebp, ecx
cmp edx, dword [esi + eax + 0x1c]
mov dword [esp + 0x20], ebp
jle 0x535f91
mov dword [esi + eax + 0x1c], edx
jmp 0x535f91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x535fa3
push 1
call fcn.00538100
mov eax, dword [0x6694d0]
add esp, 4
test ebp, ebp
jne 0x535ef0
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ecx
ret

Function at 0x5380c0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
push esi
jne 0x5380d4
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, dword [eax + 4]
Function at 0x5383f0
Capabilities:
Resume thread

Disassembly:
sub esp, 0x10
push ebx
push esi
push 1
xor bl, bl
call dword [0x5c2990]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
lea ecx, [esi + 8]
push ecx
push 4
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
push 0x538010
push eax
push 0
mov dword [esp + 0x2c], 0
call fcn.0058195e
add esp, 0x1c
test eax, eax
mov dword [esp + 8], eax
je 0x538473
mov ecx, dword [esp + 0x2c]
push ecx
push esi
mov bl, 1
mov dword [esi + 4], eax
call fcn.00538230
mov edx, dword [esi + 4]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 8]
test eax, eax
je 0x538473
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 1
call esi
mov eax, dword [esp + 8]
test eax, eax
jne 0x538465
push 0
call dword [0x5c2990]
add esp, 4
pop esi
mov al, bl
pop ebx
add esp, 0x10
ret

Function at 0x538490
Capabilities:
Resume thread

Disassembly:
sub esp, 0x10
push ebx
push esi
push 1
xor bl, bl
call dword [0x5c2990]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea edx, [esi + 8]
push edx
push 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x3c]
push 0x538010
push ecx
push 0
mov dword [esp + 0x28], 0
call fcn.0058195e
add esp, 0x1c
test eax, eax
mov dword [esp + 8], eax
je 0x53851e
mov edx, dword [esp + 0x30]
push edx
push esi
mov bl, 1
mov dword [esi + 4], eax
call fcn.00538230
mov eax, dword [esi + 4]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 8]
test eax, eax
je 0x53851e
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
lea ecx, [ecx]
push 1
push 1
call esi
mov eax, dword [esp + 8]
test eax, eax
jne 0x538510
push 0
call dword [0x5c2990]
add esp, 4
pop esi
mov al, bl
pop ebx
add esp, 0x10
ret

Function at 0x538550
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x5385b0
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.MHz
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x10
ret