joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ed0
Capabilities:
Create thread

Disassembly:
sub esp, 0x44
mov eax, dword [0x450c10]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
push 3
push 0x444808
push esi
mov ebp, ecx
call fcn.004417d4
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x404f50
lea eax, [esi + 3]
push eax
call fcn.0042e854
add esp, 4
cmp eax, 0xa
jl 0x404f50
mov dl, byte [0x444804]
mov ecx, dword [str.._]
mov eax, esi
mov byte [esp + 0x40], dl
mov dword [esp + 0x3c], ecx
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404f26
push edi
lea edi, [esp + 0x40]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x404f35
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x40]
pop edi
push ebx
push 0x40000000
push 3
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp], eax
cmp eax, 0xffffffff
jne 0x404f87
pop esi
mov dword [ebp], ebx
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0042ca93
add esp, 0x44
ret 8
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x58]
and eax, 0xfffff7fd
or eax, 1
lea edx, [esp + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x28], 0x1c
mov dword [esp + 0x2c], esi
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3a], 8
call dword [sym.imp.KERNEL32.dll_SetCommState]
mov edx, dword [ebp]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
mov eax, 0x4b00
cdq
idiv esi
mov ecx, dword [ebp]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call esi
push ebx
push ebx
push 1
push ebx
mov dword [ebp + 0x14], eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
call esi
lea edx, [ebp + 0x2c]
push edx
push ebx
push ebp
push 0x404d80
push ebx
push ebx
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x4c]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0042ca93
add esp, 0x44
ret 8
Function at 0x405990
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea edx, [esi + 0x3dc]
push edx
push eax
mov dword [esi + 0x3c8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
mov dword [esi + 0x41c], 0
neg ecx
or ecx, eax
push ecx
call fcn.0042cb50
add esp, 4
mov dword [esi + 0x3e4], eax
pop esi
ret 8

Function at 0x405a00
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
lea ecx, [esp + 0x14]
push ecx
push 4
lea ebp, [esi + 0x3dc]
push ebp
push eax
mov dword [esi + 0x3c8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x14], 0
je 0x405b02
mov eax, dword [ebp]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
push ebx
neg ecx
or ecx, eax
push ecx
call fcn.0042cb50
mov ecx, dword [ebp]
add ecx, ecx
add ecx, ecx
push ecx
push edi
push eax
mov dword [esi + 0x3ec], eax
call fcn.0042cab0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0x10
cmp dword [ebp], edi
jle 0x405ae2
jmp 0x405a90
mov ecx, dword [esi + 0x3c8]
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esi + 0x3c8]
push 1
push 0
push 0xfffffffffffffffc
push edx
call ebx
mov eax, dword [esi + 0x3ec]
mov ecx, dword [esp + 0x18]
mov dword [eax + edi*4], ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x3c8]
push 1
push 0
lea eax, [edx + edx]
push eax
push ecx
call ebx
inc edi
cmp edi, dword [ebp]
jl 0x405a90
mov edx, dword [esi + 0x3c8]
push 0
push 0
push 4
push edx
call ebx
pop ebx
pop edi
mov dword [esi + 0x41c], 0
pop esi
pop ebp
ret 8
mov dword [esi + 0x41c], edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x405b40
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
mov esi, ecx
mov eax, dword [esi + 0x3c8]
push 0
push 4
push eax
mov byte [esi + 0x420], 0
mov dword [esi + 0x41c], ebx
call edi
cmp ebx, dword [esi + 0x3dc]
jge 0x405bc1
dec ebx
test ebx, ebx
jle 0x405bc1
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x3c8]
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push eax
call ebp
mov ecx, dword [esi + 0x3c8]
push 1
push 0
push 0xfffffffffffffffc
push ecx
call edi
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x3c8]
push 1
push 0
lea eax, [edx + edx]
push eax
push ecx
call edi
sub ebx, 1
jne 0x405b80
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x4079a0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [ecx + 0x3cc]
mov ecx, dword [ecx + 0x3d0]
mov edx, dword [esp + 0xc]
push ebx
push ebp
push esi
add ecx, ecx
push edi
mov dword [esp + 0x14], ecx
mov edi, eax
mov dword [esp + 0x10], 0x500
mov ecx, edi
mov esi, 0x180
mov edi, edi
mov eax, dword [ecx]
mov ebx, eax
shr ebx, 5
mov ebp, eax
and ebx, 0xffc0f83f
and ebp, 0x7e0f81f
imul ebx, edx
imul ebp, edx
shr eax, 5
and eax, 0x7c0f83f
imul eax, edx
shr ebp, 5
xor ebx, ebp
and ebx, 0x7e0f81f
xor ebx, eax
mov dword [ecx], ebx
add ecx, 4
sub esi, 1
jne 0x4079d0
add edi, dword [esp + 0x14]
sub dword [esp + 0x10], 1
jne 0x4079c7
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
pop ebx
add esp, 8
ret 4

Function at 0x407d50
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebp
push edi
push 0x44446c
push eax
mov edi, ecx
mov dword [esp + 0x10], 0
call fcn.0042d66f
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x407e8d
push ebx
push esi
push ebp
push 1
lea ebx, [edi + 0x3dc]
push 4
push ebx
call fcn.0042d58e
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042cb50
xor esi, esi
add esp, 0x14
cmp dword [ebx], esi
mov dword [edi + 0x3e0], eax
jle 0x407e61
push ebp
push 1
lea eax, [esp + 0x20]
push 4
push eax
call fcn.0042d58e
push 1
push 0xfffffffffffffffc
push ebp
call fcn.0042e8e9
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042cb50
mov ecx, dword [edi + 0x3e0]
mov dword [ecx + esi*4], eax
mov edx, dword [esp + 0x38]
mov ecx, dword [edi + 0x3e0]
push ebp
lea eax, [edx + edx]
mov edx, dword [ecx + esi*4]
push 1
push eax
push edx
call fcn.0042d58e
add esp, 0x30
test esi, esi
jl 0x407e27
cmp esi, dword [ebx]
jge 0x407e27
mov eax, dword [edi + 0x3e0]
mov ecx, dword [eax + esi*4]
movzx eax, word [ecx + 4]
jmp 0x407e2c
mov eax, 0xffffffce
movsx edx, word [esp + 0x10]
cmp edx, eax
jge 0x407e58
test esi, esi
jl 0x407e4c
cmp esi, dword [ebx]
jge 0x407e4c
mov eax, dword [edi + 0x3e0]
mov ecx, dword [eax + esi*4]
movzx eax, word [ecx + 4]
jmp 0x407e51
mov eax, 0xffffffce
movzx edx, ax
mov dword [esp + 0x10], edx
inc esi
cmp esi, dword [ebx]
jl 0x407db7
movsx eax, word [esp + 0x10]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042cb50
push ebp
mov dword [edi + 0x3e4], eax
call fcn.0042d272
add esp, 8
pop esi
pop ebx
push 0x500
push 0x300
push 0
push 0
add edi, 0x3f0
push edi
call dword [sym.imp.USER32.dll_SetRect]
pop edi
pop ebp
pop ecx
ret 4
Function at 0x408960
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x3c8]
push edi
xor edi, edi
cmp eax, edi
je 0x408b43
push ebx
mov ebx, dword [esp + 0x18]
cmp ebx, 0x25
ja 0x408b42
cmp byte [esp + 0x1c], 0
jne 0x408a8b
mov ecx, dword [esi + 0x3dc]
dec ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi + 0x41c], ecx
jb 0x4089b7
push edi
push edi
push 4
push eax
mov byte [esi + 0x420], 0
mov dword [esi + 0x41c], edi
call ebp
mov eax, dword [esi + 0x3e8]
cmp eax, edi
je 0x4089d0
push eax
call fcn.0042cb2a
add esp, 4
mov dword [esi + 0x3e8], edi
mov ecx, dword [esi + 0x3c8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x20]
push edx
push 4
lea eax, [esp + 0x2c]
push eax
push ecx
call edi
mov edx, dword [esi + 0x3c8]
push 1
push 0
push 0xfffffffffffffffc
push edx
call ebp
mov eax, dword [esp + 0x20]
pop ebp
test eax, eax
jbe 0x408a57
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042cb50
mov edx, dword [esp + 0x20]
add esp, 4
push 0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [edx + edx]
mov edx, dword [esi + 0x3c8]
push ecx
push eax
push edx
mov dword [esi + 0x3e8], eax
call edi
mov eax, dword [esi + 0x3e8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ebx
push 1
push eax
push ecx
push edx
mov ecx, esi
call fcn.00408500
mov edx, dword [esi + 0x3dc]
mov ecx, 1
add dword [esi + 0x41c], ecx
mov eax, dword [esi + 0x41c]
sub edx, ecx
cmp eax, edx
jb 0x408b42
add word [esi + 0x406], cx
pop ebx
pop edi
mov byte [esi + 0x420], cl
pop esi
ret 0x10
mov eax, dword [esi + 0x3e8]
cmp eax, edi
je 0x408ab0
mov ecx, dword [esp + 0x10]
push ebx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.00408500
pop ebx
pop edi
pop esi
ret 0x10
mov edx, dword [esi + 0x41c]
push edx
call fcn.00405b40
mov edx, dword [esi + 0x3c8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push edx
call edi
mov eax, dword [esi + 0x3c8]
push 1
push 0
push 0xfffffffffffffffc
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042cb50
mov edx, dword [esp + 0x20]
add esp, 4
push 0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [edx + edx]
mov edx, dword [esi + 0x3c8]
push ecx
push eax
push edx
mov dword [esi + 0x3e8], eax
call edi
mov eax, dword [esi + 0x3e8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ebx
push 1
push eax
push ecx
push edx
mov ecx, esi
call fcn.00408500
pop ebx
pop edi
pop esi
ret 0x10
Function at 0x408de0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x3c8], 0
je 0x408ea7
mov eax, dword [esi + 0x3dc]
push edi
dec eax
push eax
call fcn.00405b40
mov eax, dword [esi + 0x3c8]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x14]
push edx
push eax
call edi
mov ecx, dword [esi + 0x3c8]
push 1
push 0
push 0xfffffffffffffffc
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042cb50
mov edx, dword [esp + 0xc]
add esp, 4
push 0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edx + edx]
mov edx, dword [esi + 0x3c8]
push ecx
push eax
push edx
mov dword [esi + 0x3e8], eax
call edi
mov eax, dword [esi + 0x3e8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push 1
push eax
push ecx
push edx
mov ecx, esi
call fcn.00408230
mov eax, dword [esi + 0x3e8]
pop edi
test eax, eax
je 0x408ea7
push eax
call fcn.0042cb2a
add esp, 4
mov dword [esi + 0x3e8], 0
pop esi
add esp, 8
ret 8
Function at 0x422a90
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x443b7b
mov eax, dword fs:[0]
push eax
mov eax, 0x13b8
call fcn.0042ee10
mov eax, dword [0x450c10]
xor eax, esp
mov dword [esp + 0x13b4], eax
push ebx
push esi
push edi
mov eax, dword [0x450c10]
xor eax, esp
push eax
lea eax, [esp + 0x13c8]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
cmp byte [0x453be6], bl
jne 0x422c9d
push 0x444a28
push str.CodeGameSet.st
call fcn.0042d66f
add esp, 8
lea ecx, [esp + 0x44]
mov esi, eax
call fcn.0042c490
mov dword [esp + 0x13d0], ebx
cmp esi, ebx
je 0x422c80
mov eax, dword [0x45540c]
mov ecx, dword [edi + 0x374]
mov dword [esp + 0x18], eax
mov eax, dword [0x452308]
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebx
mov ecx, dword [eax + 0x334]
push edx
push ecx
push 0x5367dd2
lea ecx, [esp + 0x50]
call fcn.0042c1f0
lea edx, [esp + 0x10]
push edx
push ebx
push 0x5367dd2
lea ecx, [esp + 0x50]
mov dword [esp + 0x28], eax
call fcn.0042c1f0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
push ebx
push 0x5367dd2
lea ecx, [esp + 0x50]
call fcn.0042c1f0
lea ecx, [esp + 0x10]
push ecx
push ebx
push 0x5367dd2
lea ecx, [esp + 0x50]
mov dword [esp + 0x30], eax
call fcn.0042c1f0
lea edx, [esp + 0x10]
push edx
push ebx
push 0x5367dd2
lea ecx, [esp + 0x50]
mov dword [esp + 0x34], eax
call fcn.0042c1f0
mov ecx, dword [0x453bfc]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
push ecx
push 0x5367dd2
lea ecx, [esp + 0x50]
call fcn.0042c1f0
lea edx, [esp + 0x10]
push edx
push ebx
push 0x5367dd2
lea ecx, [esp + 0x50]
mov dword [esp + 0x3c], eax
call fcn.0042c1f0
mov ecx, dword [0x453c00]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x10]
push eax
push ecx
push 0x5367dd2
lea ecx, [esp + 0x50]
call fcn.0042c1f0
lea edx, [esp + 0x10]
push edx
push ebx
push 0x5367dd2
lea ecx, [esp + 0x50]
mov dword [esp + 0x44], eax
call fcn.0042c1f0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
push eax
push ebx
push 0x5367dd2
lea ecx, [esp + 0x50]
call fcn.0042c1f0
push esi
mov dword [esp + 0x44], eax
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call fcn.0042ef9d
push esi
push 1
push 0x10
push 0x45088c
call fcn.0042ef9d
push esi
push 1
lea edx, [esp + 0x3c]
push 4
push edx
call fcn.0042ef9d
add esp, 0x30
lea edi, [esp + 0x1c]
mov ebx, 0xa
push esi
push 1
push 4
push edi
call fcn.0042ef9d
add esp, 0x10
add edi, 4
sub ebx, 1
jne 0x422c61
push esi
call fcn.0042d272
add esp, 4
lea ecx, [esp + 0x44]
call fcn.0042adb0
lea ecx, [esp + 0x44]
mov dword [esp + 0x13d0], 0xffffffff
call fcn.0042c5f0
mov ecx, dword [esp + 0x13c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x13b4]
xor ecx, esp
call fcn.0042ca93
add esp, 0x13c4
ret
Function at 0x422d40
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x37c]
sub eax, 1
je 0x422e19
sub eax, 1
je 0x422d78
sub eax, 1
jne 0x422e38
mov ecx, dword [ecx + 0x378]
push ecx
push ecx
call fcn.00428320
inc eax
add esp, 4
push eax
call fcn.00428300
add esp, 8
ret
mov edx, dword [ecx + 0x378]
xor eax, eax
cmp edx, eax
jne 0x422dd8
inc dword [ecx + 0x388]
cmp dword [ecx + 0x388], 5
jle 0x422e38
mov dword [ecx + 0x388], eax
mov ecx, dword [0x452308]
mov dword [0x4531e8], eax
mov dword [0x4531ec], eax
mov dword [0x4531f0], eax
mov dword [0x4531f4], eax
mov dword [0x4531f8], eax
mov dword [ecx + 0x5a4], eax
mov ecx, dword [0x452320]
call fcn.0040e680
mov ecx, dword [0x452320]
jmp fcn.0040e680
cmp edx, 2
jne 0x422e38
inc dword [ecx + 0x388]
cmp dword [ecx + 0x388], 5
jle 0x422e38
mov dword [ecx + 0x388], eax
mov edx, dword [0x452308]
mov dword [0x4531e8], eax
mov dword [0x4531ec], eax
mov dword [0x4531f0], eax
mov dword [0x4531f4], eax
mov dword [0x4531f8], eax
mov dword [edx + 0x5a4], eax
jmp 0x422dc2
xor eax, eax
cmp dword [ecx + 0x378], eax
jne 0x422e38
inc dword [ecx + 0x370]
cmp dword [ecx + 0x370], 9
jle 0x422e38
mov dword [ecx + 0x370], eax
ret

Function at 0x422e40
Capabilities:
Write file on windows

Disassembly:
call fcn.004280f0
add dword [0x4531f4], eax
call fcn.00428100
add dword [0x4531f8], eax
call fcn.004280f0
add dword [0x45286c], eax
call fcn.00428100
add dword [0x452870], eax
mov ecx, dword [0x452308]
xor eax, eax
mov dword [0x455798], eax
mov dword [0x455790], eax
mov dword [ecx + 0x5a4], eax
mov ecx, dword [0x452320]
call fcn.0040e680
mov ecx, dword [0x452320]
jmp fcn.0040e680
Function at 0x428340
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x453be0], 1
push esi
movzx esi, word [esp + 8]
push esi
jne 0x42835b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jmp 0x428369
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, dword [esi*4 + 0x4528c8]
je 0x428394
test eax, eax
jne 0x428388
mov dword [esi*4 + 0x4528c8], 1
mov eax, 1
pop esi
ret
cmp eax, 1
jne 0x42839e
mov eax, 2
pop esi
ret
cmp eax, 1
je 0x4283a2
cmp eax, 2
je 0x4283a2
xor eax, eax
pop esi
ret
mov dword [esi*4 + 0x4528c8], 0
mov eax, 3
pop esi
ret
Function at 0x42ca93
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x450c10]
jne 0x42ca9d
repz ret
jmp fcn.0042f2c8

Function at 0x4393bd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004353e7
and dword [ebp - 4], 0
cmp dword [0x456198], 0
mov ebx, eax
jne 0x43946e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43951f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44cd00
push edi
call esi
test eax, eax
je 0x43951f
push eax
call fcn.00435375
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x456198], eax
call esi
push eax
call fcn.00435375
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45619c], eax
call esi
push eax
call fcn.00435375
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4561a0], eax
call esi
push eax
call fcn.00435375
pop ecx
mov dword [0x4561a8], eax
test eax, eax
je 0x43946e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00435375
pop ecx
mov dword [0x4561a4], eax
mov eax, dword [0x4561a4]
cmp eax, ebx
je 0x4394c6
cmp dword [0x4561a8], ebx
je 0x4394c6
push eax
call fcn.004353f0
push dword [0x4561a8]
mov esi, eax
call fcn.004353f0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4394c6
test edi, edi
je 0x4394c6
call esi
test eax, eax
je 0x4394bd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4394bd
test byte [ebp - 0xc], 1
jne 0x4394c6
or dword [ebp + 0x10], 0x200000
jmp 0x4394ff
mov eax, dword [0x45619c]
cmp eax, ebx
je 0x4394ff
push eax
call fcn.004353f0
pop ecx
test eax, eax
je 0x4394ff
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4394ff
mov eax, dword [0x4561a0]
cmp eax, ebx
je 0x4394ff
push eax
call fcn.004353f0
pop ecx
test eax, eax
je 0x4394ff
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x456198]
call fcn.004353f0
pop ecx
test eax, eax
je 0x43951f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x439521
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4019d6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x425040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 7
push ebx
push esi
push edi
mov esi, edx
jbe 0x4019f2
mov ecx, dword [ecx]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401a15
xor al, al
jmp 0x401a3e
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x401a3c
mov eax, dword [ebp + 8]
cmp dword [ebp - 8], eax
jne 0x401a3c
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404a93
leave
ret
Function at 0x403a5c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x403a7d
jl 0x403a74
test edi, edi
jne 0x403a7d
xor eax, eax
xor edx, edx
jmp 0x403b3e
cmp dword [ebx + 0x38], 0
je 0x403a92
push eax
push edi
push dword [ebp + 8]
call fcn.00403b44
jmp 0x403b3e
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x403ad9
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x403ad9
cmp eax, edi
jb 0x403ab3
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00405c10
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x403adf
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x403b33
mov ecx, ebx
call fcn.004032ab
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x403b1e
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040a48a
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x403b33
jmp 0x403af1
test edx, edx
je 0x403b33
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040a48a
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x405421
Capabilities:
Parse pe header

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

Function at 0x40f543
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e2e8
push 0x41e2e0
push 0x41cb24
push 0x1f
call fcn.0040f42a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f577
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b138]
call esi
jmp 0x40f57d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f5c1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e2f8
push 0x41e2f0
push 0x41cb48
push 0x21
call fcn.0040f42a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f5f8
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40f600
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e300
push 0x41e2f8
push 0x41cb5c
push 0x22
call fcn.0040f42a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f63a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41b138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]