joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4070e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x591a60]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov esi, edx
push 0xe
push esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], esi
call fcn.005170e3
push esi
push 1
lea edx, [ebp - 0x30]
push 0x28
push edx
call fcn.005173a9
mov cx, word [ebp - 0x22]
mov esi, dword [ebp - 0x2c]
movzx eax, cx
mov dword [ebp - 0x38], eax
movzx eax, cx
imul eax, esi
mov ebx, dword [ebp - 0x28]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
mov edi, eax
sar edi, 2
add edi, edi
add esp, 0x1c
add edi, edi
cmp cx, 8
jne 0x407183
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x40716f
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005162b5
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x44]
push ecx
push 0x100
push 4
push eax
call fcn.005173a9
add esp, 0x10
cmp dword [ebp - 0x34], 0
je 0x40715a
imul edi, ebx
push edi
call fcn.00516910
push edi
push 0
push eax
mov dword [ebp - 0x40], eax
call fcn.00518800
mov edx, dword [ebp - 0x44]
push edx
push edi
mov edi, dword [ebp - 0x40]
push 1
push edi
call fcn.005173a9
mov eax, dword [ebp - 0x38]
add esp, 0x20
cmp ax, 0x18
jne 0x407207
test ebx, ebx
jle 0x40724c
lea eax, [ebx + ebx*2 - 3]
imul eax, esi
mov dword [ebp - 0x3c], edi
lea edi, [esi*4]
sub edi, esi
neg edi
add eax, dword [ebp - 0x34]
lea edx, [esi + esi*2]
mov dword [ebp - 0x38], ebx
test edx, edx
jle 0x4071fb
mov esi, dword [ebp - 0x3c]
mov ecx, eax
sub esi, eax
mov dword [ebp - 0x34], edx
mov edi, edi
mov bl, byte [esi + ecx]
mov byte [ecx], bl
inc ecx
dec dword [ebp - 0x34]
jne 0x4071f0
add dword [ebp - 0x3c], edx
add eax, edi
dec dword [ebp - 0x38]
jne 0x4071e0
jmp 0x40724c
cmp ax, 8
jne 0x40724c
test ebx, ebx
jle 0x40724c
lea eax, [ebx - 1]
imul eax, esi
mov ecx, esi
neg ecx
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], ebx
test esi, esi
jle 0x40723d
mov ecx, eax
sub edi, eax
mov ebx, esi
mov dl, byte [edi + ecx]
mov byte [ecx], dl
inc ecx
dec ebx
jne 0x407231
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x38]
add edi, esi
add eax, ecx
dec dword [ebp - 0x34]
mov dword [ebp - 0x38], edi
jne 0x407227
mov eax, dword [ebp - 0x40]
push eax
call fcn.005169a4
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00516a4b
mov ecx, dword [ebp - 8]
add esp, 8
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.005162b5
mov esp, ebp
pop ebp
ret 4
Function at 0x417865
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0042083a
call fcn.004176a5
cmp eax, esi
pop esi
jne 0x417881
mov ecx, 0x594f50
jmp fcn.0042d1dd
ret

Function at 0x4184a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00428f56
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4184dd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004180e6
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x41853b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x41855f
cmp dword [edi + 0x74], 0
jne 0x41855f
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00428f56
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004184fc
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41c167
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041bbed
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41c1b1
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041c142
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404840
jmp 0x41c1bc
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042e223
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41c1c2
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00422c67
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x41c1ff
call fcn.0041bbed
mov dword [esi + 0xc], 1
jmp 0x41c204
call fcn.0041bbed
cmp dword [esi], 0
je 0x41c24d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x41c225
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041c142
jmp 0x41c237
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401530
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404840
jmp 0x41c271
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x41c271
push dword [esi]
push dword [ebp + 8]
call fcn.0042e223
pop esi
pop ebp
ret 0xc

Function at 0x422482
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4224c9
call fcn.00428f56
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4224c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4224e5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00421f87
mov esi, eax
test edi, edi
je 0x4224e3
test ebx, ebx
je 0x4224e3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x423375
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x53da5a
call fcn.0051807f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x42339a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4233ec
call fcn.004199ce
push eax
lea ecx, [ebp - 0x10]
call fcn.00401360
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0051837f
push eax
call fcn.00416590
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004013e0
mov eax, esi
call fcn.00518157
ret 8
Function at 0x426016
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42605e
call fcn.00428f56
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42605e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4260a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42608a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42608a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x42609e
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x480fc4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x480fde
call fcn.00428f56
mov esi, dword [eax + 0xc]
push dword [0x596c8c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x480ffc
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x480ff4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x481029
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x480ff6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00480ef0
mov esi, eax
jmp 0x48101b
Function at 0x4fcb8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4fcba6
mov edi, dword [esi + 0xc]
jmp 0x4fcbe6
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4fcbbf
call fcn.0041a1fa
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4fcbd4
call fcn.0041a1fa
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4fcbe6
call fcn.0041a1fa
call fcn.00428f56
cmp dword [eax + 0x3c], 0
je 0x4fcbfb
push edi
mov ecx, ebx
call fcn.004fba4c
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004fcaa8
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4fcc19
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4fcc25
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5162b5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x591a60]
jne 0x5162bf
repz ret
jmp fcn.0051df54
Function at 0x52bef9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x591a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00520f17
and dword [ebp - 0x14], 0
cmp dword [0x5995c4], 0
mov dword [ebp - 0x18], eax
jne 0x52bfac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x52c054
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x52c054
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x568b84
push ebx
mov dword [0x5995c4], eax
call edi
push eax
call esi
push 0x568b70
push ebx
mov dword [0x5995c8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5995cc], eax
call edi
push eax
call esi
mov dword [0x5995d4], eax
test eax, eax
je 0x52bfac
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5995d0], eax
mov eax, dword [0x5995d0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x52c005
cmp dword [0x5995d4], ecx
je 0x52c005
push eax
call esi
push dword [0x5995d4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x52c005
test ebx, ebx
je 0x52c005
call edi
test eax, eax
je 0x52bffc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x52bffc
test byte [ebp - 8], 1
jne 0x52c005
or dword [ebp + 0x10], 0x200000
jmp 0x52c038
mov eax, dword [0x5995c8]
cmp eax, dword [ebp - 0x18]
je 0x52c038
push eax
call esi
test eax, eax
je 0x52c038
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x52c038
mov eax, dword [0x5995cc]
cmp eax, dword [ebp - 0x18]
je 0x52c038
push eax
call esi
test eax, eax
je 0x52c038
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5995c4]
call esi
test eax, eax
je 0x52c054
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x52c056
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005162b5
leave
ret
Function at 0x10006fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0x100515a4
push dword [ebp + 0xc]
call fcn.1003b79d
mov edi, eax
add esp, 8
test edi, edi
jne 0x10006fc3
lea eax, [edi + 3]
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 2
push 0
push edi
call fcn.10038cfa
push edi
call fcn.1003930d
push 0
push 0
push edi
mov esi, eax
call fcn.10038cfa
add esp, 0x1c
cmp esi, 0xffffffff
jne 0x10006ffa
push edi
call fcn.1003828e
add esp, 4
lea eax, [esi + 0x38]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.1000b8b0
add esp, 4
mov ebx, eax
push edi
test ebx, ebx
jne 0x1000701d
call fcn.1003828e
add esp, 4
lea eax, [ebx + 1]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xcccccccd
mul esi
mov eax, edx
shr eax, 2
push eax
push 5
push ebx
mov dword [ebp - 4], eax
call fcn.10038903
push edi
mov esi, eax
call fcn.1003828e
mov eax, dword [ebp - 4]
add esp, 0x14
cmp esi, eax
je 0x1000705c
push ebx
call fcn.1000b8a0
add esp, 4
mov eax, 0x37
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push eax
push ebx
push esi
call sym.keycapture32.dll_yr_compiler_set_atom_quality_table
add esp, 0x10
mov byte [esi + 0x246c], 1
xor eax, eax
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x100094b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
jne 0x100094c6
mov eax, dword [ebp + 8]
pop edi
pop ebx
pop ebp
ret
add ebx, 0xffffffff
je 0x1000950f
push esi
nop dword [eax]
movzx eax, byte [edi]
mov esi, ebx
and esi, 0x1f
inc edi
mov ecx, esi
neg ecx
mov edx, dword [eax*4 + 0x10068010]
and ecx, 0x1f
mov eax, edx
shr eax, cl
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp + 8]
or eax, edx
xor ecx, eax
mov dword [ebp + 8], ecx
sub ebx, 1
jne 0x100094d0
movzx eax, byte [edi]
pop esi
pop edi
pop ebx
mov eax, dword [eax*4 + 0x10068010]
xor eax, ecx
pop ebp
ret
movzx eax, byte [edi]
mov ecx, dword [ebp + 8]
pop edi
pop ebx
mov eax, dword [eax*4 + 0x10068010]
xor eax, ecx
pop ebp
ret
Function at 0x1000e810
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
push ebx
push esi
push edi
mov dword [eax + 0x1c], 0
add eax, 0x2c
push 0
push eax
call fcn.10036400
add esp, 8
test eax, eax
je 0x1000e842
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
mov dword [ebp - 4], ebx
call fcn.1000b8b0
mov edi, eax
add esp, 4
test edi, edi
jne 0x1000e87d
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 1
mov dword [eax + 0x24], 1
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000e8b6
push edi
call fcn.1000b8a0
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [eax + 0x1c], 1
mov dword [eax + 0x24], 0x37
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x60
call fcn.1003cd42
mov esi, eax
add esp, 4
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x1000e8d6
call fcn.100380b8
mov dword [eax], 0xc
jmp 0x1000e8e9
push 0x60
push 0
push esi
call fcn.10035c10
push esi
call fcn.1000eec0
add esp, 0x10
mov ebx, dword [ebp + 0xc]
push esi
push dword [ebp - 4]
mov dword [esi], ebx
push edi
call fcn.1000ccc0
mov ecx, dword [esi + 0x14]
add esp, 0xc
test ecx, ecx
je 0x1000e933
mov eax, dword [esi + 0xc]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x1000e933
push ebx
push esi
mov dword [eax + 0x20], 1
call fcn.10014c40
push esi
call fcn.1000e550
push edi
call fcn.1000b8a0
mov eax, dword [ebx + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.yyset_lineno_called_with_no_buffer
push esi
call fcn.1000d010
int3
Function at 0x1000efe0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
and eax, 0xfff00000
mov dword [esi], ecx
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
cmp eax, edi
je 0x1000f01e
pop edi
mov eax, 0x1d
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1000f0e9
mov ecx, dword [ebp - 8]
test edi, edi
jne 0x1000f04c
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1000f06a
mov eax, ecx
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, ecx
jbe 0x1000f05b
pop edi
mov eax, 4
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1000f06a
mov eax, ecx
sub eax, edi
mov ecx, eax
jmp 0x1000f06c
sub ecx, edi
cmp eax, ecx
cmovae eax, ecx
mov dword [esi + 4], eax
test eax, eax
je 0x1000f0d3
push 0
push 0
push 0
push 2
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, eax
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x1000f0bb
push dword [esi + 4]
mov eax, edi
push edi
cdq
push edx
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x1000f0e1
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
pop edi
mov dword [esi + 4], 0
mov eax, 4
mov dword [esi], 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 0xffffffff
mov eax, 3
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000f2e0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
neg eax
sbb eax, eax
and eax, 0xffffffe1
add eax, 0x1f
pop ebp
ret
Function at 0x10013f10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
cmp edx, 0x40
jb 0x10013f80
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10013f80
mov eax, dword [ecx + 0x3c]
test eax, eax
js 0x10013f80
lea esi, [eax + 0x18]
cmp edx, esi
jb 0x10013f80
add eax, ecx
add esi, 0xe0
cmp dword [eax], 0x4550
jne 0x10013f80
movzx edi, word [eax + 4]
mov ebx, 0x14c
cmp di, bx
je 0x10013f61
mov ebx, 0x8664
cmp di, bx
jne 0x10013f80
cmp edx, esi
jbe 0x10013f80
mov esi, 0x2000
test word [eax + 0x16], si
jne 0x10013f80
mov eax, dword [eax + 0x28]
xor edx, edx
add eax, dword [ebp + 0x10]
pop edi
adc edx, dword [ebp + 0x14]
pop esi
pop ebx
pop ebp
ret
cmp edx, 0x10
jb 0x10013fa7
cmp dword [ecx], 0x464c457f
jne 0x10013fa7
movzx eax, byte [ecx + 4]
mov esi, eax
sub esi, 1
je 0x10013fa2
sub esi, 1
jne 0x10013fa7
cmp edx, 0x40
jmp 0x10013fa5
cmp edx, 0x34
jae 0x10013fa9
xor eax, eax
sub eax, 1
je 0x10013fc5
sub eax, 1
jne 0x10013fd6
cmp word [ecx + 0x10], 2
jne 0x10013fd6
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x1c]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp word [ecx + 0x10], 2
jne 0x10013fd6
mov eax, dword [ecx + 0x18]
xor edx, edx
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 0xfabadaff
mov edx, 0xfffabada
pop ebx
pop ebp
ret
Function at 0x10019440
Capabilities:
Acquire debug privileges
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10068cc4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x28
mov dword [ebp - 0x18], 0
call fcn.1000b8b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10019484
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003332b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100194df
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x100194df
mov eax, dword [ebp - 0x20]
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100194ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi], eax
test eax, eax
jne 0x10019520
push esi
call fcn.1000b8a0
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003332b
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [edi + 0x20], esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1003332b
mov esp, ebp
pop ebp
ret
Function at 0x10028390
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
cmp ecx, 0x40
jb 0x1002850b
mov eax, dword [ebp + 8]
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x1002850b
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x1002850b
lea esi, [edx + 0x18]
cmp ecx, esi
jb 0x1002850b
add edx, eax
cmp dword [edx], 0x4550
jne 0x1002850b
lea eax, [esi + 0xe0]
cmp ecx, eax
jb 0x1002850b
push ebx
mov ebx, 0x20b
mov eax, 0xf0
cmp word [edx + 0x18], bx
push edi
mov edi, 0xe0
cmovne eax, edi
add eax, esi
pop edi
pop ebx
cmp ecx, eax
jb 0x1002850b
movzx ecx, word [edx + 4]
test cx, cx
je 0x10028506
mov eax, 0x1d3
cmp cx, ax
je 0x10028506
mov eax, 0x8664
cmp cx, ax
je 0x10028506
mov eax, 0x1c0
cmp cx, ax
je 0x10028506
mov eax, 0x1c4
cmp cx, ax
je 0x10028506
mov eax, 0xaa64
cmp cx, ax
je 0x10028506
mov eax, 0xebc
cmp cx, ax
je 0x10028506
mov eax, 0x14c
cmp cx, ax
je 0x10028506
mov eax, 0x200
cmp cx, ax
je 0x10028506
mov eax, 0x9041
cmp cx, ax
je 0x10028506
mov eax, 0x266
cmp cx, ax
je 0x10028506
mov eax, 0x366
cmp cx, ax
je 0x10028506
mov eax, 0x466
cmp cx, ax
je 0x10028506
mov eax, 0x1f0
cmp cx, ax
je 0x10028506
mov eax, 0x1f1
cmp cx, ax
je 0x10028506
mov eax, 0x166
cmp cx, ax
je 0x10028506
mov eax, 0x1a2
cmp cx, ax
je 0x10028506
mov eax, 0x1a3
cmp cx, ax
je 0x10028506
mov eax, 0x1a6
cmp cx, ax
je 0x10028506
mov eax, 0x1a8
cmp cx, ax
je 0x10028506
mov eax, 0x1c2
cmp cx, ax
je 0x10028506
mov eax, 0x169
cmp cx, ax
jne 0x1002850b
mov eax, edx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret