joyce8/EMBER2024-capa huggingface dataset:
Function at 0x525126
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00517850
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x5251c1
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x84e3e0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x5251c1
cmp eax, 1
je 0x5251e2
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x5251c1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x52518e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x5251bd
xor eax, eax
inc eax
jmp 0x525201
cmp edi, eax
jae 0x5251c5
xor eax, eax
jmp 0x525201
cmp eax, esi
jae 0x5251cc
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x84e3e0]
jmp 0x5251e5
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x526eba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x84e7d4], ebx
push esi
push edi
jne 0x526f3a
push 0x54d6b8
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x526f75
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x54d6ac
push edi
call esi
test eax, eax
mov dword [0x84e7d4], eax
je 0x526f75
push 0x54d69c
push edi
call esi
push 0x54d688
push edi
mov dword [0x84e7d8], eax
call esi
cmp dword [0x84e3e0], 2
mov dword [0x84e7dc], eax
jne 0x526f3a
push 0x54d66c
push edi
call esi
test eax, eax
mov dword [0x84e7e4], eax
je 0x526f3a
push 0x54d654
push edi
call esi
mov dword [0x84e7e0], eax
mov eax, dword [0x84e7e0]
test eax, eax
je 0x526f7f
call eax
test eax, eax
je 0x526f66
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x84e7e4]
test eax, eax
je 0x526f66
test byte [ebp - 8], 1
jne 0x526f7f
cmp dword [0x84e3ec], 4
jb 0x526f79
or byte [ebp + 0x12], 0x20
jmp 0x526f9e
xor eax, eax
jmp 0x526fae
or byte [ebp + 0x12], 4
jmp 0x526f9e
mov eax, dword [0x84e7d8]
test eax, eax
je 0x526f9e
call eax
mov ebx, eax
test ebx, ebx
je 0x526f9e
mov eax, dword [0x84e7dc]
test eax, eax
je 0x526f9e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x84e7d4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x527c08
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00517850
mov eax, dword [0x819d74]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0051e7b1
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x527d3b
push 2
push esi
push dword [ebp + 8]
call fcn.0051e7b1
add esp, 0xc
cmp eax, ebx
je 0x527d3b
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x527cdb
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0051d6c0
push 0x8000
push dword [ebp + 8]
call fcn.00528021
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x527c91
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0051eb5a
add esp, 0xc
cmp eax, 0xffffffff
je 0x527cb1
sub edi, eax
test edi, edi
jg 0x527c89
jmp 0x527cc9
call fcn.0051e537
cmp dword [eax], 5
jne 0x527cc6
call fcn.0051e52e
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00528021
pop ecx
pop ecx
jmp 0x527d23
jge 0x527d23
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0051e7b1
push dword [ebp + 8]
call fcn.005267ac
add esp, 0x10
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x527d23
call fcn.0051e52e
mov dword [eax], 0xd
call fcn.0051e537
mov edi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0051e7b1
add esp, 0xc
mov eax, esi
pop edi
jmp 0x527d3d
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0052294b
leave
ret
Function at 0x527d49
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x54d8d8
call fcn.0051b988
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x84e8d4], edi
jne 0x527d8d
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x527d78
mov dword [0x84e8d4], ebx
jmp 0x527d8d
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x527d8d
mov dword [0x84e8d4], 2
mov eax, dword [0x84e8d4]
cmp eax, ebx
jne 0x527dad
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
jmp 0x527e70
cmp eax, 2
je 0x527db6
cmp eax, edi
jne 0x527dde
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x527dc9
mov eax, dword [0x84e778]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x527de5
xor eax, eax
jmp 0x527e70
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00517850
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x527e18
cmp esi, edi
jne 0x527e2e
push dword [ebp - 0x20]
call fcn.00516d2a
pop ecx
mov esi, eax
cmp esi, edi
je 0x527dde
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
je 0x527e61
cmp dword [ebp + 0x14], edi
jne 0x527e4b
push edi
push edi
jmp 0x527e51
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x527e6d
push esi
call fcn.00516bb0
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0051b9c3
ret
Function at 0x527e79
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x54d8e8
call fcn.0051b988
xor esi, esi
cmp dword [0x84e8d8], esi
jne 0x527ebd
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x527ea8
mov dword [0x84e8d8], edi
jmp 0x527ebd
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x527ebd
mov dword [0x84e8d8], 2
mov eax, dword [0x84e8d8]
cmp eax, 2
je 0x527f9e
cmp eax, esi
je 0x527f9e
cmp eax, 1
jne 0x527f02
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x527eeb
mov eax, dword [0x84e778]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x527f09
xor eax, eax
jmp 0x527fb0
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00517850
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x527f3f
cmp edi, esi
jne 0x527f5a
lea eax, [ebx + ebx]
push eax
call fcn.00516d2a
pop ecx
mov edi, eax
cmp edi, esi
je 0x527f02
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x527f8d
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x527f77
push esi
push esi
jmp 0x527f7d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x527f99
push edi
call fcn.00516bb0
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x527fb0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0051b9c3
ret
Function at 0x1102b210
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1102b360
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1102b236
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1102b222
add dl, dl
jne 0x1102b241
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1102b294
xor eax, eax
add dl, dl
jne 0x1102b24e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1102b335
add dl, dl
jne 0x1102b25d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1102b268
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1102b273
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1102b27e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1102b28a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1102b22d
mov eax, 1
add dl, dl
jne 0x1102b2a2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1102b2ad
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1102b299
sub eax, ebx
mov ebx, 1
jne 0x1102b2e0
mov ecx, 1
add dl, dl
jne 0x1102b2c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1102b2d1
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1102b2bd
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1102b22d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1102b2f7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1102b302
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1102b2ee
cmp eax, 0x7d00
jae 0x1102b325
cmp eax, 0x500
jb 0x1102b320
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1102b22d
cmp eax, 0x7f
ja 0x1102b328
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1102b22d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1102b356
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1102b22d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x462344
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a14
xor eax, eax
push ebp
push 0x46244a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x467080
mov edx, 0x462460
call fcn.004045b8
cmp dword [0x4670d0], 0
jne 0x462385
call fcn.004620bc
push 2
push 0
push 0
mov eax, dword [0x4670d0]
push eax
call sub.kernel32.dll_SetFilePointer_1
cmp eax, 0xffffffff
jne 0x4623a0
call fcn.004620bc
lea edx, [ebp - 0xc]
mov al, byte [0x4670ca]
call fcn.00407a64
push dword [ebp - 0xc]
push 0x4624cc
push dword [ebp - 4]
push 0x4624d8
lea eax, [ebp - 4]
mov edx, 4
call fcn.004048e4
mov eax, 0x467080
mov edx, 0x4624e4
call fcn.004045b8
mov byte [0x4670ca], 0
mov eax, 0x467080
mov edx, 0x46259c
call fcn.004045b8
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404824
push eax
lea eax, [ebp - 4]
call fcn.00404a7c
push eax
mov eax, dword [0x4670d0]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x46241d
mov dword [ebp - 8], 0xffffffff
mov eax, 0x467080
mov edx, 0x462610
call fcn.004045b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462451
lea eax, [ebp - 0xc]
call fcn.00404564
lea eax, [ebp - 4]
call fcn.00404564
ret

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x406864
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406888
xor eax, eax
test eax, eax
je 0x40689b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40689b
xor ecx, ecx
jmp 0x40689e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x45fdac], 0
push esi
jne 0x4069f8
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069d2
mov dword [ecx*4 + 0x45fda8], eax
inc ecx
cmp ecx, 0x100
jl 0x4069cd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a29
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fda8]
xor eax, esi
inc ecx
dec edx
jne 0x406a0b
pop edi
not eax
pop esi
ret 0xc

Function at 0x414ac0
Capabilities:
Check for software breakpoints

Disassembly:
push ecx
xor dword [ebx + 0x2ebc4662], 0x6520b991
and byte [ebp + 0x78], ah
invalid
and byte [ebp + 0x78], ah
jg 0x414b35
jo 0x414b02
cmp al, 0xcc
clc
jne 0x414ab7
int3
cmc
imul esi, dword [edi - 0x7c2c6252], 0x8b7ce704
adc ecx, ebp
push ecx
int 0x51
shr dword [edx], 1
arpl word [esi - 0x34], ax
in al, dx
jge 0x414adb
inc esi
int3
jne 0x414b38
cdq
pop ecx
aaa
in al, dx
and eax, 0x9dad1589
push ecx
and eax, 0x9d466213
mov bh, 0x62
inc esi
mov dl, byte [ebp + ecx*4 - 0x27]
xor al, 0xec
jne 0x414b64
invalid
adc esp, dword [edx + 0x70]
mov dh, 0xec
popfd
mov ecx, 0xb99dec75
jne 0x414af6
popfd
mov ecx, 0xb99dec75
mov dl, byte [ebx]
bound eax, qword [esi + 0x75]
in al, dx
popfd
mov ecx, 0x4662138a
jne 0x414b0a
popfd
mov ecx, 0xb99dec75
jne 0x414b12
popfd
mov ecx, 0x551eec75
jno 0x414b59
cdq
popfd
cdq
inc esp
fistp qword [ecx - 0x2e2de884]
pop ss
rcl cl, cl
jne 0x414ad6
fdivr qword [ecx + 0x6125ab3b]
not esi
sbb eax, dword [edx]
mov edx, 0x5cfcfdbd
add bh, byte [edx + 0x5cfcfdbd]
adc ebx, ebx
add byte [ebp - 4], dh
fnstsw word [ecx - reloc.user32.dll_GetClassLongA]
jne 0x414b42
sbb al, 0x57
pushfd
lcall 0xb99c, 0x2f45b95
jne 0x414b4e
daa
cdq
lodsd eax, dword ds:[esi]
popfd
cmp byte [edx + 0x518d514e], bl
in eax, dx
bound edx, qword [ecx + 0x5e]
in al, dx
popfd
mov ecx, 0x62f0c6ce
mov al, 0xb5
mov ah, 0x4f
invalid
Function at 0x40369e
Capabilities:
Check if file exists
Get file attributes
Identify system language via api

Disassembly:
push 0x1c
mov eax, 0x4062bb
call fcn.00406140
mov dword [ebp - 0x24], edx
mov eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
xor esi, esi
cmp dword [eax - 0xc], esi
je 0x403762
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403762
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
and eax, 0x3ff
or eax, 0x400
mov dword [ebp - 0x14], 0x409
mov dword [ebp - 0x18], eax
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [ebp - 4], esi
mov edi, esi
mov eax, esi
test edi, edi
jle 0x403712
mov ecx, dword [ebp + edi*4 - 0x1c]
cmp dword [ebp + eax*4 - 0x1c], ecx
je 0x403740
inc eax
cmp eax, edi
jl 0x403707
mov eax, dword [ebp - 0x24]
push dword [eax]
mov eax, dword [ebp - 0x28]
push dword [ebp + edi*4 - 0x1c]
push dword [eax]
lea eax, [ebp - 0x20]
push 0x4011fc
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
add esp, 0x14
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403748
inc edi
cmp edi, 3
jb 0x4036fd
jmp 0x403755
push esi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, esi
jmp 0x403764
xor eax, eax
call fcn.004060fe
ret
Function at 0x40391b
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x4063ad
call fcn.0040610d
mov ebx, ecx
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebx + 0xcc]
mov byte [ebp - 4], 1
call fcn.00403575
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
push 0x401258
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403a6a
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x14]
push 0x401290
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
add esp, 0xc
lea ecx, [ebp - 0x10]
push 0x104
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBufferSetLength]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
mov esi, eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
test esi, esi
jne 0x403a35
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x403a26
push 8
call fcn.00405271
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 2
mov ecx, esi
push dword [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
and dword [esi + 4], 0
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebx + 0xcc]
mov byte [ebp - 4], 1
call fcn.004035c4
inc edi
cmp edi, 0x3e8
jle 0x403974
jmp 0x403a61
push edi
lea eax, [ebp - 0x14]
push 0x4012a8
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
add esp, 0xc
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x403a61
inc edi
cmp edi, 0x3e8
jle 0x403a35
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
call fcn.004060ea
ret