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

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, dword [esi]
test edx, edx
jl 0x40510e
mov ax, word [esi + 0xe]
and ax, 0xf000
cmp ax, 0x8000
jne 0x4050aa
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x1c]
sub eax, ecx
je 0x40510e
push eax
mov eax, dword [esi + 0x30]
add eax, ecx
push eax
push edx
call fcn.0041bbf8
add esp, 0xc
cmp eax, 0xffffffff
je 0x405112
add dword [esi + 0x38], eax
jmp 0x40510e
cmp dword [esp + 0xc], 0
jne 0x4050b7
cmp dword [esi + 0x38], 0
je 0x40510e
mov eax, dword [esi + 0x34]
cmp dword [esi + 0x38], eax
jne 0x4050d2
add eax, eax
push eax
mov dword [esi + 0x34], eax
push dword [esi + 0x30]
call fcn.00404f19
pop ecx
mov dword [esi + 0x30], eax
pop ecx
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
sub ecx, eax
add eax, dword [esi + 0x30]
push ecx
push eax
push dword [esi]
call fcn.0041bbf8
add esp, 0xc
test eax, eax
je 0x4050f7
cmp eax, 0xffffffff
je 0x405112
add dword [esi + 0x38], eax
jmp 0x4050b7
mov eax, dword [esi + 0x38]
add eax, 5
push eax
mov dword [esi + 0x34], eax
push dword [esi + 0x30]
call fcn.00404f19
pop ecx
mov dword [esi + 0x30], eax
pop ecx
xor eax, eax
pop esi
ret
push dword [esi + 4]
call fcn.0040354a
pop ecx
pop esi
ret

Function at 0x405162
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
cmp dword [esi], ebx
jge 0x405187
push 4
pop edi
push edi
call fcn.0040356c
pop ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], ebx
jmp 0x405217
mov cx, word [esi + 0xe]
mov eax, 0x2000
and cx, 0xf000
mov dword [esi + 0x38], eax
cmp cx, 0x8000
mov dword [esi + 0x34], eax
jne 0x4051b1
mov ecx, dword [esi + 0x1c]
add ecx, 5
cmp ecx, eax
jb 0x4051ae
mov eax, ecx
mov dword [esi + 0x34], eax
push dword [esi + 0x34]
call fcn.0040356c
cmp dword [esp + 0x18], ebx
pop ecx
mov dword [esi + 0x30], eax
jne 0x40517f
push dword [esi + 0x38]
push eax
push dword [esi]
call fcn.0041bbf8
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esi + 0x38], eax
jne 0x4051e4
push dword [esi + 4]
call fcn.0040354a
pop ecx
jmp 0x405219
push dword [esi]
call fcn.0042b9b5
push dword [esi + 4]
mov edi, eax
call fcn.0040524e
pop ecx
pop ecx
test eax, eax
push ebx
je 0x40520c
push ebx
push dword [esi]
call fcn.004224f1
add esp, 0xc
push 1
pop eax
jmp 0x405219
push edi
push dword [esi]
call fcn.004224f1
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x40524e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
push ebx
push esi
push edi
push 0x8000
push dword [ebp + 8]
xor esi, esi
call fcn.0041be88
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
pop ecx
jne 0x40529a
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push str.Could_not_open_file__s_to_read
push eax
call fcn.0041be36
lea eax, [ebp - 0x100]
push eax
call fcn.0040354a
add esp, 0x10
jmp 0x405330
lea eax, [ebp - 0x300]
push 0x200
push eax
push ebx
call fcn.0041bbf8
mov edi, eax
add esp, 0xc
test edi, edi
jg 0x4052e0
push ebx
call fcn.0041bb18
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push str.Could_not_read_from_file__s
push eax
call fcn.0041be36
lea eax, [ebp - 0x100]
push eax
call fcn.0040354a
add esp, 0x14
jmp 0x405330
xor edx, edx
lea ecx, [ebp - 0x300]
test edi, edi
jle 0x40531d
mov al, byte [ecx]
test al, al
je 0x40531b
test al, 0x80
jne 0x405312
cmp al, 0x20
jge 0x405313
cmp al, 0xa
je 0x405313
cmp al, 0xd
je 0x405313
cmp al, 8
je 0x405313
cmp al, 9
je 0x405313
cmp al, 0xc
je 0x405313
cmp al, 0x1b
je 0x405313
inc esi
inc edx
inc ecx
cmp edx, edi
jl 0x4052ec
jmp 0x40531d
add esi, edi
push ebx
call fcn.0041bb18
pop ecx
lea eax, [esi + esi*2]
xor ecx, ecx
cmp eax, edi
setg cl
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405335
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4108
call fcn.0041c170
push ebx
push esi
mov esi, 0x8000
push edi
push esi
xor edi, edi
push dword [ebp + 8]
call fcn.0041be88
pop ecx
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
jne 0x405364
push dword [ebp + 8]
jmp 0x405379
push esi
push dword [ebp + 0xc]
call fcn.0041be88
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
pop ecx
jne 0x40539b
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push str.Could_not_open_file__s_to_read
push eax
call fcn.0041be36
lea eax, [ebp - 0x108]
push eax
call fcn.0040354a
add esp, 0x10
jmp 0x405415
and dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jle 0x4053fe
mov esi, 0x2000
lea eax, [ebp - 0x4108]
push esi
push eax
push dword [ebp - 8]
call fcn.0041bbf8
add esp, 0xc
test eax, eax
jbe 0x40541a
lea eax, [ebp - 0x2108]
push esi
push eax
push ebx
call fcn.0041bbf8
add esp, 0xc
test eax, eax
jbe 0x405433
push eax
lea eax, [ebp - 0x2108]
push eax
lea eax, [ebp - 0x4108]
push eax
call fcn.0041b1e0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4053fe
add dword [ebp - 4], esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jl 0x4053aa
push dword [ebp - 8]
call fcn.0041bb18
push ebx
call fcn.0041bb18
xor eax, eax
pop ecx
test edi, edi
pop ecx
setne al
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push str.Could_not_read_from_file__s
push eax
call fcn.0041be36
push dword [ebp - 8]
jmp 0x405448
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push str.Could_not_read_from_file__s
push eax
call fcn.0041be36
push ebx
call fcn.0041bb18
lea eax, [ebp - 0x108]
push eax
call fcn.0040354a
add esp, 0x14
jmp 0x405415
Function at 0x4112c1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41131a
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x411436
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0xc]
push ebx
push ebx
push dword [ebp + 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [ebp - 4], eax
ja 0x411520
lea eax, [ebp - 0x20c]
mov edi, 0x80000000
push eax
push str..htm
push edi
call fcn.004112c1
add esp, 0xc
test eax, eax
jne 0x411520
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x20c]
push str._shellopencommand
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004112c1
add esp, 0xc
test eax, eax
jne 0x411520
lea eax, [ebp - 0x20c]
push str.__1_
push eax
call fcn.0041e00c
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x4114fd
lea eax, [ebp - 0x20c]
push 0x457944
push eax
call fcn.0041d650
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x4114fd
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x20d]
jmp 0x4114ff
mov byte [edi], bl
push 0x4574a8
push edi
call esi
push dword [ebp + 8]
push edi
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4212fe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x458e98
cmp edx, dword [eax]
je 0x421320
add eax, 8
inc ecx
cmp eax, 0x458f28
jl 0x421311
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x458e98]
jne 0x42144e
mov eax, dword [0x45c3b4]
cmp eax, 1
je 0x421428
test eax, eax
jne 0x421351
cmp dword [0x458c44], 1
je 0x421428
cmp edx, 0xfc
je 0x42144e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421388
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041c870
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c1a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4213cb
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c1a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x457614
push edi
call fcn.0041b890
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041c870
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041c880
lea eax, [ebp - 0xa0]
push 0x44cbc0
push eax
call fcn.0041c880
push dword [esi + 0x458e9c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c880
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042521c
add esp, 0x2c
pop edi
jmp 0x42144e
lea eax, [ebp + 8]
lea esi, [esi + 0x458e9c]
push 0
push eax
push dword [esi]
call fcn.0041c1a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42af30
Capabilities:
Get graphical window text

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

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x42e8b6
cmp dword [edi + 0x3c], 0
jne 0x42e8b6
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0043ec13
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
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0042e8e3
pop edi
pop esi
pop ebx
ret 8

Function at 0x42fedf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42ff17
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.00432fe2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00432fba
jmp 0x42ff23
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4319ad
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 0x4319ef
call fcn.0043ec13
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4319ef
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4319e6
xor eax, eax
jmp 0x4319f7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004319fd
pop edi
pop esi
pop ebx
ret 4

Function at 0x43ffb2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x440062
mov ecx, 0x45c2f0
call fcn.0043fb96
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x440040
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x44001e
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44001e
push ebx
push edi
push eax
call fcn.00434ea5
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.00432cd9
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x441cd1
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x441cf9
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x441d0a
push 2
call edi
test ax, ax
jge 0x441d0a
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0042f531
cmp dword [esi + 0x30], ebx
jne 0x441de4
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, pe_nt_image_headers32
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0042f531
cmp eax, dword [esp + 0x34]
jne 0x441de4
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x441d80
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x441dc5
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x441de4
cmp eax, 0x205
je 0x441de4
cmp eax, 0x201
je 0x441de4
cmp eax, 0x204
je 0x441de4
cmp eax, ebx
jne 0x441dab
cmp dword [esp + 0x1c], 0x1b
je 0x441de4
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x45bdfc]
jbe 0x441dda
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x441d3d
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x10004810
Capabilities:
Create thread

Disassembly:
cmp dword [0x100705e4], 0
jne 0x10004833
push 0
push 0
push 0
push 0x100088d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x100705e4], eax
ret 4

Function at 0x10005a70
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
mov eax, 0x16
call fcn.10006a10
mov edi, eax
mov eax, 0x17
call fcn.10006a10
mov dword [ebp - 4], eax
mov eax, 0x18
call fcn.10006a10
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x10005ab8
push ebx
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x10005ad1
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x19
call fcn.10006a10
mov ebx, eax
mov eax, 0x1a
call fcn.10006a10
mov dword [ebp - 4], eax
mov eax, 0x1b
call fcn.10006a10
mov dword [ebp - 8], eax
mov eax, 0x1c
call fcn.10006a10
mov dword [ebp - 0xc], eax
mov eax, 0x1d
call fcn.10006a10
mov dword [ebp - 0x10], eax
mov eax, 0x1e
call fcn.10006a10
mov dword [ebp - 0x14], eax
mov eax, 0x1f
call fcn.10006a10
mov dword [ebp - 0x18], eax
mov eax, 0x20
call fcn.10006a10
mov dword [ebp - 0x1c], eax
mov eax, 0x21
call fcn.10006a10
mov ecx, dword [esi + 0x30]
push ebx
push ecx
mov dword [ebp - 0x20], eax
call edi
mov edx, dword [ebp - 4]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x30]
push edx
push eax
call edi
mov ecx, dword [ebp - 8]
mov edx, dword [esi + 0x30]
push ecx
push edx
mov dword [esi + 0xc], eax
call edi
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
push ecx
call edi
mov edx, dword [ebp - 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x30]
push edx
push eax
call edi
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi + 0x30]
push ecx
push edx
mov dword [esi + 0x18], eax
call edi
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
push ecx
call edi
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x30]
push edx
push eax
call edi
mov ecx, dword [ebp - 0x20]
mov edx, dword [esi + 0x30]
push ecx
push edx
mov dword [esi + 0x24], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x28], eax
je 0x10005ac9
cmp dword [esi + 0xc], 0
je 0x10005ac9
cmp dword [esi + 0x10], 0
je 0x10005ac9
cmp dword [esi + 0x14], 0
je 0x10005ac9
cmp dword [esi + 0x18], 0
je 0x10005ac9
cmp dword [esi + 0x1c], 0
je 0x10005ac9
cmp dword [esi + 0x20], 0
je 0x10005ac9
cmp dword [esi + 0x24], 0
je 0x10005ac9
xor ecx, ecx
test eax, eax
setne cl
pop edi
pop ebx
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x10007f80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007fab
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.1000a7f1
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x10008009
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007ffe
cmp edi, dword [ebp - 4]
jne 0x10007ffe
mov edx, dword [ebp + 8]
push esi
mov dword [edx], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
push eax
call fcn.1000ab66
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10008020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 0xc]
push eax
xor edi, edi
lea ebx, [ebp - 4]
mov eax, esi
mov dword [ebp - 4], edi
call fcn.10007f80
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x10008076
mov ecx, dword [ebp - 4]
push ecx
call fcn.1000ab66
add esp, 4
push edi
push edi
push 5
push edi
push edi
push 0x40000000
push esi
call ebx
cmp eax, 0xffffffff
je 0x10008070
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008076
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push edi
push 4
push edi
push edi
push 0x40000000
push esi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000809c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
push edi
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], edi
mov edi, dword [ebp + 0xc]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100080d1
cmp dword [ebp - 8], edi
jne 0x100080d1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8