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

Disassembly:
xchg byte [edi], dh
sbb al, 0x47
xchg edx, eax
mov bl, 0x5d
or bh, byte [ebx + ecx - 0x2f]
mov eax, dword [0x8ee4eef8]
or al, 0xa4
mov dword [ecx], edi
out dx, al
xchg ecx, eax
inc esi
les ecx, [0x6cda7e53]
or eax, 0x6cda7e53
xchg esi, eax
mov dword [ecx], ebp
mov dl, 0x4b
mov cl, cl
jp 0x4c4ee6
cwde
sub al, 0xe2
imul esi, ebx, 0x29
sub eax, 0xe9427472
adc eax, 0xabc8e135
loope 0x4c4e83
stosd dword es:[edi], eax
stc
push esi
lock sub dword [edx + 0x41], ebp
push 0x41
mov dword [0x2ad5b31], eax
add ebp, dword [ebp + edx*2 - 0x21]
lea ebp, [eax]
adc bh, ch
fld dword [0x3b3b5ee4]
imul ecx, ebx, 0x13
pop ebp
fsubr qword [ebx - 0x5c1ba569]
adc dword [eax + 0x128db4fd], ebp
scasb al, byte es:[edi]
or dword [edi], esi
pop ss
ljmp 0x9c76
fadd dword [esi + 0x3ef9a41c]
jo 0x4c4e9b
pop ebx
aad 0x7f
stosb byte es:[edi], al
or byte [0x3a4002ee], bl
pop ds
mov dword [ebp + 0x7f91ec31], ebx
pop esp
loope 0x4c4f21
dec ecx
jno 0x4c4ec0
sahf
pop ebp
lodsb al, byte [esi]
sub ecx, ebp
jnp 0x4c4eb9
adc cl, 0xad
push edi
push esp
xchg edi, eax
mov ecx, 0x9ad6a95f
in al, 0x13
movsb byte es:[edi], byte [esi]
add ecx, dword [ecx + edi*2]
jge 0x4c4f14
mov edi, 0x9de94ca
test eax, 0x8e4b2632
lea ebx, [ebx - 0x6f]
pop ebx
xchg ecx, eax
push esi
stc
inc eax
test al, 0xba
fnstsw word [esi]
aam 0x5a
popfd
sbb dword [edx], ebx
inc ebx
xor eax, 0x20d66a8e
cmp byte [edi + ecx + 0x3356e776], cl
lahf
mov edi, 0x4b7d1bba
sbb al, byte [ebx + 0x35]
mov gs, word [edx - 0x2a]
and byte [eax], bh
mov word [edi], cs
jbe 0x4c4f46
push esi
xor ebx, dword [edi + 0x7d1bbabf]
dec ebx
mov edi, esi
mov esi, 0xf25af813
jl 0x4c4f53
leave
or eax, 0x1e788752
popfd
cmp al, 0xf8
lds esp, [edx - 0x4b]
cmp ch, byte [ecx + esi*2]
enter 0xffffffffffff8c3b, 0xffffffffffffff84
loop 0x4c4fd0
mov word [0x157608b2], es
loopne 0x4c5003
mov esp, 0xec44dc4a
push esp
stc
mov eax, dword [0xdc8b8aea]
fstp qword [eax - 0x73]
invalid
inc ebp
jmp 0x4c501d
dec edi
repe scasd eax, dword es:[edi]
or al, 0x9b
pop esi
lcall 0xc060, 0x7b2b9c6a
dec eax
dec ebx
push esp
jp 0x4c4f7f
jl 0x4c4fbd
or ch, byte [eax + 0x3d7242fa]
mov eax, dword [0x9db41f2d]
cwde
cmpsd dword [esi], dword es:[edi]
inc ecx
into
mov eax, dword [0x1166eebb]
ljmp 0x6b7d
sub eax, 0x8968fe07
mov edx, 0x5d381f32
lodsd eax, dword [esi]
invalid
xor word [esi], si
adc dword [ebp + 0x3a], 0xffffffd9
sbb ch, byte [ebp + 0x31b22d96]
pand mm3, qword [ecx + 0x22]
mov ah, bh
fisub dword [edx + 0x3b]
add dword [edi - 0x101c04d3], edx
movnti dword [ebp + 0x59d78b0f], ecx
fistp dword [ebp - 0x59b05098]
jmp [eax + 0x5f47cc32]
Function at 0x4dac62
Capabilities:
Encode data using xor

Disassembly:
leave
and bh, dh
lodsb al, byte [esi]
sub dl, byte [esi - 0x69]
adc eax, 0x88bbbcad
shr cl, 0x44
mov ebx, 0xe9c02e88
inc esp
xchg esp, eax
add dword [ebp + 0x24], 0x5d113443
and al, 0xdc
fdiv qword [ebx]
test dword [eax - 0x3b], esi
sub byte [esi], 0xc6
je 0x4dac65
sub ecx, dword [edx + eax - 0x5b]
jl 0x4dacc8
cdq
in eax, dx
in al, 0xc0
invalid
jle 0x4dac6c
insb byte es:[edi], dx
or al, 0xfe
sbb al, 0xc0
and al, 0xab
xor bl, cl
out dx, eax
mov ah, 0xb6
invalid
mov bl, 0x3e
and eax, 0x4bc7bada
mov byte [0xa0a51b53], al
std
or al, byte [edx - 0x55a6f7ba]
stc
lcall 0xf8d9, 0x13ae4
clc
inc edx
xor dword [eax + 0x6f], eax
sub bl, bl
or al, 0x24
dec edx
add eax, 0x362f761d
loopne 0x4dacae
sti
xchg edi, eax
mov dword [0x4feb0003], eax
cmp eax, 0xed40615b
jge 0x4dace2
cdq
mov edi, 0x532b4018
xor dword [ebx + ebx - 0x41], esp
and al, 0xbb
jecxz 0x4dacb5
xchg ebx, eax
in al, 0x10
jge 0x4dad8a
div ah
sub al, 0xe3
invalid
pop dword [eax]
cmp eax, 0xb5a22156
bound edi, qword [edx + 0x49]
xor byte [ebp - 0x2e], bl
push 0xd9cc6bca
imul ecx, esp, 0xffffffd9
sbb ah, 0xdc
cmp ebp, dword [ecx]
lodsb al, byte [esi]
add al, byte [eax + 0x286037b4]
push ss
wait
mov eax, 0x6063d3c5
salc
rcl byte [ecx], cl
xor bh, byte [ecx + 0x5b]
and eax, 0x56187b0b
fdiv qword [esi]
jle 0x4dad79
cld
and eax, 0x45c7b83c
or eax, 0x4fcf18dd
hlt
Function at 0x60e6a2
Capabilities:
Check http status code

Disassembly:
jne 0x60e6a4
add eax, 0x88fad8b8
push esi
jnp 0x60e67a
mov edx, 0x2a893bc6
inc edi
retf 0xc9e6
out 0x13, eax
or eax, dword [ecx - 0x73]
or al, 0xa7
dec eax
iretd
adc byte [ebx + 0x619e599c], ah
pushfd
pop ecx
sahf
popal
or dword [edi - 0x4a270294], ecx
jge 0x60e66a
jecxz 0x60e6ec
ja 0x60e6d5
dec ecx
xchg byte [edi + 0x8422c27], al
pop ds
or byte [edi], bl
in eax, dx
iretd
and ebx, ecx
scasb al, byte es:[edi]
sbb dword [esi + esi + 0x1b380603], esp
jl 0x60e6ba
push edx
js 0x60e74b
jg 0x60e68e
push ss
and dword [ebp - 0x7601b906], edi
invalid
mov edi, eax
mov dword [0x6c734888], eax
inc edi
pop ebx
mov ah, 0x5f
arpl word [esp + esi*2 + 0x1b], bx
std
ror byte [edi + 0x78], 0x70
in eax, dx
cwde
mov dword [esi + 0x64], edx
xchg byte [eax], al
push ebx
add edi, dword [eax]
mov dl, 0x82
sbb byte [edi], 0xdd
mov bh, 0x30
adc ebx, dword [ecx]
dec ebp
fnsave dword [edi + 0x4d191330]
js 0x60e719
test al, 0xc8
invalid
aam 0xa0
invalid
fstp dword [eax]
xor byte [esi], ah
pop edi
push ecx
call 0x36b86ae3
cld
dec ebp
xchg esp, eax
in eax, 0xd0
int1
mov bh, 4
or ch, byte [ebx - 0x4d108107]
cmp eax, 0x9fbbc892
and ch, ch
enter 0xffffffffffff9fbb, 0x20
in eax, dx
add ecx, eax
xlatb
lodsd eax, dword [esi]
ficomp dword [edi]
push 0x2c274aa0
fld xword [eax]
das
mov edi, esi
push eax
ja 0x60e70e
add bh, al
pop edi
mov bh, 0x18
xchg edx, eax
pop esp
fcmovb st(0), st(7)
loop 0x60e766
dec ecx
salc
fistp qword [edx + 0x50696ca1]
push edi
les ecx, [ebx + 0x560eb7ad]
xor edi, eax
loopne 0x60e7bf
test eax, 0x7edb6e76
jl 0x60e79f
jbe 0x60e80f
fstp xword [esi + 0x7c]
cli
inc ebx
aad 0x62
lodsb al, byte [esi]
mov ah, 0x9b
fsubr qword [edi + 0x5b]
and al, 0x2d
popal
adc eax, 0x57e86a93
das
pop edx
and ch, byte [ecx + 0x2441af68]
and al, 0x63
inc ecx
and al, 0x24
arpl word [edi - 0x5fedcfe9], dx
out 0x58, eax
fcmovu st(0), st(0)
adc al, 0x6d
mov ah, byte [ebp - 0x66]
fisubr dword [eax + 0x36]
sbb dword [esi + 0x68], esp
xchg edi, eax
pop ss
xor byte [edx], dl
mov al, byte [0xda58e767]
fcom dword [ebp*2 - 0x25659a76]
push 0x68661936
outsd dx, dword [esi]
pop ebp
pop ss
dec esi
dec edi
invalid
repne outsb dx, byte [esi]
mov dword [0x8275371], eax
cmp al, byte [ebp + 0x35]
mov gs, word [ebp + 0x18]
lodsd eax, dword [esi]
cmp bh, byte [ecx]
out 0xb8, al
jae 0x60e816
jge 0x60e7bc
out 0xd8, eax
in eax, 0x65
ja 0x60e7c0
adc eax, 0xc122df48
jmp 0xf8f1b6bd
Function at 0x403ba4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x403bc5
jl 0x403bbc
test edi, edi
jne 0x403bc5
xor eax, eax
xor edx, edx
jmp 0x403c86
cmp dword [ebx + 0x38], 0
je 0x403bda
push eax
push edi
push dword [ebp + 8]
call fcn.00403c8c
jmp 0x403c86
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x403c21
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x403c21
cmp eax, edi
jb 0x403bfb
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00405790
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x403c27
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x403c7b
mov ecx, ebx
call fcn.004033f3
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x403c66
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040a4fe
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x403c7b
jmp 0x403c39
test edx, edx
je 0x403c7b
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040a4fe
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x405132
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405171
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405171
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405171
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405171
cmp dword [ecx + 0x74], 0xe
jbe 0x405171
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40f19b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f378
push 0x41f370
push str.FlsAlloc
push 0x1e
call fcn.0040f008
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f1cf
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c130]
call esi
jmp 0x40f1d5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f219
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f388
push 0x41f380
push str.FlsGetValue
push 0x20
call fcn.0040f008
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f250
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x411681
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004114f2

Function at 0x411a7b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004052a0
mov eax, dword [0x426040]
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.004106e6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x411abd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x411c19
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041ac40
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 + 0x427988]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00412a72
mov ecx, dword [esi*4 + 0x427988]
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 0x411c12
cmp eax, dword [edi + ecx + 0x24]
jne 0x411c12
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 0x411c12
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00412a72
add esp, 0x14
test edx, edx
jl 0x411c12
jg 0x411b88
test eax, eax
jb 0x411c12
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x411c12
jl 0x411ba2
cmp dword [ebp - 0x1008], eax
ja 0x411c12
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x411bc0
test ebx, ebx
je 0x411bf9
cmp ecx, edi
jae 0x411bf9
mov al, byte [ecx]
cmp al, 0xd
jne 0x411bda
lea eax, [edi - 1]
cmp ecx, eax
jae 0x411be6
cmp byte [ecx + 1], 0xa
jne 0x411be6
inc ecx
jmp 0x411be6
movzx eax, al
movsx eax, byte [eax + 0x426310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x411bc0
cmp edx, ebx
jne 0x411bc0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x411c17
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004043aa
leave
ret
Function at 0x411f10
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 + 0x427988]
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 0x411f50
cmp byte [ebx], 0xa
jne 0x411f50
or byte [eax + edi + 0x28], 4
jmp 0x411f55
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x412053
mov al, byte [edx]
cmp al, 0x1a
je 0x412035
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x411f84
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x411fa9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x411fb3
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 0x411f66
jmp 0x412053
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 0x412030
cmp dword [ebp - 0xc], 0
je 0x412030
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x427988]
test byte [eax + edi + 0x28], 0x48
je 0x41200a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411ff5
mov byte [esi], dl
jmp 0x412006
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x427988]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x412053
cmp byte [ebp - 1], 0xa
jne 0x412019
cmp esi, ebx
jne 0x412019
mov byte [esi], 0xa
jmp 0x412052
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00412a90
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x412053
mov byte [esi], 0xd
jmp 0x412052
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x427988]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41204f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x412053
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41205c
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 + 0x427988]
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 0x41209f
cmp word [esi], dx
jne 0x41209f
or byte [edi + eax + 0x28], 4
jmp 0x4120a4
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 0x4121f7
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 0x4121d7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4120e6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41211c
cmp eax, edx
jae 0x412128
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 0x4120be
jmp 0x4121f7
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 0x4121d3
cmp dword [ebp - 0x14], 0
je 0x4121d3
mov eax, dword [ebx*4 + 0x427988]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4121ab
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x412174
mov word [esi], cx
jmp 0x4121a7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x427988]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x427988]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x427988]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4121f7
pop ebx
cmp word [ebp - 4], bx
jne 0x4121bc
cmp esi, dword [ebp + 0xc]
jne 0x4121bc
mov word [esi], bx
jmp 0x4121f4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00412a90
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4121f7
push 0xd
jmp 0x4121f0
mov ecx, dword [ebx*4 + 0x427988]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4121ee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4121f7
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 0x414f99
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 0x415036
push ebx
push esi
call fcn.00414f62
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.00413be7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x414fe3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415035
push edi
push eax
call fcn.0040f4f1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415003
call fcn.0040ed2b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415034
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00413be7
add esp, 0x20
test eax, eax
jne 0x415022
push edi
call fcn.0040ed2b
jmp 0x41502a
push ebx
call fcn.0040ed2b
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 0x41ac00
Capabilities:
Parse pe header

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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10002c93
push eax
mov eax, 0x1004
mov dword fs:[0], esp
call fcn.10002b50
push esi
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x101c]
lea ecx, [esp + 8]
stosw word es:[edi], ax
push esi
mov dword [esp + 0x1018], 0
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_2
push 0x22
lea ecx, [esp + 0xc]
mov byte [esp + 0x1018], 1
call sub.MFC42.DLL_CString::operator
push esi
lea ecx, [esp + 0xc]
call fcn.10001ba6
push 0x22
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_2
push 0x10004474
push 0x10004470
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0x1020]
mov edx, dword [esp + 8]
push eax
lea ecx, [esp + 0x10]
push 0x1000
push ecx
push 0x10004540
push edx
push str.language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0xc]
test al, al
jne 0x100020f2
mov eax, dword [esp + 0x1024]
test eax, eax
je 0x10002111
mov eax, dword [esp + 0x1020]
push eax
mov eax, dword [esp + 0xc]
push eax
push eax
push str.language
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x10002111
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
push 0x10004470
push 0x10004474
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 8]
mov byte [esp + 0x1014], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1020]
mov dword [esp + 0x1014], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x100c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1010
ret
Function at 0x10002710
Capabilities:
Set registry value

Disassembly:
sub esp, 0x114
push edi
call fcn.10001c95
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2
push 1
call sub.MFC42.DLL_COleObjectFactory::UpdateRegistryAll
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x100034b8
call dword [sym.imp.ole32.dll_StringFromCLSID]
push 0x100
lea edx, [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcstombs]
mov eax, dword [esp + 0x14]
add esp, 0xc
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.CLSID_
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 8]
call fcn.10001bd0
push str.InProcServer32
lea ecx, [esp + 8]
call fcn.10001bd0
lea edx, [esp + 0xc]
mov eax, dword [esp + 4]
push edx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push str.Apartment
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 4]
mov eax, dword [ecx - 8]
lea ecx, [esp + 4]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 1
mov edx, dword [esp + 0x18]
push 0
push str.ThreadingModel
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor eax, eax
pop edi
mov dword [ecx + 4], edx
add esp, 0x114
ret
Function at 0x40a920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
and dword [esp + 4], 0
xor eax, eax
push ebx
push esi
push edi
mov ebx, edx
lea edi, [esp + 0x1c]
mov edx, ecx
mov esi, 0x41f6d0
push 9
pop ecx
rep stosd dword es:[edi], eax
or dword [esp + 0x3c], 0xffffffff
xor edi, edi
or dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
cmp dword [0x41f6d0], eax
je 0x40a9a3
mov eax, dword [edx]
lea ecx, [esp + 0x10]
push ecx
push edi
push 0x10
push edi
push dword [esi]
push edx
call dword [eax + 0x10]
test eax, eax
jne 0x40a998
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
mov edx, esi
call fcn.00409ffc
test eax, eax
jne 0x40aa03
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x18]
add esi, 0x10
cmp dword [esi], edi
jne 0x40a961
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov eax, dword [ebx]
push ecx
push 2
push dword [esp + 0x30]
push esi
push ebx
call dword [eax + 0x34]
test eax, eax
jne 0x40aa03
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
add edx, 4
test esi, esi
je 0x40a9e6
mov eax, dword [edx]
xor eax, dword [ecx]
movzx eax, ax
xor eax, dword [edx]
lea edx, [edx + 4]
mov dword [ecx], eax
lea ecx, [ecx + 0x10]
sub esi, 1
jne 0x40a9cc
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x1c], edi
je 0x40a9f8
mov eax, dword [ebx]
push edi
push ecx
push dword [esp + 0x24]
push ebx
call dword [eax + 0x20]
lea edx, [esp + 0x1c]
mov ecx, ebx
call fcn.0040a7b6
push dword [esp + 0x14]
call dword [0x41f220]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40aa1b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esp + 0x1c]
call fcn.00409a47
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b8e3
Capabilities:
Parse pe header

Disassembly:
leave
call dword [0x6b0]
dec eax
test eax, eax
je 0x40b929
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b929
dec eax
arpl word [eax + 0x3c], cx
dec eax
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b929
mov eax, 0x20b
cmp word [ecx + 0x18], ax
jne 0x40b929
cmp dword [ecx + 0x84], 0xe
jbe 0x40b929
cmp dword [ecx + 0xf8], 0
je 0x40b929
mov al, 1
jmp 0x40b92b
xor al, al
dec eax
add esp, 0x28
ret