joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f7c0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.004328c7
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x42f82a
push esi
lea edi, [eax + 0x400]
call fcn.004328d5
push edi
call fcn.004328c7
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x42f7fa
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42f846
push ecx
push esi
call fcn.00430830
add esp, 8
mov ebx, eax
push esi
call fcn.004328d5
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x430050
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4300e2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4300d4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4300cc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x430095
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x4119a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x84
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
mov esi, dword [esp + 0x8c]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push 0
push 0x80
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x84]
pop esi
xor ecx, esp
call fcn.00444138
add esp, 0x84
ret

Function at 0x411a00
Capabilities:
Copy file

Disassembly:
sub esp, 0x834
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x830], eax
push esi
mov esi, dword [esp + 0x83c]
push edi
mov edi, dword [esp + 0x844]
test esi, esi
je 0x411a63
test edi, edi
je 0x411a63
lea eax, [esp + 8]
push eax
push esi
call fcn.00455621
add esp, 8
test eax, eax
jns 0x411a7c
push esi
push str.sSourceFile___s__does_not_exist
push 0x15cd
push 0x47ebb0
push 0
push str.Utility::CopyMyFile__
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.00444138
add esp, 0x834
ret
push 0x200
lea eax, [esp + 0x43c]
push eax
push esi
call fcn.00416680
push 0x200
lea eax, [esp + 0x48]
push eax
push edi
call fcn.00416680
add esp, 0x18
lea eax, [esp + 0x38]
push 0
push eax
lea eax, [esp + 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x838]
test eax, eax
pop edi
setne al
pop esi
xor ecx, esp
call fcn.00444138
add esp, 0x834
ret

Function at 0x412230
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x434
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x430], eax
push ebp
mov ebp, dword [esp + 0x444]
push esi
mov esi, dword [esp + 0x440]
push edi
mov edi, dword [esp + 0x448]
mov dword [edi], 0
test esi, esi
je 0x412304
cmp byte [esi], 0
je 0x412304
push ebx
push 0x200
lea eax, [esp + 0x44]
push eax
push esi
call fcn.00416680
lea eax, [esp + 0x4c]
push 0x47e310
push eax
call fcn.0044fa5e
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4122de
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00455681
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
inc eax
push eax
call fcn.0041d9bf
push ebx
push 1
push dword [esp + 0x38]
mov dword [ebp], eax
push eax
call fcn.00455c28
mov ecx, dword [ebp]
mov eax, dword [esp + 0x40]
push ebx
mov byte [eax + ecx], 0
call fcn.0044f88c
add esp, 0x20
jmp 0x412303
push esi
push str.Failed_to_open_sFileName__s
push 0x14a3
push 0x47ebb0
push 0
push str.Utility::GetFileData__
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
pop ebx
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00444138
add esp, 0x434
ret
Function at 0x413d20
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x418
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x414], eax
lea eax, [esp + 0x14]
mov dword [esp], 0
mov dword [esp + 4], eax
lea eax, [esp + 8]
push eax
push 8
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x413dac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_Error__u_n
push 0x12c8
push 0x47ebb0
push 0
push str.Utility::IsUserAdmin__
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
xor al, al
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00444138
add esp, 0x418
ret
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push 0
push 2
push dword [esp + 0x20]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413e16
call esi
cmp eax, 0x7a
je 0x413e16
push eax
push str.GetTokenInformation_Error__u_n
push 0x12d4
push 0x47ebb0
push 0
push str.Utility::IsUserAdmin__
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00444138
add esp, 0x418
ret
push ebp
push dword [esp + 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push ebp
push 2
push dword [esp + 0x24]
call edi
test eax, eax
jne 0x413e4a
call esi
push eax
push str.GetTokenInformation_Error__u_n
push 0x12e4
jmp 0x413e80
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x413eb4
call esi
push eax
push str.AllocateAndInitializeSid_Error__u_n
push 0x12f2
push 0x47ebb0
push 0
push str.Utility::IsUserAdmin__
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
xor al, al
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00444138
add esp, 0x418
ret
push ebx
xor edi, edi
xor bl, bl
cmp dword [ebp], edi
jbe 0x413f3a
lea esi, [ebp + 8]
push dword [esi - 4]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x413f31
mov eax, dword [esi]
test al, 4
je 0x413efd
push str.The_group_SID_is_enabled._n
push 0x1301
push 0x47ebb0
push 0
push str.Utility::IsUserAdmin__
push dword [0x4a9068]
call fcn.0040eee0
mov bl, 1
jmp 0x413f2e
test al, 0x10
je 0x413f0d
push str.The_group_SID_is_a_deny_only_SID._n
push 0x1308
jmp 0x413ee2
push str.The_group_SID_is_not_enabled._n
push 0x130f
push 0x47ebb0
push 0
push str.Utility::IsUserAdmin__
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x18
inc edi
add esi, 8
cmp edi, dword [ebp]
jb 0x413ec1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413f49
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x424]
mov al, bl
pop ebx
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.00444138
add esp, 0x418
ret
Function at 0x414040
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x400], eax
mov edx, dword [esp + 0x408]
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x418]
mov ecx, 0x200
cmp dword [esp + 0x410], ecx
push esi
cmovle ecx, dword [esp + 0x414]
push edi
mov edi, dword [esp + 0x41c]
push ecx
push eax
push edx
call fcn.00416680
lea eax, [esp + 0x18]
push 0x47f5c8
push eax
call fcn.0044fa5e
mov esi, eax
mov dword [ebx], 0
add esp, 0x14
mov dword [edi], 0
test esi, esi
je 0x414108
push 2
push 0
push esi
call fcn.00455f8c
push esi
call fcn.004574fb
push 0
push 0
push esi
mov dword [edi], eax
call fcn.00455f8c
mov eax, dword [edi]
add eax, 0xc00
push eax
call fcn.0041d9bf
push esi
mov dword [ebx], eax
push dword [edi]
push 1
push eax
call fcn.00455c28
push esi
call fcn.0044f88c
add esp, 0x34
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00444138
add esp, 0x404
ret
mov ecx, dword [esp + 0x40c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00444138
add esp, 0x404
ret
Function at 0x416c30
Capabilities:
Check mutex on windows
Read file on windows

Disassembly:
sub esp, 0x440
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x43c], eax
mov eax, dword [esp + 0x444]
push ebx
mov dword [esp + 0xc], eax
mov ebx, ecx
mov eax, dword [esp + 0x44c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x450]
push ebp
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x400]
push esi
push edi
test eax, eax
je 0x416c7e
cmp eax, 2
jne 0x416db0
push 0x4a97fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x200
lea eax, [esp + 0x50]
push eax
push str.TMCacheFileMutex
call fcn.00416680
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x416cf2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470f20
push eax
push esi
push str.failed_to_WaitForSingleObject_CACHE_FILE_MUTEX__error_code:__d__error:__s
push 0x40
push str.c:_rhub2codeutilitymyconfigure.cpp
push 3
push str.MyConfigure::ReadConfigure
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x24
lea esi, [ebx + 0x604]
push 0x47e310
push esi
call fcn.0044fa5e
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x416d4a
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x4a97fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 0x404]
push eax
push str.failed_to_open__s
push 0x4d
push str.c:_rhub2codeutilitymyconfigure.cpp
push 3
push str.MyConfigure::ReadConfigure
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
xor al, al
jmp 0x416db2
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00455681
mov eax, dword [esp + 0x38]
inc eax
push eax
call fcn.0041d9bf
push ebp
push 1
push dword [esp + 0x44]
mov esi, eax
push esi
call fcn.00455c28
push ebp
call fcn.0044f88c
push dword [esp + 0x30]
mov eax, dword [esp + 0x54]
push dword [esp + 0x38]
push dword [esp + 0x40]
mov byte [eax + esi], 0
push esi
call fcn.00413080
push esi
mov bl, al
call fcn.0041d9ba
add esp, 0x34
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x4a97fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x416d46
mov al, 1
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00444138
add esp, 0x440
ret 0xc
Function at 0x4170b0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x100], eax
push 0x100
lea eax, [esp + 4]
push eax
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
je 0x417144
lea eax, [esp]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x417144
mov edx, dword [eax]
push esi
mov esi, 0x4ad828
nop dword [eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi], cl
lea esi, [esi + 1]
test cl, cl
jne 0x4170f0
mov eax, dword [eax + 0xc]
pop esi
test eax, eax
je 0x41712d
mov eax, dword [eax]
test eax, eax
je 0x41712d
push dword [eax]
call sub.WS2_32.dll_inet_ntoa
mov ecx, eax
test ecx, ecx
je 0x41712d
mov edx, 0x4adaa8
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x417120
mov al, 1
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00444138
add esp, 0x104
ret
mov ecx, dword [esp + 0x100]
xor al, al
xor ecx, esp
call fcn.00444138
add esp, 0x104
ret

Function at 0x417160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41724e
lea eax, [esp + 8]
mov dword [esp + 8], 0x50
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.Build
push dword [esp + 0x18]
call esi
test eax, eax
je 0x4171d9
movq xmm0, qword [str.Not_found]
mov ax, word [0x47fc90]
movq qword [0x4ada48], xmm0
mov word [0x4ada50], ax
jmp 0x4171ed
push 0x20
lea eax, [esp + 0x10]
push 0x4ada48
push eax
call fcn.00419b10
add esp, 0xc
lea eax, [esp + 8]
mov dword [esp + 8], 0x50
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.Version
push dword [esp + 0x18]
call esi
test eax, eax
je 0x417230
movq xmm0, qword [str.Not_found]
mov ax, word [0x47fc90]
movq qword [0x4ada68], xmm0
mov word [0x4ada70], ax
jmp 0x417244
push 0x20
lea eax, [esp + 0x10]
push 0x4ada68
push eax
call fcn.00419b10
add esp, 0xc
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4172cc
lea eax, [esp + 8]
mov dword [esp + 8], 0x50
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.MinorVersion
push dword [esp + 0x18]
call esi
test eax, eax
je 0x4172ae
movq xmm0, qword [str.Not_Found]
mov ax, word [0x47fd44]
movq qword [0x4ada88], xmm0
mov word [0x4ada90], ax
jmp 0x4172c2
push 0x20
lea eax, [esp + 0x10]
push 0x4ada88
push eax
call fcn.00419b10
add esp, 0xc
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x5c]
mov al, 1
pop esi
xor ecx, esp
call fcn.00444138
add esp, 0x5c
ret
Function at 0x417d50
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
lea ebp, [esp - 0x4dc]
sub esp, 0x4dc
push 0xfffffffffffffffe
push 0x49a838
push 0x447bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a6c44]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x4d8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x4e4]
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 0x4e8]
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x410
push 0
lea eax, [ebp]
push eax
call fcn.00447160
add esp, 0xc
mov dword [ebp - 4], 0
push 0x40e
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x417ed9
mov eax, 0x5a4d
cmp ax, word [esi]
je 0x417df2
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x417ef7
mov eax, dword [esi + 0x3c]
lea edi, [esi + eax*2]
cmp dword [edi], 0x4550
jne 0x417de4
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
mov word [ebp + 0x410], ax
mov dword [ebp - 0x20], eax
cmp esi, 0xffffffff
je 0x417e69
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x417e62
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
lea eax, [ebp + 0x410]
push eax
call fcn.00417fc0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x4ec]
push str.Module__d_r_n
mov ebx, dword [ebp - 0x24]
push ebx
call fcn.00419bc0
lea eax, [ebp]
push eax
push str._s_r_n
push ebx
call fcn.00419bc0
push dword [edi + 0x50]
push dword [edi + 0x34]
push str.Image_Base:_0x_08x__Image_Size:_0x_08x_r_n
push ebx
call fcn.00419bc0
push dword [edi + 8]
push dword [edi + 0x58]
push str.Checksum:___0x_08x__Time_Stamp:_0x_08x_r_n
push ebx
call fcn.00419bc0
lea eax, [ebp + 0x410]
push eax
push dword [ebp - 0x20]
push str.File_Size:____10d__File_Time:___s_r_n
push ebx
call fcn.00419bc0
add esp, 0x48
push str.Version_Information:_r_n
push ebx
call fcn.00419bc0
add esp, 8
mov bl, 1
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x417ef5
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4d8]
xor ecx, ebp
call fcn.00444138
lea esp, [ebp + 0x4dc]
pop ebp
ret
Function at 0x417f20
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [esp + 0x34]
xor edx, edx
mov eax, 0x40000000
xor ebx, ebx
div esi
mov dword [esp + 0xc], ebx
lea ebp, [ebx + 1]
shl eax, 2
mov dword [esp + 0x10], eax
test eax, eax
je 0x417fb7
push edi
push 0x1c
lea eax, [esp + 0x1c]
push eax
mov eax, ebx
imul eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
xor edx, edx
test eax, eax
je 0x417fa5
mov eax, dword [esp + 0x24]
test eax, eax
je 0x417fa5
div esi
cmp dword [esp + 0x28], 0x1000
mov edi, eax
jne 0x417fae
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x10]
jbe 0x417fae
push ebp
push eax
push dword [esp + 0x64]
mov dword [esp + 0x1c], eax
call fcn.00417d50
add esp, 0xc
test al, al
je 0x417fae
inc ebp
jmp 0x417fae
mov eax, 0x10000
div esi
mov edi, eax
add ebx, edi
cmp ebx, dword [esp + 0x14]
jb 0x417f53
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret

Function at 0x418060
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x828
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x824], eax
cmp byte [0x4a6718], 0
mov eax, dword [esp + 0x82c]
push ebp
push esi
push edi
mov dword [esp + 0xc], eax
je 0x41813e
push 0x410
lea eax, [esp + 0x14]
mov byte [0x4a6718], 0
push 0
push eax
call fcn.00447160
add esp, 0xc
lea eax, [esp + 0x10]
push 0x206
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test eax, eax
jne 0x4180d2
push 0x47fb68
lea eax, [esp + 0x14]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call fcn.00418040
add esp, 4
mov ebp, eax
lea eax, [esp + 0x420]
push ebp
push eax
call edi
lea eax, [esp + 0x420]
push 0x2e
push eax
call fcn.00419c20
add esp, 8
test eax, eax
je 0x418107
xor ecx, ecx
mov word [eax], cx
push str.ERRORLOG.TXT
push ebp
call edi
push 0
push 0x80000080
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418158
push str.Error_creating_exception_report_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x824]
xor ecx, esp
call fcn.00444138
add esp, 0x828
ret
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.00417f20
push str.ERRORLOG.TXT
push str._r_n__end_of__s___r_n
push esi
call fcn.00419bc0
push esi
call fcn.00419b80
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x47fc14
push ebp
call edi
push 0
push 0x80000080
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4181cb
push dword [esp + 0xc]
push esi
call fcn.00417ae0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x41813e
cmp dword [0x4a66fc], 0x51
jne 0x4181e7
call fcn.00418210
mov ecx, dword [esp + 0x830]
mov eax, 1
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00444138
add esp, 0x828
ret
Function at 0x41d290
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret 4

Function at 0x420871
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4208b6
call fcn.0041dddd
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4208b6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4208d2
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041d42a
mov ebx, eax
test edi, edi
je 0x4208d0
test esi, esi
je 0x4208d0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x421087
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x421145
cmp dword [esi + 0x20], 0
je 0x421145
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x421145
cmp dword [ebp + 8], 0
je 0x421145
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0041dddd
push 0x481550
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x421116
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x421145
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0042f3bc
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x421136
test edi, edi
je 0x421136
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x421141
mov ecx, esi
call fcn.00420e65
mov eax, ebx
jmp 0x421147
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4