joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f4d60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61bf60
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6e377c]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov eax, dword [0x6e377c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [0x63dcd0]
mov esi, dword [esp + 0x50]
push eax
push 0
mov edi, ecx
push 0x645548
lea ecx, [esp + 0x18]
call fcn.0050fcd0
mov dword [esp + 0x48], 0
mov dword [esp + 0x14], vtable.wxConvAuto.0
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call fcn.00534a70
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 3
call fcn.00527980
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x48], 4
cmp eax, 0xffffffff
je 0x5f4e0b
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5f4e0b
call fcn.0050ec00
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
call fcn.00534b00
lea ecx, [edi + 0xc]
push eax
mov byte [esp + 0x4c], 5
call fcn.0050f610
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x48], 4
cmp eax, 0xffffffff
je 0x5f4e47
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5f4e47
call fcn.0050ec00
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], 0xffffffff
call fcn.00534620
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005bae23
add esp, 0x40
ret 4

Function at 0x5f5310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61bfa8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x6e377c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x63dcd0]
push eax
push 0
push 0x63ec20
lea ecx, [esp + 0x14]
call fcn.0050fcd0
mov edx, dword [esp + 0x38]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0
call fcn.0052e6c0
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x30], 2
cmp eax, 0xffffffff
je 0x5f5389
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5f5389
call fcn.0050ec00
lea ecx, [esp + 0xc]
call fcn.0052e4b0
test al, al
je 0x5f53ea
add esi, 0xc
lea esp, [esp]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x10]
call fcn.0052e590
push 1
push eax
mov ecx, esi
mov byte [esp + 0x38], 3
call fcn.00510030
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x30], 2
cmp eax, 0xffffffff
je 0x5f53dd
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5f53dd
call fcn.0050ec00
lea ecx, [esp + 0xc]
call fcn.0052e4b0
test al, al
jne 0x5f53a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00554f90
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 4
Function at 0x5fa150
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x5fa2fa
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x5fa1a8
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x5fa1bb
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x5fa1cf
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x5fa216.3
jmp 0x5fa1e0
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x5fa1ec
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x5fa1f1
mov esi, 1
inc eax
cmp eax, edi
jl 0x5fa1e0
cmp si, cx
je case.0x5fa216.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x5fa216.3
movzx eax, byte [eax + 0x5fa314]
jmp dword [eax*4 + 0x5fa300]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x5fa216.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x5fa230
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x5fa216.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x5fa270
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x5fa216.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x5fa296
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x5fa216.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, pe_nt_image_headers32
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x5fa2c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x600c00
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [0x6e377c]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
cmp eax, 3
jne 0x600c8a
movzx eax, word [esi + 0x118]
test ax, ax
jne 0x600c36
test byte [esi + 0x230], 1
jne 0x600c5e
movzx cx, byte [edi]
cmp cx, ax
jbe 0x600c5e
push str.Invalid_background_palette_index
push esi
call fcn.005fe9f0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.005bae23
add esp, 0xc
ret
mov dl, byte [edi]
push 1
lea eax, [esp + 0xc]
push eax
push str.bKGD
push esi
mov byte [esp + 0x18], dl
call fcn.005ffde0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.005bae23
add esp, 0xc
ret
test al, 2
je 0x600d1e
movzx ecx, word [edi + 2]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.005fedf0
movzx eax, word [edi + 4]
push eax
lea ecx, [esp + 0x16]
push ecx
call fcn.005fedf0
movzx edx, word [edi + 6]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.005fedf0
add esp, 0x18
cmp byte [esi + 0x127], 8
jne 0x600cf8
mov cl, byte [esp + 0xc]
or cl, byte [esp + 0xa]
or cl, byte [esp + 8]
je 0x600cf8
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push esi
call fcn.005fe9f0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.005bae23
add esp, 0xc
ret
push 6
lea edx, [esp + 0xc]
push edx
push str.bKGD
push esi
call fcn.005ffde0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.005bae23
add esp, 0xc
ret
mov cl, byte [esi + 0x127]
movzx eax, word [edi + 8]
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x600d52
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.005fe9f0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.005bae23
add esp, 0xc
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.005fedf0
push 2
lea ecx, [esp + 0x14]
push ecx
push str.bKGD
push esi
call fcn.005ffde0
mov ecx, dword [esp + 0x28]
add esp, 0x18
pop edi
pop esi
xor ecx, esp
call fcn.005bae23
add esp, 0xc
ret
Function at 0x6080e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x60815e
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.005b74a0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x608131
sub eax, ebx
jmp 0x608133
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x608122
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x608152
sub eax, ebx
jmp 0x608154
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x608143
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x6081b9
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.00607de0
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x6081a5
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x6081b9
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x6080e6
pop esi
pop ebp
pop ebx
ret
Function at 0x100014c0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
push 0
push 0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10001521
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.BavAs:_CreateFile_Failed__Error_Code:__d
push 4
push 0x15
push 0x1008d12c
call dword [sym.imp.log.dll_WriteLog]
add esp, 0x14
xor eax, eax
jmp 0x10001602
mov dword [ebp - 8], 0
xor edx, edx
mov dword [ebp - 4], edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10001545
cmp dword [ebp - 4], 0
jle 0x10001556
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10001602
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
push 0
push 0
push 0
push 2
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
jne 0x100015a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.BavAs:_CreateFileMapping_Failed__Error_Code:__d
push 4
push 0x29
push 0x1008d1f8
call dword [sym.imp.log.dll_WriteLog]
add esp, 0x14
xor eax, eax
jmp 0x10001602
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 4], 0
jne 0x100015fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.BavAs:_MapViewOfFile_Failed__Error_Code:__d
push 4
push 0x32
push 0x1008d268
call dword [sym.imp.log.dll_WriteLog]
add esp, 0x14
xor eax, eax
jmp 0x10001602
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x100019e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085f00
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100934c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x10001b77
mov ecx, dword [ebp - 0x2c]
add ecx, 4
push ecx
lea ecx, [ebp - 0x14]
call fcn.100013a0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0xc], 0xffffffff
je 0x10001a3d
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0xc], 0
jne 0x10001a58
mov byte [ebp - 0x25], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10001e10
mov al, byte [ebp - 0x25]
jmp 0x10001b99
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
push ecx
lea ecx, [ebp - 0x1c]
call fcn.100013a0
mov byte [ebp - 4], 1
movzx edx, byte [ebp + 8]
test edx, edx
je 0x10001b5c
cmp dword [ebp + 0xc], 0
jne 0x10001a88
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x30], ecx
jmp 0x10001a8e
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ecx + 8]
jbe 0x10001aaa
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x34], ecx
jmp 0x10001ab0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10001af3
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x10001b4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.BavAs:_WriteFile_Failed__Error_Code:__d
push 4
push 0xa9
push 0x1008d428
call dword [sym.imp.log.dll_WriteLog]
add esp, 0x14
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0xc], 0xffffffff
mov byte [ebp - 0x26], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100013c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10001e10
mov al, byte [ebp - 0x26]
jmp 0x10001b99
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100013c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10001e10
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0xc], 0xffffffff
je 0x10001b97
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0xc], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x10024e30
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10092080
push 0x1007c8b0
mov eax, dword fs:[0]
push eax
add esp, 0xfffffeb4
mov eax, dword [0x100934c8]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0x2000000
jb 0x10024f62
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0x3000000
jae 0x10024f62
mov edx, dword [ebp + 8]
mov eax, dword [edx]
and eax, 1
je 0x10024ea3
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
jne 0x10024ed9
push str.BavAs:_DisInfecting_Error__Parameter_lpFileName_is_NULL
push 4
push 0x80
push str...BavAsBavAs.cpp
call dword [sym.imp.log.dll_WriteLog]
add esp, 0x10
mov dword [ebp - 0x148], 0x31000000
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x148]
jmp 0x100250a0
mov dword [ebp - 0x1c], 0x31000000
push 0x80
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x20], 0
jmp 0x10024f04
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp dword [edx*8 + 0x100ab994], 0
je 0x10024f42
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov edx, dword [eax*8 + 0x100ab990]
cmp edx, dword [ecx + 0xc]
je 0x10024f25
jmp 0x10024efb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx*8 + 0x100ab994]
call eax
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x10024f42
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x14c]
jmp 0x100250a0
push 0x80
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.10054b60
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x138], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 1
je 0x10024fb6
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x13c]
call fcn.100553b0
mov dword [ebp - 0x140], eax
jmp 0x10024fdc
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x13c]
call fcn.10055940
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
jge 0x10025003
mov dword [ebp - 0x150], 0x31000000
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x150]
jmp 0x100250a0
cmp dword [ebp - 0x140], 0x20000002
jne 0x1002501b
mov dword [ebp - 0x154], 0x1000005
jmp 0x10025039
xor ecx, ecx
cmp dword [ebp - 0x140], 0x20000001
setne cl
sub ecx, 1
and ecx, 0x1000004
mov dword [ebp - 0x154], ecx
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x158], edx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x158]
jmp 0x100250a0
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.10079e7c
mov esp, ebp
pop ebp
ret
Function at 0x100250c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
push 0
push 3
push 0
push 7
push 0x80000000
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x100250f2
xor eax, eax
jmp 0x10025190
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1002510a
cmp dword [ebp - 0x14], 0
jle 0x10025118
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10025190
push 0
push 0
push 0
push 8
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x10025143
xor eax, eax
jmp 0x10025190
push 0
push 0
push 0
push 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jne 0x1002516c
xor eax, eax
jmp 0x10025190
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.100249d0
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x10025510
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x2a98
call fcn.10002370
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x10025543
xor al, al
jmp 0x100256c0
mov ecx, dword [ebp - 0xc]
add ecx, 0x2a98
call fcn.100030e0
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 8], 0
jne 0x10025567
xor al, al
jmp 0x100256c0
mov ecx, dword [ebp - 0xc]
add ecx, 0x2a98
call fcn.10003000
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x2a98
call fcn.10003040
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x2a98
call fcn.10003060
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x2a98
call fcn.10054a10
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x30f0], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 0x30f0]
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
movzx eax, word [edx + 6]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x18], eax
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 8]
sub ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x2a98
call fcn.10003240
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1c], 0xffffffff
je 0x1002561a
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
add edx, 5
mov eax, dword [ebp - 0xc]
cmp edx, dword [eax + 4]
jbe 0x10025621
xor al, al
jmp 0x100256c0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 8]
sub eax, dword [edx]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x2a98
call fcn.10002ec0
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x20], 0
jne 0x1002564e
xor al, al
jmp 0x100256c0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x18]
sub ecx, 1
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x24], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x335c], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x3358], ecx
mov byte [ebp - 5], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
cmp dword [edx*4 + 0x100ac318], 0
je 0x100256bd
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax*4 + 0x100ac318]
call edx
mov byte [ebp - 5], al
movzx eax, byte [ebp - 5]
test eax, eax
je 0x100256b2
jmp 0x100256bd
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x10025689
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10042000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0x40
jae 0x1004201a
mov eax, 0xa0000001
jmp 0x100420f6
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ecx + 0x30], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x1004205a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
cmp ecx, dword [edx + 0x3c]
jb 0x1004205a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
mov ecx, dword [eax + 0x3c]
add ecx, 0x18
mov edx, dword [ebp - 4]
cmp dword [edx + 4], ecx
jae 0x10042064
mov eax, 0xa0000001
jmp 0x100420f6
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ecx + 0x3c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
cmp dword [eax], 0x4550
je 0x1004208d
mov eax, 0xa0000001
jmp 0x100420f6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x34]
movzx eax, word [edx + 4]
cmp eax, 0x8664
je 0x100420c0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x34]
movzx eax, word [edx + 4]
cmp eax, 0x200
je 0x100420c0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x34]
movzx eax, word [edx + 4]
cmp eax, 0x284
jne 0x100420dd
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 4]
call fcn.100423f0
jmp 0x100420f6
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 4]
call fcn.10042100
mov esp, ebp
pop ebp
ret