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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, 0x4333b4
mov dword [ebp - 8], 0
mov eax, dword [ebx]
inc eax
push eax
call 0x45a278
mov edi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 4], edi
cmp dword [ebx], eax
jbe 0x43e443
lea esp, [esp]
mov ecx, dword [ebx + 4]
mov dl, byte [ecx + eax]
xor dl, byte [ebx - 4]
inc eax
mov byte [eax + edi - 1], dl
cmp eax, dword [ebx]
jb 0x43e431
mov byte [eax + edi], 0
mov ecx, dword [0x43959c]
mov edx, dword [0x439598]
lea eax, [ebp - 4]
cmp eax, ecx
jae 0x43e4ca
cmp edx, eax
ja 0x43e4ca
mov esi, dword [0x4395a0]
mov edi, eax
sub edi, edx
sar edi, 2
cmp ecx, esi
jne 0x43e4bf
mov eax, ecx
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x43e54d
sub esi, edx
inc eax
sar esi, 2
cmp eax, esi
jbe 0x43e4bf
mov ecx, esi
mov edx, ecx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x43e4a0
xor ecx, ecx
jmp 0x43e4a2
add ecx, edx
cmp ecx, eax
jae 0x43e4a8
mov ecx, eax
push ecx
mov esi, 0x439598
call fcn.0043e5c1
mov ecx, dword [0x43959c]
mov edx, dword [0x439598]
test ecx, ecx
je 0x43e526
mov edx, dword [edx + edi*4]
mov dword [ecx], edx
jmp 0x43e520
mov esi, dword [0x4395a0]
cmp ecx, esi
jne 0x43e51a
mov eax, ecx
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x43e54d
sub esi, edx
mov edx, esi
inc eax
sar edx, 2
cmp eax, edx
jbe 0x43e51a
mov ecx, edx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x43e501
xor ecx, ecx
jmp 0x43e503
add ecx, edx
cmp ecx, eax
jae 0x43e509
mov ecx, eax
push ecx
mov esi, 0x439598
call fcn.0043e5c1
mov ecx, dword [0x43959c]
test ecx, ecx
je 0x43e526
mov dword [ecx], edi
mov ecx, dword [0x43959c]
mov eax, dword [ebp - 8]
add eax, 0xc
add ecx, 4
add ebx, 0xc
mov dword [0x43959c], ecx
mov dword [ebp - 8], eax
cmp eax, 0x210
jb 0x43e416
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4335c0
call 0x45a20a
int3
Function at 0x43e6c1
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
push 0
call 0x45af2f
push eax
call 0x45ac14
add esp, 8
mov ebx, 0x439614
mov edi, 0x4395e8
lea ecx, [ecx]
mov eax, dword [ebx]
push eax
call 0x45add4
add esp, 4
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e6f1
sub eax, edx
mov edx, eax
mov eax, dword [edi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e701
sub eax, esi
lea ecx, [eax + edx + 8]
push ecx
call 0x45a278
mov edx, dword [edi]
add esp, 4
mov esi, eax
mov eax, dword [ebx]
push edx
push eax
call 0x45add4
add esp, 4
push eax
push 0x4335d4
push esi
call 0x45aa62
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x43e7cc
push esi
call 0x45ac09
add edi, 4
add esp, 4
cmp edi, 0x439604
jl 0x43e6e1
add ebx, 4
cmp ebx, 0x439618
jl 0x43e6d9
call 0x45ac26
mov ecx, dword [0x439614]
push ecx
call 0x45add4
add esp, 4
mov ebx, eax
call 0x45ac26
cdq
mov ecx, 7
idiv ecx
mov eax, ebx
mov edi, dword [edx*4 + 0x4395e8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e797
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e7a7
sub eax, esi
lea edx, [eax + edx + 8]
push edx
call 0x45a278
push edi
push ebx
mov esi, eax
push 0x4335d4
push esi
call 0x45aa62
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x258f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0258f1a8
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 0x258f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x258f06a
add dl, dl
jne 0x258f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x258f0dc
xor eax, eax
add dl, dl
jne 0x258f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x258f17d
add dl, dl
jne 0x258f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x258f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x258f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x258f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x258f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x258f075
mov eax, 1
add dl, dl
jne 0x258f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x258f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x258f0e1
sub eax, ebx
mov ebx, 1
jne 0x258f128
mov ecx, 1
add dl, dl
jne 0x258f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x258f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x258f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x258f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x258f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x258f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x258f136
cmp eax, 0x7d00
jae 0x258f16d
cmp eax, 0x500
jb 0x258f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x258f075
cmp eax, 0x7f
ja 0x258f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x258f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x258f19e
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 0x258f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4025b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x41f68c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x402647
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402647
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea esp, [esp]
mov eax, str.Installer.exe
lea ecx, [ebp - 0x10c]
jmp 0x402610
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x402630
test dl, dl
je 0x40262c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x402630
add ecx, 2
add eax, 2
test dl, dl
jne 0x402610
xor eax, eax
jmp 0x402635
sbb eax, eax
or eax, 1
test eax, eax
je 0x40265a
lea eax, [ebp - 0x130]
push eax
push esi
call edi
test eax, eax
jne 0x402600
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040819f
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
mov edi, eax
test edi, edi
je 0x4026c5
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
lea eax, [ebp - 8]
push eax
push edi
call esi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x128]
je 0x4026a4
push 2
push edi
call ebx
mov edi, eax
test edi, edi
jne 0x402674
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040819f
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edi
call esi
push 6
push edi
call esi
push 9
push edi
call esi
push 1
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040819f
mov esp, ebp
pop ebp
ret
Function at 0x4055b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4055bb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x405685
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x41bb48]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x41bb48]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x41bb48]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x41bb48]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x41bb48]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x41bb48]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x41bb48]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x41bb48]
add edx, 8
sub esi, 8
dec edi
jne 0x4055d0
pop edi
test esi, esi
je 0x4056aa
lea esp, [esp]
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x41bb48]
lea edx, [edx + 1]
dec esi
jne 0x405690
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4056c0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
and eax, 0xff
shr esi, 8
mov eax, dword [eax*4 + 0x41bb48]
xor eax, esi
movzx ecx, al
add ecx, dword [edi + 4]
mov dword [edi], eax
mov eax, dword [edi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x41bb48]
mov dword [edi + 8], eax
pop edi
pop esi
ret

Function at 0x405710
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov bl, dl
mov edx, ecx
mov edi, dword [edx + 8]
mov ecx, dword [edx]
mov esi, edi
and esi, 0xfffd
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor bl, al
movsx eax, bl
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x41bb48]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, edi
and eax, 0xff
shr edi, 8
xor edi, dword [eax*4 + 0x41bb48]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret
Function at 0x405ee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x41f68c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ebx
imul esi, dword [ebp + 8]
cmp byte [edi], 0
mov eax, ecx
mov dword [ebp - 8], eax
je 0x405f26
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405f21
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x405f4e
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x405f37
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.00409610
add esp, 0xc
add dword [edi + 0x1c], esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor edx, edx
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0040819f
mov esp, ebp
pop ebp
ret

Function at 0x405f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41f68c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp byte [esi], 0
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
je 0x405fb5
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405fb0
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x405fe2
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x405fc6
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.00409610
lea eax, [ebx + edi]
mov ebx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x406000
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040819f
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x405fed
cmp byte [esi + 8], 0
je 0x405fed
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0040819f
mov esp, ebp
pop ebp
ret
Function at 0x4060c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41f68c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x406109
cmp byte [edi + 1], 0
je 0x4060f7
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40610f
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040819f
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
je 0x40612e
cmp byte [edi + 1], 0
je 0x40612a
push 1
push 0
push 0
push dword [edi + 4]
call ecx
sub eax, dword [edi + 0xc]
jmp 0x406131
xor eax, eax
jmp 0x406131
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, 0xffff
cmp eax, ebx
push esi
cmovb ebx, eax
push 0x404
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ebx
call fcn.00408a99
mov esi, eax
add esp, 4
test esi, esi
jne 0x40616a
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040819f
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ebx, eax
jbe 0x406267
mov edi, edi
mov ecx, dword [ebp - 0x10]
add eax, 0x400
cmp eax, ebx
mov edx, eax
cmova edx, ebx
mov ebx, dword [ebp - 0x10]
sub ecx, edx
sub ebx, ecx
cmp ebx, 0x404
mov eax, 0x404
cmova ebx, eax
cmp byte [edi], 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
je 0x4061ce
cmp byte [edi + 1], 0
je 0x406267
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4061d1
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x14], ebx
je 0x4061f9
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4061f4
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x406222
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x40620c
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0x14], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.00409610
mov eax, dword [ebp - 0x14]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x406267
lea eax, [ebx - 3]
test eax, eax
js 0x406252
dec eax
cmp byte [eax + esi], 0x50
jne 0x40624e
cmp byte [eax + esi + 1], 0x4b
jne 0x40624e
cmp byte [eax + esi + 2], 5
jne 0x40624e
cmp byte [eax + esi + 3], 6
je 0x406284
test eax, eax
jns 0x406232
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x406267
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
cmp eax, ebx
jb 0x406180
push esi
call fcn.00408a61
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add esp, 4
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.0040819f
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
jmp 0x406255
Function at 0x407000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x40709b
cmp dword [esi + 4], 0xffffffff
jne 0x40709b
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407032
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x40705d
cmp al, 0x2f
je 0x40705d
push 0x41badc
push 0x104
push edi
call fcn.00408f0d
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405e40
add esp, 8
test eax, eax
jne 0x40707c
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, eax
call fcn.00406290
xor ecx, ecx
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov dword [esi], eax
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4077c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41f68c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x4077f2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4077f2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x40789e
push esi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x407809
cmp al, 0x5c
jne 0x40780b
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x407801
cmp esi, ebx
je 0x407847
sub esi, ebx
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00409610
add esp, 0xc
cmp esi, 0x104
jae 0x4078ae
lea edx, [ebp - 0x20c]
mov ecx, edi
mov byte [ebp + esi - 0x20c], 0
call fcn.004077c0
mov byte [ebp - 0x108], 0
pop esi
test edi, edi
je 0x407868
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00408b2b
add esp, 0xc
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00408f0d
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40789e
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040819f
mov esp, ebp
pop ebp
ret
call fcn.00408e33
int3
Function at 0x407dc0
Capabilities:
Create thread
Hide graphical window

Disassembly:
mov ecx, dword [0x420740]
test ecx, ecx
je 0x407e2c
mov eax, dword [0x420744]
push esi
push 1
push dword [eax + 4]
push dword [eax]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [0x420740]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x420750], 0
mov esi, eax
jne 0x407e28
mov eax, dword [0x420744]
cmp dword [eax + 0x10], 1
jle 0x407e26
push 0x42073c
push 0
push 0x420734
push 0x407d20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x420738], eax
mov eax, esi
pop esi
ret 8
xor eax, eax
ret 8
Function at 0x412448
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f68c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040b4cc
mov dword [ebp - 0x14], eax
cmp dword [0x4217b0], edi
jne 0x412539
push 0x800
push edi
push 0x41b68c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4124c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x412619
push 0x41b68c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x412619
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412619
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4217b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4217b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4217b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4217c0], eax
test eax, eax
je 0x412536
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4217bc], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41255e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x412551
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x412573
push 4
pop eax
jmp 0x41261b
cmp dword [ebp - 0x14], edi
je 0x412573
push dword [0x4217b0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x412558
mov eax, dword [0x4217bc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4125d1
cmp dword [0x4217c0], esi
je 0x4125d1
push eax
call ebx
push dword [0x4217c0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4125d1
test eax, eax
je 0x4125d1
call ecx
test eax, eax
je 0x4125c6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4125c6
test byte [ebp - 8], 1
jne 0x4125d1
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x412601
mov eax, dword [0x4217b4]
cmp eax, esi
je 0x4125fe
push eax
call ebx
test eax, eax
je 0x4125fe
call eax
mov edi, eax
test edi, edi
je 0x4125fe
mov eax, dword [0x4217b8]
cmp eax, esi
je 0x4125fe
push eax
call ebx
test eax, eax
je 0x4125fe
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4217b0]
call ebx
test eax, eax
je 0x412619
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41261b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040819f
leave
ret
Function at 0x407620
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x407651
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x407640
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x40a900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e38b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x42d3e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0
push 0x404
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x420], 0
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x428], esi
test esi, esi
jne 0x40a9b8
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x428], eax
test esi, esi
jne 0x40a9b8
call fcn.00409210
mov edi, eax
jmp 0x40aacf
push dword [ebp - 0x424]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40a9d6
call fcn.00409210
jmp 0x40aac2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x40a9f4
call fcn.00409210
jmp 0x40aac2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x42c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40aa15
mov edi, 0x8007000e
jmp 0x40aac4
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x40ab08
jb 0x40aa33
cmp eax, 0xffffffff
ja 0x40ab08
cmp eax, 0x400
jbe 0x40aa48
push eax
lea ecx, [ebp - 0x420]
call fcn.00409090
jmp 0x40aa6e
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], eax
jmp 0x40aa6e
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x40aa85
mov edi, 0x8007000e
jmp 0x40aac4
push edi
push dword [ebp - 0x420]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40aaa5
call fcn.00409210
jmp 0x40aac2
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.0040a760
mov edi, eax
test esi, esi
je 0x40aacf
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x40aae8
lea ecx, [ebp - 0x420]
call fcn.00409830
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041c340
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00409350
int3