joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56aac4
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x58a6d4], 0
jne 0x56ab83
mov dword [ebp - 0x10], 0x80000000
push 0x400
call fcn.00570f6d
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x58a6d4], eax
mov dword [ebp - 0xc], 0
jmp 0x56ab08
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x100
jge 0x56ab83
push 8
mov edx, dword [ebp - 0xc]
push edx
call fcn.0056aa6e
add esp, 8
shl eax, 0x18
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
jmp 0x56ab37
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 8
jge 0x56ab64
mov ecx, dword [ebp - 0x18]
and ecx, 0x80000000
test ecx, ecx
je 0x56ab5a
mov edx, dword [ebp - 0x18]
shl edx, 1
xor edx, 0x4c11db7
mov dword [ebp - 0x18], edx
jmp 0x56ab62
mov eax, dword [ebp - 0x18]
shl eax, 1
mov dword [ebp - 0x18], eax
jmp 0x56ab2e
push 0x20
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0056aa6e
add esp, 8
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x58a6d4]
mov dword [ecx + edx*4], eax
jmp 0x56aaff
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jmp 0x56ab9d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jae 0x56abc9
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
xor ecx, dword [ebp + 0x10]
and ecx, 0xff
mov edx, dword [ebp + 0x10]
shr edx, 8
mov eax, dword [0x58a6d4]
mov ecx, dword [eax + ecx*4]
xor ecx, edx
mov dword [ebp + 0x10], ecx
jmp 0x56ab94
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x56b7a7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x56b813
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x56b85c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00576eb0
add esp, 8
test eax, eax
jne 0x56b85a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x56b85e
jmp 0x56b80a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5709ae
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0056d5a9
add esp, 4
and eax, 0xff
test eax, eax
je 0x570a37
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.005716b0
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x570a35
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0x570a35
jmp 0x570a37
jmp 0x5709b7
mov esp, ebp
pop ebp
ret

Function at 0x5736b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x587af8
cmp edx, dword [eax]
je 0x5736d2
add eax, 8
inc ecx
cmp eax, 0x587b88
jl 0x5736c3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x587af8]
jne 0x573800
mov eax, dword [0x58ac50]
cmp eax, 1
je 0x5737da
test eax, eax
jne 0x573703
cmp dword [0x587834], 1
je 0x5737da
cmp edx, 0xfc
je 0x573800
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x57373a
lea eax, [ebp - 0x1a4]
push 0x58a5c0
push eax
call fcn.00571b20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005718a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x57377d
lea eax, [ebp - 0x1a4]
push eax
call fcn.005718a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x58a5bc
push edi
call fcn.00571cd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x58a5a0
push eax
call fcn.00571b20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00571b30
lea eax, [ebp - 0xa0]
push 0x58a59c
push eax
call fcn.00571b30
push dword [esi + 0x587afc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00571b30
push 0x12010
lea eax, [ebp - 0xa0]
push 0x58a574
push eax
call fcn.00575c78
add esp, 0x2c
pop edi
jmp 0x573800
lea eax, [ebp + 8]
lea esi, [esi + 0x587afc]
push 0
push eax
push dword [esi]
call fcn.005718a0
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 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
nop
push 1
nop
pop eax
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
sub ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
push esi
pop edi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
push edi
pop ecx
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x63e8c6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x63e8c6
lcall 0x5de5, 0x8b10c483
jmp loc.011b1b30
Function at 0x41d323
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41d362
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d362
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d362
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41d362
cmp dword [ecx + 0x74], 0xe
jbe 0x41d362
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42f490
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f4bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f4bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x41a2bf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419f6d

Function at 0x41de7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041dcfb

Function at 0x42b9c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40d015
lea edi, [esi - 0xc015]
push edi
or ebp, 0xffffffff
jmp 0x42b9e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42b9e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42b9d8
mov eax, 1
add ebx, ebx
jne 0x42b9fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42b9f0
jne 0x42ba0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b9f0
xor ecx, ecx
sub eax, 3
jb 0x42ba20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42ba92
mov ebp, eax
add ebx, ebx
jne 0x42ba2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42ba38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42ba5c
inc ecx
add ebx, ebx
jne 0x42ba48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42ba3d
jne 0x42ba59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ba3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42ba7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42ba6d
jmp 0x42b9de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42ba7c
add edi, ecx
jmp 0x42b9de
pop esi
mov edi, esi
mov ecx, 0x2a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42ba9a
cmp byte [edi], 2
jne 0x42ba9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42ba9f
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42bb0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2b0e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2b178]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42bacc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2b180]
or eax, eax
je 0x42bb08
mov dword [ebx], eax
add ebx, 4
jmp 0x42bae9
call dword [esi + 0x2b17c]
mov ebp, dword [esi + 0x2b184]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42bb42
sub esp, 0xffffff80
jmp 0x401219
Function at 0x57435b
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x7dde702e]
dec ebx
jnp 0x574354
jnp 0x574354
jnp 0x574354
invalid
Function at 0x5c4dfb
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
ror byte [ecx - 0x760c0838], cl
ror byte [ebx + 0x67e9243c], 1
add dword [eax], eax
add byte [ebx + 0x703d0045], cl
add al, byte [eax]
add byte [ebp + 0x4c], dh
mov ecx, dword [ebp + 4]
mov eax, 0xfffffd90
nop dword [eax]
and ecx, 0x80000000
mov edx, dword [ebp + eax*4 + 0x9c8]
mov esi, edx
and esi, 0x7ffffffe
or esi, ecx
shr esi, 1
mov ecx, edx
and edx, 1
neg edx
and edx, 0x9908b0df
xor edx, dword [ebp + eax*4 + 0xff8]
xor edx, esi
mov dword [ebp + eax*4 + 0x1384], edx
inc eax
invalid
Function at 0x401650
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], 0xffffffff
mov eax, 1
test eax, eax
je 0x401753
lea ecx, [ebp - 0x14]
push ecx
call fcn.0041a930
add esp, 4
lea edx, [ebp - 0x14]
push edx
push 0
push 0x800
push 0x800
push 0xff
push 6
push 3
push 0x431450
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041a9f0
add esp, 4
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4016c3
xor eax, eax
jmp 0x401758
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4016dc
mov dword [ebp - 0x20], 1
jmp 0x4016ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x4016f2
mov dword [ebp - 0x1c], 1
jmp 0x4016f9
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x401744
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
push 0x401790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x401738
xor eax, eax
jmp 0x401758
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40174e
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40166a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d17f
mov esp, ebp
pop ebp
ret
Function at 0x4090d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c8], 0
jne 0x4090ea
jmp 0x409247
movzx ecx, word [ebp + 0xc]
cmp ecx, 0x2d
je 0x409105
movzx edx, word [ebp + 0xc]
cmp edx, 0x5b
je 0x409105
cmp dword [ebp + 8], 0x88
jne 0x40910c
mov dword [ebp + 8], 0x21
movzx eax, word [ebp + 0xc]
cmp eax, 0x3d
je 0x409127
movzx ecx, word [ebp + 0xc]
cmp ecx, 0x5d
je 0x409127
cmp dword [ebp + 8], 0x89
jne 0x40912e
mov dword [ebp + 8], 0x22
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
sub eax, 9
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x1f
ja case.0x409151.1
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x409260]
jmp dword [edx*4 + 0x409250]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00408dd0
jmp 0x409201
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10a]
and edx, 0x40000
mov eax, dword [ecx + 0x10e]
and eax, 0
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0x40000
jne 0x4091c5
cmp dword [ebp - 0xc], 0
jne 0x4091c5
mov dword [ebp + 8], 0x22
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x4091b7
mov dword [ebp + 8], 0x21
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.00408f50
jmp 0x4091ef
mov dword [ebp + 8], 0x28
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x4091e3
mov dword [ebp + 8], 0x26
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00408dd0
jmp 0x409201
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.00408f50
jmp 0x409201
jmp 0x409247
mov eax, dword [ebp - 4]
mov dword [eax + 0xc8], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10a]
and edx, 0
mov eax, dword [ecx + 0x10e]
and eax, 0x40000
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 0
jne 0x409247
cmp dword [ebp - 0x14], 0x40000
jne 0x409247
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc8], 2
mov esp, ebp
pop ebp
ret 8

Function at 0x40c790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x40c7c0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x40c7e0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x40c826
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xffffffff
mov ecx, dword [ebp - 4]
add ecx, 0x598
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c826
mov edx, dword [ebp - 4]
add edx, 0x598
push edx
call fcn.00419090
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40ca50
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x598
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Iime_stc.map
mov ecx, dword [ebp - 4]
add ecx, 0x598
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 4]
add edx, 0x598
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40caa5
mov eax, dword [ebp - 4]
add eax, 0x598
push eax
call fcn.00419090
add esp, 4
push 0
push 2
push 2
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp - 4]
add ecx, 0x598
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x40cada
xor eax, eax
jmp 0x40cba3
push str.Iime_STTrie_Codetable
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x574]
push edx
push 0
push 4
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x40cb26
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xffffffff
xor eax, eax
jmp 0x40cba3
push 0
push 0
push 0
push 0xf001f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
jne 0x40cb7f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0xffffffff
xor eax, eax
jmp 0x40cba3
mov ecx, dword [ebp - 4]
add ecx, 0x580
call fcn.004028a0
push eax
mov ecx, dword [ebp - 4]
call fcn.0040cbb0
test eax, eax
jne 0x40cb9e
xor eax, eax
jmp 0x40cba3
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40ead0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x40eafe
push 0x8000
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0
je 0x40eb27
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x40eb47
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0xffffffff
je 0x40eb8c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 4]
add edx, 0x6fc
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40eb8c
mov eax, dword [ebp - 4]
add eax, 0x6fc
push eax
call fcn.00419090
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x904], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x90c], 0
mov esp, ebp
pop ebp
ret