joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c5c0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x504c94]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
push esi
push edi
push 0x48
push eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
push eax
call fcn.004ac220
add esp, 0xc
mov ecx, 8
mov esi, 0x4efdb8
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push 0x40
xor edi, edi
lea ecx, [ebp - 0x4c]
push edi
push ecx
call fcn.004ac220
mov ecx, dword [ebp + 8]
mov esi, dword [ecx - 0xc]
add esp, 0xc
cmp dword [ecx - 4], 1
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
jle 0x47c638
mov edx, esi
push edx
lea ecx, [ebp + 8]
call fcn.00424bd2
mov ecx, dword [ebp + 8]
mov eax, esi
lea esi, [ebp - 0x74]
call fcn.0047c280
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004af75f
add esp, 8
cmp eax, edi
jl 0x47c6a0
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x47c6a0
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 8]
push ebx
mov byte [eax + ecx], 0
call fcn.0047c360
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47c690
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004aaf83
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00421000
int3

Function at 0x47c6b0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov eax, 0x400000
cmp edi, ebx
ja 0x47c6d6
jb 0x47c6ce
cmp dword [ebp + 0xc], eax
jae 0x47c6d6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], edi
jmp 0x47c6d9
mov dword [ebp - 4], ebx
push eax
mov eax, dword [ebp + 8]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
cmp ecx, ebx
jne 0x47c6f7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x47c738
mov esi, dword [ecx + 0x3c]
mov eax, esi
cdq
cmp edx, edi
ja 0x47c738
jb 0x47c712
cmp eax, dword [ebp + 0xc]
jae 0x47c738
cmp dword [esi + ecx], 0x4550
jne 0x47c738
mov edx, dword [esi + ecx + 0x54]
add edx, dword [esi + ecx + 0x24]
mov eax, dword [ebp + 0x14]
add edx, dword [esi + ecx + 0x20]
add edx, dword [esi + ecx + 0x1c]
mov dword [eax + 4], ebx
mov dword [eax], edx
mov ebx, 1
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47c750
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbb30
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x504c94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str.PeContainer
call fcn.004643c0
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push str.PeContainer:
push edx
call fcn.004236c3
push 0x4da15c
mov byte [ebp - 4], 1
call fcn.004ab8ea
add esp, 0x18
push eax
push 0x4da15c
lea ecx, [ebp - 0x10]
call fcn.00424437
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c7e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c80c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x47d080
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x28]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 4]
xor edi, edi
push ecx
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], edx
mov edx, dword [esi]
push ecx
push edx
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47d0d3
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47d0f7
or ecx, eax
or eax, eax
jmp 0x47d0fe
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov eax, edx
push edi
mov edx, ecx
push edx
push eax
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 0x10], edi
mov dword [esi + 8], ecx
mov ecx, dword [esi]
setne al
lea eax, [eax + eax + 2]
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x47d350
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [edi + 0x7c]
cmp dword [edi + 0x78], ebx
push esi
lea esi, [edi + 0x6c]
jbe 0x47d368
call fcn.004aba61
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [esi + 0x10]
jbe 0x47d380
call fcn.004aba61
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
push ebx
push edx
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0047fb90
xor ebx, ebx
cmp dword [edi + 0x10], ebx
je 0x47d3a7
mov ecx, dword [edi + 0x88]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x47d3b7
push eax
call esi
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x88]
push ebx
push ebx
neg edx
push 3
sbb edx, edx
push ebx
and edx, 0x40000000
push 3
add edx, 0x80000000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x47d492
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47d40c
or eax, eax
or ecx, 0xffffffff
jmp 0x47d40f
mov ecx, dword [ebp - 8]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
mov dword [edi + 0xc], ecx
cmp eax, ebx
je 0x47d426
push eax
call esi
mov dword [edi + 4], 0xffffffff
mov eax, dword [edi + 0x28]
cmp eax, ebx
je 0x47d437
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi + 0x28], ebx
mov edx, dword [edi + 8]
push ebx
push edx
mov eax, edx
mov edx, dword [edi + 0xc]
mov cl, 0x20
call fcn.004c2a60
mov ecx, dword [edi]
push eax
xor eax, eax
cmp dword [edi + 0x10], ebx
setne al
lea eax, [eax + eax + 2]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 4], eax
cmp eax, ebx
jne 0x47d474
mov eax, 9
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [edi + 0x18]
cmp dword [ebp + 8], ebx
je 0x47d49f
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push esi
push edx
push ecx
push eax
call fcn.0047c6b0
add esp, 0x10
test eax, eax
jne 0x47d4a4
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov edx, dword [edi + 0xc]
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
cmp edx, dword [esi + 4]
jb 0x47d4e5
ja 0x47d4c7
mov eax, dword [edi + 8]
cmp eax, dword [esi]
jbe 0x47d4e5
mov ecx, edi
call fcn.0047dae0
test eax, eax
jne 0x47d4e5
cmp dword [edi + 0x10], ebx
je 0x47d4e5
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
mov esi, edi
call fcn.0047d080
pop esi
mov dword [edi + 0x40], ebx
mov dword [edi + 0x84], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47f6f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47f74c
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f740
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47f766
or eax, eax
or ecx, 0xffffffff
jmp 0x47f769
mov ecx, dword [ebp - 4]
push ebx
push eax
push ecx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, ebx
jne 0x47f783
mov ebx, 8
jmp 0x47f7fb
lea edx, [ebp - 4]
push edx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47f79d
or eax, eax
or ecx, 0xffffffff
jmp 0x47f7a0
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push ecx
push eax
push edi
call fcn.0047c6b0
add esp, 0x10
test eax, eax
je 0x47f7ef
mov ebx, dword [ebp - 0x10]
mov eax, ebx
or eax, dword [ebp - 0xc]
je 0x47f7ef
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp - 8]
push edx
push ebx
push esi
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47f7e4
mov ebx, 0xc
jmp 0x47f7fb
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
jmp 0x47f7fb
push edi
mov ebx, 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f821
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4807c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccfa8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x504c94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x48082c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push edx
push str.OpenWrite__s_:_error_opening__LE_d
push ecx
call fcn.00466a00
add esp, 0x10
jmp 0x48093b
push ebx
lea ecx, [ebp - 0x10]
push ecx
push 8
lea edi, [esi + 0x14]
push edi
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x480918
cmp dword [ebp - 0x10], 8
jne 0x480918
mov edx, dword [edi]
push edx
call fcn.004805f0
add esp, 4
push ecx
mov dword [esi + 0x10], eax
mov dword [ebp - 0x1c], esp
cmp eax, ebx
jne 0x4808a1
mov ecx, dword [ebp + 8]
mov eax, esp
push ecx
push str._OpenWrite__s_:_unknown_encoder_
push eax
call fcn.00466a00
add esp, 0xc
call fcn.004806d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x48095a
mov edx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov ecx, esp
push edx
push eax
push str.OpenWrite__s_:__s_encoding
push ecx
call fcn.00466a00
add esp, 0x10
call fcn.004806d0
mov edx, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [esi + 0xc], ecx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x480900
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov eax, dword [ebp + 8]
push edx
push eax
push str.OpenWrite__s_:_cant_read_header__Read_only__d_bytes__LE_d
push ecx
call fcn.00466a00
add esp, 0x14
call fcn.004806d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x480966
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x480c00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdd18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x504c94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
push 0x120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x480caa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
push edx
push str.AddFileName:_cannot_open__s__LE_d
push ecx
call fcn.00466a00
add esp, 0x10
call fcn.004806d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x480c94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x10]
push ecx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp - 0x10]
cmp esi, ebx
mov dword [ebp - 0x18], eax
jl 0x480d2f
jg 0x480ccb
cmp eax, ebx
jbe 0x480d2f
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x480d0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, esp
mov dword [ebp + 0x14], esp
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.AddFileName:_cannot_map__s__LE_d
push edx
call fcn.00466a00
add esp, 0x10
call fcn.004806d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x480c6e
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push ecx
push edx
push eax
push ebx
call fcn.00480980
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x480d58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
push edx
push str.AddFileName:_adding_0_bytes_file__s__LE_d
push ecx
call fcn.00466a00
add esp, 0x10
call fcn.004806d0
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x480d85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x484e90
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push str.ntdll.dll
call esi
mov edi, eax
test edi, edi
je 0x484f29
push str.GetFinalPathNameByHandleW
push str.Kernel32.dll
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.NtQueryObject
push edi
mov dword [0x509eb0], eax
call esi
push str.NtOpenSymbolicLinkObject
push edi
mov dword [0x509ee4], eax
call esi
push str.NtQuerySymbolicLinkObject
push edi
mov dword [0x509ee8], eax
call esi
push str.ZwClose
push edi
mov dword [0x509eec], eax
call esi
push 0x68
push 0xff
push 0x50a288
mov dword [0x509ee0], eax
call fcn.004ac220
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0xc
push 0x50a270
call esi
push 0x50a254
call esi
mov dword [0x509eac], 1
pop edi
pop esi
ret
Function at 0x486e00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9518
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x504c94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jbe 0x486ea1
push esi
call fcn.0049cb24
mov edi, eax
add esp, 4
test edi, edi
je 0x486ea1
mov edx, dword [ebp + 8]
push edi
push esi
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x486e98
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486e85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.0049cb19
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486ec7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x488d90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cccfa
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x504c94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push 0x4f1d6c
xor esi, esi
push eax
mov dword [ebp - 0x18], esi
call fcn.004b013d
mov ebx, eax
add esp, 8
cmp ebx, esi
jne 0x488df8
mov ecx, dword [0x50a358]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
cmp ecx, esi
je 0x488de6
inc dword [ecx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push esi
push ebx
call fcn.004b08c1
add esp, 0xc
push ebx
call fcn.004b0792
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], esi
cmp edi, esi
jne 0x488e49
push ebx
call fcn.004b09bd
mov edx, dword [0x50a358]
mov eax, dword [ebp + 8]
mov ecx, edx
add esp, 4
mov dword [eax], edx
cmp ecx, esi
je 0x488f69
inc dword [ecx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push esi
push ebx
call fcn.004b08c1
lea eax, [edi + 4]
add esp, 0xc
push eax
call fcn.004ac152
add esp, 4
push ebx
push edi
mov esi, eax
push 1
push esi
call fcn.004b03f4
push ebx
mov edi, eax
call fcn.004b09bd
add esp, 0x14
push 0
push edi
push esi
mov byte [esi + edi], 0
mov byte [esi + edi + 1], 0
mov byte [esi + edi + 2], 0
mov byte [esi + edi + 3], 0
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test al, al
jne 0x488edb
cmp byte [esi], 0xef
mov eax, 2
jne 0x488eb6
cmp byte [esi + 1], 0xbb
jne 0x488eb6
cmp byte [esi + 2], 0xbf
jne 0x488eb6
lea ecx, [eax + 1]
lea eax, [ecx - 2]
jmp 0x488eb9
mov ecx, dword [ebp - 0x10]
push eax
lea ebx, [esi + ecx]
call fcn.00487520
add esp, 4
push esi
mov edi, eax
call fcn.004ac035
add esp, 4
mov esi, edi
mov dword [ebp - 0x10], 0
jmp 0x488eff
mov al, byte [esi]
cmp al, 0xef
jne 0x488eee
cmp byte [esi + 1], 0xff
jne 0x488eee
mov dword [ebp - 0x10], 2
cmp al, 0xff
jne 0x488eff
cmp byte [esi + 1], 0xfe
jne 0x488eff
mov dword [ebp - 0x10], 2
test esi, esi
jne 0x488f27
mov ecx, dword [0x50a358]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test ecx, ecx
je 0x488f69
inc dword [ecx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0
lea ecx, [esi + edx]
push eax
call fcn.00488bb0
push esi
call fcn.004ac035
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
add esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x488f50
inc dword [eax + 0x30]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x18], 1
call fcn.00489600
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48a840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 8]
sub esp, 8
test eax, eax
je 0x48a933
mov ecx, dword [edi + 0x10]
push ebx
push esi
push 1
push ecx
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx edx, word [edi]
mov eax, dword [edi + 4]
push 5
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, esi
mov dword [ebp - 8], esi
call fcn.0048a260
mov ebx, eax
mov eax, esi
mov dword [ebp - 4], 0
call fcn.0048a240
xor edx, edx
cmp dx, word [eax]
jae 0x48a91c
mov esi, dword [ebp - 8]
lea ebx, [ebx]
cmp dword [ebp - 4], 0
jne 0x48a8be
mov eax, dword [edi + 8]
push 5
push eax
jmp 0x48a8c1
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x48a91c
lea ecx, [ecx]
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, dword [ebx + 0x14]
je 0x48a8ed
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x48a8d0
jmp 0x48a91c
test esi, esi
je 0x48a91c
mov ecx, dword [edi + 0x10]
push 1
push ecx
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, ebx
call fcn.0048a300
inc dword [ebp - 4]
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.0048a240
movzx edx, word [eax]
cmp dword [ebp - 4], edx
jl 0x48a8b0
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
pop esi
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov esp, ebp
pop ebp
ret