joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c703
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x42fa7e
call fcn.004104e3
mov ebx, ecx
and dword [ebp - 0x18], 0
cmp dword [ebx], 0
je 0x40c7e0
cmp dword [ebx], 0xffffffff
je 0x40c7e0
push 0x40
pop esi
push esi
lea ecx, [ebp - 0x24]
call fcn.0040c8c2
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40c744
mov ecx, dword [eax]
jmp 0x40c746
mov ecx, eax
mov edi, dword [ebp - 0x24]
lea eax, [esi + esi]
mov dword [ebp - 0x14], eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push esi
push ecx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c79a
cmp dword [ebp - 0x10], 1
je 0x40c779
cmp dword [ebp - 0x10], 2
je 0x40c779
push 0xd
pop eax
jmp 0x40c79a
test edi, edi
je 0x40c798
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c793
test al, 1
jne 0x40c774
shr eax, 1
cmp word [edi + eax*2 - 2], si
je 0x40c798
jmp 0x40c774
xor eax, eax
mov word [edi], ax
mov eax, esi
mov dword [ebx + 0xc], eax
cmp eax, 0xea
jne 0x40c7b7
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
sub esi, edi
and esi, 0xfffffffe
push esi
call fcn.0040c861
jmp 0x40c737
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0xc], esi
je 0x40c7d8
push dword [ebp + 0x10]
call fcn.0040446b
lea ecx, [ebp - 0x24]
call fcn.0040c8fb
jmp 0x40c7eb
push edi
call fcn.0040192c
jmp 0x40c7ce
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
call fcn.0040446b
mov eax, dword [ebp + 8]
call fcn.004104ac
ret 0xc

Function at 0x40c7f6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x40c85c
cmp dword [edi], 0xffffffff
je 0x40c85c
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x40c811
mov ecx, dword [ecx]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x40c81d
mov esi, dword [esi]
test ecx, ecx
jne 0x40c826
push 0xd
pop eax
jmp 0x40c858
and dword [ebp + 0xc], 0
mov edx, ecx
push ebx
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp + 0xc]
jne 0x40c830
sub edx, ebx
sar edx, 1
lea eax, [edx*2 + 2]
push eax
push ecx
push 1
xor eax, eax
push eax
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
mov dword [edi + 0xc], eax
pop esi
pop edi
pop ebp
ret 8

Function at 0x40caff
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40cb07
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cb1a
shr eax, 4
and eax, 1
ret
xor al, al
ret
Function at 0x40cb1d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x42f04c
call fcn.00410517
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x40cb35
mov edi, dword [esi]
jmp 0x40cb37
mov edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cb4a
shr al, 4
and al, 1
jmp 0x40cbc8
push ecx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0040d3a9
pop ecx
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x40cb64
mov eax, dword [esi]
jmp 0x40cb66
mov eax, esi
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push dword [esi + 0x10]
cmovae ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
push eax
call fcn.00404e39
pop ecx
pop ecx
test eax, eax
je 0x40cbb8
lea ecx, [ebp - 0x28]
call fcn.0040cb1d
test al, al
je 0x40cbb8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40cbb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cbb8
mov ecx, esi
call fcn.0040caff
test al, al
je 0x40cbb8
mov bl, 1
jmp 0x40cbba
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040195d
mov al, bl
call fcn.004104c1
ret

Function at 0x40cc1e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ecx + 0x14], 8
push esi
mov esi, edx
jb 0x40cc31
mov ecx, dword [ecx]
push 0x43cfc0
push ecx
lea eax, [ebp - 4]
push eax
call fcn.0041b531
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x40cc52
call fcn.0041ba8a
mov eax, dword [eax]
jmp 0x40cc8d
push 2
push 0
push dword [ebp - 4]
call fcn.0041b928
push dword [ebp - 4]
call fcn.0041b943
add esp, 0x10
mov ecx, esi
push 3
call fcn.0040c449
push dword [ebp - 4]
push 3
push 1
push dword [esi]
call fcn.0041bc69
push dword [ebp - 4]
call fcn.0041b5ee
add esp, 0x14
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d076
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x42fb25
call fcn.00410517
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push 0x40
push 0
push eax
call fcn.00412e60
add esp, 0xc
mov dword [ebp - 0x80], 0x44
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov edx, edi
push ecx
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x38], xmm0
call fcn.0040570c
and dword [ebp - 4], 0
mov dword [esp], 0x43ca10
call fcn.00401124
pop ecx
push eax
push 0x43ca10
lea ecx, [ebp - 0x28]
call fcn.00404f53
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00404ff7
xor edx, edx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov esi, edx
cmovae eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x40d0ff
mov edi, dword [edi]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push edx
push edx
push edx
push edx
push edx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40d125
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40d142
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
je 0x40d142
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040195d
mov eax, esi
call fcn.004104c1
ret

Function at 0x40d6c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40d768
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40d701
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40d768
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40d718
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40d767
push edi
lea ecx, [ebp - 0xc]
call fcn.0040c48f
push edi
mov edi, dword [ebp - 0xc]
push ebx
push edi
call fcn.004128e0
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
add esp, 0xc
cmp edx, eax
je 0x40d758
mov eax, dword [edx]
mov dword [edx], edi
mov ecx, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov ecx, dword [edx + 8]
mov dword [edx + 8], eax
mov dword [ebp - 4], ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0xc]
call fcn.00408d5e
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40d770
Capabilities:
Get file version info

Disassembly:
push 0x90
mov eax, 0x42fc61
call fcn.00410517
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x88], esi
and dword [ebp - 0x9c], 0
and dword [ebp - 0x7c], 0
cmp dword [edi + 0x14], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
jb 0x40d7a4
mov eax, dword [edi]
jmp 0x40d7a6
mov eax, edi
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x40d7c9
and dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40d976
push ebx
lea ecx, [ebp - 0x94]
call fcn.0040c48f
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x40d7e1
mov edi, dword [edi]
push dword [ebp - 0x94]
push ebx
push dword [ebp - 0x7c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40d80a
and dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40d96b
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x88]
xor ebx, ebx
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x94]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x98], ebx
call edi
test eax, eax
jne 0x40d845
mov dword [esi + 0x10], ebx
jmp 0x40d7f9
xor eax, eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
push 0x40
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.00412e60
mov ecx, dword [ebp - 0x88]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x50]
push str.StringFileInfo_04x_04x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x50]
push eax
call fcn.00401124
add esp, 0x20
lea ecx, [ebp - 0x68]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004019b4
mov ebx, 0x43c8f0
push ebx
call fcn.00401124
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x68]
call fcn.00404f53
push 0xffffffffffffffff
xor ebx, ebx
lea ecx, [ebp - 0x68]
push ebx
push dword [ebp - 0x6c]
call fcn.00404ff7
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x80]
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push ecx
push eax
push dword [ebp - 0x94]
call edi
test eax, eax
jne 0x40d8f4
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
jmp 0x40d960
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x84]
mov byte [ebp - 0x6c], bl
push dword [ebp - 0x6c]
mov dword [ebp - 0x78], ebx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x74], ebx
push eax
push ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x70], ebx
call fcn.0040d9d5
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
cmp eax, ecx
jne 0x40d938
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
jmp 0x40d958
cmp word [ecx - 2], bx
je 0x40d950
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], ebx
push eax
lea ecx, [ebp - 0x78]
call fcn.0040d97e
mov eax, dword [ebp - 0x78]
push eax
mov ecx, esi
call fcn.0040192c
lea ecx, [ebp - 0x78]
call fcn.0040c8fb
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.0040195d
lea ecx, [ebp - 0x94]
call fcn.00408d5e
mov eax, esi
call fcn.004104c1
ret
Function at 0x40ddc0
Capabilities:
Create directory

Disassembly:
push 0x24
mov eax, 0x42fd25
call fcn.00410517
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp + 8]
lea ecx, [ebx + 4]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x30], ebx
mov dword [ebx], 0x43d198
call fcn.00407bed
and dword [ebp - 4], 0
lea ecx, [ebx + 0x14]
push esi
call fcn.0040446b
push edi
lea esi, [ebx + 0x2c]
mov byte [ebp - 4], 1
push esi
call fcn.0040df04
push ecx
mov edx, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0040d3a9
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40de1b
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040195d
mov eax, ebx
call fcn.004104c1
ret 8

Function at 0x40de5c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ede3
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x442070]
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 edi, ecx
lea esi, [edi + 0x2c]
mov dword [edi], 0x43d198
cmp dword [esi + 0x14], 8
jb 0x40de9c
mov eax, dword [esi]
jmp 0x40de9e
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
push ecx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0040d3a9
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40debb
mov eax, dword [eax]
push eax
call ebx
xor ebx, ebx
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0040195d
push ebx
push 1
mov ecx, esi
call fcn.0040195d
push ebx
push 1
lea ecx, [edi + 0x14]
call fcn.0040195d
lea ecx, [edi + 4]
call fcn.00407ccf
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.0040fb37
mov esp, ebp
pop ebp
ret
Function at 0x423e6d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00423cec

Function at 0x427fa7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427c67

Function at 0x4012c5
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403fa4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403fa0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x401196
mov dword [ebp - 0x24], str.resiliency
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403fa0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.abasement
push str.resiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403fa8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40138f
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401376
mov eax, dword [0x403fa4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10
Function at 0x43c650
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x37000]
push edi
jmp 0x43c66a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43c671
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43c660
mov eax, 1
add ebx, ebx
jne 0x43c683
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43c678
jne 0x43c694
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43c678
xor ecx, ecx
sub eax, 3
jb 0x43c6a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43c71a
mov ebp, eax
add ebx, ebx
jne 0x43c6b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43c6c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43c6e4
inc ecx
add ebx, ebx
jne 0x43c6d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43c6c5
jne 0x43c6e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43c6c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43c704
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43c6f5
jmp 0x43c666
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43c704
add edi, ecx
jmp 0x43c666
pop esi
mov edi, esi
mov ecx, 0x249
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43c722
cmp byte [edi], 2
jne 0x43c722
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 0x43c727
lea edi, [esi + 0x3a000]
mov eax, dword [edi]
or eax, eax
je 0x43c79f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3eef8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3efac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43c754
mov ecx, edi
jns 0x43c783
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 + 0x3efb0]
or eax, eax
je 0x43c799
mov dword [ebx], eax
add ebx, 4
jmp 0x43c771
call dword [esi + 0x3efc0]
mov ebp, dword [esi + 0x3efb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x43c7d3
sub esp, 0xffffff80
jmp 0x4030fa
Function at 0x402440
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x45200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x218]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.0042b9a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0042b9a0
add esp, 0xc
lea eax, [ebp - 0x110]
mov edx, edi
mov ecx, esi
push 0x104
push eax
call fcn.00401110
add esp, 8
test al, al
jne 0x4024c5
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412c88
mov esp, ebp
pop ebp
ret
push 5
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00412c88
mov esp, ebp
pop ebp
ret

Function at 0x402500
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x45200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.0042b9a0
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x44a60c
push 0x104
push eax
call fcn.004010d0
add esp, 0xc
mov ecx, 0x104
sub ecx, eax
mov edx, edi
push ecx
lea ecx, [ebp - 0x110]
add eax, ecx
mov ecx, esi
push eax
call fcn.00401110
add esp, 8
test al, al
jne 0x402573
mov word [ebp - 0x10], 0x2e2e
mov byte [ebp - 0xe], 0x2e
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00412c88
mov esp, ebp
pop ebp
ret

Function at 0x402590
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push 0x91
mov bl, cl
call dword [sym.imp.USER32.dll_GetKeyState]
and ax, 0xff01
mov word [ebp - 2], ax
cmp al, bl
je 0x40261f
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
push 0x38
mov esi, eax
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0042b9a0
add esp, 0xc
mov dword [ebp - 0x3c], 1
mov eax, 0x91
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x38], ax
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x3c]
push 0x1c
push eax
push 2
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x10], esi
call dword [sym.imp.USER32.dll_SendInput]
cmp eax, 2
je 0x40261c
push str.warning:_could_not_toggle_scroll_lock._n
push 2
call fcn.0042c91d
add esp, 4
push eax
call fcn.004010b0
add esp, 8
mov al, byte [ebp - 2]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4033c0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x403c
call fcn.0043f100
mov eax, dword [0x45200c]
xor eax, esp
mov dword [esp + 0x4038], eax
push ebx
push esi
push edi
push 0xfffffffffffffff5
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], eax
push ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4034f4
mov bx, word [esp + 0x28]
mov eax, 0x4000
movsx esi, word [esp + 0x2a]
mov edx, dword [esp + 0x10]
movsx ecx, bx
imul esi, ecx
cmp esi, eax
cmovg esi, eax
mov eax, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x1c], esi
mov al, byte [eax]
test al, al
je 0x4034a8
nop dword [eax + eax]
mov esi, 1
cmp al, 9
jne 0x403452
mov al, 0x20
mov esi, 4
jmp 0x403460
cmp al, 0xa
jne 0x403460
mov esi, ecx
mov al, 0x20
sub esi, edi
test esi, esi
jle 0x403495
cmp edx, 0x4000
jge 0x40347a
mov byte [esp + edx + 0x40], al
mov edx, dword [esp + 0x10]
mov bx, word [esp + 0x28]
inc edx
mov dword [esp + 0x10], edx
lea ecx, [edi + 1]
movsx edi, bx
mov dword [esp + 0x18], edi
xor edi, edi
cmp ecx, dword [esp + 0x18]
cmovl edi, ecx
sub esi, 1
jne 0x403460
movsx ecx, bx
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
mov al, byte [eax]
test al, al
jne 0x403440
mov esi, dword [esp + 0x1c]
cmp edx, esi
jge 0x4034cb
sub esi, edx
nop
cmp edx, 0x4000
jge 0x4034c6
mov byte [esp + edx + 0x40], 0x20
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
sub esi, 1
jne 0x4034b0
mov edi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
mov esi, dword [esp + 0x14]
push eax
push esi
push edx
lea eax, [esp + 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [esp + 0x4044]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412c88
mov esp, ebp
pop ebp
ret
Function at 0x415648
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x435fc6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00435c86
Function at 0x1010601c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1027f358]
jne 0x10106026
repz ret
jmp fcn.10107a8b

Function at 0x10108bdf
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.1010609d
and dword [ebp - 4], 0
cmp dword [0x10280878], 0
mov ebx, eax
jne 0x10108c90
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10108d41
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10108d41
push eax
call fcn.1010602b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10280878], eax
call esi
push eax
call fcn.1010602b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1028087c], eax
call esi
push eax
call fcn.1010602b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10280880], eax
call esi
push eax
call fcn.1010602b
pop ecx
mov dword [0x10280888], eax
test eax, eax
je 0x10108c90
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1010602b
pop ecx
mov dword [0x10280884], eax
mov eax, dword [0x10280884]
cmp eax, ebx
je 0x10108ce8
cmp dword [0x10280888], ebx
je 0x10108ce8
push eax
call fcn.101060a6
push dword [0x10280888]
mov esi, eax
call fcn.101060a6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10108ce8
test edi, edi
je 0x10108ce8
call esi
test eax, eax
je 0x10108cdf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10108cdf
test byte [ebp - 0xc], 1
jne 0x10108ce8
or dword [ebp + 0x10], 0x200000
jmp 0x10108d21
mov eax, dword [0x1028087c]
cmp eax, ebx
je 0x10108d21
push eax
call fcn.101060a6
pop ecx
test eax, eax
je 0x10108d21
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10108d21
mov eax, dword [0x10280880]
cmp eax, ebx
je 0x10108d21
push eax
call fcn.101060a6
pop ecx
test eax, eax
je 0x10108d21
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10280878]
call fcn.101060a6
pop ecx
test eax, eax
je 0x10108d41
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10108d43
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret