joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56284c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5b8fd8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x562892
cmp word [ebx], dx
jne 0x562892
or byte [eax + edi + 0x28], 4
jmp 0x562897
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x5629fa
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x5629da
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5628d8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x56290e
cmp eax, edx
jae 0x56291c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x5628b3
jmp 0x5629fa
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5629d5
cmp dword [ebp - 0x18], 0
je 0x5629d5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5b8fd8]
test byte [eax + edi + 0x28], 0x48
je 0x5629ab
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x56296f
mov word [esi], cx
jmp 0x5629a6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5b8fd8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5b8fd8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5b8fd8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5629fa
pop eax
cmp word [ebp - 4], ax
jne 0x5629bb
cmp esi, ebx
jne 0x5629bb
mov word [esi], ax
jmp 0x5629f7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00562270
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5629fa
push 0xd
pop eax
jmp 0x5629b6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5b8fd8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5629f4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5629fa
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x565c48
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5b30cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x565c93
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00565de3
test al, al
jne 0x565c8d
sub edx, 2
cmp edx, edi
jne 0x565c73
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x565cb5
lea eax, [edi + 2]
cmp edx, eax
je 0x565cb5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00565b94
add esp, 0x10
jmp 0x565daf
push esi
lea ecx, [ebp - 0x255]
call fcn.00565de3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x565cf8
push dword [ebp - 0x25c]
jmp 0x565ca5
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x565d35
cmp word [ebp - 0x226], 0
je 0x565d56
cmp word [ebp - 0x226], ax
jne 0x565d35
cmp word [ebp - 0x224], 0
je 0x565d56
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00565b94
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x565da2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x565d0f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x565d8a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x565daf
push 0x5659c4
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0056cad0
add esp, 0x10
jmp 0x565d7f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005455a8
leave
ret
Function at 0x5666c5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x566762
push ebx
push esi
call fcn.0056668e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00564210
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x56670f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x566761
push edi
push eax
call fcn.0055f4f1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x56672f
call fcn.0055e6a2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x566760
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00564210
add esp, 0x20
test eax, eax
jne 0x56674e
push edi
call fcn.0055e6a2
jmp 0x566756
push ebx
call fcn.0055e6a2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x566765
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x566776
pop esi
ret
push ebx
push edi
push esi
call fcn.0056668e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0055f4f1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x56679e
push ebx
push esi
push edi
call fcn.00546c40
add esp, 0xc
push 0
call fcn.0055e6a2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x566ef8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00566a13

Function at 0x568e64
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0055d99c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x568ed3
cmp esi, dword [ebp - 4]
je 0x568ece
cmp dword [ebp + 0xc], 0
je 0x568ece
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x568eab
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005689b6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x568ed5
xor eax, eax
inc eax
jmp 0x568ed5
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x568f3a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5b30cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0055d99c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0055d99c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x568fb1
cmp word [ecx], dx
je 0x568fb1
mov eax, dword [0x582e6c]
push edi
dec eax
push eax
push 0x582d58
call fcn.00568ed9
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x569024
cmp word [eax], dx
je 0x569024
mov eax, dword [edi]
test eax, eax
je 0x568fd5
cmp word [eax], dx
je 0x568fd5
lea eax, [ebp - 0x10]
push eax
call fcn.005688bc
jmp 0x568fde
lea eax, [ebp - 0x10]
push eax
call fcn.00568957
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x56904e
mov eax, dword [0x582d54]
push dword [ebp - 0x14]
dec eax
push eax
push 0x582a48
call fcn.00568ed9
add esp, 0xc
test al, al
je 0x56904e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x569019
cmp word [eax], di
je 0x569019
lea eax, [ebp - 0x10]
push eax
call fcn.005688bc
pop ecx
jmp 0x569050
lea eax, [ebp - 0x10]
push eax
call fcn.00568957
jmp 0x569016
mov eax, dword [edi]
test eax, eax
je 0x56903b
cmp word [eax], dx
je 0x56903b
lea eax, [ebp - 0x10]
push eax
call fcn.00568871
pop ecx
jmp 0x56904e
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x569119
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00568d5e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x569119
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x569119
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x569119
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5690a6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0055f092
test ebx, ebx
je 0x569114
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0055f092
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x569119
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x569119
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0056d13d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x56911b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005455a8
leave
ret
Function at 0x56d255
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0056d1d1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x56d3c4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x56d3c4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x56d379
jg 0x56d2b1
test eax, eax
je 0x56d36f
push 1
push 0x1000
call fcn.0055e920
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x56d2d4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x56d366
push 0x8000
push ebx
call fcn.00557b54
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x56d2fd
jg 0x56d2f8
cmp ecx, 0x1000
jb 0x56d2fd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00561e4e
add esp, 0x10
cmp eax, 0xffffffff
je 0x56d342
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x56d2f8
jl 0x56d329
test ecx, ecx
jne 0x56d2ea
push dword [ebp - 0xc]
push ebx
call fcn.00557b54
push esi
call fcn.0055e6a2
add esp, 0xc
xor ebx, ebx
jmp 0x56d3d2
cmp byte [edi + 0x24], 0
je 0x56d359
cmp dword [edi + 0x20], 5
jne 0x56d359
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x56d364
mov ebx, dword [edi + 0x18]
jmp 0x56d366
xor ebx, ebx
push esi
call fcn.0055e6a2
pop ecx
jmp 0x56d3d2
test ecx, ecx
jg 0x56d33b
jl 0x56d379
test eax, eax
jae 0x56d33b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00562270
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x56d399
cmp byte [edi + 0x1c], 0
je 0x56d33b
jmp 0x56d3ca
push ebx
call fcn.00564c5b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x56d33b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x56d3d2
cmp byte [edi + 0x1c], 0
je 0x56d3cf
mov ebx, dword [edi + 0x18]
jmp 0x56d3d2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00562270
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x56ea50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x56ea7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x56ea7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4028d1
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
mov dword [section..data], 0x1000055
mov dword [section..data], 0x1000056
mov ebp, dword [esp + 0x18]
mov ebx, dword [ebp]
and ebx, ebx
je 0x402903
mov ebp, dword [esp + 0x18]
cmp byte [ebp + 0x24], 0
jne 0x402903
jmp 0x40290a
mov eax, 1
jmp 0x40290c
xor eax, eax
and eax, eax
je 0x40291f
mov dword [section..data], 0x1000057
jmp 0x402ac0
mov dword [section..data], 0x1000058
mov dword [section..data], 0x1000059
mov dword [section..data], 0x100005a
push 0
lea eax, [esp + 8]
push eax
push 1
mov ebp, dword [esp + 0x24]
mov ebx, dword [ebp + 0x18]
mov ebp, dword [esp + 0x24]
add ebx, dword [ebp + 0x1c]
push ebx
mov ebp, dword [esp + 0x28]
push dword [ebp]
call sub.KERNEL32.dll_ReadFile
mov dword [esp], eax
mov dword [section..data], 0x100005b
mov ebx, dword [esp + 4]
and ebx, ebx
jle 0x402a5c
mov dword [section..data], 0x100005c
mov eax, dword [0x43b8c0]
push eax
push eax
push 1
mov ebp, dword [esp + 0x24]
mov ebx, dword [ebp + 0x18]
mov ebp, dword [esp + 0x24]
add ebx, dword [ebp + 0x1c]
push ebx
call fcn.00403780
inc dword [0x43b8c0]
mov edx, 0x4080f6
pop ecx
mov dword [0x43b8c0], ecx
add ecx, dword [0x43a964]
call fcn.00406360
je 0x402a2d
mov dword [section..data], 0x100005d
mov eax, dword [0x43b8c0]
push eax
push eax
mov ebp, dword [esp + 0x20]
push dword [ebp + 0x1c]
mov ebp, dword [esp + 0x24]
push dword [ebp + 0x18]
call fcn.00403780
mov ebp, dword [esp + 0x1c]
lea eax, [ebp + 0x20]
push eax
call fcn.00406390
mov dword [section..data], 0x100005e
mov ebp, dword [esp + 0x18]
mov byte [ebp + 0x24], 1
mov dword [section..data], 0x100005f
mov ebp, dword [esp + 0x18]
mov dword [ebp + 0x1c], 0
mov dword [section..data], 0x1000060
jmp 0x402a52
mov dword [section..data], 0x1000060
mov dword [section..data], 0x1000061
mov ebp, dword [esp + 0x18]
mov ebx, dword [ebp + 0x1c]
inc ebx
push ebx
mov ebp, dword [esp + 0x1c]
pop eax
mov dword [ebp + 0x1c], eax
mov dword [section..data], 0x1000062
mov dword [section..data], 0x1000063
mov dword [section..data], 0x1000064
mov ebx, dword [esp + 4]
and ebx, ebx
je 0x402a93
mov ebp, dword [esp + 0x18]
cmp byte [ebp + 0x24], 0
jne 0x402a93
mov ebp, dword [esp + 0x18]
mov ebx, dword [ebp + 0x1c]
cmp ebx, 0x100
jg 0x402a93
jmp 0x402a9a
mov eax, 1
jmp 0x402a9c
xor eax, eax
and eax, eax
je 0x402929
mov dword [section..data], 0x1000068
mov eax, dword [esp + 8]
jmp 0x402ac0
add esp, 0xc
pop ebx
pop ebp
ret 4
Function at 0x402ac8
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
mov dword [section..data], 0x100004b
mov dword [section..data], 0x100004c
mov ebp, dword [esp + 0x14]
mov ebx, dword [ebp]
and ebx, ebx
jne 0x402af9
mov dword [section..data], 0x100004d
jmp 0x402b6a
mov dword [section..data], 0x100004e
mov dword [section..data], 0x100004f
mov dword [section..data], 0x1000050
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
mov ebp, dword [esp + 0x24]
push dword [ebp]
call sub.KERNEL32.dll_WriteFile
mov dword [esp + 4], eax
mov dword [section..data], 0x1000051
mov ebp, dword [esp + 0x14]
push dword [ebp]
call sub.KERNEL32.dll_FlushFileBuffers
mov dword [section..data], 0x1000052
mov eax, dword [esp]
jmp 0x402b6a
add esp, 8
pop ebx
pop ebp
ret 0xc

Function at 0x4034c1
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x4034d9
push dword [esp + 4]
push 0x40345a
call dword [sym.imp.USER32.DLL_EnumWindows]
jmp 0x403516
push esi
mov esi, dword [0x43b704]
test esi, esi
je 0x403515
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40350d
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
push edi
push 0x43b704
call fcn.0040583a
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x4034e6
pop edi
pop ebx
pop esi
ret 4
Function at 0x40516a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
test eax, eax
mov edi, dword [sym.imp.USER32.DLL_GetPropA]
mov dword [ebp - 4], eax
je 0x4051f5
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 9
call esi
test al, al
jns 0x4051e7
push 0x11
call esi
test al, al
js 0x4051e7
push 0x10
call esi
test al, al
js 0x4051e7
push 0x12
call esi
test al, al
js 0x4051e7
push 5
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [ebp - 0xc]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x4051e7
push eax
push eax
push 0x44e
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_SendMessageA]
test ax, 0x800
je 0x405215
push str.PB_Hotkey
push dword [ebp - 4]
call edi
test eax, eax
jne 0x405215
push str.PB_WindowID
push dword [ebp + 8]
call edi
test eax, eax
je 0x405215
dec eax
push eax
push dword [0x43b91c]
call fcn.00405455
mov eax, dword [eax + 8]
jmp 0x405217
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x405933
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
cmp eax, edi
mov dword [0x43b894], eax
je 0x405966
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43b898], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x43b890], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4059a4
cmp dword [ebp - 0xc], 1
je 0x4059b5
cmp dword [ebp - 0xc], 2
jne 0x4059a4
cmp dword [ebp - 0x18], 5
jb 0x4059b5
jne 0x4059a4
cmp dword [ebp - 0x14], edi
jne 0x4059a4
mov dword [0x43b890], edi
cmp dword [0x43b890], edi
je 0x4059bb
call fcn.0040587a
test eax, eax
jne 0x4059bb
mov dword [0x43b890], edi
pop edi
add ebp, 0x78
leave
ret
Function at 0x40107e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x42f6b8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42f6bc]
xor ecx, ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
call fcn.00401077
mov eax, dword [0x42f6c0]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x42f6c4]
add ebx, 0x23f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x20
jmp 0x4010d0
xor ecx, ecx
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, edi
shl eax, 4
cmp dword [0x43e914], 0xc
mov dword [ebp - 4], eax
jne 0x4010fa
push ecx
lea eax, [ebp - 0x2c]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
mov eax, dword [0x43e914]
cmp eax, 0xfa9
jne 0x401116
mov dword [0x43e910], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401137
push str.fahubizavojijalaho
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and dword [0x43e868], 0
mov ecx, dword [ebp - 8]
and dword [ebp - 0x10], 0
mov edx, edi
lea eax, [ebx + edi]
shr edx, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [0x43e90c], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor eax, edx
sub esi, eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, esi
shr edx, cl
lea eax, [ebx + esi]
mov dword [ebp - 0x14], eax
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor dword [ebp - 4], edx
sub edi, dword [ebp - 4]
add ebx, 0x61c88647
dec dword [ebp - 0x18]
jne 0x4010ce
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x4073d4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e84c]
jne 0x4073de
repz ret
jmp fcn.0040be73

Function at 0x40b861
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.00405b17
and dword [ebp - 4], 0
cmp dword [0x4338fc], 0
mov ebx, eax
jne 0x40b912
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b9c3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b9c3
push eax
call fcn.00405aa5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4338fc], eax
call esi
push eax
call fcn.00405aa5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433900], eax
call esi
push eax
call fcn.00405aa5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x433904], eax
call esi
push eax
call fcn.00405aa5
pop ecx
mov dword [0x43390c], eax
test eax, eax
je 0x40b912
push 0x42af18
push edi
call esi
push eax
call fcn.00405aa5
pop ecx
mov dword [0x433908], eax
mov eax, dword [0x433908]
cmp eax, ebx
je 0x40b96a
cmp dword [0x43390c], ebx
je 0x40b96a
push eax
call fcn.00405b20
push dword [0x43390c]
mov esi, eax
call fcn.00405b20
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b96a
test edi, edi
je 0x40b96a
call esi
test eax, eax
je 0x40b961
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b961
test byte [ebp - 0xc], 1
jne 0x40b96a
or dword [ebp + 0x10], 0x200000
jmp 0x40b9a3
mov eax, dword [0x433900]
cmp eax, ebx
je 0x40b9a3
push eax
call fcn.00405b20
pop ecx
test eax, eax
je 0x40b9a3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b9a3
mov eax, dword [0x433904]
cmp eax, ebx
je 0x40b9a3
push eax
call fcn.00405b20
pop ecx
test eax, eax
je 0x40b9a3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4338fc]
call fcn.00405b20
pop ecx
test eax, eax
je 0x40b9c3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b9c5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret