joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push str.SOFTWAREReflexiveArcade
lea eax, [ebp - 0x210]
push 0x42d53c
push eax
call fcn.00416e08
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0xf003f
lea eax, [ebp - 0x210]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405a21
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.DoTimeBeeping
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405a21
cmp dword [ebp - 4], eax
setne al
mov byte [0x436538], al
leave
ret

Function at 0x405c32
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push ebx
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c78
push dword [ebp + 0x18]
lea eax, [ebp + 8]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c6f
mov bl, 1
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ebp
ret

Function at 0x405dfa
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x800
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [esi + 0x64], ebx
jne 0x405e47
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x64], eax
jne 0x405e47
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Pause_Event_Failed__last_error__x_n
push eax
call fcn.00416e08
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 0x68], ebx
jne 0x405e7a
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x68], eax
jne 0x405e7a
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Timeout_Event_Failed__last_error__x_n
push eax
call fcn.00416e08
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x814]
mov eax, dword [esi + 0x64]
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 0x68]
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
mov dword [ecx], eax
add esp, 0x800
ret 8
Function at 0x405ec2
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x405f31
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32First
jmp 0x405f26
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call fcn.004221f0
pop ecx
test eax, eax
pop ecx
je 0x405f38
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x405efa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret 4
mov al, 1
jmp 0x405f33

Function at 0x405f3c
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
call fcn.0040793f
test al, al
je 0x405f6f
lea eax, [esp]
push 0x400
push eax
call fcn.00407aae
pop ecx
test al, al
pop ecx
jne 0x405f6f
push str.No_unlock_code_when_purchased___bad_error_for_you
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
jmp 0x405f71
xor al, al
add esp, 0x400
ret

Function at 0x406663
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4066ce
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4066a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4066ce
push ebx
call fcn.004174c2
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x406697
lea ecx, [ebp - 4]
push esi
push ecx
push ebx
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x4066d2
xor al, al
jmp 0x4066ed
push ebx
push dword [ebp + 8]
call fcn.00406502
mov ecx, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ecx], eax
call fcn.004173d9
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40716a
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
push 0x42d8bc
push dword [ebp + 8]
call fcn.004176e4
mov esi, eax
xor edi, edi
pop ecx
cmp esi, edi
pop ecx
je 0x407225
push 2
push edi
push esi
call fcn.00417b1c
xor ebx, ebx
inc ebx
push ebx
push 0xfffffffffffffffa
push esi
call fcn.00417b1c
push esi
push ebx
lea eax, [ebp - 2]
push 2
push eax
call fcn.00417a05
movzx eax, word [ebp - 2]
push ebx
push 0xfffffffffffffffe
pop ecx
sub ecx, eax
push ecx
push esi
call fcn.00417b1c
push esi
call fcn.00417883
mov dword [ebp + 8], eax
push esi
movzx eax, word [ebp - 2]
push eax
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00417a05
add esp, 0x48
push edi
push edi
push esi
call fcn.00417b1c
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push ebx
mov ebx, str.Microsoft_Base_Cryptographic_Provider_v1.0
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push eax
call edi
test eax, eax
jne 0x40722c
push 0xf0000008
push 1
push ebx
push eax
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
jne 0x40722c
push esi
call fcn.004175fa
pop ecx
xor al, al
jmp 0x407314
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x407254
push esi
call fcn.004175fa
pop ecx
xor bl, bl
jmp 0x407307
mov ebx, dword [ebp + 8]
and byte [ebp + 0xb], 0
mov edi, 0x400
cmp ebx, edi
jge 0x40726a
mov edi, ebx
mov byte [ebp + 0xb], 1
push esi
push edi
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.00417a05
add esp, 0x10
lea eax, [ebp - 0x410]
push 0
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4072e8
sub ebx, edi
cmp byte [ebp + 0xb], 0
je 0x40725b
push esi
call fcn.004175fa
pop ecx
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push esi
push esi
push 0x54
push 0x42d7f0
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4072ef
movzx eax, word [ebp - 2]
push esi
push str.ReflexiveArcade_DLL_Signature
push dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
jne 0x4072f3
xor bl, bl
jmp 0x4072f5
push esi
call fcn.004175fa
pop ecx
xor bl, bl
jmp 0x4072fe
mov bl, 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407ebf
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x407eed
push esi
call fcn.0040ada6
cmp dword [esi + 0x40], 0
pop ecx
je 0x407ee6
xor eax, eax
mov dword [esi + 0x10], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x407f5f
mov eax, dword [esi + 0x1b0]
cmp dword [eax + 0x10], 0
je 0x407f51
mov eax, dword [esi + 8]
test eax, eax
je 0x407f0e
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1b0]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x407f4d
cmp eax, 2
je 0x407f51
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x407f03
cmp eax, 3
je 0x407f32
cmp eax, 1
jne 0x407f03
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x407f03
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x407f03
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x407f7d
cmp eax, 0xcc
je 0x407f7d
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
push esi
call fcn.00407f86
pop ecx
pop esi
ret
Function at 0x4123c3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x41242c
push dword [esi + 8]
lea ecx, [ebp - 8]
call fcn.00413e60
mov ecx, esi
call fcn.00411d67
test al, al
jne 0x412424
lea ecx, [ebp - 4]
call fcn.00413e41
lea ecx, [ebp - 8]
call fcn.00414273
push eax
lea eax, [ebp - 4]
push str.There_is_something_wrong_with__s.__It_may_be_an_empty_or_damaged_archive.
push eax
call fcn.004141de
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00414273
push eax
push str.FATAL_ERROR_IN_ZIP
call fcn.00413c6c
pop ecx
pop ecx
push 0xffffffffffffffff
call fcn.00417d63
lea ecx, [ebp - 8]
call fcn.00413f1b
pop esi
leave
ret

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

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 4]
je 0x4128a6
mov ecx, dword [esp + 8]
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
mov esi, dword [esi*4 + 0x42f960]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x41288c
pop edi
pop esi
ret

Function at 0x414787
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00416c70
lea eax, [ebp - 0x104]
push eax
call fcn.00414809
add esp, 0xc
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jne 0x414804
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.00416d60
test eax, eax
pop ecx
pop ecx
jne 0x4147ec
lea eax, [ebp - 0x104]
push 0x2f
push eax
call fcn.00416d60
test eax, eax
pop ecx
pop ecx
je 0x414800
and byte [eax], 0
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x4147c4
jmp 0x414797
xor al, al
jmp 0x414806
mov al, 1
pop esi
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4148e1
xor al, al
ret
and eax, 1
dec al
neg al
sbb eax, eax
inc eax
ret

Function at 0x4148ec
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 0x414913
and eax, 0xfffffffe
cmp byte [esp + 8], 0
je 0x414908
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x41772f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428ca0
push 0x41b5f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x438858], eax
movzx ecx, ah
mov dword [0x438864], ecx
and eax, 0xff
mov dword [0x438860], eax
shl eax, 8
add eax, ecx
mov dword [0x43885c], eax
movzx eax, word [0x43885a]
mov dword [0x438858], eax
push 1
call fcn.0041a2fa
pop ecx
test eax, eax
jne 0x41779d
push 0x1c
call fcn.0041785f
pop ecx
call fcn.00419f39
test eax, eax
jne 0x4177ae
push 0x10
call fcn.0041785f
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0041c231
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x439f58], eax
call fcn.0041c0ff
mov dword [0x438848], eax
call fcn.0041beba
call fcn.0041be01
call fcn.00417d36
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041bda3
mov dword [ebp - 0x60], eax
test byte [ebp - 0x30], 1
je 0x4177fd
movzx eax, word [ebp - 0x2c]
jmp 0x417800
push 0xa
pop eax
push eax
push dword [ebp - 0x60]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x64], eax
push eax
call fcn.00417d63
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.0041bc2f
pop ecx
pop ecx
ret

Function at 0x417d85
Capabilities:
Terminate process

Disassembly:
push edi
call fcn.00417e29
xor edi, edi
inc edi
cmp dword [0x438894], edi
jne 0x417da7
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esp + 0xc], 0
push ebx
mov ebx, dword [esp + 0x14]
mov dword [0x438890], edi
mov byte [0x43888c], bl
jne 0x417dfb
mov eax, dword [0x439f54]
push esi
test eax, eax
je 0x417de9
mov ecx, dword [0x439f50]
lea esi, [ecx - 4]
cmp esi, eax
jb 0x417de9
mov eax, dword [esi]
test eax, eax
je 0x417dde
call eax
sub esi, 4
cmp esi, dword [0x439f54]
jae 0x417dd6
push 0x42c094
push 0x42c08c
call fcn.00417e3b
pop ecx
pop ecx
pop esi
push 0x42c09c
push 0x42c098
call fcn.00417e3b
pop ecx
pop ecx
test ebx, ebx
pop ebx
je 0x417e17
pop edi
jmp fcn.00417e32
push dword [esp + 8]
mov dword [0x438894], edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x419fc3
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x430f80]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41a020
push 0x74
push 1
call fcn.0041f2f1
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x41a018
push esi
push dword [0x430f80]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41a018
push esi
call fcn.00419fb0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x41a020
push 0x10
call fcn.0041783a
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x41c425
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x4333b0]
je 0x41c442
inc eax
cmp eax, 0x12
jb 0x41c433
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4333b0]
jne 0x41c570
mov eax, dword [0x438850]
cmp eax, 1
je 0x41c54a
test eax, eax
jne 0x41c473
cmp dword [0x430bb4], 1
je 0x41c54a
cmp ecx, 0xfc
je 0x41c570
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c4aa
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00416c70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00416bf0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41c4ed
lea eax, [ebp - 0x1a4]
push eax
call fcn.00416bf0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42915c
push edi
call fcn.00416e60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00416c70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00416c80
lea eax, [ebp - 0xa0]
push 0x42913c
push eax
call fcn.00416c80
push dword [esi + 0x4333b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00416c80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041fcd2
add esp, 0x2c
pop edi
jmp 0x41c570
lea eax, [ebp + 8]
lea esi, [esi + 0x4333b4]
push 0
push eax
push dword [esi]
call fcn.00416bf0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41c78a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41c950
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x438e00]
shl esi, 2
mov eax, dword [edi]
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41c950
test cl, 0x48
je 0x41c7f0
mov al, byte [eax + 5]
cmp al, 0xa
je 0x41c7f0
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [edi]
push dword [ebp + 0x10]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c842
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41c82a
call fcn.0041841a
mov dword [eax], 9
call fcn.00418423
mov dword [eax], esi
jmp 0x41c83a
cmp eax, 0x6d
je 0x41c950
push eax
call fcn.004183ac
pop ecx
or eax, 0xffffffff
jmp 0x41c952
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x41c94b
test edx, edx
je 0x41c865
cmp byte [ebx], 0xa
jne 0x41c865
or al, 4
jmp 0x41c867
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], eax
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], ecx
jae 0x41c945
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41c935
cmp al, 0xd
je 0x41c89b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41c927
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41c8b5
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41c8b0
add dword [ebp + 0x10], 2
jmp 0x41c909
mov dword [ebp + 0x10], eax
jmp 0x41c923
lea eax, [ebp - 0xc]
push 0
push eax
inc dword [ebp + 0x10]
lea eax, [ebp - 1]
push 1
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c8dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41c923
cmp dword [ebp - 0xc], 0
je 0x41c923
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41c8fe
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41c909
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41c926
cmp ebx, dword [ebp + 0xc]
jne 0x41c90e
cmp byte [ebp - 1], 0xa
jne 0x41c90e
mov byte [ebx], 0xa
jmp 0x41c926
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c5d8
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41c927
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41c87f
jmp 0x41c945
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x41c945
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41c952
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41dcd9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
jne 0x41dcf9
xor eax, eax
jmp 0x41de62
mov eax, dword [ebp + 8]
sar eax, 5
lea ebx, [eax*4 + 0x438e00]
mov eax, dword [ebp + 8]
and eax, 0x1f
lea esi, [eax + eax*8]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41dd29
push 2
push edi
push dword [ebp + 8]
call fcn.0041c5d8
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41ddfb
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x41de36
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x418]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
cmp ecx, dword [ebp + 0x10]
jae 0x41dd84
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
inc ecx
mov dl, byte [edx]
cmp dl, 0xa
jne 0x41dd75
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 4]
mov byte [eax], dl
inc eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x400
jl 0x41dd58
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0x418]
push edi
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41ddc4
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x41ddcd
mov eax, dword [ebp - 8]
xor edi, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x41dd49
jmp 0x41ddcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x41de5f
cmp dword [ebp + 8], edi
je 0x41de36
push 5
pop esi
cmp dword [ebp + 8], esi
jne 0x41de28
call fcn.0041841a
mov dword [eax], 9
call fcn.00418423
mov dword [eax], esi
jmp 0x41de31
lea ecx, [ebp - 0x14]
push edi
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41de1d
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x41ddcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x41ddcf
push dword [ebp + 8]
call fcn.004183ac
pop ecx
or eax, 0xffffffff
jmp 0x41de62
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41de4b
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x41dcf2
call fcn.0041841a
mov dword [eax], 0x1c
call fcn.00418423
mov dword [eax], edi
jmp 0x41de31
sub eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f42a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 3
push 0x1f03ff
push str.C:_Program_Files_Gold_Miner_crtlog.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x41f4a8
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x804]
push dword [ebp + 8]
push eax
call fcn.00418921
add esp, 0xc
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x41f4ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov ebx, eax
push esi
push 0x80
push 4
push esi
push 3
push 0x1f03ff
push str.C:_Program_Files_Gold_Miner_crtlog.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
lea eax, [ebp - 4]
push esi
push eax
push 0x400
push ebx
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
lea eax, [ebp - 0x808]
push ebx
push str.Win32__d:__s_r_n
push eax
call fcn.00416e08
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, esi
je 0x41f556
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x808]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret