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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c5b62
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c3be1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c3bb9
jmp 0x4c5b6e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c721c
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 0x4c725e
call fcn.004cd0d8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c725e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c7255
xor eax, eax
jmp 0x4c7266
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c726c
pop edi
pop esi
pop ebx
ret 4

Function at 0x4cd608
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 0x4cd636
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4cd654
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cd56e
jmp 0x4cd654
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4cd654
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cd56e
test edi, edi
mov eax, edi
jne 0x4cd63e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x122116d1
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
cmp dword [ebp + 8], 0
jne 0x122116e5
xor eax, eax
jmp 0x1221179e
mov eax, dword [ebp + 8]
push eax
call fcn.122ca717
add esp, 4
add eax, 2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
call fcn.122ca698
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
shl eax, 1
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.122ca640
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.122cab54
add esp, 8
mov dword [ebp - 0x2c], 0
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 3
mov word [ebp - 0x1c], 0x414
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x12], 0
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x12211794
cmp dword [ebp - 0xc], 0x402
je 0x12211794
mov dword [ebp - 0x34], 0
jmp 0x1221179b
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x34]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1221ba82
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
jne 0x1221ba98
mov eax, reloc.WS2_32.dll_bind
jmp 0x1221bc66
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, 0x123af790
call fcn.1228e6f2
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1221baeb
mov ecx, dword [ebp + 0x10]
and ecx, 1
test ecx, ecx
je 0x1221baca
mov eax, reloc.WS2_32.dll_accept
jmp 0x1221bc66
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0x123af790
call fcn.1228e770
mov edx, dword [ebp - 0xc]
or edx, 1
mov dword [ebp - 0xc], edx
jmp 0x1221bb0f
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, 0x123af790
call fcn.1228e236
test eax, eax
jne 0x1221bb0f
mov eax, reloc.WS2_32.dll_closesocket
jmp 0x1221bc66
mov eax, dword [ebp + 0x10]
and eax, 0x100
test eax, eax
je 0x1221bc37
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.12295f28
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1221bb41
cmp dword [ebp - 0x14], 1
je 0x1221bb5b
push 1
call fcn.12295f97
add esp, 4
test eax, eax
jne 0x1221bb5b
mov edx, dword [ebp - 0xc]
or edx, reloc.WS2_32.dll_htonl
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
and eax, 0x1000
test eax, eax
je 0x1221bbf5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 1
call sym.TSandbox.dll_AddFileControlPolicyByProcessID
push 0x123ae6d0
lea ecx, [ebp - 0x20]
call fcn.122b55a0
mov edx, dword [ebp + 0xc]
push edx
push 0x1237d060
lea eax, [ebp - 0x20]
push eax
call fcn.122b8cc0
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.12212010
push eax
call fcn.12298d9f
add esp, 4
push 0x123ae6d4
lea ecx, [ebp - 0x1c]
call fcn.122b55a0
mov ecx, dword [ebp + 8]
push ecx
push str.HKEY_USERSTSandbox__s
lea edx, [ebp - 0x1c]
push edx
call fcn.122b8cc0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.12212010
push eax
call fcn.12298eb8
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.122b5d40
lea ecx, [ebp - 0x20]
call fcn.122b5d40
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0x10]
and eax, 0x10000
test eax, eax
je 0x1221bc11
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0x10]
and edx, 0x20000
test edx, edx
je 0x1221bc26
mov eax, dword [ebp - 0x18]
or al, 2
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.12296051
add esp, 4
call fcn.12299e56
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1221bc63
mov eax, dword [ebp + 0xc]
push eax
call fcn.1221168a
add esp, 4
test eax, eax
jne 0x1221bc63
mov ecx, dword [ebp - 0xc]
or ecx, 8
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x12227b52
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jne 0x12227b63
xor eax, eax
jmp 0x12227b76
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.122bfbd0
add esp, 8
mov esp, ebp
pop ebp
ret 4

Function at 0x12227bf0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x123480b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.1221af20
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.1221af20
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.1221af20
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.1221af20
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.1221af20
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.1221af20
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.1221af20
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.1221af20
mov eax, dword [ebp - 0x10]
mov word [eax], 0
mov ecx, dword [ebp - 0x10]
mov word [ecx + 2], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x12246694
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push 4
push 0x12385ab0
mov ecx, dword [ebp + 8]
push ecx
call fcn.122caedc
add esp, 0xc
test eax, eax
je 0x122466e9
push 4
push 0x12385abc
mov edx, dword [ebp + 8]
push edx
call fcn.122caedc
add esp, 0xc
test eax, eax
je 0x122466e9
push 4
push 0x12385ac8
mov eax, dword [ebp + 8]
push eax
call fcn.122caedc
add esp, 0xc
test eax, eax
jne 0x122466f2
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
push edx
call fcn.122ca717
add esp, 4
cmp eax, 4
jb 0x122467ea
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 2]
cmp ecx, 0x3a
jne 0x122467ea
mov edx, dword [ebp - 4]
xor eax, eax
mov ax, word [edx + 4]
cmp eax, 0x5c
jne 0x122467ea
mov ecx, dword [0x12385ad4]
mov dword [ebp - 0x14], ecx
mov dx, word [0x12385ad8]
mov word [ebp - 0x10], dx
xor eax, eax
mov dword [ebp - 0xe], eax
mov word [ebp - 0xa], ax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx]
push edx
call fcn.122cb907
add esp, 4
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x122467ea
mov word [ebp - 0x424], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x422]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x42c], 0x208
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x14]
push eax
call sub.MPR.dll_WNetGetConnectionW
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x122467ea
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
lea edx, [ebp - 0x424]
push edx
push 0x12385adc
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.122cb88f
add esp, 0x14
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
jne 0x12246833
mov edx, dword [ebp - 4]
push edx
call fcn.122ca717
add esp, 4
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x430], eax
jbe 0x1224681c
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 0x430], ecx
mov edx, dword [ebp - 0x430]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.122ca6b1
add esp, 0xc
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1224e520
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
push edi
xor eax, eax
mov al, byte [0x123aeb08]
and eax, 1
test eax, eax
jne 0x1224e55e
mov cl, byte [0x123aeb08]
or cl, 1
mov byte [0x123aeb08], cl
mov ecx, 0x123aeb04
call fcn.1221af20
push 0x1224e72a
call fcn.122cae5b
add esp, 4
xor edx, edx
mov dl, byte [0x123aeb08]
and edx, 2
test edx, edx
jne 0x1224e590
mov al, byte [0x123aeb08]
or al, 2
mov byte [0x123aeb08], al
mov ecx, 0x123aeb00
call fcn.1221af20
push 0x1224e71b
call fcn.122cae5b
add esp, 4
mov ecx, 0x123aeb04
call fcn.12212020
test eax, eax
je 0x1224e6d7
mov word [ebp - 0x410], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x40e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x208
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x1224e6d7
push str.System32
lea edx, [ebp - 0x410]
push edx
call fcn.122cab2a
add esp, 8
mov word [ebp - 0xc44], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0xc42]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x208
lea eax, [ebp - 0xc44]
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.12246e6e
add esp, 0xc
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0
jne 0x1224e63f
lea edx, [ebp - 0xc44]
push edx
mov ecx, 0x123aeb04
call fcn.122b5fc0
mov eax, dword [0x12386f80]
mov dword [ebp - 0x830], eax
mov cx, word [0x12386f84]
mov word [ebp - 0x82c], cx
xor edx, edx
mov dword [ebp - 0x82a], edx
mov word [ebp - 0x826], dx
mov ax, word [ebp - 0x410]
mov word [ebp - 0x830], ax
mov word [ebp - 0x820], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x81e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x208
lea ecx, [ebp - 0x820]
push ecx
lea edx, [ebp - 0x830]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0
jbe 0x1224e6d7
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x820]
push ecx
push 0x12386f88
push 0x123aeb00
call fcn.122b8cc0
add esp, 0x10
cmp dword [ebp + 8], 0
je 0x1224e70c
cmp dword [ebp + 0xc], 0
jle 0x1224e70c
mov edx, dword [ebp + 0xc]
push edx
push 0
mov ecx, 0x123aeb00
call fcn.122b6a10
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.122ca6b1
add esp, 0xc
push 0xffffffffffffffff
mov ecx, 0x123aeb00
call fcn.122b6ae0
mov ecx, 0x123aeb04
call fcn.12212010
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1224f790
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 1
cmp dword [ebp + 0xc], 0
jne 0x1224f7ad
cmp dword [ebp + 0x10], 0
je 0x1224f85e
mov word [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], ax
mov dword [ebp - 8], 0x10
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1224f825
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2726
jne 0x1224f825
push 4
lea ecx, [ebp + 8]
push ecx
push 0x700b
push 0xffff
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x1224f857
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0xc], 0
je 0x1224f842
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
mov dword [ecx], eax
cmp dword [ebp + 0x10], 0
je 0x1224f855
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x24]
mov ax, word [edx + 2]
mov word [ecx], ax
jmp 0x1224f85e
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
jne 0x1224f86e
cmp dword [ebp + 0x18], 0
je 0x1224f91f
mov word [ebp - 0x3c], 0
xor ecx, ecx
mov dword [ebp - 0x3a], ecx
mov dword [ebp - 0x36], ecx
mov dword [ebp - 0x32], ecx
mov word [ebp - 0x2e], cx
mov dword [ebp - 0x28], 0x10
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_getpeername]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x1224f8e6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x2726
jne 0x1224f8e6
push 4
lea edx, [ebp + 8]
push edx
push 0x700b
push 0xffff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x1224f918
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x44], ecx
cmp dword [ebp + 0x14], 0
je 0x1224f903
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 4]
mov dword [edx], ecx
cmp dword [ebp + 0x18], 0
je 0x1224f916
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x44]
mov cx, word [eax + 2]
mov word [edx], cx
jmp 0x1224f91f
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1228aa06
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234bafc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x40]
call fcn.122ebbc0
mov dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x6c]
call fcn.12289bf9
test eax, eax
je 0x1228ab00
push 0xffffffffffffffff
lea ecx, [ebp - 0x40]
call fcn.122ec4f0
push 0x211
push 0x12394dc0
call fcn.1228ca90
add esp, 8
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x40]
call fcn.122ec540
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x54], 0
je 0x1228aaa9
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x48], edx
jmp 0x1228aac3
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.122ec520
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
push 0x223
push 0x12394de0
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.1228cb39
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.122ec2c0
cmp dword [ebp - 0x44], 0
jbe 0x1228abca
cmp dword [ebp + 8], 0
je 0x1228abca
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x44]
jb 0x1228abca
mov eax, dword [ebp - 0x48]
and eax, 2
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x6c]
call fcn.1228a530
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.12212010
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x1228abbe
mov eax, dword [ebp - 0x44]
push eax
push 0
push 0
push 4
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x1228abad
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.122ca640
add esp, 0xc
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.122cb390
add esp, 0xc
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.122b5d40
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.122ebd60
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1228aac3
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234bafc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x40]
call fcn.122ebbc0
mov dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x6c]
call fcn.12289bf9
test eax, eax
je 0x1228ab00
push 0xffffffffffffffff
lea ecx, [ebp - 0x40]
call fcn.122ec4f0
push 0x211
push 0x12394dc0
call fcn.1228ca90
add esp, 8
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x40]
call fcn.122ec540
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x54], 0
je 0x1228aaa9
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x48], edx
jmp 0x1228aac3
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.122ec520
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
push 0x223
push 0x12394de0
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.1228cb39
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.122ec2c0
cmp dword [ebp - 0x44], 0
jbe 0x1228abca
cmp dword [ebp + 8], 0
je 0x1228abca
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x44]
jb 0x1228abca
mov eax, dword [ebp - 0x48]
and eax, 2
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x6c]
call fcn.1228a530
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.12212010
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x1228abbe
mov eax, dword [ebp - 0x44]
push eax
push 0
push 0
push 4
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x1228abad
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.122ca640
add esp, 0xc
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.122cb390
add esp, 0xc
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.122b5d40
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.122ebd60
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1228abf5
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234bb18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x44]
call fcn.122ebbc0
mov dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x74]
call fcn.12289bf9
test eax, eax
je 0x1228acf6
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
call fcn.122ec4f0
push 0x24e
push 0x12394df0
call fcn.1228ca90
add esp, 8
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x44]
call fcn.122ec540
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x58], 0
je 0x1228ac9f
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x4c], edx
jmp 0x1228acb9
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.122ec520
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
push 0x260
push 0x12394e10
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.1228cb39
add esp, 0x10
lea ecx, [ebp - 0x44]
call fcn.122ec2c0
cmp dword [ebp - 0x48], 0
jbe 0x1228adc9
mov edx, dword [ebp - 0x4c]
and edx, 2
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x74]
call fcn.1228a530
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.12212010
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x1228adbd
mov edx, dword [ebp - 0x48]
push edx
push 0
push 0
push 4
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x1228adac
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.122ca698
add esp, 4
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x1228ad9b
mov eax, dword [ebp - 0x48]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.122ca640
add esp, 0xc
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.122cb390
add esp, 0xc
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.122b5d40
cmp dword [ebp + 8], 0
je 0x1228add7
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x48]
mov dword [ecx], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.122ebd60
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4