joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f78e8e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x4f78eb0
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4f78eb0
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4f78eb0
ret
cmp word [ebx + 4], 0x14c
jne 0x4f78eb0
test word [ebx + 0x16], 2
je 0x4f78eb0
test word [ebx + 0x16], 0x100
je 0x4f78eb0
cmp word [ebx + 0x18], 0x10b
jne 0x4f78eb0
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4f78eb0
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4f78f3c
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4f78ed0
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.04f5fe1b
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4f78eb0
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x4f78f3c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x4f78eb0
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4f78eb0
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4f78eb0
ret
cmp word [ebx + 4], 0x14c
jne 0x4f78eb0
test word [ebx + 0x16], 2
je 0x4f78eb0
test word [ebx + 0x16], 0x100
je 0x4f78eb0
cmp word [ebx + 0x18], 0x10b
jne 0x4f78eb0
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4f78eb0
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4f78f3c
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4f78ed0
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.04f5fe1b
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4f78eb0
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x4f78ff3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4f7904c
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4f78ff3
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4f79002
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x537eca5
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4f79053
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.04f5fec9
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4f790f2
add edi, 4
add eax, 2
dec ecx
jne 0x4f79038
call 0x4f7909f
loope 0x4f79095
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4f790ef
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4f79100
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4f790b3
cmp eax, ecx
ja 0x4f790b3
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4f7913d
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4f79133
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.04f603a8
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4f79002
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4f7904c
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4f78ff3
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4f79002
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x537eca5
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4f79053
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.04f5fec9
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4f790f2
add edi, 4
add eax, 2
dec ecx
jne 0x4f79038
call 0x4f7909f
loope 0x4f79095
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4f790ef
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4f79100
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4f790b3
cmp eax, ecx
ja 0x4f790b3
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4f7913d
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4f79133
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.04f603a8
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4af1d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6f000]
push edi
or ebp, 0xffffffff
jmp 0x4af1f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4af1f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4af1e8
mov eax, 1
add ebx, ebx
jne 0x4af20b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4af21c
jne 0x4af23b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4af23b
dec eax
add ebx, ebx
jne 0x4af228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4af200
add ebx, ebx
jne 0x4af237
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4af28d
xor ecx, ecx
sub eax, 3
jb 0x4af253
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4af2c2
sar eax, 1
mov ebp, eax
jmp 0x4af25e
add ebx, ebx
jne 0x4af25e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4af22c
inc ecx
add ebx, ebx
jne 0x4af26c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4af22c
add ebx, ebx
jne 0x4af279
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4af26e
jne 0x4af28a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4af26e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4af2ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4af29e
jmp 0x4af1ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4af2ac
add edi, ecx
jmp 0x4af1ee
pop esi
mov edi, esi
mov ecx, 0x3493
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4af2ca
cmp byte [edi], 0x4c
jne 0x4af2ca
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 al, bl
loop 0x4af2cf
lea edi, [esi + 0xab000]
mov eax, dword [edi]
or eax, eax
je 0x4af347
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb6df0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb6f44]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4af2fc
mov ecx, edi
jns 0x4af32b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb6f48]
or eax, eax
je 0x4af341
mov dword [ebx], eax
add ebx, 4
jmp 0x4af319
call dword [esi + 0xb6f58]
mov ebp, dword [esi + 0xb6f4c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4af37b
sub esp, 0xffffff80
jmp 0x417770
Function at 0x10009bc2
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10009c0b
push 0x1439
push 0x1a8e
push 0x52d
push 0x24f1
push 0x1c59
push 0x134c
push 0x150e
push 0x90b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_Arc]
jmp 0x10009c13
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ebp
ret
Function at 0x100121c6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x100121ea
xor eax, eax
jmp 0x1001237f
push 1
push 0x53fe
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100113a6
add esp, 0x14
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10012217
xor eax, eax
jmp 0x1001237f
push 0x6c07
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 1
push 0xdc8
push 0x5bc1
call fcn.100107b9
add esp, 0x18
cmp dword [ebp - 0xc], 0
jne 0x10012244
xor eax, eax
jmp 0x1001237f
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 4]
push eax
push 0x6c56
lea eax, [ebp - 8]
push eax
push 0x7056
lea eax, [ebp - 0xc]
push eax
push 0x6a54
lea eax, [ebp - 0x24]
push eax
push 0x2bff
push 0x562e
call fcn.10011407
add esp, 0x2c
push 0x2f43
push 0x396a
lea eax, [ebp - 8]
push eax
push 0x1c17
push 0x7779
push 0x63e9
push 0xb48
push 0x5751
push 0x6afd
push 1
push 0x261a
push 0x25d8
push 0x79f5
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x1c3
call fcn.10011e08
add esp, 0x40
push 1
lea eax, [ebp - 0x14]
push eax
push 0xd33
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10012149
add esp, 0x14
cmp dword [ebp - 0x14], 0
je 0x10012308
push dword [ebp - 4]
push dword [ebp - 0x14]
push 0x608b
push 0x46ac
push 1
call fcn.1000d618
add esp, 0x14
push dword [ebp - 4]
call fcn.100106a0
pop ecx
test eax, eax
jne 0x10012319
xor eax, eax
jmp 0x1001237f
push 1
push dword [ebp - 4]
call fcn.1000abc0
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10012367
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10012344
xor eax, eax
jmp 0x1001237f
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1001235d
xor eax, eax
jmp 0x1001237f
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10012378
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1001237c
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret

Function at 0x10012d98
Capabilities:
Get file attributes

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret
Function at 0x10025888
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100258a2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x100258ed
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100258d0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x100258ed
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.100126e6
mov dword [eax], 0x2e3979d7
jmp 0x100258c5
mov esp, ebp
pop ebp
ret

Function at 0x1002d354
Capabilities:
Get file attributes
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002d38a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1002d388
push 0x2482
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jmp 0x1002d392
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret
Function at 0x1004baad
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1004bad6
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 4
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x1004baea
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1004baea
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret
Function at 0x1007b6b5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10085330]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006c4dc
mov dword [ebp - 0x14], eax
cmp dword [0x106725d4], esi
jne 0x1007b7a8
push 0x800
push esi
push 0x10007a1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007b735
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007b888
push esi
push esi
push 0x10007a1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007b888
push 0x10007a34
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007b888
push eax
call ebx
push 0x10007a40
push edi
mov dword [0x106725d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007a50
push edi
mov dword [0x106725d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007a64
push edi
mov dword [0x106725dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106725e4], eax
test eax, eax
je 0x1007b7a5
push 0x10007a80
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106725e0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007b7cd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007b7c0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007b7e2
push 4
pop eax
jmp 0x1007b88a
cmp dword [ebp - 0x14], esi
je 0x1007b7e2
push dword [0x106725d4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007b7c7
mov eax, dword [0x106725e0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007b840
cmp dword [0x106725e4], edi
je 0x1007b840
push eax
call ebx
push dword [0x106725e4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007b840
test eax, eax
je 0x1007b840
call ecx
test eax, eax
je 0x1007b835
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 0x1007b835
test byte [ebp - 8], 1
jne 0x1007b840
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007b870
mov eax, dword [0x106725d8]
cmp eax, edi
je 0x1007b86d
push eax
call ebx
test eax, eax
je 0x1007b86d
call eax
mov esi, eax
test esi, esi
je 0x1007b86d
mov eax, dword [0x106725dc]
cmp eax, edi
je 0x1007b86d
push eax
call ebx
test eax, eax
je 0x1007b86d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x106725d4]
call ebx
test eax, eax
je 0x1007b888
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007b88a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x4012e6
Capabilities:
Accept command line arguments
Get common file path
Get program files directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push 1
push 0x26
lea eax, [ebp - 0x25c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40130e
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x407884
lea eax, [ebp - 0x25c]
push eax
call edi
lea eax, [ebp - 0x25c]
push eax
call fcn.0040124f
pop ecx
test al, al
jne 0x401339
push 2
jmp 0x401308
push str.App_Update_
lea eax, [ebp - 0x25c]
push eax
call edi
lea eax, [ebp - 0x25c]
push eax
call fcn.0040124f
lea eax, [ebp - 0x25c]
push eax
call fcn.0040124f
pop ecx
pop ecx
test al, al
jne 0x401369
push 3
jmp 0x401308
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4078c4
lea eax, [ebp - 0x54]
push 0x28
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCpyW]
add esp, 0x10
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x464]
push eax
call ebx
push str.patch_
lea eax, [ebp - 0x464]
push eax
call edi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x464]
push eax
call edi
push 0x4078dc
lea eax, [ebp - 0x464]
push eax
call edi
lea eax, [ebp - 0x464]
push eax
call fcn.0040103d
pop ecx
test al, al
je 0x4014a4
push esi
push 0x4078f4
mov esi, 0x40a780
push esi
call ebx
lea eax, [ebp - 0x464]
push eax
push esi
call edi
push 0x4078f8
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ebx, [eax + 2]
jmp 0x40140c
add ebx, 2
cmp ax, 0x22
je 0x401414
movzx eax, word [ebx]
test ax, ax
jne 0x401403
call fcn.004010b0
push ebx
push esi
call edi
push 1
lea eax, [ebp - 0x25c]
push eax
push esi
call fcn.00401275
add esp, 0xc
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrW]
push str._park_
push esi
call ebx
mov dword [ebp - 4], eax
test eax, eax
je 0x4014a3
push str._nolaunchapp
push esi
call ebx
test eax, eax
jne 0x4014a3
add dword [ebp - 4], 0xe
push 0x4078f4
push dword [ebp - 4]
call ebx
xor ebx, ebx
cmp eax, ebx
je 0x4014a3
push dword [ebp - 4]
xor ecx, ecx
mov esi, 0x40c6c0
push esi
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
call fcn.004010df
test al, al
je 0x401490
push str.__EventExecute__GlobalWTPARKEXEC___SignalExecute
jmp 0x401495
push str.__EventTerminate__GlobalWTPARKTERM___SignalTerminate
push esi
call edi
push ebx
push ebx
push esi
call fcn.00401275
add esp, 0xc
pop esi
lea eax, [ebp - 0x25c]
push eax
call fcn.00401197
pop ecx
pop edi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x402970
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov eax, dword [ebx + 0x20]
push edi
lea ecx, [eax + ebp]
cmp ecx, 8
mov dword [edx], ecx
ja 0x4029ba
mov esi, dword [esp + 0x18]
mov ecx, ebp
lea edi, [eax + ebx + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x20]
pop edi
add eax, ebp
pop esi
mov dword [ebx + 0x20], eax
pop ebp
mov dword [edx], 0
xor eax, eax
pop ebx
ret
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp ebp, esi
jne 0x4029d0
pop edi
pop esi
pop ebp
mov eax, 0x1001
pop ebx
ret
mov dword [edx], ecx
mov ecx, 8
sub ecx, eax
lea edi, [eax + ebx + 0x18]
mov dword [esp + 0x14], ecx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov ecx, edx
mov edx, dword [esp + 0x1c]
add esi, ecx
mov dword [esp + 0x18], esi
lea esi, [ebx + 0x10]
lea edi, [edx + eax - 8]
lea eax, [ebx + 0x24]
push esi
push eax
mov dword [esp + 0x24], edi
call fcn.004012e0
mov eax, dword [esi]
mov ecx, dword [ebx + 0x18]
xor eax, ecx
add esp, 8
mov dword [ebp], eax
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x14]
add ebp, 8
xor ecx, edx
cmp edi, 8
mov dword [ebp - 4], ecx
jbe 0x402a7f
lea eax, [edi - 1]
shr eax, 3
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x24]
push esi
push eax
call fcn.004012e0
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
add esp, 8
add ebp, 8
mov ecx, dword [eax]
add eax, 8
xor edx, ecx
mov dword [esp + 0x18], eax
mov dword [ebp - 8], edx
mov ecx, dword [eax - 4]
mov edx, dword [ebx + 0x14]
mov eax, dword [esp + 0x1c]
xor ecx, edx
sub edi, 8
mov dword [ebp - 4], ecx
dec eax
mov dword [esp + 0x1c], eax
jne 0x402a3e
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0x18]
mov ecx, edi
mov edx, ecx
lea edi, [ebx + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x20]
pop edi
and ecx, 0xf0000000
pop esi
add ecx, eax
pop ebp
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0x18]
pop ebx
mov edx, dword [ecx]
sub edx, eax
xor eax, eax
mov dword [ecx], edx
ret