joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a934
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x43a962
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x43a969
cmp ebx, dword [eax + 4]
jae 0x43a969
xor eax, eax
jmp 0x43ab59
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43a97a
xor eax, eax
inc eax
jmp 0x43ab58
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43a990
cmp ecx, edx
jae 0x43aad5
cmp dword [eax + 4], 0
je 0x43a999
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43a981
cmp dword [ebp + 8], 0
je 0x43a9bb
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x43aad5
cmp eax, esi
jae 0x43aad5
mov eax, dword [0x582298]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43a9e0
cmp dword [esi*4 + 0x5822a0], edi
je 0x43aad9
inc esi
cmp esi, eax
jl 0x43a9ce
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43ab55
cmp dword [ebp - 8], 0x1000000
jne 0x43ab55
test byte [ebp - 0xc], 0xcc
je 0x43aa5e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43ab55
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43ab55
cmp word [eax + 0x18], 0x10b
jne 0x43ab55
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43ab55
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43aa5e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43aa5e
test byte [ecx + 0x27], 0x80
jne 0x43aad5
push 1
push 0x5822e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x43a972
mov ecx, dword [0x582298]
test ecx, ecx
mov edx, ecx
jle 0x43aa92
lea eax, [ecx*4 + 0x58229c]
cmp dword [eax], edi
je 0x43aa92
dec edx
sub eax, 4
test edx, edx
jg 0x43aa86
test edx, edx
jne 0x43aac3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43aa9f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x43aab7
lea eax, [edx*4 + 0x5822a0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x43aaa5
cmp ecx, 0x10
jge 0x43aac3
inc ecx
mov dword [0x582298], ecx
push 0
push 0x5822e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x43a972
xor eax, eax
jmp 0x43ab58
test esi, esi
jle 0x43a972
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x5822e0
call ebx
test eax, eax
jne 0x43a972
cmp dword [esi*4 + 0x5822a0], edi
je 0x43ab2f
mov eax, dword [0x582298]
lea esi, [eax - 1]
test esi, esi
jl 0x43ab1d
cmp dword [esi*4 + 0x5822a0], edi
je 0x43ab19
dec esi
jns 0x43ab0d
test esi, esi
jge 0x43ab2d
cmp eax, 0x10
jge 0x43ab28
inc eax
mov dword [0x582298], eax
lea esi, [eax - 1]
jmp 0x43ab2f
je 0x43ab47
xor ecx, ecx
test esi, esi
jl 0x43ab47
lea eax, [ecx*4 + 0x5822a0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x43ab35
push 0
push 0x5822e0
call ebx
jmp 0x43a972
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43d432
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x57dcc0]
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
test esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x43d4ba
push esi
call fcn.00442155
test eax, eax
pop ecx
jne 0x43d482
call fcn.0042ee91
mov dword [eax], 0xf
call fcn.0042ee88
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042b9ea
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x43d4cd
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x43d472
inc eax
cmp eax, esi
ja 0x43d472
test edi, edi
mov ecx, edi
jne 0x43d503
cmp eax, dword [ebp + 0x10]
jg 0x43d4e4
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.0042ca33
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x43d518
call fcn.0042ee88
mov dword [eax], 0xc
jmp 0x43d472
cmp eax, dword [ebp + 0x10]
jle 0x43d518
call fcn.0042ee88
mov dword [eax], 0x22
jmp 0x43d472
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.0042c01f
pop ecx
pop ecx
jmp 0x43d474

Function at 0x43d5f1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x5822e8], ebx
push esi
push edi
jne 0x43d671
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43d6ac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x5822e8], eax
je 0x43d6ac
push 0x54906c
push edi
call esi
push 0x549058
push edi
mov dword [0x5822ec], eax
call esi
cmp dword [0x581d9c], 2
mov dword [0x5822f0], eax
jne 0x43d671
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x5822f8], eax
je 0x43d671
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x5822f4], eax
mov eax, dword [0x5822f4]
test eax, eax
je 0x43d6b6
call eax
test eax, eax
je 0x43d69d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x5822f8]
test eax, eax
je 0x43d69d
test byte [ebp - 8], 1
jne 0x43d6b6
cmp dword [0x581da8], 4
jb 0x43d6b0
or byte [ebp + 0x12], 0x20
jmp 0x43d6d5
xor eax, eax
jmp 0x43d6e5
or byte [ebp + 0x12], 4
jmp 0x43d6d5
mov eax, dword [0x5822ec]
test eax, eax
je 0x43d6d5
call eax
mov ebx, eax
test ebx, ebx
je 0x43d6d5
mov eax, dword [0x5822f0]
test eax, eax
je 0x43d6d5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x5822e8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x442155
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x442183
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x442188
cmp eax, 1
je 0x442188
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x442c5b
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042c840
mov eax, dword [0x57dcc0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0043549b
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x442d90
push 2
push esi
push dword [ebp + 8]
call fcn.0043549b
add esp, 0xc
cmp eax, ebx
je 0x442d90
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x442d30
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0042c040
push 0x8000
push dword [ebp + 8]
call fcn.004435d1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x442ce6
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00435234
add esp, 0xc
cmp eax, 0xffffffff
je 0x442d06
sub edi, eax
test edi, edi
jg 0x442cde
jmp 0x442d1e
call fcn.0042ee91
cmp dword [eax], 5
jne 0x442d1b
call fcn.0042ee88
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004435d1
pop ecx
pop ecx
jmp 0x442d78
jge 0x442d78
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043549b
push dword [ebp + 8]
call fcn.0044073a
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x442d78
call fcn.0042ee88
mov dword [eax], 0xd
call fcn.0042ee91
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0043549b
add esp, 0xc
mov eax, esi
pop edi
jmp 0x442d92
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b9ea
leave
ret
Function at 0x443391
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4433aa
or eax, 0xffffffff
jmp 0x44340b
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x443407
push 0x3d
push esi
call fcn.00443668
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x443407
cmp esi, eax
je 0x443407
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x581dbc]
sete cl
cmp eax, dword [0x581dc0]
mov dword [ebp - 4], ecx
jne 0x4433ed
mov edi, eax
call fcn.00443330
mov dword [0x581dbc], eax
cmp eax, ebx
jne 0x443446
cmp dword [ebp + 0xc], ebx
je 0x44340f
cmp dword [0x581dc4], ebx
je 0x44340f
call fcn.00442907
test eax, eax
je 0x443446
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x443418
xor eax, eax
jmp 0x44340a
push 4
call fcn.0042ca33
cmp eax, ebx
pop ecx
mov dword [0x581dbc], eax
je 0x443407
mov dword [eax], ebx
cmp dword [0x581dc4], ebx
jne 0x443446
push 4
call fcn.0042ca33
cmp eax, ebx
pop ecx
mov dword [0x581dc4], eax
je 0x443407
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x581dbc]
sub edi, esi
push esi
call fcn.004432e3
mov edi, eax
test edi, edi
pop ecx
jl 0x4434ad
cmp dword [ebx], 0
je 0x4434ad
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0042c87d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x44348d
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4434ee
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x443484
mov eax, edi
shl eax, 2
push eax
push dword [0x581dbc]
call fcn.0042eca0
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4434ee
jmp 0x4434e9
cmp dword [ebp - 4], 0
jne 0x443555
test edi, edi
jge 0x4434bd
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x581dbc]
call fcn.0042eca0
test eax, eax
pop ecx
pop ecx
je 0x443407
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x581dbc], eax
cmp dword [ebp + 0xc], 0
je 0x443540
push esi
call fcn.0042cd00
inc eax
inc eax
push eax
call fcn.0042ca33
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x443540
push esi
push edi
call fcn.00432e60
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x443539
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.0042c87d
pop ecx
cmp dword [ebp - 4], 0
je 0x44354d
push esi
call fcn.0042c87d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x44340a
push esi
call fcn.0042c87d
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x443414
Function at 0x4485d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push 0x5242a8
push eax
mov eax, dword [esp + 0x20]
sub eax, ecx
mov dword fs:[0], esp
sub esp, 0x14
cdq
push ebx
sub eax, edx
sar eax, 1
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
lea edi, [eax + ecx - 0xa]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
test esi, esi
lea ebx, [eax + ecx - 0xa]
jne 0x44861e
xor eax, eax
jmp 0x448621
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x48]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00467640
mov eax, dword [esp + 0x4c]
test eax, eax
mov dword [esp + 0x2c], 0
mov ecx, esi
lea ebp, [ebx + 6]
lea eax, [esp + 0x38]
je 0x44869c
lea edx, [edi + 7]
push edx
push ebp
push eax
call fcn.005057f7
lea ecx, [edi + 0xb]
lea eax, [ebx + 0xa]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x3c], eax
call fcn.0050545d
lea eax, [edi + 8]
push eax
add ebx, 0xd
push ebx
mov ecx, esi
call fcn.0050545d
lea eax, [edi + 8]
push eax
push ebp
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.005057f7
mov ecx, dword [esp + 0x34]
lea eax, [edi + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.0050545d
add edi, 9
jmp 0x4486ed
lea edx, [edi + 9]
push edx
push ebp
push eax
call fcn.005057f7
lea ecx, [edi + 0xb]
lea eax, [ebx + 8]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x3c], eax
call fcn.0050545d
lea edx, [edi + 6]
push edx
add ebx, 0xd
push ebx
mov ecx, esi
call fcn.0050545d
lea eax, [edi + 0xa]
push eax
push ebp
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.005057f7
mov eax, dword [esp + 0x34]
lea edx, [edi + 0xc]
push edx
push eax
mov ecx, esi
call fcn.0050545d
add edi, 7
push edi
mov ecx, esi
push ebx
call fcn.0050545d
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004676d0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x1c
Function at 0x451630
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ecx
mov ecx, dword [esi + 0xf0]
push ebp
push eax
call fcn.004a26e0
mov ebx, eax
mov eax, dword [esi + 0xc4]
cmp eax, 0xffffffff
je 0x451693
cmp dword [esi + 0xf4], 5
jne 0x451693
cmp dword [esi + 0xec], 1
jne 0x451693
test ebx, ebx
je 0x451672
cmp dword [ebx + 0x7c], eax
je 0x451693
cmp eax, dword [esi + 0xc0]
jne 0x451688
mov edx, dword [esi]
push 0
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0x13c]
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00450510
test ebx, ebx
je 0x4517c8
mov eax, esi
push edi
mov edi, edi
mov ecx, dword [eax + 0xf8]
test ecx, ecx
jne 0x4516ba
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x178]
test eax, eax
jne 0x4516a0
jmp 0x4516cf
mov eax, dword [eax + 0xf8]
test eax, eax
je 0x4516cf
mov ecx, dword [eax + 0x58]
test ecx, ecx
jne 0x451774
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x451774
push esi
push 0x57eee8
call fcn.00503cc1
add esp, 8
test eax, eax
je 0x451774
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x451774
mov ecx, esi
call fcn.0044e970
mov edi, eax
test edi, edi
je 0x451774
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x451774
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x451774
push 1
mov ecx, edi
call fcn.00457c80
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00450510
mov edx, dword [esi]
push 0
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0x13c]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push ebp
push ecx
mov ecx, ebx
call dword [eax + 0x100]
push 0
mov ecx, edi
call fcn.00457c80
push 0
mov ecx, edi
call fcn.00456b70
mov ecx, edi
call fcn.004576e0
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, esi
mov ecx, dword [eax + 0xf8]
test ecx, ecx
jne 0x451790
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x178]
test eax, eax
jne 0x451776
jmp 0x4517af
mov eax, dword [eax + 0xf8]
test eax, eax
je 0x4517af
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x4517af
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x45176d
mov eax, dword [esp + 0x18]
mov edx, dword [ebx]
push ebp
push eax
push 0
mov ecx, ebx
call dword [edx + 0xe0]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, esi
call fcn.004fdae9
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x452750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5248a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push 1
lea edx, [esp + 0x28]
push edx
push ecx
push eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x28], edi
call fcn.0050eeff
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00403640
mov edi, dword [esp + 0x34]
add eax, 0x10
add esp, 0x18
mov dword [edi], eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4527e6
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4554f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xf0]
push esi
call fcn.004a2450
call fcn.00517c07
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0xc]
push 0xf1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x455536
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x455536
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x45553d
pop esi
xor eax, eax
pop ebx
ret 8
movzx ecx, word [esi + 6]
push ebp
shl ecx, 2
push edi
push ecx
call fcn.0050102e
mov edi, eax
xor eax, eax
add esp, 4
cmp word [esi + 6], ax
jbe 0x455572
lea ecx, [esi + 8]
lea esp, [esp]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 2
cmp eax, edx
jl 0x455560
movzx eax, word [esi + 6]
push eax
push edi
mov ecx, ebx
call fcn.004552c0
mov ebp, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4555d1
mov ecx, ebx
call fcn.0044eb10
movzx edx, word [esi + 4]
movzx ecx, word [esi + 2]
push 0
push edx
mov edx, dword [esp + 0x1c]
push ecx
movzx ecx, word [esi + 6]
push ecx
push edi
push edx
mov ecx, eax
call fcn.00499040
test eax, eax
jne 0x4555b4
xor ebp, ebp
mov ax, word [esi + 2]
cmp ax, 0x10
je 0x4555d1
movzx ecx, word [esi + 4]
movzx eax, ax
mov dword [ebx + 0x100], eax
mov dword [ebx + 0x104], ecx
push edi
call fcn.00501033
add esp, 4
pop edi
mov eax, ebp
pop ebp
pop esi
pop ebx
ret 8
Function at 0x45a080
Capabilities:
Log keystrokes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
cmp dword [eax + 0x58], 2
jne 0x45a092
xor eax, eax
pop esi
ret 4
push ebp
mov ebp, dword [esp + 0xc]
cmp ebp, 0x60
jb 0x45a0af
cmp ebp, 0x69
ja 0x45a0af
mov ecx, dword [eax + 0x78]
test ecx, ecx
jne 0x45a0af
pop ebp
xor eax, eax
pop esi
ret 4
push 2
push ebp
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
je 0x45a0a8
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x50]
mov edi, eax
test edi, edi
je 0x45a0dc
mov ecx, edi
call fcn.00454d60
test eax, eax
je 0x45a0dc
mov eax, 1
jmp 0x45a0de
xor eax, eax
neg eax
sbb eax, eax
and eax, edi
push ebx
mov ebx, eax
mov eax, dword [esi + 0x80]
xor edi, edi
test eax, eax
jle 0x45a14b
test edi, edi
jl 0x45a10d
mov eax, dword [esi + 0x80]
cmp edi, eax
jge 0x45a10d
cmp edi, eax
jge 0x45a140
mov ecx, dword [esi + 0x7c]
mov ebp, dword [ecx + edi*4]
jmp 0x45a10f
xor ebp, ebp
mov eax, dword [ebp + 0xd4]
test eax, eax
jne 0x45a145
mov edx, dword [esi + 0x70]
test byte [edx + 0x58], 1
je 0x45a133
test ebx, ebx
jne 0x45a133
mov ecx, ebp
call fcn.00454d60
test eax, eax
je 0x45a133
mov ebx, ebp
mov eax, dword [esi + 0x80]
inc edi
cmp edi, eax
jl 0x45a0f3
jmp 0x45a147
call fcn.004f9708
mov ebx, ebp
mov ebp, dword [esp + 0x14]
test ebx, ebx
je 0x45a1eb
mov ecx, ebx
call fcn.00454d60
test eax, eax
je 0x45a1eb
mov eax, dword [ebx]
push ebp
mov ecx, ebx
call dword [eax + 0x1d8]
test eax, eax
jne 0x45a1df
lea ecx, [esp + 0x14]
push ecx
push ebp
push ebx
mov ecx, esi
call fcn.00459d60
mov ebp, eax
test ebp, ebp
je 0x45a1eb
mov edi, dword [ebp + 0xf8]
mov eax, dword [edi + 0xd4]
test eax, eax
mov ebx, dword [ebp + 0x7c]
jne 0x45a19f
mov ecx, esi
call fcn.004576e0
push 1
mov ecx, esi
call fcn.004575c0
push 1
push 0
mov dword [esi + 0x40], 1
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 0x134]
mov eax, dword [edi]
push 1
push ebx
mov ecx, edi
call dword [eax + 0x13c]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x45a1df
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xa8]
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
ret 4
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
ret 4
Function at 0x45a200
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
cmp dword [ebx + 4], 0x104
push esi
mov esi, ecx
jne 0x45a2a6
test byte [ebx + 0xf], 0x20
je 0x45a2a6
call fcn.004575f0
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x45a2a6
push 0
mov ecx, esi
call fcn.004575f0
mov ecx, eax
call fcn.004a9080
test eax, eax
jne 0x45a2a6
mov ecx, esi
call fcn.004575f0
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x45a256
mov eax, dword [eax + 0x1c]
push eax
call fcn.004a8e30
add esp, 4
test eax, eax
je 0x45a2a6
cmp dword [ebx + 8], 0x12
jne 0x45a27c
push 1
mov ecx, esi
call fcn.004575c0
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esi + 0x20]
test eax, eax
je 0x45a28f
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
js 0x45a2a6
mov eax, dword [ebx + 8]
test eax, eax
je 0x45a2a6
push eax
mov ecx, esi
call fcn.0045a080
test eax, eax
jne 0x45a357
mov eax, dword [ebx + 4]
cmp eax, 0x105
je 0x45a2b7
cmp eax, 0x101
jne 0x45a2e7
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x45a2e7
mov eax, dword [esi + 0xac]
test eax, eax
je 0x45a2e7
push 0
mov ecx, esi
call fcn.004575f0
mov ecx, eax
call fcn.004a9080
test eax, eax
jne 0x45a2e7
push eax
mov ecx, esi
call fcn.004575c0
mov eax, dword [ebx + 4]
cmp eax, 0x7b
je 0x45a2f6
cmp eax, 0x105
jne 0x45a364
test esi, esi
jne 0x45a30b
push 0x44eeb0
mov ecx, 0x582d9c
call fcn.00519b48
jmp 0x45a32a
mov eax, dword [esi + 0xa4]
test eax, eax
jne 0x45a32a
push 0x44eeb0
mov ecx, 0x582d9c
call fcn.00519b48
mov dword [esi + 0xa4], eax
push 0
mov ecx, eax
call fcn.004a9080
test eax, eax
je 0x45a364
push 0x44ee50
mov ecx, 0x582d98
call fcn.00519b48
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push ecx
push edx
push 0x7b
mov ecx, eax
call fcn.004a83e0
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
cmp dword [ebx + 4], 0x20a
push edi
jne 0x45a41d
push 0x44ee50
mov ecx, 0x582d98
call fcn.00519b48
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jle 0x45a3b4
push 0x44ee50
mov ecx, 0x582d98
call fcn.00519b48
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push ecx
push edx
push 0x20a
mov ecx, eax
call fcn.004a83e0
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
lea ecx, [esp + 0xc]
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test edi, edi
je 0x45a41d
cmp dword [edi + 0xec], 3
jne 0x45a41d
mov edx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], edx
call fcn.004671a0
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
pop ebp
je 0x45a41d
xor edx, edx
cmp word [ebx + 0xa], dx
mov ecx, edi
setle dl
push edx
call fcn.004bb970
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
mov eax, dword [ebx + 4]
cmp eax, 0x100
jb 0x45a44c
cmp eax, 0x108
ja 0x45a44c
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x45a43b
mov eax, dword [eax + 0x1c]
mov ecx, dword [esi + 0xb0]
push ebx
push eax
call fcn.004af630
test eax, eax
jne 0x45a40f
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret 4