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

Disassembly:
mov eax, 0x80
call fcn.00423a50
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0x51b8db
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x51b8ed
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x51ba59
push esi
call fcn.004d9530
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x51b923
push str.j____int_sizeof_ctx__key_
push 0x54
push str..cryptohmachmac.c
call fcn.004d6a50
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x51b962
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.004e1520
mov eax, dword [esp + 0xa4]
push ebp
push eax
push edi
call fcn.004e1690
lea esi, [ebx + 0x34]
lea ecx, [ebx + 0x38]
push esi
push ecx
push edi
call fcn.004e1790
add esp, 0x24
jmp 0x51b9a1
test ebp, ebp
jl 0x51b96e
cmp ebp, 0x80
jle 0x51b982
push str.len_0__len__int_sizeof_ctx__key_
push 0x5e
push str..cryptohmachmac.c
call fcn.004d6a50
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x34]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x51b9c6
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x38]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x51b9cf
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x14]
push ebp
push esi
push edi
call fcn.004e1520
push esi
call fcn.004d9530
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.004e1690
add esp, 0x1c
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x51ba0b
lea edi, [ebx + 0x24]
push ebp
push esi
push edi
call fcn.004e1520
push esi
call fcn.004d9530
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.004e1690
add esp, 0x1c
lea eax, [ebx + 0x14]
add ebx, 4
push eax
push ebx
call fcn.004e1840
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x51ba3e
jmp 0x51b9cd

Function at 0x52237e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5223b6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00525d8b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00525d62
jmp 0x5223c2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x524183
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 0x5241c5
call fcn.00531939
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x5241c5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5241bc
xor eax, eax
jmp 0x5241cd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005241d3
pop edi
pop esi
pop ebx
ret 4
Function at 0x10011c00
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10011c3e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10011c36
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10011c40
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10011c26
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10011d10
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10011d26
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10011d41
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x1001c204
Capabilities:
Encode data using xor

Disassembly:
call 0x1001c17d
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1001c1ad
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1001c1c9
xor edx, 0
jmp 0x1001c1d4
xor edx, edx
jmp 0x1001c1eb
jmp 0x1001c1f7
xor eax, eax
push 0x8427d7c0
call 0x1001c204
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1001c240
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1001c219
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1001c257
add eax, 0
jno 0x1001c25c
add esi, 0
ret 0x10
Function at 0x1001cfc5
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1001cfe7
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1001d189
cmp edi, dword [ebp + 0x10]
jb 0x1001d189
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1001cab1
inc edi
jmp 0x1001d070
jmp 0x1001d07d
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1001cab1
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1001cab1
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1001d0d1
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1001d0b5
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1001d0ff
add dword [eax], 0x39
jle 0x1001d0db
sub al, 0xf5
mov ch, al
call fcn.1001d114
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x1001edec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1001ee02
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1001ee13
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1001ee54
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x100211c0
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 0x10021109
add ebx, 0
push ecx
call 0x1002111e
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, 0x6bfa612d
sub ebx, dword [0x6bfc596c]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6bfc595c
call fcn.1001cbe8
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1001c0f6
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x1002127c
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1002127c
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 0x10021233
mov eax, 1
lock xchg dword [0x6bfc5968], eax
push 0x3dd1fc71
call 0x100211c0
push esi
add esp, 8
cmp eax, 0
jne 0x100211a9
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x100211cf
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x100211e4
cmp ecx, edx
cmp eax, 0
je 0x10021209
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 0x100211f3
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.10021222
dec eax
loope 0x10021225
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6bfc5968], 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 0x10021259
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x1002126e
jmp 0x10021279
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x10021167
Function at 0x100282e1
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 0x100285b7
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6bfb25e0
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6bfa95a6
push 0xffffffffffffffff
call fcn.1001f4e1
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 0x1002834b
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.10028363
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 0x100285ab
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1002857f
Function at 0x10037db1
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 0x10037dd3
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10037dd3
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10037dd3
ret
cmp word [ebx + 4], 0x14c
jne 0x10037dd3
test word [ebx + 0x16], 2
je 0x10037dd3
test word [ebx + 0x16], 0x100
je 0x10037dd3
cmp word [ebx + 0x18], 0x10b
jne 0x10037dd3
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10037dd3
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10037e5f
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10037df3
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001ed3e
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10037dd3
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 0x10037e5f
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 0x10037dd3
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10037dd3
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10037dd3
ret
cmp word [ebx + 4], 0x14c
jne 0x10037dd3
test word [ebx + 0x16], 2
je 0x10037dd3
test word [ebx + 0x16], 0x100
je 0x10037dd3
cmp word [ebx + 0x18], 0x10b
jne 0x10037dd3
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10037dd3
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10037e5f
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10037df3
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001ed3e
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10037dd3
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 0x10037f16
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10037f6f
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10037f16
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10037f25
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 0x1043dbc8
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 0x10037f76
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.1001edec
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10038015
add edi, 4
add eax, 2
dec ecx
jne 0x10037f5b
call 0x10037fc2
loope 0x10037fb8
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10038012
mov dh, 0xe8
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 0x10038023
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 0x10037fd6
cmp eax, ecx
ja 0x10037fd6
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10038060
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10038056
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001f2cb
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10037f25
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10037f6f
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10037f16
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10037f25
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 0x1043dbc8
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 0x10037f76
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.1001edec
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10038015
add edi, 4
add eax, 2
dec ecx
jne 0x10037f5b
call 0x10037fc2
loope 0x10037fb8
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10038012
mov dh, 0xe8
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 0x10038023
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 0x10037fd6
cmp eax, ecx
ja 0x10037fd6
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10038060
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10038056
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001f2cb
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401a82
Capabilities:
Copy file
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov dword [0x41a1e8], 0x4c
mov eax, dword [ebp + 8]
mov dword [0x41a1ec], eax
mov dword [0x41a1f4], 0x41a0ee
mov dword [0x41a204], 0x41a238
mov dword [0x41a208], 0x200
mov dword [0x41a21c], 0x281804
push 0x41a1e8
call sub.comdlg32.dll_GetOpenFileNameA
push 0x80
push 0x41a438
push 0x41a238
call sub.comdlg32.dll_GetFileTitleA
push 0x41a238
push 0x41a458
call sub.kernel32.dll_lstrcpyA
push str..bak
push 0x41a458
call sub.kernel32.dll_lstrcatA
push 0x41a238
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0x80
je 0x401b1b
push 0x80
push 0x41a238
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push 0x41a238
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x401c35
mov dword [0x41a234], eax
push 1
push 0x41a458
push 0x41a238
call sub.kernel32.dll_CopyFileA
push str.Backup_made.
push dword [ebp + 8]
call fcn.00401c51
push 0
push 0
push dword [0x41a1d9]
push dword [0x41a234]
call sub.kernel32.dll_SetFilePointer
push 0
push 0x41a65c
push 4
push 0x41a658
push dword [0x41a234]
call sub.kernel32.dll_ReadFile
cmp byte [0x41a65c], 4
jne 0x401c26
mov eax, dword [0x41a658]
cmp eax, dword [0x41a1d1]
jne 0x401c00
push 0
push 0
push dword [0x41a1d9]
push dword [0x41a234]
call sub.kernel32.dll_SetFilePointer
push 0
push 0x41a65d
push 1
push 0x41a1d5
push dword [0x41a234]
call sub.kernel32.dll_WriteFile
cmp byte [0x41a65d], 1
jne 0x401bf1
push str.Target_patched_successfully.
push dword [ebp + 8]
call fcn.00401c51
jmp 0x401c42
push str.Error_writing_to_target_file.
push dword [ebp + 8]
call fcn.00401c51
jmp 0x401c42
cmp eax, dword [0x41a1d5]
jne 0x401c17
push str.Target_already_patched_
push dword [ebp + 8]
call fcn.00401c51
jmp 0x401c42
push str.Incorrect_target_file_version.
push dword [ebp + 8]
call fcn.00401c51
jmp 0x401c42
push str.Error_reading_from_target_file.
push dword [ebp + 8]
call fcn.00401c51
jmp 0x401c42
push str.Unable_to_open_target_file.
push dword [ebp + 8]
call fcn.00401c51
push dword [0x41a234]
call sub.kernel32.dll_CloseHandle
leave
ret 4
Function at 0x401fdc
Capabilities:
Create thread

Disassembly:
ret
call fcn.004020d1
pop eax
pop edx
pop dword [0x41c864]
pop ecx
test edx, edx
push eax
je 0x401fdb
push ebx
push esi
push edi
push ebp
mov ebx, 0x41a854
mov ebp, 0x41c878
xor eax, eax
mov dword [ebp - 0x10], eax
test cl, 1
mov esi, 0x401de0
jne 0x402017
test cl, 2
lea esi, [esi + 0xc]
jne 0x402017
lea esi, [esi - 0x14]
test cl, 8
setne byte [ebp - 0x18]
and cl, 0x10
mov byte [ebp - 0x17], cl
mov edi, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, edx
cmp dword [ebp - 4], eax
jne 0x402036
mov word [ebp - 4], 0x8000
push eax
push eax
push eax
push eax
push eax
push eax
push 0x401dc8
push 0xffffffffffffffff
push ebx
call dword [sym.imp.winmm.dll_waveOutOpen]
call dword [sym.imp.kernel32.dll_HeapCreate]
test eax, eax
mov dword [ebx - 8], eax
je 0x402065
mov dword [ebp - 0xc], esi
call fcn.00402864
xchg edi, eax
call dword [ebp + 8]
test edi, edi
je 0x4020d5
mov esi, 0x42c888
mov dword [esi + 4], 0x10000
or dword [esi + 0x14], 0xffffffff
push 0xc
mov dword [esi], 0x41c888
pop dword [esi + 0x10]
push 0x20
push esi
push dword [ebx]
call dword [sym.imp.winmm.dll_waveOutPrepareHeader]
xor edi, edi
call fcn.0040219a
cmp dword [ebx + 4], edi
jne 0x40208f
mov dword [ebx + 8], edi
push 0x20
push esi
push dword [ebx]
call dword [sym.imp.winmm.dll_waveOutWrite]
test eax, eax
jne 0x4020d5
push ebp
push edi
push edi
push 0x402144
push edi
push edi
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
mov dword [ebx - 4], eax
je 0x4020d5
push 0xf
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
xchg ebx, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov ebp, 0x41a850
mov eax, dword [ebp]
test eax, eax
je 0x4020f3
mov dword [ebp + 0xc], eax
push eax
push ebp
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
call dword [sym.imp.kernel32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp], ebx
mov edi, dword [ebp + 4]
mov dword [ebp + 8], ebx
test edi, edi
je 0x402121
mov dword [ebp + 4], ebx
push edi
push 0x20
push 0x42c888
push edi
push edi
call dword [sym.imp.winmm.dll_waveOutReset]
call dword [sym.imp.winmm.dll_waveOutUnprepareHeader]
call dword [sym.imp.winmm.dll_waveOutClose]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40213f
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.kernel32.dll_HeapDestroy]
xchg ebx, eax
mov ecx, 0x23
mov edi, 0x42c8a8
rep stosd dword es:[edi], eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x13572338
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x1357233e
pop ebp
sub ebp, 6
sub ebp, 0x572338
jmp 0x1357239c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x135723b3
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x135723bc
mov eax, 0x572338
add eax, ebp
add eax, 0xaa
mov ecx, 0x572
mov edx, 0x24fe89bf
xor byte [eax], dl
inc eax
dec ecx
jne 0x135723d3
jmp 0x135723e6
xor al, 0x72
xor al, 0x36
cmp dword [edi + 0x7e3ebfbf], 0x47
mov edi, 0x72bcbfbf
pop es
mov ecx, 0x5bfbfbf
xchg edi, eax
mov edi, 0x5d48bfbf
mov esp, 0xb33e3477
mov edi, 0x7abcbfbf
out dx, eax
out dx, eax
xlatb
out dx, eax
mov ebx, 0x57d7bfaf
mov eax, dword [0x93bebff8]
wait
xlatb
jp 0xcdaf1f14
mov edi, 0x9556bfbf
mov edi, 0x32eabfbf
rcr dword [ebx - 0x48c5cb41], cl
mov edi, 0x2a34bfbf
mov bl, 0xbf
mov edi, 0xaf3234bf
mov edi, 0x567ebfbf
mov ebp, 0x7d3cbd8e
mov ebx, 0x4b3ab0f6
inc eax
inc eax
inc eax
loop 0x135724cf
mov bl, 0xbf
xor al, 0x33
wait
mov ebx, 0xd7bfbfbf
out dx, eax
mov ebx, 0x57d7bfaf
mov eax, dword [0x93bebff8]
wait
out dx, al
mov edi, 0xafbbefd7
mov edi, 0xf8a157d7
mov edi, 0xee9b93be
push edi
mov edx, 0x56bfbfbf
invalid
inc eax
inc eax
xchg esi, eax
jmp 0x1357245a