joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403bb3
Capabilities:
Create process on windows
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x950
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0xc], ecx
call fcn.00416900
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 0x50], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x403c31
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Duplicate_Thread_Failed__last_error__x_n
push eax
call fcn.00416958
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x403d34
push 2
push 1
lea eax, [ebp - 8]
push 0x100001
push eax
call esi
push eax
call fcn.00401006
mov ecx, eax
call fcn.00414a42
push eax
call esi
push eax
call edi
test eax, eax
jne 0x403c8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Duplicate_Game_Failed__last_error__x_n
push eax
call fcn.00416958
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403d34
push dword [ebp - 8]
mov edi, str.0x_08x
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.00416958
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push str.GAME_HANDLE
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.00416958
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push str.WRAPPER_HANDLE
call esi
mov eax, dword [ebp - 0xc]
add eax, 0x50
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push str.ReflexiveArcadeRAW_003.wdt
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403d38
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Create_Process_Failed__last_error__x_n
push eax
call fcn.00416958
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
xor al, al
jmp 0x403d3a
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d3f
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
push 0xc
mov dword [ebp - 4], ecx
call fcn.004163d5
mov ebx, eax
pop ecx
test ebx, ebx
je 0x403d65
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x403d67
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0x100000
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x403dbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GameWrapper:_Duplicate_Thread_Failed__last_error__x_n
lea eax, [ebp - 0x808]
push eax
call fcn.00416958
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test ebx, ebx
jmp 0x403e66
push 2
push 0
lea eax, [ebx + 4]
push 0x100000
push eax
call esi
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x54]
call esi
push eax
call edi
test eax, eax
jne 0x403dec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GameWrapper:_Duplicate_Process_Failed__last_error__x_n
jmp 0x403d9c
push 2
push 0
lea eax, [ebx + 8]
push 0x100001
push eax
call esi
push eax
call fcn.00401006
mov ecx, eax
call fcn.00414a42
push eax
call esi
push eax
call edi
test eax, eax
jne 0x403e23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GameWrapper:_Duplicate_Game_Failed__last_error__x_n
jmp 0x403d9c
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push ebx
push 0x403e9e
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x403e7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push str.GameWrapper:_Create_Thread_Failed__last_error__x_n
push eax
call fcn.00416958
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp ebx, esi
je 0x403e76
mov ecx, ebx
call fcn.00403e81
push ebx
call fcn.00416017
pop ecx
xor al, al
jmp 0x403e7c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405255
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push dword [0x4354fc]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esi + 0x38]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp byte [esi], al
je 0x4052e7
mov dword [ebp - 4], eax
call fcn.0040754e
test eax, eax
jle 0x405300
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
call fcn.00407565
mov esi, eax
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
pop ecx
push 0xcc0020
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc dword [ebp - 4]
call fcn.0040754e
cmp dword [ebp - 4], eax
jl 0x405297
pop edi
jmp 0x405300
push 0xcc0020
push eax
push eax
push ebx
push dword [esi + 0x30]
push dword [esi + 0x34]
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
push dword [0x4354fc]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
leave
ret

Function at 0x4056d6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push str.SOFTWAREReflexiveArcade
lea eax, [ebp - 0x210]
push 0x42d000
push eax
call fcn.00416958
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 0x40574b
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 0x40574b
cmp dword [ebp - 4], eax
setne al
mov byte [0x4354f0], al
leave
ret
Function at 0x405a26
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 0x405a73
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x64], eax
jne 0x405a73
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Pause_Event_Failed__last_error__x_n
push eax
call fcn.00416958
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 0x68], ebx
jne 0x405aa6
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x68], eax
jne 0x405aa6
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Timeout_Event_Failed__last_error__x_n
push eax
call fcn.00416958
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 0x405aee
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 0x405b5d
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32First
jmp 0x405b52
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call fcn.00421d40
pop ecx
test eax, eax
pop ecx
je 0x405b64
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x405b26
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret 4
mov al, 1
jmp 0x405b5f

Function at 0x405b68
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
call fcn.00407493
test al, al
je 0x405b9b
lea eax, [esp]
push 0x400
push eax
call fcn.00407602
pop ecx
test al, al
pop ecx
jne 0x405b9b
push str.No_unlock_code_when_purchased___bad_error_for_you
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
jmp 0x405b9d
xor al, al
add esp, 0x400
ret
Function at 0x406cbe
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 0x42d37c
push dword [ebp + 8]
call fcn.00417234
mov esi, eax
xor edi, edi
pop ecx
cmp esi, edi
pop ecx
je 0x406d79
push 2
push edi
push esi
call fcn.0041766c
xor ebx, ebx
inc ebx
push ebx
push 0xfffffffffffffffa
push esi
call fcn.0041766c
push esi
push ebx
lea eax, [ebp - 2]
push 2
push eax
call fcn.00417555
movzx eax, word [ebp - 2]
push ebx
push 0xfffffffffffffffe
pop ecx
sub ecx, eax
push ecx
push esi
call fcn.0041766c
push esi
call fcn.004173d3
mov dword [ebp + 8], eax
push esi
movzx eax, word [ebp - 2]
push eax
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00417555
add esp, 0x48
push edi
push edi
push esi
call fcn.0041766c
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 0x406d80
push 0xf0000008
push 1
push ebx
push eax
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
jne 0x406d80
push esi
call fcn.0041714a
pop ecx
xor al, al
jmp 0x406e68
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 0x406da8
push esi
call fcn.0041714a
pop ecx
xor bl, bl
jmp 0x406e5b
mov ebx, dword [ebp + 8]
and byte [ebp + 0xb], 0
mov edi, 0x400
cmp ebx, edi
jge 0x406dbe
mov edi, ebx
mov byte [ebp + 0xb], 1
push esi
push edi
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.00417555
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 0x406e3c
sub ebx, edi
cmp byte [ebp + 0xb], 0
je 0x406daf
push esi
call fcn.0041714a
pop ecx
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push esi
push esi
push 0x54
push 0x42d2b0
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x406e43
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 0x406e47
xor bl, bl
jmp 0x406e49
push esi
call fcn.0041714a
pop ecx
xor bl, bl
jmp 0x406e52
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 0x411eeb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x411f54
push dword [esi + 8]
lea ecx, [ebp - 8]
call fcn.0041398a
mov ecx, esi
call fcn.0041188f
test al, al
jne 0x411f4c
lea ecx, [ebp - 4]
call fcn.0041396b
lea ecx, [ebp - 8]
call fcn.00413d9d
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.00413d08
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00413d9d
push eax
push str.FATAL_ERROR_IN_ZIP
call fcn.00413796
pop ecx
pop ecx
push 0xffffffffffffffff
call fcn.004178b3
lea ecx, [ebp - 8]
call fcn.00413a45
pop esi
leave
ret

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

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

Function at 0x4142b1
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.004167c0
lea eax, [ebp - 0x104]
push eax
call fcn.00414333
add esp, 0xc
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jne 0x41432e
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.004168b0
test eax, eax
pop ecx
pop ecx
jne 0x414316
lea eax, [ebp - 0x104]
push 0x2f
push eax
call fcn.004168b0
test eax, eax
pop ecx
pop ecx
je 0x41432a
and byte [eax], 0
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x4142ee
jmp 0x4142c1
xor al, al
jmp 0x414330
mov al, 1
pop esi
leave
ret

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

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

Function at 0x414416
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 0x41443d
and eax, 0xfffffffe
cmp byte [esp + 8], 0
je 0x414432
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x419b13
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 [0x430a40]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x419b70
push 0x74
push 1
call fcn.0041ee68
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x419b68
push esi
push dword [0x430a40]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x419b68
push esi
call fcn.00419b00
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x419b70
push 0x10
call fcn.0041738a
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x41bf75
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 + 0x432e70]
je 0x41bf92
inc eax
cmp eax, 0x12
jb 0x41bf83
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x432e70]
jne 0x41c0c0
mov eax, dword [0x437800]
cmp eax, 1
je 0x41c09a
test eax, eax
jne 0x41bfc3
cmp dword [0x430674], 1
je 0x41c09a
cmp ecx, 0xfc
je 0x41c0c0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41bffa
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004167c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00416740
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41c03d
lea eax, [ebp - 0x1a4]
push eax
call fcn.00416740
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42914c
push edi
call fcn.004169b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004167c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004167d0
lea eax, [ebp - 0xa0]
push 0x42912c
push eax
call fcn.004167d0
push dword [esi + 0x432e74]
lea eax, [ebp - 0xa0]
push eax
call fcn.004167d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041f849
add esp, 0x2c
pop edi
jmp 0x41c0c0
lea eax, [ebp + 8]
lea esi, [esi + 0x432e74]
push 0
push eax
push dword [esi]
call fcn.00416740
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 0x41efa1
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 0x41f01f
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.00418471
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 0x41f023
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.00416958
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, esi
je 0x41f0cd
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
Function at 0x10003380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10043fe8], 0
jne 0x100033bb
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 0x10043fe8
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdiplusStartup
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 2
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000345b
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10003450
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10003449
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
lea eax, [ebp + 0xc]
push eax
push edi
mov dword [ebp + 8], esi
call fcn.10002c10
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
test ecx, ecx
je 0x10003424
push 0
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ecx, dword [edi]
mov eax, dword [ebp + 0xc]
push 0
push edi
lea eax, [ecx + eax*4]
add eax, edi
push eax
push 4
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push dword [ebp + 8]
mov esi, eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024c80
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100423ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [0x10043fe8], 0
jne 0x10003560
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 1
push eax
push 0x10043fe8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call sub.gdiplus.dll_GdiplusStartup
mov esi, dword [ebp + 8]
push 0xa
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x10003636
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x10003636
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10003636
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10003636
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x10003636
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1000362f
push ebx
push edi
push eax
call fcn.10016a80
add esp, 0xc
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x10003628
push eax
push dword [ebp + 0xc]
call fcn.100030f0
mov ecx, dword [ebp + 0xc]
mov edi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test edi, edi
je 0x10003628
mov eax, dword [edi + 8]
mov ecx, edi
mov dword [edi + 8], 0
test eax, eax
je 0x1000364d
mov eax, dword [edi]
push 1
call dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x14]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp + 8]
push eax
call fcn.10003160
jmp 0x10003628