joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a4af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x49a3f8
add ebx, 0
push ecx
call 0x49a40d
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6c77a27a
sub ebx, dword [0x6c799ab9]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c799aa9
call fcn.00495ed7
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.004953e5
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x49a56b
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x49a56b
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x49a522
mov eax, 1
lock xchg dword [0x6c799ab5], eax
push 0x3dd1fc71
call 0x49a4af
push esi
add esp, 8
cmp eax, 0
jne 0x49a498
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x49a4be
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x49a4d3
cmp ecx, edx
cmp eax, 0
je 0x49a4f8
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x49a4e2
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.0049a511
dec eax
loope 0x49a514
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c799ab5], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x49a548
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x49a55d
jmp 0x49a568
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x49a456

Function at 0x4a15d0
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x4a18a6
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c78672d
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c77d6f3
push 0xffffffffffffffff
call fcn.004987d0
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x4a163a
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.004a1652
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x4a189a
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x4a186e
Function at 0x4b10a0
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 0x4b10c2
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4b10c2
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4b10c2
ret
cmp word [ebx + 4], 0x14c
jne 0x4b10c2
test word [ebx + 0x16], 2
je 0x4b10c2
test word [ebx + 0x16], 0x100
je 0x4b10c2
cmp word [ebx + 0x18], 0x10b
jne 0x4b10c2
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4b10c2
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4b114e
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4b10e2
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.0049802d
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4b10c2
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 0x4b114e
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 0x4b10c2
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4b10c2
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4b10c2
ret
cmp word [ebx + 4], 0x14c
jne 0x4b10c2
test word [ebx + 0x16], 2
je 0x4b10c2
test word [ebx + 0x16], 0x100
je 0x4b10c2
cmp word [ebx + 0x18], 0x10b
jne 0x4b10c2
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4b10c2
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4b114e
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4b10e2
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.0049802d
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4b10c2
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 0x4b1205
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4b125e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4b1205
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4b1214
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 0x8b6eb7
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 0x4b1265
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.004980db
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4b1304
add edi, 4
add eax, 2
dec ecx
jne 0x4b124a
call 0x4b12b1
loope 0x4b12a7
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4b1301
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 0x4b1312
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 0x4b12c5
cmp eax, ecx
ja 0x4b12c5
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4b134f
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4b1345
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.004985ba
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4b1214
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4b125e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4b1205
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4b1214
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 0x8b6eb7
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 0x4b1265
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.004980db
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4b1304
add edi, 4
add eax, 2
dec ecx
jne 0x4b124a
call 0x4b12b1
loope 0x4b12a7
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4b1301
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 0x4b1312
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 0x4b12c5
cmp eax, ecx
ja 0x4b12c5
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4b134f
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4b1345
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.004985ba
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x6c2665ce
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x36fa5681
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x68050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.000683a0

Function at 0x683a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + edi + 0x78]
mov edx, dword [eax + edi + 0x7c]
lea eax, [eax + edi + 0x18]
add ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
jne 0x683d6
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx + 0x24]
push ebx
mov ebx, dword [ecx + 0x18]
add eax, edi
add edx, edi
sub ebx, 1
push esi
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], edx
js 0x68509
jmp 0x683f9
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea esi, [ebx + ecx]
mov ecx, dword [ebp + 0xc]
sar esi, 1
mov eax, dword [eax + esi*4]
add eax, edi
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x68430
test dl, dl
je 0x6842c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x68430
add ecx, 2
add eax, 2
test dl, dl
jne 0x68410
xor eax, eax
jmp 0x68435
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jge 0x6843e
lea ebx, [esi - 1]
jmp 0x68444
jle 0x68454
inc esi
mov dword [ebp - 4], esi
cmp ebx, dword [ebp - 4]
jge 0x683f6
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
cmp ebx, dword [ebp - 4]
jl 0x68509
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + esi*2]
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx + 0x14]
jae 0x68509
mov edx, dword [ecx + 0x1c]
lea eax, [edx + eax*4]
mov esi, dword [eax + edi]
add esi, edi
cmp esi, ecx
jb 0x68525
mov edx, dword [ebp - 0xc]
add edx, ecx
cmp esi, edx
ja 0x68525
push 0x13f
lea eax, [ebp - 0x14f]
push 0
push eax
mov byte [ebp - 0x150], 0
call sub.ntoskrnl.exe_memset
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x684b2
sub eax, edx
cmp eax, 0x140
mov eax, esi
ja 0x68527
lea edx, [ebp - 0x150]
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x684d0
lea ecx, [ebp - 0x150]
push 0x2e
push ecx
call fcn.00068060
mov edi, eax
add esp, 8
test edi, edi
je 0x68525
lea edx, [ebp - 0x150]
push edx
mov byte [edi], 0
call fcn.000681e0
test eax, eax
jne 0x68514
call fcn.000681d0
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
inc edi
push edi
push eax
call fcn.000683a0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x68b80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x6b090]
mov edx, dword [ecx + 4]
xor eax, eax
sub edx, 4
je 0x68baa
mov ecx, dword [ecx]
xor dword [ecx + eax], eax
add ecx, eax
mov ecx, dword [0x6b090]
mov edx, dword [ecx + 4]
add eax, 4
sub edx, 4
cmp eax, edx
jb 0x68b90
mov eax, 1
ret

Function at 0x68fc0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x6b090]
mov edx, dword [ecx + 0xc]
xor eax, eax
sub edx, 4
je 0x68fbb
mov ecx, dword [ecx + 8]
xor dword [ecx + eax], eax
add ecx, eax
mov ecx, dword [0x6b090]
mov edx, dword [ecx + 0xc]
add eax, 4
sub edx, 4
cmp eax, edx
jb 0x68fa0
ret
call fcn.00068e90
test eax, eax
jne 0x68fca
ret
call fcn.00068ec0
jmp 0x68f90

Function at 0x6959c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x6a0a0
sub eax, eax
test esi, esi
je 0x69674
sub eax, 1
test ecx, ecx
je 0x69672
test esi, 3
je 0x695da
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x695bf
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x69659
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x695e4
mov ecx, edx
test ecx, ecx
je 0x69672
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x6965f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x6967c
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.000696ff
jae 0x6968a
xor ecx, ecx
call fcn.000696ff
jae 0x696b9
xor eax, eax
call fcn.000696ff
jae 0x696c9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.000696ff
adc al, al
jae 0x696ab
jne 0x696f5
stosb byte es:[edi], al
jmp 0x6968d
call fcn.0006970b
sub ecx, ebx
jne 0x696d2
call fcn.00069709
jmp 0x696f1
lodsb al, byte [esi]
shr eax, 1
je 0x6971b
adc ecx, ecx
jmp 0x696ee
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00069709
cmp eax, 0x7d00
jae 0x696ee
cmp ah, 5
jae 0x696ef
cmp eax, 0x7f
ja 0x696f0
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6968d
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x403270
Capabilities:
Get hostname

Disassembly:
sub esp, 0x100
mov edx, ecx
or ecx, 0xffffffff
xor eax, eax
push ebp
push esi
lea ebp, [edx + 0x81c]
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
cmp eax, 1
jge 0x4032a0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x100
ret
cmp eax, 2
jle 0x40334e
mov cl, byte [ebp]
cmp cl, 0x28
jne 0x4032bf
push ebx
mov bl, byte [eax + edx + 0x81b]
cmp bl, 0x29
pop ebx
je 0x4032d2
cmp cl, 0x5b
jne 0x40334e
cmp byte [eax + edx + 0x81b], 0x5d
jne 0x40334e
lea ecx, [eax - 2]
lea esi, [edx + 0x81d]
mov edx, ecx
lea edi, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x4484e4
and ecx, 3
push 0x4484e4
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x12], 0
lea eax, [esp + 0x14]
push eax
call fcn.004209b0
lea ecx, [esp + 0x18]
push str.local
push ecx
call fcn.0041cab0
add esp, 0x14
test eax, eax
jne 0x40334e
lea edx, [esp + 0xc]
push 0x100
push edx
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x40334e
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x100
ret
Function at 0x407a00
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, ecx
push ebp
push esi
test ebx, ebx
push edi
jne 0x407a11
xor esi, esi
jmp 0x407a14
mov esi, dword [ebx + 0x1c]
push 0
push str.edit
push 0
push esi
call dword [sym.imp.USER32.dll_FindWindowExA]
mov edi, dword [sym.imp.USER32.dll_GetFocus]
mov ebp, eax
call edi
cmp eax, esi
je 0x407b4b
call edi
cmp eax, ebp
je 0x407b4b
mov edi, dword [ebx + 0x4c]
test edi, edi
je 0x407b4b
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
mov dword [esp + 0x14], ecx
jl 0x407b4b
lea eax, [esp + 0x12]
push 2
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0x12]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x407b4b
test ebp, ebp
je 0x407aa7
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407aa7
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x407aa7
push 0
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
test ebx, ebx
jne 0x407aaf
xor eax, eax
jmp 0x407ab2
mov eax, dword [ebx + 0x1c]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x20]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea edx, [esp + 0x20]
mov byte [esp + 0x34], 1
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov esi, dword [esp + 0x60]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
push esi
call ebp
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x50]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x4c]
push 0x24
push ecx
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x60]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x1c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8
Function at 0x408780
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
jne 0x408790
xor esi, esi
jmp 0x408793
mov esi, dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x4087a8
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x408885
mov edi, dword [ebx + 0x40]
test edi, edi
je 0x408885
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
mov dword [esp + 0x10], ecx
jl 0x408885
lea eax, [esp + 0xe]
push 2
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0xe]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x408885
push ebp
push eax
push eax
push 0x31
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x20]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea edx, [esp + 0x20]
mov byte [esp + 0x34], 1
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov esi, dword [esp + 0x60]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
push esi
call ebp
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x48]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x40]
push 0x24
push ecx
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x60]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x1c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 8

Function at 0x40ace0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push str.Binary
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40ad2e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40ad2e
mov ecx, dword [esp + 0x18]
push ecx
push ebx
push eax
call fcn.00422f80
add esp, 0xc
test eax, eax
jne 0x40ad30
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x40e7b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43a03b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
lea ecx, [esp + 0x30]
call fcn.0040bf10
mov ecx, dword [0x44fba0]
mov edx, dword [esp + 0x26c]
xor eax, eax
push 0xc
mov dword [esp + 0x264], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 4]
mov dword [esp + 4], 1
push eax
mov eax, dword [esp + 0x270]
push ecx
push edx
push eax
lea ecx, [esp + 0x44]
call fcn.0040c330
lea ecx, [esp + 0x30]
mov dword [esp + 0x260], 0xffffffff
call fcn.0040bf30
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
add esp, 0x264
ret