joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414de0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040af20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x414eab
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x414eab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x414e5e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x414e69
or bh, 8
and edi, 0x8000000
je 0x414e84
mov eax, dword [0x431c3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x414eab
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4152ab
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4152cf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4152ea
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x419c13
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x419c55
call fcn.0041df28
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x419c55
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x419c4c
xor eax, eax
jmp 0x419c5d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00419c63
pop edi
pop esi
pop ebx
ret 4

Function at 0x41e6e1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41e70f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e72d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041e647
jmp 0x41e72d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41e72d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041e647
test edi, edi
mov eax, edi
jne 0x41e717
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x420f2a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x420f41
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x404610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov eax, 0x1002c
push edi
push esi
push ebx
call fcn.0046ed50
sub esp, eax
mov ebp, ecx
mov byte [ecx + 0x8f24], 1
mov ecx, dword [ecx + 0x8ed0]
mov esi, dword [esp + 0x10044]
mov ebx, dword [esp + 0x10048]
mov eax, dword [ecx]
mov dword [esp], esi
mov dword [esp + 4], ebx
call dword [eax + 0x14]
sub esp, 8
test esi, esi
sete cl
test ebx, ebx
sete al
or cl, al
mov byte [esp + 0x1e], cl
je 0x4047a0
mov ecx, dword [ebp + 0x8ed0]
xor esi, esi
mov edi, 1
mov eax, dword [ecx]
mov dword [esp + 4], esi
lea esi, [esp + 0x20]
mov dword [esp], esi
call dword [eax + 0x14]
sub esp, 8
movzx eax, byte [esp + 0x1e]
xor al, 1
mov byte [esp + 0x1f], al
lea esi, [esi]
mov ecx, dword [ebp + 0x8ed0]
mov ebx, 0x10000
mov eax, dword [ecx]
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [eax + 0x18]
mov ecx, dword [ebp + 0x8ed0]
mov eax, dword [ecx]
sub esp, 8
mov dword [esp], edi
call dword [eax + 0x10]
sub esp, 4
test eax, eax
js 0x4046f0
mov ecx, dword [ebp + 0x8ed0]
mov eax, dword [ecx]
call dword [eax + 0x1c]
sub eax, esi
mov ebx, eax
jne 0x404740
mov ecx, dword [ebp + 0x8ed0]
mov eax, dword [ecx]
call dword [eax + 0x20]
test eax, eax
jne 0x404690
xor eax, eax
add esp, 0x1002c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 0xffffffff
jne 0x4046fc
cmp byte [esp + 0x1f], 0
je 0x4046bf
mov ecx, dword [ebp + 0x8ed0]
mov ebx, eax
mov eax, dword [ecx]
mov dword [esp], ebx
call dword [eax + 0x2c]
mov ecx, str.Error:_deflateToFile:_deflate___failed__ls___d___n
sub esp, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], ebp
call fcn.00403350
add esp, 0x1002c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x10040]
mov edx, 1
mov dword [esp + 4], edx
mov dword [esp], esi
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
cmp ebx, eax
jne 0x4047b0
mov eax, dword [esp + 0x10040]
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov ecx, dword [ebp + 0x8ed0]
mov eax, dword [ecx]
call dword [eax + 0x20]
test eax, eax
jne 0x404690
cmp byte [esp + 0x1e], 0
jne 0x404690
xor eax, eax
jmp 0x4046e1
lea esi, [esp + 0x20]
xor edi, edi
jmp 0x404682
mov dword [esp + 8], ebx
mov eax, str.Error:_deflateToFile_fwrite__lu__failed_n
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.00403350
jmp 0x404728
Function at 0x4075e0
Capabilities:
Delete file

Disassembly:
cmp word [ecx + 0x8f40], 0
je 0x4077d0
push ebp
mov ebp, esp
sub esp, 0x68
cmp word [ecx + 0x9740], 0
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
jne 0x407620
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edi, dword [ecx + 0xad64]
lea esi, [ecx + 0x8f40]
mov dword [esp + 8], edi
mov eax, dword [ecx + 0xad60]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0044efe0
cmp edi, eax
jne 0x4076f8
lea eax, [ebx + 0x9740]
mov dword [esp], eax
call fcn.00450720
cmp eax, 0xffffffff
je 0x407750
test eax, eax
jne 0x407720
lea eax, [ebp - 0x28]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], eax
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
lea ecx, [ebp - 0x30]
mov dword [esp], esi
lea eax, [esi + eax*2]
mov dword [esp + 4], eax
call fcn.00401920
lea eax, [ebp - 0x34]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.0044ede0
test eax, eax
mov edi, eax
je 0x407770
mov eax, dword [ebp - 0x34]
mov ecx, ebx
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00405a50
sub esp, 8
mov dword [esp], edi
call fcn.00483050
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
cmp eax, edx
je 0x4076e4
mov edx, dword [ebp - 0x28]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.004a2230
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__wremove]
xor eax, eax
jmp 0x40760b
mov dword [esp + 8], esi
mov eax, str.Error:_writing_temporary_file___ls__for_pack_n
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00403350
mov eax, 0x32
jmp 0x40760b
mov dword [esp + 0x10], esi
mov ecx, str.Packer_returned__d____ls__might_still_be_unpacked_n
mov edi, 0x139d
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.004075b0
jmp 0x407669
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__wremove]
mov eax, str.Error:_calling_packer_on___ls__n
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00403350
jmp 0x40770d
mov eax, dword [ebp - 0x30]
mov edx, str.Error:_reading_stub___ls__n
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00403350
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
cmp eax, edx
je 0x4077d3
mov edx, dword [ebp - 0x28]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.004a2230
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__wremove]
mov dword [esp + 8], esi
mov eax, str.Error:_reading_temporary_file___ls__after_pack_n
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00403350
jmp 0x40770d
xor eax, eax
ret
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__wremove]
lea esi, [esi]
jmp 0x4077ae
Function at 0x412bd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov eax, dword [0x4f2064]
push edi
push esi
push ebx
test eax, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
jne 0x412c23
xor ebx, ebx
lea esi, [esi]
nop
mov eax, ebx
mov edx, 8
lea esi, [esi]
nop
mov ecx, eax
shr eax, 1
and ecx, 1
test ecx, ecx
je 0x412c10
xor eax, 0xedb88320
dec edx
jne 0x412c00
mov dword [ebx*4 + 0x4f2060], eax
inc ebx
cmp ebx, 0x100
jne 0x412bf0
mov eax, ebp
test edi, edi
lea ecx, [esi + edi]
not eax
je 0x412c50
nop
movzx edx, byte [esi]
inc esi
xor dl, al
shr eax, 8
movzx edx, dl
mov ebx, dword [edx*4 + 0x4f2060]
xor eax, ebx
cmp esi, ecx
jne 0x412c30
pop ebx
not eax
pop esi
pop edi
pop ebp
ret
pop ebx
mov eax, ebp
pop esi
pop edi
pop ebp
ret
Function at 0x41f0a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x2c
mov dword [esp + 0x1c], ecx
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
mov dword [esp], ebx
mov eax, dword [ebp*4 + 0x4b52e8]
mov dword [esp + 4], eax
call edi
test eax, eax
je 0x41f0e8
inc ebp
cmp ebp, 6
jne 0x41f0b7
mov byte [esp + 0x14], 0
movzx eax, byte [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp + ebp*2]
mov edx, dword [eax*4 + 0x4f24e4]
lea edi, [eax*4]
cmp dword [eax*4 + 0x4f24e0], edx
je 0x41f0d1
mov byte [esp + 0x1a], 0
mov eax, dword [esp + 0x1c]
test eax, eax
setne byte [esp + 0x1b]
xor ebp, ebp
jmp 0x41f17c
mov edx, dword [edi + 0x4f24e0]
lea eax, [edi + 0x4f24e0]
mov ebx, 0x3fffffff
mov dword [esp + 0x14], eax
lea eax, [ebp + ebp*2]
mov ecx, ebx
sub ecx, dword [esi + 4]
lea edx, [edx + eax*8]
mov eax, dword [edx + 4]
mov edx, dword [edx]
cmp ecx, eax
jb 0x41f236
mov dword [esp], edx
mov ecx, esi
inc ebp
mov dword [esp + 4], eax
call fcn.00498eb0
mov edx, dword [edi + 0x4f24e0]
sub esp, 8
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
sub eax, edx
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp ebp, eax
jae 0x41f1d0
movzx ebx, byte [esp + 0x1a]
mov ecx, dword [esi + 4]
xor bl, 1
and bl, byte [esp + 0x1b]
je 0x41f120
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ecx, dword [esp + 0x14]
mov edx, 0x3fffffff
sub edx, ecx
cmp edx, eax
jb 0x41f236
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov dword [esp], eax
call fcn.00498eb0
sub esp, 8
mov byte [esp + 0x1a], bl
jmp 0x41f120
mov ecx, dword [esp + 0x40]
test ecx, ecx
setne al
and al, byte [esp + 0x1a]
mov byte [esp + 0x14], al
je 0x41f220
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, dword [esi + 4]
sub ebx, edx
cmp ebx, eax
jb 0x41f236
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov ecx, esi
mov dword [esp], eax
call fcn.00498eb0
sub esp, 8
movzx eax, byte [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [esp + 0x1a]
mov byte [esp + 0x14], al
movzx eax, byte [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x4b4ac0
call fcn.004a64e4
lea esi, [esi]
lea esi, [esi]
Function at 0x4204a0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x28], edi
mov eax, edi
mov dword [esp + 0x2c], ebp
mov edx, ebp
not eax
not edx
or eax, edx
jne 0x4204d5
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x28], eax
sar eax, 0x1f
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x28]
mov eax, 0x7fffffff
mov ebp, dword [esp + 0x2c]
cmp eax, edi
mov eax, 0
sbb eax, ebp
mov esi, edi
mov al, 0
jae 0x420500
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, ebp
mov edi, ebp
or eax, esi
je 0x4205cf
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x24], eax
nop
xor eax, eax
mov edx, 0x100000
cmp edx, esi
mov ecx, eax
sbb ecx, edi
mov ecx, dword [esp + 0x1c]
cmovae eax, edi
cmovae edx, esi
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov dword [esp + 0x10], edx
mov dword [esp + 4], edx
mov dword [esp], ecx
mov ecx, ebx
call dword [eax + 0x10]
sub esp, 8
mov ebp, eax
mov dword [esp], ebp
mov edx, dword [esp + 0x50]
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 8], edx
call sub.msvcrt.dll_fwrite
xor edx, edx
mov ecx, ebx
add dword [esp + 0x20], eax
mov eax, dword [ebx]
mov dword [esp], ebp
adc dword [esp + 0x24], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 4], edx
call dword [eax + 0x18]
sub esp, 8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub esi, eax
sbb edi, edx
add dword [esp + 0x1c], eax
mov eax, edi
or eax, esi
jne 0x420520
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
xor edx, ebx
xor eax, ecx
or eax, edx
sete al
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jmp 0x4205ac
Function at 0x420b50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
mov dword [esp + 0x430], ebx
mov eax, dword [ecx + 8]
mov ebx, ecx
mov dword [esp + 0x434], esi
mov esi, dword [esp + 0x440]
mov dword [esp + 0x438], edi
test eax, eax
je 0x420b87
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 8], 0
mov eax, dword [ebx + 4]
mov dword [ebx + 0x10], esi
cmp eax, 0xffffffff
je 0x420bf8
cmp dword [ebx + 0x14], 1
mov dword [esp + 0x10], esi
mov dword [esp], eax
sbb edx, edx
xor ecx, ecx
and edx, 2
xor edi, edi
mov dword [esp + 0x14], edi
add edx, 2
xor esi, esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx + 8], eax
sub esp, 0x18
test eax, eax
je 0x420ce0
mov ebx, dword [esp + 0x430]
mov esi, dword [esp + 0x434]
mov edi, dword [esp + 0x438]
add esp, 0x43c
ret 4
mov edi, 0x4b5520
mov dword [esp + 4], edi
lea edi, [esp + 0x20]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
sub esp, 8
mov dword [esp + 8], eax
lea esi, [esp + 0x228]
mov eax, 0x4b5524
mov dword [esp], edi
mov edi, 0xc0000000
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor eax, eax
xor edx, edx
xor ecx, ecx
sub esp, 0x10
mov dword [esp + 0x18], eax
mov eax, 0xc000100
mov dword [esp + 0x14], eax
mov eax, 2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 4], eax
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x420c90
mov dword [ebx + 0x18], 1
mov esi, dword [ebx + 0x10]
jmp 0x420b99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], esi
mov dword [esp], 0x4b552c
mov dword [esp + 8], eax
call fcn.00488c90
mov eax, dword [ebx + 4]
mov dword [ebx + 0x18], 1
cmp eax, 0xffffffff
jne 0x420c7f
mov edx, dword [ebx + 8]
test edx, edx
jne 0x420bd6
mov eax, dword [0x4aa580]
test eax, eax
jne 0x420d10
call fcn.0041ee70
jmp 0x420bd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 8], eax
xor eax, eax
mov ecx, dword [ebx + 0x14]
mov dword [esp], str._nCreateFileMapping_RO:_d__Size:_d___0x_x_n
test ecx, ecx
setne al
mov dword [esp + 4], eax
call fcn.00488c90
jmp 0x420cb9
mov eax, dword [ebx + 0x10]
mov dword [esp], str._nInternal_compiler_error_12345:_error_creating_mmap_the_size_of__d._n
mov dword [esp + 4], eax
call fcn.00488c90
jmp 0x420ccd
Function at 0x420db0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x3c
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebp
test esi, esi
je 0x420ee0
mov eax, dword [ecx + 0xc]
mov ebx, ecx
test eax, eax
je 0x420dfb
mov dword [esp], str._m_pView
mov ebp, 0x165
mov eax, str.Sourcemmap.cpp
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
call dword [0x4aa7c4]
mov eax, dword [ebx + 0x10]
mov esi, dword [esi]
test eax, eax
jne 0x420e78
mov ecx, dword [0x4aa580]
test ecx, ecx
jne 0x420ea8
call fcn.0041ee70
mov eax, edi
cdq
idiv dword [0x4f2540]
add esi, edx
sub edi, edx
cmp dword [ebx + 0x14], 1
mov ebp, edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
sbb eax, eax
xor edx, edx
mov dword [esp + 8], edx
and eax, 0xfffffffe
add eax, 4
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 0xc], eax
sub esp, 0x14
test eax, eax
je 0x420e90
add eax, ebp
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
add esp, 0x3c
ret 8
lea edx, [esi + edi]
cmp eax, edx
jge 0x420e17
mov ecx, dword [0x4aa580]
test ecx, ecx
je 0x420e12
jmp 0x420ea8
mov eax, dword [0x4aa580]
test eax, eax
jne 0x420ec8
call fcn.0041ee70
mov eax, dword [ebx + 0xc]
jmp 0x420e5a
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], str._nInternal_compiler_error_12345:_error_mmapping_file___d___d__is_out_of_range._n
call fcn.00488c90
jmp 0x420e12
mov dword [esp + 4], esi
mov dword [esp], str._nInternal_compiler_error_12345:_error_mmapping_datablock_to__d._n
call fcn.00488c90
jmp 0x420e99
xor eax, eax
jmp 0x420e5c

Function at 0x420f20
Capabilities:
Get system information on windows

Disassembly:
mov dword [ecx], 0x4ce168
mov eax, dword [0x4f2540]
mov dword [ecx + 4], 0xffffffff
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
test eax, eax
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
je 0x420f60
ret
sub esp, 0x4c
lea eax, [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
sub esp, 4
mov eax, dword [esp + 0x38]
mov dword [0x4f2540], eax
add esp, 0x4c
ret
Function at 0x4240e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp word [eax], 0x5a4d
jne 0x4a4810
mov ecx, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4a487a
mov edx, dword [eax + 0x18]
sub edx, 0x10b
and edx, 0xfeff
jne 0x4a4845
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], 8
call fcn.004a2290
mov dword [esp], str.PE_file_contains_invalid_DOS_header
mov ecx, eax
mov ebx, eax
call fcn.00495130
push esi
mov dword [esp + 8], fcn.00495290
mov dword [esp + 4], 0x4cd1cc
mov dword [esp], ebx
call fcn.004a2820
mov dword [esp], 8
call fcn.004a2290
mov dword [esp], str.Unsupported_PE_format
mov ecx, eax
mov ebx, eax
call fcn.00495130
push eax
mov dword [esp + 8], fcn.00495290
mov dword [esp + 4], 0x4cd1cc
mov dword [esp], ebx
call fcn.004a2820
mov dword [esp], 8
call fcn.004a2290
mov dword [esp], str.PE_file_missing_NT_signature
mov ecx, eax
mov ebx, eax
call fcn.00495130
push edx
mov dword [esp + 8], fcn.00495290
mov dword [esp + 4], 0x4cd1cc
mov dword [esp], ebx
call fcn.004a2820
mov dword [esp], ebx
mov esi, eax
call fcn.004a2510
mov dword [esp], esi
call fcn.00471810
mov dword [esp], ebx
mov esi, eax
call fcn.004a2510
mov dword [esp], esi
call fcn.00471810
mov dword [esp], ebx
mov esi, eax
call fcn.004a2510
mov dword [esp], esi
call fcn.00471810
nop
mov dword [esp], 8
call fcn.004a2290
mov dword [esp], str.Invalid_resource_section_pointer
mov ecx, eax
mov ebx, eax
call fcn.00495130
push eax
mov dword [esp + 8], fcn.00495290
mov dword [esp + 4], 0x4cd1cc
mov dword [esp], ebx
call fcn.004a2820
mov dword [esp], 8
call fcn.004a2290
mov dword [esp], str.Invalid_section_pointer
mov ecx, eax
mov ebx, eax
call fcn.00495130
push eax
mov dword [esp + 8], fcn.00495290
mov dword [esp + 4], 0x4cd1cc
mov dword [esp], ebx
call fcn.004a2820
mov dword [esp], ebx
mov esi, eax
call fcn.004a2510
mov dword [esp], esi
call fcn.00471810
mov dword [esp], ebx
mov esi, eax
call fcn.004a2510
mov dword [esp], esi
call fcn.00471810
mov dword [esp], 8
call fcn.004a2290
mov dword [esp], str.No_resource_section_found
mov ecx, eax
mov ebx, eax
call fcn.00495130
push eax
mov dword [esp + 8], fcn.00495290
mov dword [esp + 4], 0x4cd1cc
mov dword [esp], ebx
call fcn.004a2820
push edi
mov dword [esp + 8], fcn.00495290
mov dword [esp + 4], 0x4cd1cc
mov dword [esp], ebx
call fcn.004a2820
mov dword [esp], ebx
mov esi, eax
call fcn.004a2510
mov dword [esp], esi
call fcn.00471810
mov dword [esp], ebx
call fcn.004a2510
mov dword [esp], esi
call fcn.00471810
mov dword [esp], 8
call fcn.004a2290
mov dword [esp], str.Cant_get_resource_data_when_bKeepData_is_false
mov ecx, eax
mov ebx, eax
call fcn.00495130
push eax
mov dword [esp + 8], fcn.00495290
mov dword [esp + 4], 0x4cd1cc
mov dword [esp], ebx
call fcn.004a2820
mov dword [esp], ebx
mov esi, eax
call fcn.004a2510
mov dword [esp], esi
call fcn.00471810
nop
mov eax, dword [4]
ud2