joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4046a6
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x418968], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x4046ea
call ebx
test eax, eax
jns 0x4046e0
push 0x401720
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x401714
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x418964], eax
mov dword [0x418968], 1
mov eax, dword [0x418964]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x404706
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x404736
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x40472c
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x404720
push dword [eax + 8]
call dword [eax]
jmp 0x404726
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x404735
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x4047a9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x418974], 1
push ebx
push esi
push edi
jne 0x4047cc
or dword [0x418974], 1
call fcn.00404755
mov dword [0x418970], eax
push 4
pop eax
call fcn.004143c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404861
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [0x4188cc]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x404861
cmp eax, 1
je 0x404882
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404861
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40482e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40485d
xor eax, eax
inc eax
jmp 0x4048a1
cmp edi, eax
jae 0x404865
xor eax, eax
jmp 0x4048a1
cmp eax, esi
jae 0x40486c
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4188cc]
jmp 0x404885
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404a56
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8
Function at 0x404dbb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
cmp word [ecx], 0
mov eax, dword [esp + 4]
push ebx
mov ebx, eax
je 0x404e49
cmp word [eax], 0
push ebp
push esi
push edi
je 0x404e44
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
cmp word [ebx], 0
mov edi, dword [esp + 0x18]
mov esi, ebx
je 0x404e33
mov ax, word [edi]
test ax, ax
je 0x404e4d
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x404e33
push esi
call ebp
push edi
mov dword [esp + 0x18], eax
call ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
mov edx, eax
sub ecx, edi
sub edx, esi
xor ecx, edx
test ecx, 0xfffffffe
jne 0x404e33
jmp 0x404e29
inc esi
inc esi
movzx edx, word [esi]
inc edi
inc edi
movzx ecx, word [edi]
sub edx, ecx
je 0x404e2d
cmp esi, eax
jb 0x404e1b
cmp word [esi], 0
jne 0x404de7
cmp word [edi], 0
je 0x404e4d
push ebx
call ebp
mov ebx, eax
cmp word [ebx], 0
jne 0x404ddb
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, ebx
jmp 0x404e46

Function at 0x404ffd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x200c
lea ebp, [esp - 0x1f8c]
call fcn.004143c0
mov eax, dword [0x4188a0]
push esi
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [ebp + 0x1f88], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x405071
cmp dword [ebp - 0x7c], 1
jne 0x405075
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x80], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x405071
cmp word [ebp - 0x78], si
je 0x405071
inc eax
jmp 0x40507e
xor eax, eax
jmp 0x40507e
xor eax, eax
cmp eax, dword [ebp - 0x7c]
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x1f88]
pop esi
call fcn.004140ea
add ebp, 0x1f8c
leave
ret 4

Function at 0x405a06
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4145f3
call fcn.004143a0
sub esp, 0x214
mov eax, dword [0x4188a0]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov ebx, ecx
mov dword [ebp - 0x214], esi
push 0x2001f
push dword [ebp + 8]
lea ecx, [ebp - 0x214]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.00404a07
cmp eax, esi
jne 0x405aa5
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x405a5f
lea eax, [ebp - 0x210]
push eax
call fcn.00405a06
cmp eax, esi
jne 0x405aa4
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x405a4f
call fcn.004049a2
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.004049a2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004140ea
leave
ret 4
Function at 0x4083c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x414731
call fcn.004143a0
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
push 2
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
call fcn.00406981
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x14], esi
jne 0x40841e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x408409
call esi
mov esi, eax
jmp 0x408537
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x408537
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x40843f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, edi
jne 0x408467
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x408452
call esi
jmp 0x40852c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40852e
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x4084d5
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x4084a2
push edi
call fcn.004048a9
test al, al
je 0x4084a2
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.004143c0
mov dword [ebp + 8], esp
jmp 0x4084ae
push edi
lea ecx, [ebp - 0x10]
call fcn.004068ce
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4084bc
mov esi, 0x8007000e
jmp 0x40852e
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov byte [eax + ebx], 0
test edi, edi
jne 0x4084dd
xor eax, eax
jmp 0x408520
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x40850d
push ebx
call fcn.004048a9
test al, al
je 0x40850d
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.004143c0
mov eax, esp
jmp 0x408516
push ebx
lea ecx, [ebp - 0x10]
call fcn.004068ce
push 0
push esi
push edi
push eax
call fcn.00404904
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004076d7
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x10]
call fcn.0040550a
mov eax, esi
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40d216
Capabilities:
Delete file

Disassembly:
mov eax, 0x41494a
call fcn.004143a0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x4c]
test eax, eax
mov dword [ebp - 4], 2
je 0x40cef6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x40cf04
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esi + 0x8c]
cmp dword [eax], 0
je 0x40cf17
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x40cf30
push dword [eax + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [esi + 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x40cf3e
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esi + 0x78]
test eax, eax
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x40cf4e
push eax
call ebx
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x40cf58
push eax
call ebx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x40cf65
push eax
call ebx
mov eax, dword [esi + 0x84]
test eax, eax
je 0x40cf72
push eax
call ebx
lea edi, [esi + 0x88]
mov eax, dword [edi]
test eax, eax
je 0x40cf89
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
call ebx
mov ecx, esi
call fcn.0040c4da
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 1
call fcn.0040c342
lea ecx, [esi + 0x54]
call fcn.004095ee
lea ecx, [esi + 0x24]
call fcn.0040493b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push esi
mov esi, ecx
push 0x4188f4
mov dword [esi], 0x4023dc
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, esi
pop esi
jmp 0x40cece

Function at 0x40effd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f029
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f029
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x40f02b
xor eax, eax
ret 8
Function at 0x411967
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x411a49
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x4119e4
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x411a34
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x411a53
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x411a34
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.0041194f
test eax, eax
je 0x411a53
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x411a53
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x411994
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x411a4c
Function at 0x412e10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push 0xd
mov edx, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104b
push dword [edx + 4]
mov dword [ebp - 0x34], 4
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
pop edi
leave
ret 4

Function at 0x412e9e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x412ee9
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 4]
call fcn.00412920
test eax, eax
je 0x412ee9
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.004128f6
jmp 0x412eeb
xor eax, eax
pop esi
leave
ret 8

Function at 0x4137ef
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x414aeb
call fcn.004143a0
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
and dword [ebp - 4], 0
push 0x1c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x413822
mov ecx, eax
call fcn.00412833
mov ebx, eax
jmp 0x413824
xor ebx, ebx
test ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jne 0x413834
or esi, 0xffffffff
jmp 0x413891
push edi
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esi + 0x30]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x10]
push edx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004134ec
push 0xd
pop ecx
xor eax, eax
push eax
push eax
push 0x1004
push dword [esi + 4]
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x48], 4
call edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x104d
push dword [esi + 4]
mov dword [ebp - 0x28], ebx
call edi
mov esi, eax
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x4138b0
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x414afd
call fcn.004143a0
sub esp, 0x10
mov eax, dword [0x417020]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
push 1
push dword [esi + 4]
call edi
push 2
push dword [esi + 4]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
call edi
push dword [esi + 4]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4139f0
test ebx, ebx
je 0x4139f0
cmp dword [ebp - 0x14], 0
je 0x4139f0
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004136b0
test eax, eax
je 0x4139d8
push 1
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
call ebx
push 0
push dword [ebp - 0x14]
call ebx
push 1
push dword [ebp - 0x1c]
push 0x28
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x130
push dword [esi + 4]
call edi
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
je 0x41395f
push 0
push eax
call ebx
push 0x138
push dword [esi + 4]
call edi
test eax, eax
je 0x413972
push 0
push eax
call ebx
push 0x131
push dword [esi + 4]
call edi
test eax, eax
je 0x413985
push 0
push eax
call ebx
push 0x139
push dword [esi + 4]
call edi
test eax, eax
je 0x413998
push 0
push eax
call ebx
cmp dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
jne 0x4139a8
push 0x1f4
jmp 0x4139ad
push 0x1f5
call fcn.0040fc7f
test eax, eax
je 0x4139f0
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
je 0x4139f0
lea eax, [esi + 0x1c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x34]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x4139f0
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebx
call edi
test byte [esi + 0x4c], 2
je 0x4139f0
push 1
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x10]
call fcn.0040f73b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4140ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4188a0]
jne 0x4140f3
ret
jmp 0x4140f8
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4188a0]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x418a40]
test eax, eax
je 0x41411c
call eax
cmp dword [0x418a44], 0
je 0x414163
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x418a44]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.004140ea
add ebp, 0x2a8
leave
ret
Function at 0x406995
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esi]
test edx, edx
jl fcn.00406a43
mov ax, word [esi + 0xe]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x8000
cmp ax, cx
jne 0x4069dd
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x1c]
sub eax, ecx
je fcn.00406a43
push eax
mov eax, dword [esi + 0x3c]
add eax, ecx
push eax
push edx
call fcn.00442af0
add esp, 0xc
cmp eax, 0xffffffff
je 0x406a46
add dword [esi + 0x44], eax
jmp fcn.00406a43
cmp dword [esp + 4], 0
jne 0x4069ea
cmp dword [esi + 0x44], 0
je fcn.00406a43
mov eax, dword [esi + 0x40]
cmp dword [esi + 0x44], eax
jne 0x406a05
add eax, eax
push eax
push dword [esi + 0x3c]
mov dword [esi + 0x40], eax
call fcn.00406807
pop ecx
pop ecx
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
sub ecx, eax
push ecx
mov ecx, dword [esi + 0x3c]
add ecx, eax
push ecx
push dword [esi]
call fcn.00442af0
add esp, 0xc
test eax, eax
je 0x406a2c
cmp eax, 0xffffffff
je 0x406a46
add dword [esi + 0x44], eax
jmp 0x4069ea
mov eax, dword [esi + 0x44]
add eax, 5
push eax
push dword [esi + 0x3c]
mov dword [esi + 0x40], eax
call fcn.00406807
pop ecx
pop ecx
mov dword [esi + 0x3c], eax
push dword [esi + 4]
call fcn.00405082
pop ecx
ret

Function at 0x406a50
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ebx, ebx
cmp dword [edi], ebx
push esi
jge 0x406a6a
push 4
pop esi
mov eax, esi
call fcn.004050a4
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], esi
jmp 0x406aab
mov cx, word [edi + 0xe]
mov edx, 0xf000
and cx, dx
mov eax, 0x2000
mov edx, 0x8000
mov dword [edi + 0x44], eax
mov dword [edi + 0x40], eax
cmp cx, dx
jne 0x406a9a
mov ecx, dword [edi + 0x1c]
add ecx, 5
cmp ecx, eax
jb 0x406a97
mov eax, ecx
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x40]
call fcn.004050a4
mov dword [edi + 0x3c], eax
cmp dword [esp + 0xc], ebx
je 0x406ab0
mov dword [edi + 0x44], ebx
jmp 0x406b05
push dword [edi + 0x44]
push eax
push dword [edi]
call fcn.00442af0
add esp, 0xc
mov dword [edi + 0x44], eax
cmp eax, 0xffffffff
jne 0x406ad1
push dword [edi + 4]
call fcn.00405082
pop ecx
jmp 0x406b07
push dword [edi]
call fcn.00445014
mov esi, dword [edi + 4]
pop ecx
mov ebx, eax
call fcn.00406b4f
push 0
test eax, eax
je 0x406afa
push 0
push dword [edi]
call fcn.0044509f
xor eax, eax
add esp, 0xc
inc eax
jmp 0x406b07
push ebx
push dword [edi]
call fcn.0044509f
add esp, 0xc
xor eax, eax
pop esi
pop ebx
ret
Function at 0x406b4f
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x288]
sub esp, 0x308
mov eax, dword [0x47d88c]
xor eax, ebp
mov dword [ebp + 0x284], eax
push ebx
push edi
xor ebx, ebx
push ebx
push 0x8000
push esi
call fcn.00442398
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x80], edi
cmp edi, 0xffffffff
jne 0x406bad
push esi
lea eax, [ebp + 0x184]
push str.Could_not_open_file__s_to_read
push eax
call fcn.0044535f
lea eax, [ebp + 0x184]
push eax
call fcn.00405082
add esp, 0x10
jmp 0x406c6f
push 2
push ebx
push edi
call fcn.0044509f
add esp, 0xc
cmp eax, 0xffffffff
jne 0x406bcf
lea eax, [ebp + 0x184]
push eax
call fcn.00405082
jmp 0x406c6e
test eax, eax
je 0x406c6f
push 0
push 0
push edi
call fcn.0044509f
push 0x200
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.00442af0
mov edi, eax
add esp, 0x18
test edi, edi
jg 0x406c24
push dword [ebp - 0x80]
call fcn.00442461
push esi
lea eax, [ebp + 0x184]
push str.Could_not_read_from_file__s
push eax
call fcn.0044535f
lea eax, [ebp + 0x184]
push eax
call fcn.00405082
add esp, 0x14
jmp 0x406c6f
xor edx, edx
lea ecx, [ebp - 0x7c]
test edi, edi
jle 0x406c5c
mov al, byte [ecx]
test al, al
je 0x406c5a
js 0x406c51
cmp al, 0x20
jge 0x406c52
cmp al, 0xa
je 0x406c52
cmp al, 0xd
je 0x406c52
cmp al, 8
je 0x406c52
cmp al, 9
je 0x406c52
cmp al, 0xc
je 0x406c52
cmp al, 0x1b
je 0x406c52
inc ebx
inc edx
inc ecx
cmp edx, edi
jl 0x406c2d
jmp 0x406c5c
add ebx, edi
push dword [ebp - 0x80]
call fcn.00442461
imul ebx, ebx, 3
xor eax, eax
cmp ebx, edi
setg al
pop ecx
mov ecx, dword [ebp + 0x284]
pop edi
xor ecx, ebp
pop ebx
call fcn.0044111a
add ebp, 0x288
leave
ret