joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a0b1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1003a10a
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1003a0b1
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1003a0c0
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 0x1043fd63
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 0x1003a111
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.10020f87
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1003a1b0
add edi, 4
add eax, 2
dec ecx
jne 0x1003a0f6
call 0x1003a15d
loope 0x1003a153
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1003a1ad
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 0x1003a1be
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 0x1003a171
cmp eax, ecx
ja 0x1003a171
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003a1fb
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1003a1f1
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10021466
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1003a0c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1003a10a
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1003a0b1
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1003a0c0
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 0x1043fd63
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 0x1003a111
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.10020f87
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1003a1b0
add edi, 4
add eax, 2
dec ecx
jne 0x1003a0f6
call 0x1003a15d
loope 0x1003a153
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1003a1ad
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 0x1003a1be
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 0x1003a171
cmp eax, ecx
ja 0x1003a171
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003a1fb
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1003a1f1
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10021466
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4206be
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420360

Function at 0x4206c9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004204ef

Function at 0x420ac3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040d820
mov eax, dword [0x47d600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041e28f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x420b05
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x420c61
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042a250
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47ffb0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00421862
mov ecx, dword [esi*4 + 0x47ffb0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x420c5a
cmp eax, dword [edi + ecx + 0x24]
jne 0x420c5a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420c5a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421862
add esp, 0x14
test edx, edx
jl 0x420c5a
jg 0x420bd0
test eax, eax
jb 0x420c5a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x420c5a
jl 0x420bea
cmp dword [ebp - 0x1008], eax
ja 0x420c5a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x420c08
test ebx, ebx
je 0x420c41
cmp ecx, edi
jae 0x420c41
mov al, byte [ecx]
cmp al, 0xd
jne 0x420c22
lea eax, [edi - 1]
cmp ecx, eax
jae 0x420c2e
cmp byte [ecx + 1], 0xa
jne 0x420c2e
inc ecx
jmp 0x420c2e
movzx eax, al
movsx eax, byte [eax + 0x47d8c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x420c08
cmp edx, ebx
jne 0x420c08
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x420c5f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040cc34
leave
ret
Function at 0x420d00
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47ffb0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x420d40
cmp byte [ebx], 0xa
jne 0x420d40
or byte [eax + edi + 0x28], 4
jmp 0x420d45
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x420e43
mov al, byte [edx]
cmp al, 0x1a
je 0x420e25
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x420d74
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x420d99
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x420da3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x420d56
jmp 0x420e43
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420e20
cmp dword [ebp - 0xc], 0
je 0x420e20
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47ffb0]
test byte [eax + edi + 0x28], 0x48
je 0x420dfa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x420de5
mov byte [esi], dl
jmp 0x420df6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47ffb0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x420e43
cmp byte [ebp - 1], 0xa
jne 0x420e09
cmp esi, ebx
jne 0x420e09
mov byte [esi], 0xa
jmp 0x420e42
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421880
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x420e43
mov byte [esi], 0xd
jmp 0x420e42
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47ffb0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420e3f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420e43
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420e4c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47ffb0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x420e8f
cmp word [esi], dx
jne 0x420e8f
or byte [edi + eax + 0x28], 4
jmp 0x420e94
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x420fe7
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x420fc7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x420ed6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420f0c
cmp eax, edx
jae 0x420f18
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x420eae
jmp 0x420fe7
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420fc3
cmp dword [ebp - 0x14], 0
je 0x420fc3
mov eax, dword [ebx*4 + 0x47ffb0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x420f9b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x420f64
mov word [esi], cx
jmp 0x420f97
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47ffb0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47ffb0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47ffb0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x420fe7
pop ebx
cmp word [ebp - 4], bx
jne 0x420fac
cmp esi, dword [ebp + 0xc]
jne 0x420fac
mov word [esi], bx
jmp 0x420fe4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421880
add esp, 0x10
cmp word [ebp - 4], bx
je 0x420fe7
push 0xd
jmp 0x420fe0
mov ecx, dword [ebx*4 + 0x47ffb0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420fde
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420fe7
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x422c82
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x422d1f
push ebx
push esi
call fcn.00422c4b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00421a2c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x422ccc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x422d1e
push edi
push eax
call fcn.0041d3e9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x422cec
call fcn.0041c3a9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x422d1d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00421a2c
add esp, 0x20
test eax, eax
jne 0x422d0b
push edi
call fcn.0041c3a9
jmp 0x422d13
push ebx
call fcn.0041c3a9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42a050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a07d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a07d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42b646
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x42b6c6
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x42b6c5
push ebx
mov ebx, 0x47f560
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004014fb
push eax
call fcn.00402b55
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004014fb
push eax
call fcn.00402b55
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x42c5d8
mov byte [edi + esi], al
call fcn.0041219e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x42b668
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00406338
pop edi
pop ebp
ret 0x14
Function at 0x401369
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x104
push ebx
lea esi, [edi + 4]
mov dword [edi], vtable.CArmReport.0
push esi
call fcn.00420450
add esp, 0xc
push esi
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4013b5
push 0x43bff8
mov ebx, 0x104
push ebx
push esi
call fcn.00401c95
push str.ArmReport.ini
push ebx
push esi
call fcn.00401c95
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4015ef
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x401620
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
add eax, 4
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x401620
cmp dword [ebp - 4], 0
setne al
mov byte [esi], al
mov al, 1
jmp 0x401622
xor al, al
pop esi
leave
ret 8

Function at 0x40199c
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea ebx, [ecx + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4019b7
push 3
pop eax
jmp 0x401a5f
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4019c7
push 2
jmp 0x4019b1
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x82
push 2
pop edx
add esi, esi
cmp esi, 0x821
jae 0x401a5a
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040fbc2
lea ecx, [esi + esi]
mov dword [edi], eax
push ecx
push 0
push eax
call fcn.00420450
add esp, 0x10
push ebx
push esi
push dword [edi]
push 0
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
test eax, eax
je 0x401a24
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x401a36
push dword [edi]
call fcn.0040fbbd
and dword [edi], 0
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
je 0x401a53
inc eax
push 2
pop edx
cmp esi, eax
jbe 0x4019d4
cmp dword [edi], 0
je 0x401a5a
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x401a5a
xor eax, eax
jmp 0x401a5d
mov eax, 0xe8
jmp 0x401a5d
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40413d
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00405867
pop ecx
test eax, eax
je 0x404178
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404178
push 0x186a0
push esi
push 2
call fcn.00403241
add esp, 0xc
pop esi
pop ebp
ret

Function at 0x404a10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 1
push esi
push dword [ebp + 0x10]
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404ac5
mov eax, 0x100000
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 4], eax
mov edi, esi
call fcn.00426bb9
pop ecx
mov esi, eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404ab5
cmp dword [ebp - 8], 0
jbe 0x404ab5
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404a95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and dword [ebp - 8], 0
mov eax, 0x100000
mov dword [ebp - 4], eax
test esi, esi
je 0x404ab1
push eax
push 0
push esi
call fcn.00420450
add esp, 0xc
test edi, edi
je 0x404a57
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004269bd
pop ecx
jmp 0x404acd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404fdd
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405008
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ebx
push dword [ebp - 4]
xor ebx, ebx
test eax, eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret

Function at 0x405867
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret
Function at 0x405f81
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4504c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x105
xor esi, esi
push esi
push eax
call fcn.00420450
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x24
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x406006
lea eax, [ebp - 0x210]
push eax
call fcn.0042410e
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.004035fe
mov esi, str.TempArmUI.ini
push esi
call fcn.0042410e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402376
push edi
call fcn.00405867
pop ecx
test eax, eax
jne 0x40608a
mov ecx, edi
call fcn.004025b7
mov esi, 0x104
mov ecx, edi
push esi
call fcn.00403325
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call fcn.004033a7
test esi, esi
je 0x40608e
push 0x5c
push dword [edi]
call fcn.004218a4
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x40606a
mov eax, dword [edi]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x40606a
mov eax, dword [eax - 0xc]
dec eax
cmp ecx, eax
je 0x40606a
mov esi, 0x43c0e8
push esi
call fcn.0042410e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402376
mov esi, str.ArmUI.ini
push esi
call fcn.0042410e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402376
push edi
call fcn.00405867
pop ecx
test eax, eax
je 0x40608e
xor eax, eax
jmp 0x406091
push 2
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041eeb4
leave
ret

Function at 0x406a71
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push esi
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x406ac1
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x40ab5d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40abc1
push esi
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
test esi, esi
pop esi
cmove edi, eax
mov eax, edi
pop edi
leave
ret

Function at 0x40cf1b
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4504c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
xor ecx, ecx
push 0xf0000040
inc ecx
mov dword [ebp - 0x24], eax
push ecx
push eax
push eax
mov bl, al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40cfd9
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40cfd9
cmp dword [ebp - 0x20], 0
je 0x40cfe8
push 0
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40cfd9
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40cfd9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.0040ccec
add esp, 0x10
test al, al
je 0x40cfd9
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.0040d089
pop ecx
pop ecx
test al, al
movzx ebx, bl
push 1
pop eax
cmovne ebx, eax
cmp dword [ebp - 0x20], 0
je 0x40cfe8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x24], 0
je 0x40cff9
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041eeb4
leave
ret