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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004126e4

Function at 0x412c6d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407100
mov eax, dword [0x42b010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004118d9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x412caf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x412e0b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d820
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42c8f8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00413c64
mov ecx, dword [esi*4 + 0x42c8f8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x412e04
cmp eax, dword [edi + ecx + 0x24]
jne 0x412e04
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412e04
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00413c64
add esp, 0x14
test edx, edx
jl 0x412e04
jg 0x412d7a
test eax, eax
jb 0x412e04
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412e04
jl 0x412d94
cmp dword [ebp - 0x1008], eax
ja 0x412e04
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x412db2
test ebx, ebx
je 0x412deb
cmp ecx, edi
jae 0x412deb
mov al, byte [ecx]
cmp al, 0xd
jne 0x412dcc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x412dd8
cmp byte [ecx + 1], 0xa
jne 0x412dd8
inc ecx
jmp 0x412dd8
movzx eax, al
movsx eax, byte [eax + 0x42b298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x412db2
cmp edx, ebx
jne 0x412db2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x412e09
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004065b0
leave
ret
Function at 0x413102
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42c8f8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413142
cmp byte [ebx], 0xa
jne 0x413142
or byte [eax + edi + 0x28], 4
jmp 0x413147
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x413245
mov al, byte [edx]
cmp al, 0x1a
je 0x413227
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x413176
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41319b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4131a5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x413158
jmp 0x413245
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413222
cmp dword [ebp - 0xc], 0
je 0x413222
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42c8f8]
test byte [eax + edi + 0x28], 0x48
je 0x4131fc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4131e7
mov byte [esi], dl
jmp 0x4131f8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42c8f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x413245
cmp byte [ebp - 1], 0xa
jne 0x41320b
cmp esi, ebx
jne 0x41320b
mov byte [esi], 0xa
jmp 0x413244
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00413c82
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x413245
mov byte [esi], 0xd
jmp 0x413244
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42c8f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413241
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413245
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41324e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x42c8f8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413291
cmp word [esi], dx
jne 0x413291
or byte [edi + eax + 0x28], 4
jmp 0x413296
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4133e9
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4133c9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4132d8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41330e
cmp eax, edx
jae 0x41331a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4132b0
jmp 0x4133e9
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4133c5
cmp dword [ebp - 0x14], 0
je 0x4133c5
mov eax, dword [ebx*4 + 0x42c8f8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41339d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x413366
mov word [esi], cx
jmp 0x413399
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42c8f8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x42c8f8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42c8f8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4133e9
pop ebx
cmp word [ebp - 4], bx
jne 0x4133ae
cmp esi, dword [ebp + 0xc]
jne 0x4133ae
mov word [esi], bx
jmp 0x4133e6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00413c82
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4133e9
push 0xd
jmp 0x4133e2
mov ecx, dword [ebx*4 + 0x42c8f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4133e0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4133e9
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41840d
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 0x4184aa
push ebx
push esi
call fcn.004183d6
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.0041705b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x418457
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4184a9
push edi
push eax
call fcn.00413e61
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x418477
call fcn.004107b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4184a8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041705b
add esp, 0x20
test eax, eax
jne 0x418496
push edi
call fcn.004107b2
jmp 0x41849e
push ebx
call fcn.004107b2
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 0x41d7e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d80d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d80d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010d0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x54fc50
push str.C:WINDOWS1.bin
call fcn.00500d52
add esp, 8
push 0x54fc54
push 0x82
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test esi, esi
je 0x401139
test edi, edi
je 0x401139
test ebx, ebx
je 0x401139
mov eax, dword [ebp - 4]
push eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 1
push ebx
call fcn.00500ec0
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.00500fa7
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401190
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via windows callback function
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
mov esi, ecx
mov dword [ebp - 8], 8
mov dword [ebp - 4], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00403290
push 0
call fcn.00403d65
call fcn.004010d0
push 0x54fc90
push str.C:WINDOWS1.bin
call fcn.00500d52
push 2
mov edi, eax
push 0
push edi
call fcn.005010a5
push edi
call fcn.005012b5
push 0
push 0
push edi
mov esi, eax
call fcn.005010a5
push esi
call fcn.0050131a
push edi
push 1
mov ebx, eax
push esi
push ebx
call fcn.005015f8
add esp, 0x3c
push 0x40
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
push ebx
mov edi, eax
push esi
push edi
call fcn.00501615
add esp, 0x10
push 0
push edi
call dword [sym.imp.USER32.dll_EnumWindows]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401cdb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401d12
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401d0e
jmp 0x401d00
cmp esi, eax
jae 0x401d12
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401d00
cmp esi, eax
jb 0x401d19
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40399a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4039e2
call fcn.0040b0fe
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4039e2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x403a25
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x403a0e
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x403a0e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x403a22
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4057f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0040b0fe
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40582f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00405438
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40588d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x4058b1
cmp dword [edi + 0x74], 0
jne 0x4058b1
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0040b0fe
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040584e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x411d0a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x411d51
call fcn.0040b0fe
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x411d51
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x411d6d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041180f
mov esi, eax
test edi, edi
je 0x411d6b
test ebx, ebx
je 0x411d6b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x412525
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51c603
call fcn.00502216
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41254a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41259c
call fcn.00406cc5
push eax
lea ecx, [ebp - 0x10]
call fcn.00401840
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005033bb
push eax
call fcn.00402407
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004018c0
mov eax, esi
call fcn.005022ee
ret 8
Function at 0x458ec8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004db66f
call fcn.0040ab2f
cmp dword [eax + 0x14], 0
jne 0x458ee5
mov ecx, esi
pop esi
jmp fcn.004589cd
pop esi
ret

Function at 0x45c5c5
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00470713
call fcn.0040ab2f
cmp dword [eax + 0x14], 0
jne 0x45c5e2
mov ecx, esi
pop esi
jmp fcn.0045bf98
pop esi
ret

Function at 0x468ea9
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00468b68
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x468ef3
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040b348
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404a75
jmp 0x468efe
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004130e1
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x468f04
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00411e16
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x468f41
call fcn.00468b68
mov dword [esi + 0xc], 1
jmp 0x468f46
call fcn.00468b68
cmp dword [esi], 0
je 0x468f8f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x468f67
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040b348
jmp 0x468f79
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401a10
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404a75
jmp 0x468fb3
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x468fb3
push dword [esi]
push dword [ebp + 8]
call fcn.004130e1
pop esi
pop ebp
ret 0xc
Function at 0x46ca61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x46ca7b
call fcn.0040b0fe
mov esi, dword [eax + 0xc]
push dword [0x574ca0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x46ca99
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x46ca91
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x46cac6
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x46ca93
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046c98f
mov esi, eax
jmp 0x46cab8

Function at 0x4e7096
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e70ae
mov edi, dword [esi + 0xc]
jmp 0x4e70ee
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e70c7
call fcn.004074d6
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e70dc
call fcn.004074d6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e70ee
call fcn.004074d6
call fcn.0040b0fe
cmp dword [eax + 0x3c], 0
je 0x4e7103
push edi
mov ecx, ebx
call fcn.004e5f54
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e6fb0
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e7121
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e712d
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50020f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56fe70]
jne 0x500219
repz ret
jmp fcn.00507fa5
Function at 0x515719
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56fe70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005094da
and dword [ebp - 0x14], 0
cmp dword [0x5775a4], 0
mov dword [ebp - 0x18], eax
jne 0x5157cc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x515874
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x515874
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x54ee80
push ebx
mov dword [0x5775a4], eax
call edi
push eax
call esi
push 0x54ee6c
push ebx
mov dword [0x5775a8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5775ac], eax
call edi
push eax
call esi
mov dword [0x5775b4], eax
test eax, eax
je 0x5157cc
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5775b0], eax
mov eax, dword [0x5775b0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x515825
cmp dword [0x5775b4], ecx
je 0x515825
push eax
call esi
push dword [0x5775b4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x515825
test ebx, ebx
je 0x515825
call edi
test eax, eax
je 0x51581c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51581c
test byte [ebp - 8], 1
jne 0x515825
or dword [ebp + 0x10], 0x200000
jmp 0x515858
mov eax, dword [0x5775a8]
cmp eax, dword [ebp - 0x18]
je 0x515858
push eax
call esi
test eax, eax
je 0x515858
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x515858
mov eax, dword [0x5775ac]
cmp eax, dword [ebp - 0x18]
je 0x515858
push eax
call esi
test eax, eax
je 0x515858
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5775a4]
call esi
test eax, eax
je 0x515874
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x515876
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050020f
leave
ret
Function at 0x4038fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408398]
jne 0x403906
repz ret
jmp fcn.00403dae

Function at 0x40ed7d
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40eae0
dec edx
mov edx, 0x634cdd79
call fcn.0040edac
xor dword [ecx], eax
sub edx, edi
sub edi, 1
inc ecx
mov edi, 0xd5a4ea35
and edx, edx
cmp ecx, ebx
jne fcn.0040ed7d
add edi, edi
ret