joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54e554
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x5b4878]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x54e590
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x54e5a8
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x54e5a1
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00402dfc
xor edx, edx
mov eax, 0x5b4a78
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x54e612
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x54e5c6
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x54e850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x54e869
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x54e862
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x54e87b
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x54e874
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0054e444
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x54e895
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.0054e554
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x54e91a
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x54e937
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0054e4d4
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x54e960
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x54e978
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x54e991
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x54e98a
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x54e9a5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0054e33c
test bl, bl
jne 0x54ea78
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x5ba2ac
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x54e9dc
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x54e9f0
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0054e850
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x54ea22
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x54e9d1
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x54ea45
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x54ea56
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x54ea6a
jmp 0x54eb33
cmp bl, 1
jne 0x54eb33
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x5ba306
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x54ea98
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x54eaac
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0054e850
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x54eade
sub ebx, 6
inc dword [ebp - 8]
jne 0x54ea8d
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x54eb05
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x54eb16
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x54eb2a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0054e3c0
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x5508b4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x550905
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x5508ec
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x5508dc
jmp 0x550905
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x5508ed
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5658b4
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x5ba334
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x5658d6
shr eax, 1
xor eax, 0xedb88320
jmp 0x5658d8
shr eax, 1
dec edx
jne 0x5658c4
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x5658bd
mov byte [0x5ba734], 1
pop esi
pop ebx
ret

Function at 0x5658f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x5ba734], 0
jne 0x56590b
call fcn.005658b4
mov eax, edi
dec eax
test eax, eax
jl 0x565934
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5ba334]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x565915
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x567c78
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x567ca9
dec al
je 0x567ce5
dec al
je 0x567d29
dec al
je 0x567d94
jmp 0x567e1e
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x567e1e
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x567cb9
jmp 0x567e1e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x567e1e
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x567cf5
jmp 0x567e1e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x567e1e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x567d57
xor ebp, ebp
jmp 0x567d68
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x567d71
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x567d39
jmp 0x567e1e
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x567e1e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x567dec
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0056593c
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x567da8
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x57347c
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x57348e
add esp, 0xfffffff0
call fcn.0040383c
mov ebx, ecx
mov byte [ebp - 1], dl
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.004034e8
xor ecx, ecx
mov dl, 1
mov eax, dword [0x572b90]
call fcn.00572e3c
mov dword [esi + 4], eax
call fcn.00519780
and eax, 1
test eax, eax
jne 0x5734d0
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x48]
add eax, 0x38
mov edx, 0x573560
call fcn.00404360
jmp 0x5734e3
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x48]
add eax, 0x38
mov edx, 0x573560
call fcn.00404360
mov eax, dword [esi + 4]
xor edx, edx
call fcn.00573270
test bl, bl
je 0x573504
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x48]
add eax, 8
mov edx, 0x5735c4
call fcn.00404360
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x48]
add eax, 0x14
mov edx, 0x5735dc
call fcn.00404360
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x48]
add eax, 4
mov edx, 0x573600
call fcn.00404360
mov dl, 1
mov eax, dword [0x4174ac]
call fcn.004034e8
mov dword [esi + 8], eax
mov eax, esi
cmp byte [ebp - 1], 0
je 0x573550
call fcn.00403894
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x58233c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5823f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404a18
mov eax, dword [0x5b8864]
cmp byte [eax], 0
je 0x5823ab
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404e0c
mov eax, dword [ebx]
call fcn.00404bd4
push eax
mov eax, dword [ebx]
call fcn.00404bc4
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404bd4
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404e0c
jmp 0x5823dd
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409888
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404bb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5823fd
lea eax, [ebp - 0x3f0]
call fcn.0040430c
ret

Function at 0x58560c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x585666
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x2c8], ecx
mov dword [esi + 0x2cc], edx
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x2bc], eax
mov eax, dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x2c8]
mov eax, esi
call fcn.00585670
mov eax, dword [esi + 0x2c8]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58566d
ret

Function at 0x58e3ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.004552a4
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x279], 0
xor edx, edx
mov eax, ebx
call fcn.0044e878
pop ebx
ret
Function at 0x594944
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5949fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404a18
mov eax, dword [0x5b8864]
cmp byte [eax], 0
je 0x5949b3
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404e0c
mov eax, dword [ebx]
call fcn.00404bd4
push eax
mov eax, dword [ebx]
call fcn.00404bc4
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404bd4
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404e0c
jmp 0x5949e5
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409888
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404bb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x594a05
lea eax, [ebp - 0x3f0]
call fcn.0040430c
ret

Function at 0x594a0c
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00409888
add esp, 0x3ec
pop ebx
ret

Function at 0x59acf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [0x5b8df4]
mov eax, dword [eax]
cmp dword [eax + 0x58], 0
jne 0x59ad96
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x59ad35
cmp eax, dword [esp]
pop edx
pop eax
jae 0x59ad71
jmp 0x59ad39
pop edx
pop eax
jge 0x59ad71
mov eax, dword [0x5b8df4]
mov eax, dword [eax]
mov dword [eax + 0x38], 2
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.005959b8
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x59ad96
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x59ad96
cmp dword [ebx + 0x11c], 0
je 0x59ad96
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.00433c74
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5a58e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a5a59
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x9c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x5a5a3e
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00409888
mov dl, 1
mov eax, dword [0x57c3fc]
call fcn.0057c454
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
mov dl, 1
mov eax, dword [0x41779c]
call fcn.004034e8
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x98]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.0057c4d0
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x5a5a3b
mov dl, 1
mov eax, dword [0x57da04]
call fcn.0057da6c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
mov edx, 0x5a5a70
call fcn.0057cc38
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404618
xor eax, eax
push ebp
push 0x5a5a34
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0057dd6c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.005a5a78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a5a3b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.00403518
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403518
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403518
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a5a60
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404330
ret
Function at 0x10002249
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1003700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40c], eax
xor eax, eax
push 0x60
push eax
push esi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x408], eax
call ebx
mov edi, eax
push 2
pop eax
test edi, edi
jne 0x100022b4
push eax
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x100022b4
call fcn.100012fa
mov esi, eax
jmp 0x1000238c
push dword [ebp - 0x40c]
push dword [ebp - 0x410]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100022d7
call fcn.100012fa
jmp 0x1000237f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x100022cd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x10002300
mov esi, 0x8007000e
jmp 0x10002381
push 2
pop ecx
mul ecx
test edx, edx
ja 0x100023b8
jb 0x10002318
cmp eax, 0xffffffff
ja 0x100023b8
cmp eax, 0x400
jbe 0x1000232d
push eax
lea ecx, [ebp - 0x408]
call fcn.100063c8
jmp 0x10002339
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
je 0x100022f6
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100022cd
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.10002def
mov esi, eax
test edi, edi
je 0x1000238c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x100023a5
lea ecx, [ebp - 0x408]
call fcn.10005f31
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000dc5b
leave
ret 0x10
push 0x80070216
call fcn.10001276
int3
Function at 0x10006a96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10006aec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10006aec
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x10006ade
cmp esi, ecx
jae 0x10006aec
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x10006acc
cmp esi, ecx
jae 0x10006aec
cmp word [esi], 0
je 0x10006aec
mov eax, esi
jmp 0x10006aee
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10007b28
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 4]
call fcn.10005495
mov eax, dword [ebp - 4]
xor esi, esi
inc esi
mov ecx, 0x104
mov edx, dword [eax - 8]
sub esi, dword [eax - 4]
sub edx, ecx
or esi, edx
jge 0x10007b5c
push ecx
lea ecx, [ebp - 4]
call fcn.10006371
mov eax, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov esi, eax
call fcn.100054bc
test esi, esi
jne 0x10007b7e
mov edi, 0x80004005
jmp 0x10007c24
push ebx
push ecx
push ecx
lea ecx, [ebp - 4]
call fcn.100081a3
push 0
push 0x5c
lea ecx, [ebp - 4]
call fcn.10008174
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10007ba4
mov ecx, dword [ebp - 4]
mov eax, dword [ecx - 0xc]
jmp 0x10007ba6
mov eax, ebx
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.100080e0
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.10008b01
test al, al
jne 0x10007be3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10007be3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x50
je 0x10007be3
cmp edi, 0xb7
jne 0x10007c02
cmp ebx, 0xffffffff
je 0x10007c19
lea eax, [ebx + 1]
push eax
push 0x5c
lea ecx, [ebp - 4]
call fcn.10008174
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.10003c15
jmp 0x10007b97
test edi, edi
jle 0x10007c0f
movzx edi, di
or edi, 0x80070000
lea ecx, [esi - 0x10]
call fcn.10003c15
jmp 0x10007c23
lea ecx, [esi - 0x10]
call fcn.10003c15
xor edi, edi
pop ebx
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.10003c15
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x10007c35
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1003700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x10007c5c
mov eax, 0x80070057
jmp 0x10007cfc
push edi
mov ecx, esi
call fcn.100068a7
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10010560
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x10007cdd
movzx ecx, bl
cmp ecx, 0x26
jne 0x10007ca1
mov edx, str.ProgramFiles
jmp 0x10007cab
cmp ecx, 0x1c
jne 0x10007ccc
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.10007d62
push eax
mov ecx, esi
call fcn.10008206
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.10003c15
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x10007cd9
xor eax, eax
inc eax
jmp 0x10007cfb
mov eax, edi
jmp 0x10007cfb
lea eax, [ebp - 0x20c]
push eax
call fcn.100123f6
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.100068dc
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000dc5b
leave
ret