joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e6b
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x4068cc
call fcn.0040622c
mov esi, ecx
imul esi, esi, 0x14
push dword [esi + 0x40a060]
mov edx, dword [esi + 0x40a05c]
lea ecx, [ebp - 0x10]
call fcn.00404d7c
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jne 0x404eb1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040200f
mov al, bl
call fcn.004062cb
ret
push 0x5c
lea eax, [ebp - 0x10]
call fcn.00403ebf
push dword [esi + 0x40a064]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.004020ea
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040200f
cmp esi, ebx
je 0x404e9e
mov bl, 1
jmp 0x404e9e

Function at 0x404eec
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
push 6
pop ecx
xor ebx, ebx
push 0x80000004
push ebx
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x404f52
push esi
push 4
push str.kxescore
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x404f4c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x404f49
cmp dword [ebp - 0x1c], 4
jne 0x404f49
mov bl, 1
push edi
call esi
push dword [ebp - 4]
call esi
pop esi
pop edi
mov al, bl
pop ebx
leave
ret

Function at 0x404fe4
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x4068cc
call fcn.0040622c
xor ebx, ebx
xor esi, esi
push dword [esi + 0x40a060]
mov edx, dword [esi + 0x40a05c]
lea ecx, [ebp - 0x10]
call fcn.00404d7c
pop ecx
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x40501c
or dword [ebp - 4], 0xffffffff
jmp 0x405069
lea eax, [ebp - 0x10]
push eax
call fcn.00405226
push 0x5c
lea eax, [ebp - 0x10]
call fcn.00403ebf
push dword [esi + 0x40a064]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.004020ea
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040200f
test edi, edi
je 0x405062
or ebx, dword [esi + 0x40a068]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040200f
add esi, 0x14
cmp esi, 0xdc
jb 0x404ff4
mov eax, ebx
call fcn.004062cb
ret
Function at 0x405088
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x14
mov eax, 0x4068a9
call fcn.0040622c
xor edi, edi
push str.Install_Path
mov edx, str.SOFTWAREkingsoft_shoujizhushou
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov byte [ebp - 0xe], 0
call fcn.00404d7c
pop ecx
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], edi
jne 0x4050d0
xor bl, bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040200f
mov al, bl
call fcn.004062cb
ret
push 0x5c
lea eax, [ebp - 0x14]
call fcn.00403ebf
lea eax, [ebp - 0x20]
push str.krapidservice.dll
push eax
lea ecx, [ebp - 0x14]
call fcn.004020ea
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
je 0x405127
lea eax, [ebp - 0x1c]
push str.krapidtrans.dll
push eax
lea ecx, [ebp - 0x14]
call fcn.004020ea
pop ecx
pop ecx
push 3
pop ebx
push dword [eax]
call esi
test eax, eax
mov byte [ebp - 0xd], 1
jne 0x40512b
mov byte [ebp - 0xd], 0
test bl, 2
je 0x40513e
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
and ebx, 0xfffffffd
call fcn.0040200f
test bl, 1
mov dword [ebp - 4], edi
je 0x405151
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040200f
cmp byte [ebp - 0xd], 0
je 0x405195
lea eax, [ebp - 0x20]
push str._appdataphonecfg.dat
push eax
lea ecx, [ebp - 0x14]
call fcn.004020ea
pop ecx
pop ecx
push dword [eax]
push edi
push 0x4084c0
push str.LBWifi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
mov eax, dword [ebp - 0x20]
setne bl
add eax, 0xfffffff0
call fcn.0040200f
test bl, bl
je 0x405195
mov byte [ebp - 0xe], 1
mov bl, byte [ebp - 0xe]
jmp 0x4050bd

Function at 0x4052dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40533f
cmp dword [ebp + 0xc], 1
je 0x405318
cmp dword [ebp + 0xc], 2
je 0x405318
push 0xd
pop eax
jmp 0x40533f
test edi, edi
mov eax, dword [ebp - 4]
je 0x405339
test eax, eax
je 0x405335
test al, 1
jne 0x405313
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x405339
jmp 0x405313
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x40553a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x40a020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00405479
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x405589
cmp dword [ebp - 0x1c], 5
jb 0x4055a1
jmp 0x40559d
cmp dword [ebp - 0x10], 1
jne 0x4055a1
cmp dword [ebp - 0x1c], 4
ja 0x40559d
jne 0x4055a1
cmp dword [ebp - 0x18], 0
jbe 0x4055a1
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40725c
call fcn.0040203b
test eax, eax
jge 0x4055c2
mov byte [0x40a5cc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004058fe
add ebp, 0x78
leave
ret

Function at 0x4058fe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a020]
jne 0x405908
repz ret
jmp fcn.00405e38
Function at 0x409a11
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x413540
call fcn.00409da4
mov edi, 0x94
mov eax, edi
call fcn.0040f460
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x413120]
mov ecx, dword [esi + 0x10]
mov dword [0x418d24], ecx
mov eax, dword [esi + 4]
mov dword [0x418d30], eax
mov edx, dword [esi + 8]
mov dword [0x418d34], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x418d28], esi
cmp ecx, 2
je 0x409a71
or esi, 0x8000
mov dword [0x418d28], esi
shl eax, 8
add eax, edx
mov dword [0x418d2c], eax
xor edi, edi
push edi
call dword [0x413110]
cmp word [eax], 0x5a4d
jne 0x409aaa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409aaa
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x409ac2
cmp eax, 0x20b
je 0x409aaf
mov dword [ebp - 0x1c], edi
jmp 0x409ad6
cmp dword [ecx + 0x84], 0xe
jbe 0x409aaa
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x409ad0
cmp dword [ecx + 0x74], 0xe
jbe 0x409aaa
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.0040babe
pop ecx
test eax, eax
jne 0x409b02
cmp dword [0x418d70], 2
je 0x409aef
call fcn.0040f025
push 0x1c
call fcn.0040ee84
push 0xff
call fcn.004097a5
pop ecx
pop ecx
call fcn.0040edfc
mov dword [ebp - 4], edi
call fcn.00409e8d
test eax, eax
jge 0x409b1b
push 0x1b
call fcn.00409972
pop ecx
call dword [0x41311c]
mov dword [0x419380], eax
call fcn.0040f333
mov dword [0x418d68], eax
call fcn.0040f291
test eax, eax
jge 0x409b41
push 8
call fcn.00409972
pop ecx
call fcn.0040f05e
test eax, eax
jge 0x409b52
push 9
call fcn.00409972
pop ecx
call fcn.0040980b
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x409b65
push eax
call fcn.00409972
pop ecx
mov eax, dword [0x418d44]
mov dword [0x418d48], eax
push eax
push dword [0x418d3c]
push dword [0x418d38]
call fcn.00407540
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x1c], edi
jne 0x409b94
push esi
call fcn.00409932
call fcn.00409954
jmp 0x409bc6
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00409ddf
ret
Function at 0x411726
Capabilities:
Encode data using xor

Disassembly:
cmc
js 0x411780
mov edx, 0x4ab56255
mov gs, word [edx]
std
aad 0xa4
pop ebx
xor al, 0x78
loope 0x411765
mov edi, 0x4549359c
inc edi
adc byte [ebx + edx*4 + 0x6492fbff], ah
xlatb
test bl, dh
push edx
push esi
push ebp
imul ebp, dword [ecx], 0x14
ret 0xe438
sub dword [esi - 0x49], edi
dec esi
movsb byte es:[edi], byte [esi]
adc byte [esp + eax], ah
hlt
mov ah, 0xb6
dec esi
movsd dword es:[edi], dword [esi]
mov al, byte [0xa8fb8cb3]
mov ecx, 0x61303898
sbb al, al
xor edx, ebx
jae 0x411790
test dword [edx - 0xda250bc], edx
je 0x4117d4
leave
pop edx
push ebx
invalid
rcr dword [eax], 8
add bl, dl
shr dword es:[eax + 0x3a0d610d], 0x4c
shl dword [esi], cl
shr dword [eax + 0x3a0d610d], 0x4c
je 0x41182d
xor cl, byte [0x179686e1]
dec ecx
fldenv [eax - 0x77]
pop esi
mov byte [0x761c0e0d], al
add byte [edi], 0x5a
loop 0x4117ce
invalid
and eax, 0x70618143
jp 0x4118ad
nop
sub eax, 0xa3210b11
invalid
xor ecx, dword [ecx + 0x10]
push cs
invalid
Function at 0x409640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d493
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5cf024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5d56d4]
cmp eax, dword [ecx + 4]
jle 0x409705
push 0x5d56d4
call fcn.0051dec2
add esp, 4
cmp dword [0x5d56d4], 0xffffffff
jne 0x409705
mov dword [ebp - 4], 1
xor eax, eax
mov dword [0x5d56e8], 0
mov dword [0x5d56ec], 0
mov dword [0x5d56e8], 0
mov dword [0x5d56ec], 7
mov word [0x5d56d8], ax
mov byte [ebp - 4], 1
push 0x56f5f0
call fcn.0051dd7a
mov byte [ebp - 4], 0
push 0x5d56d4
call fcn.0051de78
add esp, 8
cmp dword [0x5d56e8], 0
jne 0x4097d8
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4097d8
add eax, eax
cmp eax, 0x208
jae 0x409811
xor ecx, ecx
mov dword [ebp - 0x220], ecx
mov word [ebp + eax - 0x218], cx
xor eax, eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x220], ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x230], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409771
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00407b80
mov dword [ebp - 4], 4
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
mov ecx, 0x5d56d8
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00407b80
mov ecx, 0x5d56d8
call fcn.0040a430
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00407e00
push 0x5d56d8
mov ecx, esi
call fcn.004071f0
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051dacc
mov esp, ebp
pop ebp
ret
call fcn.0051e0ba
int3
Function at 0x4098f0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d5e4
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5cf024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x238], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x234], 0
cmp dword [edx + 0x14], 8
jb 0x409940
mov edx, dword [edx]
lea ecx, [ebp - 0x218]
push ecx
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40997f
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 1
jmp 0x409a60
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4099d5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00407b80
mov dword [ebp - 4], 3
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x238], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
call fcn.004071f0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00487fb0
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.004883e0
mov byte [ebp - 4], 3
mov dword [ebp - 0x234], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00407e00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051dacc
mov esp, ebp
pop ebp
ret
Function at 0x409ff0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d8f6
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5cf024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword fs:[0x2c]
mov edi, dword [eax]
mov eax, dword [0x5d56f0]
cmp eax, dword [edi + 4]
jle 0x40a07b
push 0x5d56f0
call fcn.0051dec2
add esp, 4
cmp dword [0x5d56f0], 0xffffffff
jne 0x40a07b
mov dword [ebp - 4], 0
mov ecx, 0x5d56f4
call fcn.0040a200
mov byte [ebp - 4], 0
push 0x56f640
call fcn.0051dd7a
mov dword [ebp - 4], 0xffffffff
push 0x5d56f0
call fcn.0051de78
add esp, 8
mov eax, dword [0x5d56b8]
cmp eax, dword [edi + 4]
jle 0x40a0f7
push 0x5d56b8
call fcn.0051dec2
add esp, 4
cmp dword [0x5d56b8], 0xffffffff
jne 0x40a0f7
mov dword [ebp - 4], 2
xor eax, eax
mov dword [0x5d56cc], 0
mov dword [0x5d56d0], 0
mov dword [0x5d56cc], 0
mov dword [0x5d56d0], 7
mov word [0x5d56bc], ax
mov byte [ebp - 4], 2
push 0x56f5a0
call fcn.0051dd7a
mov dword [ebp - 4], 0xffffffff
push 0x5d56b8
call fcn.0051de78
add esp, 8
cmp dword [esi + 0x14], 8
mov edi, esi
mov ebx, dword [esi + 0x10]
jb 0x40a104
mov edi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
add ebx, ebx
je 0x40a121
nop
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x40a110
push edx
push esi
lea eax, [ebp - 0x64]
mov ecx, 0x5d56f4
push eax
call fcn.0040b020
mov eax, dword [eax + 4]
test eax, eax
je 0x40a145
cmp eax, dword [0x5d56f8]
je 0x40a145
add eax, 0x20
jmp 0x40a14a
mov eax, 0x5d56bc
cmp dword [eax + 0x10], 0
jne 0x40a1dc
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x40a15e
mov edx, dword [esi]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00409820
add esp, 4
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x40]
push esi
call fcn.004071f0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x58]
push eax
call fcn.004071f0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x64]
mov ecx, 0x5d56f4
push eax
call fcn.0040a730
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.00407e00
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.00407e00
mov esi, dword [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00407e00
lea eax, [esi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051dacc
mov esp, ebp
pop ebp
ret
Function at 0x40b920
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53dd68
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5cf024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x54], ecx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 4]
sub eax, 0x200
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
cmp eax, 0xe
ja 0x40b9a4
push 0x10
call esi
bt ax, 0xf
jb 0x40ba4b
push 0x11
call esi
bt ax, 0xf
jb 0x40ba4b
push 0x12
call esi
bt ax, 0xf
jb 0x40ba4b
mov eax, dword [edi + 4]
sub eax, 0x100
cmp eax, 9
ja 0x40ba8d
push 0x11
call esi
bt ax, 0xf
jae 0x40b9d2
mov eax, dword [edi + 8]
cmp eax, 0x58
je 0x40b9d2
cmp eax, 0x43
je 0x40b9d2
cmp eax, 0x56
jne 0x40ba4b
push 0x12
call esi
bt ax, 0xf
jae 0x40b9ea
mov eax, dword [edi + 8]
cmp eax, 0x25
je 0x40ba4b
cmp eax, 0x27
je 0x40ba4b
cmp dword [edi + 4], 0x100
jne 0x40ba8d
mov eax, dword [edi + 8]
cmp eax, 8
jne 0x40ba43
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 0x14]
call fcn.00415440
mov esi, eax
mov dword [ebp - 0x54], esi
test esi, esi
je 0x40ba19
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
test esi, esi
je 0x40ba58
mov dl, 1
mov ecx, esi
call fcn.00415520
test al, al
je 0x40ba58
mov byte [ebp - 4], 4
mov byte [ebp - 4], 0
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [edi + 8]
add eax, 0xffffff90
cmp eax, 0xb
ja 0x40ba8d
mov dword [ebx], 1
mov eax, 1
jmp 0x40ba96
mov dword [ebx], 1
mov byte [ebp - 4], 3
mov byte [ebp - 4], 0
test esi, esi
je 0x40ba70
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, 1
jmp 0x40ba96
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051dacc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40cd30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e378
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x40ce98
mov eax, dword [0x5d53fc]
mov ecx, ebx
push dword [eax - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.0040d130
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x40ceec
mov ecx, dword [0x5d53fc]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40cdb6
test dx, dx
je 0x40cdb2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40cdb6
add ecx, 4
add eax, 4
test dx, dx
jne 0x40cd90
xor esi, esi
jmp 0x40cdbb
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cddf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x40ce38
mov eax, dword [0x5d53fc]
mov ecx, ebx
push dword [eax - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.0040d2c0
mov dword [ebp - 4], 2
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ce79
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40ce79
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ce38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.0040d1f0
mov dword [ebp - 4], 5
mov ecx, 0x57ce94
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ceae
test dx, dx
je 0x40ce75
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ceae
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ce53
xor esi, esi
jmp 0x40ceb3
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40ce98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40ced2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x40ce98
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00408f80
int3
Function at 0x4150f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ce50
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x415175
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x415175
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x415157
cmp esi, edx
jae 0x415175
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x415145
cmp esi, edx
jae 0x415175
cmp word [esi], 0
je 0x415175
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret