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

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x77354e46
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x77354e46
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x77354e46
ret
cmp word [ebx + 4], 0x14c
jne 0x77354e46
test word [ebx + 0x16], 2
je 0x77354e46
test word [ebx + 0x16], 0x100
je 0x77354e46
cmp word [ebx + 0x18], 0x10b
jne 0x77354e46
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x77354e46
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x77354ed2
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x77354e66
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.7733bdb1
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x77354e46
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x77354ed2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x77354e46
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x77354e46
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x77354e46
ret
cmp word [ebx + 4], 0x14c
jne 0x77354e46
test word [ebx + 0x16], 2
je 0x77354e46
test word [ebx + 0x16], 0x100
je 0x77354e46
cmp word [ebx + 0x18], 0x10b
jne 0x77354e46
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x77354e46
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x77354ed2
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x77354e66
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.7733bdb1
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x77354e46
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x77354f89
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x77354fe2
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x77354f89
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x77354f98
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x7775ac3b
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x77354fe9
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.7733be5f
cmp eax, dword [ebp + 0xc]
pop eax
je 0x77355088
add edi, 4
add eax, 2
dec ecx
jne 0x77354fce
call 0x77355035
loope 0x7735502b
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77355085
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77355096
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x77355049
cmp eax, ecx
ja 0x77355049
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x773550d3
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x773550c9
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7733c33e
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x77354f98
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x77354fe2
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x77354f89
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x77354f98
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x7775ac3b
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x77354fe9
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.7733be5f
cmp eax, dword [ebp + 0xc]
pop eax
je 0x77355088
add edi, 4
add eax, 2
dec ecx
jne 0x77354fce
call 0x77355035
loope 0x7735502b
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77355085
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77355096
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x77355049
cmp eax, ecx
ja 0x77355049
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x773550d3
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x773550c9
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7733c33e
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x409ad8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
pop ebp
ret 8

Function at 0x409d95
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x427edc], 0
jne 0x409dcc
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409d09
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call fcn.00409ad8
push dword [ebp - 0xc]
mov bl, al
call fcn.00408db6
pop ecx
mov al, bl
pop ebx
jmp 0x409ddd
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
leave
ret 8

Function at 0x409de1
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x427edc], 0
jne 0x409e14
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409d09
push dword [eax]
call fcn.00409af0
push dword [ebp - 0xc]
mov bl, al
call fcn.00408db6
pop ecx
mov al, bl
pop ebx
jmp 0x409e22
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x409e26
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x427edc], 0
jne 0x409e59
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409d09
push dword [eax]
call fcn.00409b05
push dword [ebp - 0xc]
mov bl, al
call fcn.00408db6
pop ecx
mov al, bl
pop ebx
jmp 0x409e69
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x409e6d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x427edc], 0
jne 0x409ea0
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409d09
push dword [eax]
call fcn.00409b1c
push dword [ebp - 0xc]
mov bl, al
call fcn.00408db6
pop ecx
mov al, bl
pop ebx
jmp 0x409ebc
push 0
push dword [ebp + 8]
call fcn.00409d95
test al, al
je 0x409ebc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
leave
ret 4

Function at 0x40abbb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40abe1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40abe1
xor al, al
jmp 0x40ac01
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004151a0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40ec42
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jb 0x40ed9d
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x40ec80
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40ec85
inc edi
cmp edi, dword [ebp - 4]
jb 0x40ec77
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x40ed7d
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x40ecdc
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x40ecb0
cmp cl, 0xff
jne 0x40ed07
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x40ed15
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x40ed1c
dec ecx
shl edx, cl
and edx, 7
je 0x40eca1
movzx ecx, byte [edx + 0x41e9e4]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x41e9dc], 0
mov cl, byte [ebx + 4]
je 0x40ed04
test cl, cl
je 0x40ed04
cmp cl, 0xff
jne 0x40eca1
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x40ec72
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x40ed50
movzx esi, byte [edx + 0x41e9e4]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x40ed3b
cmp al, 0xff
jne 0x40ed4d
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x40ecce
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x40ec72
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret 0x14

Function at 0x410c9b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.00415619
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.00410c4d
pop ebp
ret 0xc
Function at 0x4145fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427030]
jne 0x414605
repz ret
jmp fcn.004172ac

Function at 0x4198ac
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.00415f26
and dword [ebp - 4], 0
cmp dword [0x428854], 0
mov ebx, eax
jne 0x41995d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x419a0e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x419a0e
push eax
call fcn.00415eb4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x428854], eax
call esi
push eax
call fcn.00415eb4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x428858], eax
call esi
push eax
call fcn.00415eb4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42885c], eax
call esi
push eax
call fcn.00415eb4
pop ecx
mov dword [0x428864], eax
test eax, eax
je 0x41995d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00415eb4
pop ecx
mov dword [0x428860], eax
mov eax, dword [0x428860]
cmp eax, ebx
je 0x4199b5
cmp dword [0x428864], ebx
je 0x4199b5
push eax
call fcn.00415f2f
push dword [0x428864]
mov esi, eax
call fcn.00415f2f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4199b5
test edi, edi
je 0x4199b5
call esi
test eax, eax
je 0x4199ac
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4199ac
test byte [ebp - 0xc], 1
jne 0x4199b5
or dword [ebp + 0x10], 0x200000
jmp 0x4199ee
mov eax, dword [0x428858]
cmp eax, ebx
je 0x4199ee
push eax
call fcn.00415f2f
pop ecx
test eax, eax
je 0x4199ee
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4199ee
mov eax, dword [0x42885c]
cmp eax, ebx
je 0x4199ee
push eax
call fcn.00415f2f
pop ecx
test eax, eax
je 0x4199ee
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x428854]
call fcn.00415f2f
pop ecx
test eax, eax
je 0x419a0e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x419a10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419f20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040cfc0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x419feb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x419feb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x419f9e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x419fa9
or bh, 8
and edi, 0x8000000
je 0x419fc4
mov eax, dword [0x43af5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x419feb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a3c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41a3eb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41a40f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41a42a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x41dd8d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41ddc5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00420a00
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004209d8
jmp 0x41ddd1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41f313
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41f355
call fcn.00424545
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41f355
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41f34c
xor eax, eax
jmp 0x41f35d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041f363
pop edi
pop esi
pop ebx
ret 4

Function at 0x424d31
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x424d5f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x424d7d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00424c97
jmp 0x424d7d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x424d7d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00424c97
test edi, edi
mov eax, edi
jne 0x424d67
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407325
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41414c]
jne 0x40732f
repz ret
jmp fcn.00409422

Function at 0x40befc
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.00408c49
and dword [ebp - 4], 0
cmp dword [0x4157a8], 0
mov ebx, eax
jne 0x40bfad
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c05e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c05e
push eax
call fcn.00408bd7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4157a8], eax
call esi
push eax
call fcn.00408bd7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4157ac], eax
call esi
push eax
call fcn.00408bd7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4157b0], eax
call esi
push eax
call fcn.00408bd7
pop ecx
mov dword [0x4157b8], eax
test eax, eax
je 0x40bfad
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408bd7
pop ecx
mov dword [0x4157b4], eax
mov eax, dword [0x4157b4]
cmp eax, ebx
je 0x40c005
cmp dword [0x4157b8], ebx
je 0x40c005
push eax
call fcn.00408c52
push dword [0x4157b8]
mov esi, eax
call fcn.00408c52
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c005
test edi, edi
je 0x40c005
call esi
test eax, eax
je 0x40bffc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bffc
test byte [ebp - 0xc], 1
jne 0x40c005
or dword [ebp + 0x10], 0x200000
jmp 0x40c03e
mov eax, dword [0x4157ac]
cmp eax, ebx
je 0x40c03e
push eax
call fcn.00408c52
pop ecx
test eax, eax
je 0x40c03e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c03e
mov eax, dword [0x4157b0]
cmp eax, ebx
je 0x40c03e
push eax
call fcn.00408c52
pop ecx
test eax, eax
je 0x40c03e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4157a8]
call fcn.00408c52
pop ecx
test eax, eax
je 0x40c05e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c060
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e7c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x41414c]
xor eax, ebp
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0x64
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00401690
push 0x44
push 0
lea ecx, [ebp - 0x58]
push ecx
call fcn.004075f0
add esp, 0xc
push 0x10
push 0
lea edx, [ebp - 0x10]
push edx
call fcn.004075f0
add esp, 0xc
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x2c], 0
xor eax, eax
mov word [ebp - 0x26], ax
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea ecx, [ebp - 0x7c]
call fcn.00401860
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40e898
push 0x64
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0x102
je 0x40e862
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40e898
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
lea ecx, [ebp - 0x7c]
call fcn.004016d0
mov ecx, dword [ebp - 0x60]
xor ecx, ebp
call fcn.00407325
mov esp, ebp
pop ebp
ret