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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x642d138f
add ebx, 0
push ecx
call 0x642d13a4
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x73459361
sub ebx, dword [0x73478ba0]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x73478b90
call fcn.642cce6e
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.642cc37c
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x642d1502
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x642d1502
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x642d14b9
mov eax, 1
lock xchg dword [0x73478b9c], eax
push 0x3dd1fc71
call 0x642d1446
push esi
add esp, 8
cmp eax, 0
jne 0x642d142f
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x642d1455
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x642d146a
cmp ecx, edx
cmp eax, 0
je 0x642d148f
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x642d1479
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.642d14a8
dec eax
loope 0x642d14ab
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x73478b9c], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x642d14df
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x642d14f4
jmp 0x642d14ff
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x642d13ed
Function at 0x642d8567
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x642d883d
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x73465814
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x7345c7da
push 0xffffffffffffffff
call fcn.642cf767
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x642d85d1
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.642d85e9
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x642d8831
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x642d8805
Function at 0x642e8037
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 0x642e8059
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x642e8059
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x642e8059
ret
cmp word [ebx + 4], 0x14c
jne 0x642e8059
test word [ebx + 0x16], 2
je 0x642e8059
test word [ebx + 0x16], 0x100
je 0x642e8059
cmp word [ebx + 0x18], 0x10b
jne 0x642e8059
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x642e8059
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x642e80e5
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x642e8079
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.642cefc4
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x642e8059
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 0x642e80e5
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 0x642e8059
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x642e8059
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x642e8059
ret
cmp word [ebx + 4], 0x14c
jne 0x642e8059
test word [ebx + 0x16], 2
je 0x642e8059
test word [ebx + 0x16], 0x100
je 0x642e8059
cmp word [ebx + 0x18], 0x10b
jne 0x642e8059
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x642e8059
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x642e80e5
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x642e8079
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.642cefc4
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x642e8059
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 0x642e819c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x642e81f5
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x642e819c
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x642e81ab
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 0x646ede4e
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 0x642e81fc
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.642cf072
cmp eax, dword [ebp + 0xc]
pop eax
je 0x642e829b
add edi, 4
add eax, 2
dec ecx
jne 0x642e81e1
call 0x642e8248
loope 0x642e823e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x642e8298
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 0x642e82a9
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 0x642e825c
cmp eax, ecx
ja 0x642e825c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x642e82e6
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x642e82dc
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.642cf551
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x642e81ab
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x642e81f5
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x642e819c
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x642e81ab
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 0x646ede4e
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 0x642e81fc
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.642cf072
cmp eax, dword [ebp + 0xc]
pop eax
je 0x642e829b
add edi, 4
add eax, 2
dec ecx
jne 0x642e81e1
call 0x642e8248
loope 0x642e823e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x642e8298
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 0x642e82a9
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 0x642e825c
cmp eax, ecx
ja 0x642e825c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x642e82e6
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x642e82dc
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.642cf551
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x408c93
Capabilities:
Terminate process

Disassembly:
inc eax
inc ecx
lea ecx, [eax + 2]
call fcn.004091a4
mov ecx, 3
call fcn.00409918
int3
Function at 0x4010c0
Capabilities:
Accept command line arguments
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48ebd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [esp + 0x1c]
call fcn.00476d3e
mov eax, dword [0x4a52e4]
mov dword [esp + 0x3c], 0
xor ebp, ebp
mov dword [esp + 0x10], eax
push 0x4a513c
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call fcn.004770ac
push str.skto
lea ecx, [esp + 0x14]
call fcn.004770ac
push 0x4a5130
lea ecx, [esp + 0x14]
call fcn.004770ac
push 0x4a512c
lea ecx, [esp + 0x14]
call fcn.004770ac
mov ecx, dword [0x4a52e4]
mov dword [esp + 0xc], ecx
push 0x4a513c
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.004770ac
push str.skto
lea ecx, [esp + 0x10]
call fcn.004770ac
push 0x4a5128
lea ecx, [esp + 0x10]
call fcn.004770ac
push 0x4a5124
lea ecx, [esp + 0x10]
call fcn.004770ac
push str._DesktopSCDTBrowser
lea ecx, [esp + 0x18]
call fcn.00476d3e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x3c], 3
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0x8052
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x80a0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 0x80a8
xor esi, esi
lea edi, [esp + 0x1c]
mov eax, dword [edi]
test eax, eax
je 0x4011e0
push eax
lea ecx, [esp + 0x1c]
call fcn.00472c49
cmp eax, 0xffffffff
jne 0x4011eb
inc esi
add edi, 8
cmp esi, 3
jb 0x4011cb
jmp 0x4011ef
mov ebp, dword [esp + esi*8 + 0x20]
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 2
call fcn.00476cd0
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 1
call fcn.00476cd0
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call fcn.00476cd0
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00476cd0
mov ecx, dword [esp + 0x34]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x428c80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040f030
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x428d4b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x428d4b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x428cfe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x428d09
or bh, 8
and edi, 0x8000000
je 0x428d24
mov eax, dword [0x4b117c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x428d4b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42914b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42916f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42918a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4292d0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x4aefb8]
sub esp, 0x114
test eax, eax
jne 0x42941d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
push 0x4aee50
mov dword [0x4aefb8], 1
mov dword [0x4aee50], 0x94
call esi
mov edx, dword [0x4aee60]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x4a9b80], eax
je 0x4293f8
push ebx
push 0x4aeee8
mov dword [0x4aeee8], 0x9c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4aa490
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x4aefac], eax
call edi
mov dword [0x4aefb0], eax
mov eax, dword [0x4aefac]
test eax, eax
push 0x4aef88
je 0x429374
call eax
jmp 0x42937a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x4aeeec]
cmp eax, 6
jae 0x429392
cmp eax, 5
jne 0x4293a6
cmp dword [0x4aeef0], 2
jb 0x4293a6
cmp word [0x4aef88], 9
jne 0x4293a6
mov dword [0x4aee44], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x4293c4
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x4aefb4], edx
jmp 0x4293ca
mov edx, dword [0x4aefb4]
test edx, edx
je 0x4293f8
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x4293f8
mov ecx, dword [esp + 0x14]
mov dword [0x4aee5c], ecx
push 0x4aee58
push 0x4aee54
call fcn.004297c0
add esp, 8
call fcn.00429430
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x42a670
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499558
push 0x41329c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x4aefbc]
xor ebx, ebx
cmp eax, ebx
jne 0x42a7d0
mov byte [ebp - 0x11c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x42a7cb
mov byte [ebp - 0x224], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.user32.dll
lea ecx, [ebp - 0x11c]
push ecx
push 0x4aa5c8
lea edx, [ebp - 0x224]
push edx
call fcn.0040ed9b
add esp, 0x10
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x120], eax
push eax
call fcn.00476a0b
add esp, 4
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, ebx
je 0x42a7cb
push esi
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x42a7c2
mov dword [ebp - 0x230], ebx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x230]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x42a7c2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov ecx, dword [eax]
mov dword [0x4aefbc], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x42a7c2
push esi
call fcn.00476a34
add esp, 4
mov eax, dword [0x4aefbc]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430a40
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x430a8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x430a8b
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.00476a0b
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.00476a0b
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x430ad0
test esi, esi
je 0x430ae1
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x430add
push esi
call fcn.00476a34
add esp, 4
test ebx, ebx
jne 0x430af0
mov edi, dword [edi]
test edi, edi
je 0x430af0
push edi
call fcn.00476a34
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x43bc80
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x43bc9c
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.0040d5b0
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.004123e0
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x43bd20
cmp byte [esp + 0x10], 0x5c
jne 0x43bd20
cmp byte [esp + 0x11], 0x5c
jne 0x43bd20
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.004123e0
add esp, 8
test eax, eax
je 0x43bd9e
inc eax
push 0x5c
push eax
call fcn.004123e0
add esp, 8
mov esi, eax
test esi, esi
je 0x43bd9e
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x43bd62
test bl, 1
je 0x43bd51
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x43bdd4
cmp ebx, 0xffffffff
je 0x43bd6b
test edi, edi
jne 0x43bd7a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x43bdd4
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.004123e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x43bd24
test ebp, ebp
je 0x43bdd4
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43bdc9
test al, 0x10
jne 0x43bdd4
test al, 1
je 0x43bdbc
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x43bdd4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret