joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023eda
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x100977a0]
movzx eax, cl
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
mov dword [edx], ecx
mov ecx, dword [edx + 8]
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100977a0]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x100261f8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x1002622b
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10026226
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x10026255
mov edx, dword [edi + 0x1c]
push esi
mov esi, dword [edi + 0x18]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ecx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.1006b000
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x10026385
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x10026393
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x10026452
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100977a0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100977a0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100977a0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100977a0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100977a0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100977a0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100977a0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100977a0]
sub edi, 1
jne 0x100263ab
pop edi
test esi, esi
je 0x1002646e
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100977a0]
inc edx
sub esi, 1
jne 0x10026456
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x1003bcb2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x1003bcdf
cmp eax, edi
jge 0x1003bccf
push esi
call fcn.10037303
pop ecx
mov eax, dword [esi + 0xc]
mov ecx, edi
shr eax, cl
sub dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, eax
test eax, eax
jle 0x1003bd04
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x1003bcea
mov dword [esi + 8], edx
jmp 0x1003bd19
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x1003bd0f
xor dl, dl
jmp 0x1003bd14
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x1003bd04
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x1003bd51
push str.zlib_corrupt
call fcn.10037223
pop ecx
jmp 0x1003bd91
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x1003bd61
push str.read_past_buffer
jmp 0x1003bd49
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x1003bd7b
push edi
push ecx
push esi
call fcn.1003f040
add esp, 0xc
test eax, eax
je 0x1003bd91
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.1006b000
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x1004235c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x69c], edi
je 0x100423c6
cmp dword [ebp + 8], 0x100
jne 0x100423b5
cmp word [ebp + 0xc], 0xd
jne 0x100423b5
cmp byte [esi + 0x6a2], 0
je 0x1004239c
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100423b5
cmp byte [esi + 0x6a3], 0
jne 0x100423b5
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x100423b1
push edi
push edi
push edi
push str.return
push esi
call fcn.1001d87e
xor eax, eax
jmp 0x100423c9
mov eax, dword [esi + 0x69c]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x1004c7f2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x114]
mov edi, dword [ebp + 8]
test al, al
jne 0x1004c82b
mov eax, dword [edi]
sub eax, 9
cmp eax, 0xc
ja 0x1004c82b
mov ecx, dword [esi + 0x560]
push edi
test ecx, ecx
je 0x1004c9a3
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x1004c9aa
mov ecx, dword [esi + 0x560]
test ecx, ecx
je 0x1004c8a4
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [eax + 0x458], 0
je 0x1004c8a4
cmp dword [edi], 0xf
jne 0x1004c8a4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x1004c9aa
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
test ax, ax
js 0x1004c884
push 0x10
call edi
test ax, ax
js 0x1004c884
lea ecx, [esi + 0x550]
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
jmp 0x1004c9aa
mov ecx, dword [esi + 0x560]
test ecx, ecx
je 0x1004c9aa
push 0
mov eax, dword [ecx]
push dword [esi + 0x554]
call dword [eax + 0x10]
jmp 0x1004c9aa
cmp dword [edi], 0xd
jne 0x1004c908
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x1004c9aa
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
xor edi, edi
test al, al
je 0x1004c8d9
mov ecx, dword [esi + 0x44]
push edi
push edi
push edi
push str.buttondown
push esi
call fcn.1001d87e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1004c8f7
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1004c872
mov ecx, dword [esi + 0x560]
test ecx, ecx
je 0x1004c9aa
push edi
jmp 0x1004c894
cmp dword [edi], 0xe
jne 0x1004c934
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x1004c9aa
xor edi, edi
push edi
push edi
push edi
push str.itemclick
mov ecx, dword [esi + 0x44]
push esi
call fcn.1001d87e
jmp 0x1004c9aa
cmp dword [edi], 0xb
jne 0x1004c96c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x1004c9aa
or dword [esi + 0x55c], 8
mov ecx, esi
call fcn.1004e1ee
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
test al, al
je 0x1004c9aa
xor edi, edi
push edi
push edi
push edi
push str.mouseenter
jmp 0x1004c929
cmp dword [edi], 0xa
jne 0x1004c9a2
mov eax, dword [esi + 0x55c]
test al, 8
je 0x1004c9aa
and eax, 0xfffffff7
mov ecx, esi
mov dword [esi + 0x55c], eax
call fcn.1004e1ee
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
test al, al
je 0x1004c9aa
xor edi, edi
push edi
push edi
push edi
push str.mouseleave
jmp 0x1004c929
push edi
mov ecx, esi
call fcn.1004c4dc
pop edi
pop esi
pop ebp
ret 4
Function at 0x1004cdfe
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.1004cb36
Function at 0x10058528
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100bc0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x100585b0
cmp dword [esi + 0x10], 0
je 0x100585b0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.10068a90
mov ebx, esp
test ebx, ebx
je 0x100585b0
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1cc
call fcn.1001f3b6
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.1001d87e
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.1001992a
test al, al
je 0x100585b0
mov ecx, dword [esi + 0x10]
call fcn.1002b1e7
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10067e5d
leave
ret 0x10

Function at 0x1005ada4
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x10093598
call fcn.10068a21
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x10], eax
mov dword [eax + 0x598], ebx
cmp dword [edi + 4], ebx
jne 0x1005ae3e
lea eax, [ebp - 0xa8]
push eax
call fcn.1005a9d1
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.1001968c
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.1002016f
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.10018fb7
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.1001924f
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.1001fa0c
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.1001f31a
test bl, bl
je 0x1005ae77
mov eax, dword [edi + 0x10]
add eax, 0x588
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [edi + 0x10]
call fcn.1005aee6
test al, al
je 0x1005ae8a
push str.yyyy_MM_dd_HH:mm:ss
jmp 0x1005ae8f
push str.yyyy_MM_dd
push 0
push 0x1032
push dword [edi + 4]
call esi
mov eax, dword [edi + 0x10]
mov ebx, 0x588
add eax, ebx
push 0x10
push eax
lea eax, [edi + 0x1a]
push eax
call fcn.1006b000
mov eax, dword [edi + 0x10]
add esp, 0xc
add eax, ebx
push eax
push 0
push 0x1002
push dword [edi + 4]
call esi
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.100689df
ret 4
Function at 0x1005b3f3
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x100bc0b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x1005b491
push esi
mov esi, 0xff
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.1006b580
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
pop esi
test eax, eax
je 0x1005b491
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.1006b000
mov ecx, dword [ebp - 0x298]
add esp, 0xc
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add eax, ecx
jmp 0x1005b493
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10067e5d
leave
ret

Function at 0x1005b58c
Capabilities:
Hide graphical window

Disassembly:
push 0xa4
mov eax, 0x10093640
call fcn.10068a21
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x590], ebx
cmp dword [edi + 4], ebx
jne 0x1005b649
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 8
push eax
mov dword [ebp - 0x9c], 0x800
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x1005b621
lea eax, [ebp - 0xb0]
mov ecx, edi
push eax
call fcn.1005b19c
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xb0]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40030000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.1001968c
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.1002016f
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.10018fb7
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.1001924f
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.1001fa0c
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.1001f31a
test bl, bl
je 0x1005b681
call fcn.1005b3f3
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x588], eax
mov eax, dword [edi + 0x10]
push dword [eax + 0x588]
push 0
push 0x465
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.100689df
ret 4

Function at 0x1005fce1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004cb36

Function at 0x1005fcea
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp method.DuiLib::CMenuUI.virtual_324
Function at 0x10060cfe
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100bc0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x1c]
push edi
and dword [ebx + 0x770], 0
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], ebx
mov dword [ebx + 0x76c], ecx
mov dword [ebx + 0x774], eax
test ecx, ecx
jne 0x10060d69
call fcn.10060ab3
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test esi, esi
je 0x10060d69
call fcn.10060ab3
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
call fcn.10060ab3
mov edx, ebx
lea ecx, [ebx + 0x10]
neg edx
mov esi, dword [eax]
sbb edx, edx
and edx, ecx
mov ecx, eax
push edx
call dword [esi]
mov ecx, dword [ebx + 0x76c]
test ecx, ecx
je 0x10060d91
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov edi, eax
mov ecx, edi
call fcn.1001968c
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.1001f1cf
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
push 0x88
movsd dword es:[edi], dword [esi]
push SysReAllocString
push 0
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
mov ecx, esi
call fcn.1002016f
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
jmp 0x10060dd6
push edi
call ebx
mov edi, eax
push edi
call ebx
test eax, eax
jne 0x10060dd1
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10067e5d
leave
ret 0x1c

Function at 0x10066923
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100bc0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x210], ebx
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
cmp esi, 0x26
ja 0x100669ce
je 0x10066979
sub esi, 0x21
je 0x10066979
sub esi, 1
je 0x10066979
sub esi, 1
je 0x10066979
sub esi, 1
je 0x10066979
sub esi, 1
jne 0x1006697f
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1006b580
add esp, 0xc
shl edi, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.1001f218
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10067e5d
leave
ret 0xc
sub esi, 0x27
je 0x10066979
sub esi, 1
je 0x10066979
sub esi, 5
jmp 0x10066972
Function at 0x10066c60
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x100942f5
call fcn.10068a21
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x10066d70
lea eax, [ebp - 0xa4]
push eax
call fcn.10066477
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0xa4]
xor eax, eax
push eax
sub esp, 0x10
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push 0x40000080
push eax
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.1001968c
push eax
mov ecx, ebx
call fcn.1002016f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10066d70
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.10018fb7
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.1001924f
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 0x7a6]
push eax
movzx eax, word [ecx + 0x7a4]
mov ecx, ebx
push eax
call fcn.100671b9
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.10066777
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1cc
push eax
call fcn.1001f397
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.1001f31a
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10c]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
call fcn.100689df
ret 4
Function at 0x1007b8a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10068c10
mov eax, dword [0x100bc0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10080e5e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1007b8e4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1007ba40
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10068c40
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100bf4d8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1008400c
mov ecx, dword [esi*4 + 0x100bf4d8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1007ba39
cmp eax, dword [ecx + edi + 0x24]
jne 0x1007ba39
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1007ba39
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1008400c
add esp, 0x14
test edx, edx
jl 0x1007ba39
jg 0x1007b9af
test eax, eax
jb 0x1007ba39
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1007ba39
jl 0x1007b9c9
cmp dword [ebp - 0x1008], eax
ja 0x1007ba39
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1007b9e7
test ebx, ebx
je 0x1007ba20
cmp ecx, edi
jae 0x1007ba20
mov al, byte [ecx]
cmp al, 0xd
jne 0x1007ba01
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1007ba0d
cmp byte [ecx + 1], 0xa
jne 0x1007ba0d
inc ecx
jmp 0x1007ba0d
movzx eax, al
movsx eax, byte [eax + 0x100bc398]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1007b9e7
cmp edx, ebx
jne 0x1007b9e7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1007ba3e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10067e5d
leave
ret

Function at 0x1007c176
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1007c1b5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1007c1b5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1007c1b5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1007c1b5
cmp dword [ecx + 0x74], 0xe
jbe 0x1007c1b5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10081e14
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a745c
push 0x100a7454
push str.FlsAlloc
push 0x1f
call fcn.10081c9c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10081e48
push dword [ebp + 8]
mov ecx, esi
call dword [0x10095658]
call esi
jmp 0x10081e4e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10081e92
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a746c
push 0x100a7464
push str.FlsGetValue
push 0x21
call fcn.10081c9c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10081ec9
push dword [ebp + 8]
mov ecx, esi
call dword [0x10095658]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10081ed1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a7474
push 0x100a746c
push str.FlsSetValue
push 0x22
call fcn.10081c9c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10081f0b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10095658]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]