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

Disassembly:
div dh
das
ror ebp, cl
and al, 0xf6
div bl
mov ecx, 0x61b6b696
sub byte [eax + 0x21], dl
sub byte [edi + 0x78], bl
daa
into
js 0x40f21a
pop edi
push esi
inc ebx
sub byte [edx - 0xa], bl
div dh
imul byte [eax]
pop ss
inc ebx
sub esi, esi
div dh
imul byte [eax]
pop edi
imul dword [eax]
bound edi, qword [eax + 0x28]
push esi
sub byte [ebx], ah
push esi
mov dh, 0xd2
and ch, bh
maskmovq mm6, mm6
shl ecx, 0xa7
ja 0x40f2d7
mov dh, 0xd2
popal
sub byte [eax - 0x20], dl
and dword [ecx + 0x5d2843a1], eax
div dh
div dh
out 0x65, eax
push esi
scasd eax, dword es:[edi]
pop edi
aad 0xa7
adc eax, 0xf604f6fe
mov dh, 0x65
js 0x40f233
aad 0xb6
not ebx
mov dh, 0x65
not ebx
in eax, 0x1a
salc
imul byte [eax]
pop edi
js 0x40f2b3
invalid
daa
push esp
mul dword [ecx]
and dword [ecx + 0x565fe756], 0xc0c0ce1d
sal byte [esi + 0x65b65665], 0x79
mov dh, 0x65
clc
push esi
sbb eax, 0xc0c0c0ce
mov dh, 0x65
push esi
mov dh, 0x65
jns 0x40f27f
clc
mov dh, 0x65
js 0x40f285
not ebx
mov esi, 0x27f6f6a5
dec edi
cli
out 0x5f, eax
aad 0xa2
and byte [edx], 0x28
pop edi
aad 0x28
jae 0x40f347
das
adc dword [esi + 0x28], 0x28787b45
xor bh, 0x1d
nop
rol dword [edx + 0x4b6b6f4], cl
test byte [ecx - 0x49867a4a], 0x85
js 0x40f304
div byte [esi - 0x498484bb]
jnp 0x40f2bc
test eax, edi
mov dh, 0x45
jnp 0x40f387
rcl dword [edi], cl
movsd dword es:[edi], dword [esi]
div dh
daa
dec edi
cli
sub byte [edi], 0x61
popal
sub byte [edi + 0x54], dl
std
and esi, esp
neg word [ebx]
salc
div dh
cmp ebp, ecx
scasb al, byte es:[edi]
xor eax, 0x6028f6fe
js 0x40f316
salc
sbb eax, 0xccf3fece
div dh
mul byte [edi]
arpl cx, dx
imul byte [edi + 0x3534525f]
invalid
imul byte [eax + 0x60]
rcr dword [0xd25fe7ee], 1
sub byte [edi - 7], bl
out 0x5f, eax
push ebx
sub byte [edi + 0x78], bl
out 0x5f, eax
shr dword [eax], cl
pop edi
jp 0x40f347
pop edi
push esp
sub byte [edi - 6], bl
out 0x5f, eax
aam 0x27
arpl word [ebp - 0xa], dx
daa
arpl bp, dx
mul byte [edi]
arpl word [esi - 0xa], dx
out 0x63, eax
push ebp
out 0x64, eax
aad 0x43
ljmp 0x5fe7
sub esi, esi
div dh
imul byte [edi - 0x92930a1]
div dh
sub byte [edi - 9], bl
out 0x5f, eax
push eax
sub byte [edi - 8], bl
out 0x5f, eax
rcl bl, 1
idiv byte [0xc628f6f6]
invalid
pushal
mov ecx, 0x2319c
mov bl, byte [ecx + 0x400fff]
ror bl, 6
add bl, 0x25
rol bl, 0x91
mov byte [ecx + 0x400fff], bl
loop 0x4241a1
popal
jmp 0x40f21d
Function at 0x403360
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00412d9b
test eax, eax
jne 0x40339c
push str.Fatal_Error:_MFC_initialization_failed_n
call fcn.0041a0f1
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x264
call fcn.00409a58
add esp, 4
test eax, eax
je 0x4033bf
push eax
call fcn.00404350
mov edi, eax
jmp 0x4033c1
xor edi, edi
mov ebx, 1
cmp dword [0x43c314], ebx
mov ebp, ebx
jle 0x403478
mov eax, dword [0x43c31c]
mov ecx, dword [eax + ebp*4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402270
cmp dword [edi + 0x258], 0
mov esi, dword [esp + 0x10]
jne 0x403437
mov ecx, str.____
mov eax, esi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403426
test dx, dx
je 0x403422
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403426
add eax, 4
add ecx, 4
test dx, dx
jne 0x403400
xor eax, eax
jmp 0x40342b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403437
mov byte [edi + 0x220], bl
jmp 0x40344e
mov edx, dword [edi + 0x258]
lea ecx, [edi + 0x250]
push esi
push edx
call fcn.0040a0f0
mov esi, dword [esp + 0x10]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40346a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, ebx
cmp ebp, dword [0x43c314]
jl 0x4033d4
mov ecx, edi
call fcn.004050a0
cmp byte [edi + 0x220], 0
jne 0x4034af
mov ecx, dword [edi + 0x234]
cmp dword [ecx - 0xc], 0
je 0x4034af
mov edx, dword [edi + 0x238]
cmp dword [edx - 0xc], 0
je 0x4034af
mov ecx, edi
call fcn.00404d10
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov eax, dword [edi + 0x224]
push eax
call fcn.00403700
push eax
call fcn.004039f0
push 0x431260
mov ecx, edi
call fcn.00411c59
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.WScript
call fcn.00403570
call fcn.00403700
push eax
call fcn.00403880
mov eax, dword [edi + 0x230]
push ecx
sub eax, 0x10
mov dword [esp + 0x14], esp
mov esi, esp
push eax
call fcn.00401ba0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00403700
mov ebx, eax
call fcn.00403cb0
call fcn.00403700
mov esi, eax
lea ecx, [esi + 4]
call fcn.00412e4b
mov eax, dword [esi + 0x4c]
xor edi, edi
cmp eax, edi
je 0x403534
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esi + 0x48]
cmp eax, edi
je 0x403543
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esi + 0x54]
cmp eax, edi
je 0x403552
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x54], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x10
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4a66fc
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
int3
pop esp
mov esp, 0xe1ec8d39
std
pop ebx
cmp dword [edi + 0x76], 0xffffffdc
call 0x193309b
mov ah, 0x31
dec eax
mov byte [esi - 0x41], dl
nop
rep lodsd eax, dword [esi]
or ch, byte [ecx]
adc al, 0x96
out 0xab, al
inc esi
pushal
dec ecx
push eax
jecxz 0x4010ff
retf 0xb412
jmp 0x5b592e7b
outsd dx, dword [esi]
inc edi
out 0x72, al
xor cl, ch
leave
cmp al, 0xe9
inc edi
and al, 0x10
or al, 0x42
fcmovbe st(0), st(3)
das
mov dh, 0xcf
sbb esp, dword [bp + 0x76]
push es
in eax, 0xbd
mov esp, 0xb04fed95
fisub dword [edi + 0x2b905cd6]
ja 0x4010ce
xchg ebp, eax
in eax, dx
dec edi
mov al, 0xda
cmpsd dword [esi], dword es:[edi]
salc
pop esp
nop
sub esi, dword [edi - 0x3d]
sbb bl, al
stosb byte es:[edi], al
dec dl
mov bh, 0xed
or eax, 0x2ddd738e
mov eax, dword [0x3c38cfe1]
xbegin 0x628fa6da
add dword [esi + 0x30], esi
add eax, 0xe24dfba3
xor byte [0xe24dfba3], al
salc
mov al, byte [0xb12d60af]
cdq
lodsd eax, dword [esi]
sbb al, 0xdb
pop ds
cwde
xor ecx, dword [ebx]
push 0x596c953b
push ebp
loopne 0x401124
or ah, byte [ecx]
popfd
sub dword [ebx], 0xffffffff
pop edx
jbe 0x4010e4
and dword [0x7ec03650], 0x3262deb
sbb eax, 0x77d20a49
xchg esi, eax
add byte [eax - 0x5a], 0x28
insd dword es:[edi], dx
pop ds
ficom dword [0x74d58b6b]
mov eax, dword [0xd67193a8]
aas
frstor dword [edi]
xchg ebx, eax
add eax, 0x867af8ce
lodsb al, byte [esi]
fidivr word [esi + 0x59]
push ss
das
pop esi
or al, 0xcd
sbb al, 0xf1
push 0xfffffffffffffffa
xlatb
invalid

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 0x10108f87
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.10109006
jae 0x10108f93
xor ecx, ecx
call fcn.10109006
jae 0x10108fbd
xor eax, eax
call fcn.10109006
jae 0x10108fce
mov al, 0x10
call fcn.10109006
adc al, al
jae 0x10108faf
jne 0x10108ffb
stosb byte es:[edi], al
jmp 0x10108f94
call fcn.10109012
dec ecx
loop 0x10108fda
mov eax, ebp
call fcn.10109010
jmp 0x10108ffc
lodsb al, byte [esi]
shr eax, 1
je 0x10109022
adc ecx, 2
mov ebp, eax
jmp 0x10108ffc
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.10109010
cmp eax, 0x7d00
jae 0x10108ffa
cmp eax, 0x500
jae 0x10108ffb
cmp eax, 0x7f
ja 0x10108ffc
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10108f94
pop ebp
ret 8
Function at 0x403cbe
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403ceb
mov ecx, dword [0x423f70]
push edi
add eax, ecx
push edi
push eax
mov dword [0x4174dc], eax
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403de9
cmp eax, edi
jl 0x403de2
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409094]
call ebx
test eax, eax
je 0x403ddf
cmp dword [ebp - 4], esi
jne 0x403ddf
push dword [ebp + 8]
add dword [0x4174dc], esi
call fcn.00403de9
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403de2
cmp dword [ebp + 0x10], edi
jne 0x403dae
cmp dword [ebp + 8], edi
jle 0x403dda
mov esi, 0x413498
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403d5e
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409094]
call ebx
test eax, eax
je 0x403ddf
cmp edi, dword [ebp - 4]
jne 0x403ddf
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403daa
cmp dword [ebp + 0x14], edi
jne 0x403daa
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4174dc], eax
cmp dword [ebp + 8], 0
jg 0x403d51
jmp 0x403dda
push 0xfffffffffffffffe
jmp 0x403de1
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403db9
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409094]
call ebx
test eax, eax
je 0x403ddf
mov eax, dword [ebp - 4]
add dword [0x4174dc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403de2
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403de9
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4174dc]
mov ebx, eax
sub esi, dword [0x40b43c]
add ebx, 0x1f4
add esi, dword [esp + 0x38]
cmp esi, edi
jle 0x403fca
push dword [0x41f4ec]
call fcn.00404008
push edi
push edi
push dword [0x40b43c]
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f4e8], esi
mov dword [0x4174d8], edi
mov eax, dword [0x4174e0]
mov ebp, 0x4000
sub eax, dword [0x41f4ec]
cmp eax, ebp
jg 0x403e5d
mov ebp, eax
mov esi, 0x413498
push ebp
push esi
call fcn.00403fd6
test eax, eax
je 0x403fac
add dword [0x41f4ec], ebp
mov dword [0x40b458], esi
mov dword [0x40b45c], ebp
cmp dword [0x423f28], edi
je 0x403f0f
cmp dword [0x423f9c], edi
jne 0x403f0f
cmp dword [esp + 0x10], edi
je 0x403edc
mov eax, dword [0x41f4e8]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
sub eax, dword [0x4174dc]
sub eax, dword [esp + 0x38]
add eax, dword [0x40b43c]
mov dword [0x4174d8], eax
jmp 0x403eca
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
lea eax, [esp + 0x24]
push edi
push eax
call esi
test eax, eax
jne 0x403ebf
jmp 0x403f0f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jbe 0x403f0f
mov eax, dword [0x423f24]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x4038f7
push edi
push 0x6f
push dword [0x423f20]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
push 0x40b440
mov dword [0x40b460], 0x40b498
mov dword [0x40b464], 0x8000
call fcn.00401ce8
test eax, eax
jl 0x403fb5
mov esi, dword [0x40b460]
mov eax, 0x40b498
sub esi, eax
je 0x403f76
lea ecx, [esp + 0x14]
push edi
push ecx
push esi
push eax
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403fb1
cmp esi, dword [esp + 0x14]
jne 0x403fb1
add dword [0x40b43c], esi
cmp dword [0x40b45c], edi
jne 0x403e83
jmp 0x403f82
cmp dword [0x40b45c], edi
jne 0x403fb5
cmp ebp, edi
je 0x403fb5
mov eax, dword [0x4174dc]
mov ecx, eax
sub ecx, dword [0x40b43c]
add ecx, dword [esp + 0x38]
test ecx, ecx
jg 0x403e47
push edi
push edi
push eax
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403fba
or eax, 0xffffffff
jmp 0x403fcc
push 0xfffffffffffffffe
jmp 0x403fb7
push 0xfffffffffffffffd
pop eax
jmp 0x403fcc
cmp dword [esp + 0x10], edi
je 0x403fca
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x4045f2
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x42a000], 0
push ebx
push ebp
push esi
push edi
mov edi, 0xffff
mov ebx, 0x42a000
je 0x404611
push ebx
call fcn.00406910
jmp 0x404617
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x423f64]
test esi, esi
je 0x40466a
mov ecx, dword [0x423f28]
mov ecx, dword [ecx + 0x5c]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x423f60]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x40464f
test esi, esi
jne 0x404639
jmp 0x40466a
mov edx, dword [ecx + 2]
mov dword [0x423700], edx
mov edx, dword [ecx + 6]
mov dword [0x423fa4], edx
lea edx, [ecx + 0xa]
mov dword [0x4236fc], edx
cmp dword [0x4236fc], 0
jne 0x404685
cmp di, 0xffff
jne 0x404681
mov edi, 0x3ff
jmp 0x404619
xor edi, edi
jmp 0x404619
movzx eax, word [ecx]
push eax
push ebx
call fcn.004068f7
push 0xfffffffffffffffe
push 0x423720
call fcn.004069a5
push eax
push dword [0x420908]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406380
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x422130], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4063a4
test al, 0x10
jne 0x4063a7
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x422130
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4063d2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x406449
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00406582
test eax, eax
je 0x4064ad
test byte [ebp + 0xc], 1
push esi
je 0x406496
mov eax, dword [0x423f24]
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x20], eax
call sub.KERNEL32.dll_lstrlenA
and byte [eax + esi + 1], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
jmp 0x4064ad
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4064ad
test byte [ebp + 0xc], 2
je 0x4064ad
push eax
push esi
call fcn.004066d6
pop esi
leave
ret 8
Function at 0x406582
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d30
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.00406530
test eax, eax
jne 0x4065a1
xor eax, eax
jmp 0x4065ea
test byte [0x423f30], 0x80
je 0x4065b5
mov cl, byte [eax]
test cl, cl
je 0x40659d
cmp cl, 0x5c
je 0x40659d
mov edi, eax
sub edi, esi
jmp 0x4065cf
call fcn.00406c86
test eax, eax
je 0x4065c9
test byte [eax], 0x10
je 0x40659d
push esi
call fcn.004064de
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4065bb
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40665f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40668e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4066d2
test edi, edi
jne 0x406699
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4066cc
Function at 0x4066d6
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40670e
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40670e
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x406853
mov eax, dword [0x409334]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov dword [0x422ab8], eax
mov edi, 0x400
mov ebp, 0x422ab8
je 0x406752
push 1
push 0
push esi
call fcn.0040665f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406859
cmp eax, edi
jg 0x406859
mov esi, 0x4226b8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406859
cmp eax, edi
jg 0x406859
push esi
push ebp
push str._s_s_r_n
push 0x4222b8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406853
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x40683b
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x40682f
push str._Rename__r_n
push edi
call fcn.004065ef
test eax, eax
jne 0x406860
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x4222b8
push eax
call fcn.0040663b
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423f90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40930c
push eax
call fcn.004065ef
test eax, eax
je 0x406816
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x406889
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x40687c
sub eax, edi
jmp 0x406818
Function at 0x40688d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4068f1
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4068e0
cmp dword [ebp + 0x14], 1
je 0x4068e2
cmp dword [ebp + 0x14], 2
je 0x4068e2
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x593370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x59338e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x5bc074
push ecx
mov edi, eax
call fcn.005a7198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5933cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.005a702e
push esi
call fcn.005a6fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x596850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x5968ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x5c1720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5968ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005a71e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x5968ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5c1720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x59692a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.005a8082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x596957
mov word [eax], si
add eax, 2
push eax
call fcn.005a8030
add esp, 4
jmp 0x596959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5968ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5968b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x596ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret