joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b77f
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 0x1000b81c
push ebx
push esi
call fcn.1000b748
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.1000b6dc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b7c9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b81b
push edi
push eax
call fcn.1000c73a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b7e9
call fcn.1000a224
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b81a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b6dc
add esp, 0x20
test eax, eax
jne 0x1000b808
push edi
call fcn.1000a224
jmp 0x1000b810
push ebx
call fcn.1000a224
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 0x1000ba89
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013668
push 0x10013660
push str.FlsAlloc
push 0x1f
call fcn.1000b9a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000babd
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012140]
call esi
jmp 0x1000bac3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000bb07
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013678
push 0x10013670
push str.FlsGetValue
push 0x21
call fcn.1000b9a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bb3e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000bb46
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013680
push 0x10013678
push str.FlsSetValue
push 0x22
call fcn.1000b9a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bb80
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10012140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10011200
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001122d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001122d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4302f1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x428410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
test eax, eax
jne 0x430314
push ebx
call dword [0x44101c]
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [ebp - 0xc], 0x646f632e
mov dword [ebp - 8], 0x65
movzx edi, word [esi + 0x14]
push dword [esi + 0x88]
add edi, 0x18
push esi
add edi, esi
call fcn.00429824
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4303bd
movzx edx, word [esi + 6]
xor ecx, ecx
test edx, edx
jle 0x43036a
lea eax, [ebp - 0xc]
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x430362
lea eax, [ebp - 0xc]
mov eax, dword [eax + 4]
cmp eax, dword [edi + 4]
je 0x43036a
add edi, 0x28
inc ecx
cmp ecx, edx
jl 0x43034e
cmp ecx, edx
je 0x4303bd
mov ecx, dword [esi + 0x34]
add ecx, dword [edi + 0xc]
mov edi, 0x429e30
xor edx, edx
mov eax, dword [ecx + edx*4]
cmp eax, dword [edi + edx*4]
jne 0x4303bd
inc edx
cmp edx, 4
jne 0x43037b
xor edx, edx
mov eax, dword [ecx + edx*4 + 0x140]
cmp eax, dword [edi + edx*4]
jne 0x4303bd
inc edx
cmp edx, 4
jne 0x43038b
cmp dword [ecx + 0x124], 0
je 0x4303ad
push 0x43067c
jmp 0x4303b2
push 0x430661
push esi
push ebx
push ecx
call fcn.004303ce
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431d46
mov esp, ebp
pop ebp
ret
Function at 0x471180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ecx, esi
push edi
call fcn.00485000
mov ebx, dword [esp + 0x30]
mov ecx, esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], eax
call fcn.00484880
add eax, ebx
push eax
call dword [0x100df290]
test eax, eax
jne 0x471265
mov ecx, esi
call fcn.00484880
mov ecx, dword [esp + 0x2c]
mov esi, dword [eax + ebx + 8]
mov edi, dword [eax + ebx + 0xc]
call fcn.00484880
mov ecx, dword [esp + 0x2c]
add eax, ebx
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x14], ebx
call fcn.00484880
mov ebx, dword [esp + 0x2c]
sub esp, 0x10
mov edx, esp
mov ecx, dword [eax + esi + 0x10]
mov eax, dword [eax + esi + 0x14]
mov dword [edx + 8], ecx
mov ecx, ebx
mov dword [edx], ebx
mov dword [edx + 0xc], eax
call fcn.00484880
mov ebx, dword [esp + 0x20]
lea ecx, [ebx + eax]
call fcn.0046e990
mov ecx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax + 8], esi
mov esi, ecx
mov dword [eax], ecx
mov dword [eax + 0xc], edi
call fcn.00484880
lea ecx, [ebx + eax]
call fcn.0046e990
mov ebx, dword [esp + 0x14]
sub esp, 0x10
mov eax, esp
mov ecx, esi
mov dword [eax], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
call fcn.00484880
add eax, dword [esp + 0x20]
mov ecx, eax
call fcn.0046e990
push dword [esp + 0x34]
mov ecx, esi
push dword [esp + 0x34]
call fcn.004846b0
mov ecx, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
jmp fcn.00485b50

Function at 0x471280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ecx, esi
push edi
call fcn.00485000
mov ebx, dword [esp + 0x30]
mov ecx, esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], eax
call fcn.00484880
add eax, ebx
push eax
call dword [0x100df290]
test eax, eax
jne 0x471365
mov ecx, esi
call fcn.00484880
mov ecx, dword [esp + 0x2c]
mov esi, dword [eax + ebx + 8]
mov edi, dword [eax + ebx + 0xc]
call fcn.00484880
mov ecx, dword [esp + 0x2c]
add eax, ebx
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x14], ebx
call fcn.00484880
mov ebx, dword [esp + 0x2c]
sub esp, 0x10
mov edx, esp
mov ecx, dword [eax + esi + 0x10]
mov eax, dword [eax + esi + 0x14]
mov dword [edx + 8], ecx
mov ecx, ebx
mov dword [edx], ebx
mov dword [edx + 0xc], eax
call fcn.00484880
mov ebx, dword [esp + 0x20]
lea ecx, [ebx + eax]
call fcn.0046ea30
mov ecx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax + 8], esi
mov esi, ecx
mov dword [eax], ecx
mov dword [eax + 0xc], edi
call fcn.00484880
lea ecx, [ebx + eax]
call fcn.0046ea30
mov ebx, dword [esp + 0x14]
sub esp, 0x10
mov eax, esp
mov ecx, esi
mov dword [eax], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
call fcn.00484880
add eax, dword [esp + 0x20]
mov ecx, eax
call fcn.0046ea30
push dword [esp + 0x34]
mov ecx, esi
push dword [esp + 0x34]
call fcn.004846b0
mov ecx, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
jmp fcn.00485b50
Function at 0x471380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
mov ecx, ebx
push edi
call fcn.00485000
mov ecx, ebx
call fcn.00484880
mov edi, eax
add edi, dword [esp + 0x20]
push edi
call dword [0x100df290]
test eax, eax
jne 0x47140f
mov ecx, ebx
call fcn.00485000
cmp dword [edi + 0x28], 0xffffffff
jne 0x4713bb
cmp dword [edi + 0x2c], 0xffffffff
je 0x4713f9
push esi
mov esi, dword [edi + 0x28]
lea ecx, [esp + 0xc]
mov edi, dword [edi + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
call fcn.00471130
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
call fcn.00471130
pop esi
push dword [esp + 0x24]
mov ecx, ebx
push dword [esp + 0x24]
call fcn.004846b0
mov ecx, ebx
call fcn.00485b50
pop edi
mov ecx, ebx
pop ebx
add esp, 0x10
jmp fcn.00485b50

Function at 0x471420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
mov ecx, esi
push edi
call fcn.00485000
mov ecx, esi
call fcn.00484880
mov edi, eax
add edi, dword [esp + 0x20]
push edi
call dword [0x100df290]
test eax, eax
jne 0x4714a2
mov ecx, esi
call fcn.00485000
cmp dword [edi + 0x28], 0xffffffff
jne 0x47145b
cmp dword [edi + 0x2c], 0xffffffff
je 0x47148c
push dword [edi + 0x2c]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push dword [edi + 0x28]
mov dword [esp + 0x18], 0xffffffff
push esi
mov dword [esp + 0x20], 0xffffffff
call fcn.0046d6c0
lea ecx, [esp + 8]
call fcn.0046bdc0
push dword [esp + 0x24]
mov ecx, esi
push dword [esp + 0x24]
call fcn.004846b0
mov ecx, esi
call fcn.00485b50
pop edi
mov ecx, esi
pop esi
add esp, 0x10
jmp fcn.00485b50

Function at 0x4714b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00485000
mov ecx, edi
call fcn.00484880
mov esi, eax
add esi, dword [esp + 0x10]
lea ecx, [esi + 4]
push ecx
call dword [0x100df290]
test eax, eax
jne 0x47154d
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
cmp ecx, 0xffffffff
jne 0x4714e7
cmp eax, ecx
je 0x4714f0
push eax
push ecx
mov ecx, edi
call fcn.004846b0
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
cmp ecx, 0xffffffff
jne 0x4714ff
cmp eax, ecx
je 0x471508
push eax
push ecx
mov ecx, edi
call fcn.004846b0
cmp dword [esi + 0x18], 0xffffffff
jne 0x471514
cmp dword [esi + 0x1c], 0xffffffff
je 0x471523
push dword [esi + 0x1c]
push dword [esi + 0x18]
push edi
call fcn.00471180
add esp, 0xc
cmp dword [esi + 0x20], 0xffffffff
jne 0x47152f
cmp dword [esi + 0x24], 0xffffffff
je 0x47153e
push dword [esi + 0x24]
push dword [esi + 0x20]
push edi
call fcn.00471280
add esp, 0xc
push dword [esp + 0x14]
mov ecx, edi
push dword [esp + 0x14]
call fcn.004846b0
mov ecx, edi
pop edi
pop esi
jmp fcn.00485b50
Function at 0x471560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, esi
push edi
call fcn.00485000
mov ecx, esi
call fcn.00484880
mov edi, eax
add edi, dword [esp + 0x10]
lea ecx, [edi + 4]
push ecx
call dword [0x100df290]
test eax, eax
jne 0x4715c4
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
cmp ecx, 0xffffffff
jne 0x471597
cmp eax, ecx
je 0x4715a0
push eax
push ecx
mov ecx, esi
call fcn.004846b0
mov edx, dword [edi + 0x10]
mov eax, edx
mov ecx, dword [edi + 0x14]
or eax, ecx
je 0x4715b5
push ecx
push edx
mov ecx, esi
call fcn.004846b0
push dword [esp + 0x14]
mov ecx, esi
push dword [esp + 0x14]
call fcn.004846b0
pop edi
mov ecx, esi
pop esi
jmp fcn.00485b50
Function at 0x517f00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
xor ebp, ebp
push edi
test ebx, ebx
je 0x517f66
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, ebx
mov dword [esp + 0x14], eax
mov edi, dword [eax + 0x78]
add edi, ebx
cmp dword [edi + 0x18], esi
jbe 0x517f66
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x20]
lea eax, [eax + esi*4]
mov ecx, dword [eax + ebx]
add ecx, ebx
test ecx, 0xffff0000
je 0x517f55
test edx, 0xffff0000
je 0x517f55
push edx
push ecx
call dword [0x100df134]
mov edx, dword [esp + 0x18]
neg eax
sbb eax, eax
inc eax
jmp 0x517f5c
xor eax, eax
cmp ecx, edx
sete al
test eax, eax
jne 0x517f6d
inc esi
cmp esi, dword [edi + 0x18]
jb 0x517f27
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov eax, dword [edi + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov ebp, dword [eax + ebx]
add ebp, ebx
cmp ebp, edi
jb 0x517f66
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x7c]
add eax, edi
cmp ebp, eax
ja 0x517f66
xor ecx, ecx
mov eax, ebp
cmp byte [ebp], cl
je 0x517fa9
lea esp, [esp]
lea eax, [eax + 1]
inc ecx
cmp byte [eax], 0
jne 0x517fa0
lea esi, [ecx + 1]
xor edi, edi
test esi, esi
je 0x517fbd
push esi
call fcn.00512390
add esp, 4
mov edi, eax
push esi
push ebp
push edi
call fcn.0048a090
add esp, 0xc
mov esi, edi
cmp byte [edi], 0
je 0x517fdb
nop
cmp byte [esi], 0x2e
je 0x517fed
inc esi
cmp byte [esi], 0
jne 0x517fd0
push edi
xor esi, esi
call fcn.005123a0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
mov byte [esi], 0
call dword [0x100df1e0]
mov ecx, eax
lea eax, [esi + 1]
push eax
push ecx
call fcn.00517f00
add esp, 8
mov esi, eax
push edi
call fcn.005123a0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401220
Capabilities:
Create thread
Delete file
Get common file path
Terminate process

Disassembly:
sub esp, 0x220
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x12c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
call fcn.004018d0
lea ecx, [esp + 0x12c]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.004018e0
test eax, eax
jne 0x40129c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x12c]
push 0
push edx
lea ecx, [esp + 0x18]
jmp loc.00402000
lea ecx, [esp + 0x10]
call fcn.00401a90
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 8
mov dword [0x401aa4], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x401aa4]
mov dword [0x401aa0], eax
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00401a10
lea ecx, [esp + 0x10]
call fcn.00401a70
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x28]
push 0x104
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x28]
push 0x40119c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x12c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4013a5
lea ecx, [esp + 0x14]
call fcn.004018d0
lea eax, [esp + 0x28]
push 0x1001
push eax
lea ecx, [esp + 0x1c]
call fcn.004018e0
test eax, eax
je 0x4013a5
mov ecx, dword [0x401aa4]
mov edx, dword [0x401aa0]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00401a40
lea eax, [esp + 0x12c]
push 0x104
push eax
lea ecx, [esp + 0x1c]
call fcn.00401a40
lea ecx, [esp + 0x14]
call fcn.00401a60
lea ecx, [esp + 0x14]
call fcn.00401a70
lea ecx, [esp + 0x28]
push ecx
call fcn.00401570
lea edx, [esp + 0x2c]
push edx
call fcn.00401880
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x401190
jmp loc.00402750

Function at 0x4014f0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40151e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, esi
pop esi
ret
Function at 0x402992
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x20019
push esi
push dword [0x44983c]
xor ebx, ebx
mov dword [ebp - 0xc], esi
inc ebx
mov dword [ebp - 0x14], esi
mov edi, 0x80000002
mov byte [0x4497c9], bl
push edi
mov dword [0x4497cc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402a7b
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [0x449848]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402a04
cmp dword [ebp - 0xc], ebx
je 0x402a2f
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x437098
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402a39
cmp dword [ebp - 0x14], ebx
jne 0x402a39
mov dword [0x4497cc], 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], esi
push eax
push str.iLogLevelDebug
push dword [0x44983c]
push edi
call fcn.00405dca
add esp, 0x14
test eax, eax
jne 0x402a72
movzx eax, byte [0x4497ca]
cmp dword [ebp - 0x18], 0x64
cmovae eax, ebx
mov byte [0x4497ca], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40414d
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00405689
pop ecx
test eax, eax
je 0x404188
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 0x404188
push 0x186a0
push esi
push 2
call fcn.00403273
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x405689
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 0x4056a3
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x434936
call fcn.0041aa7c
call fcn.0040bda9
push eax
lea ecx, [ebp - 0x10]
call fcn.00401320
xor esi, esi
lea ecx, [ebp - 0x10]
push 0x104
mov dword [ebp - 4], esi
call fcn.00403333
push eax
push esi
push esi
push 0x2b
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004033b5
test edi, edi
jne 0x405712
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004021f9
mov esi, str.AdobeARM1.0AdobeARM.exe
push esi
call fcn.0041fc6e
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.00402366
xor esi, esi
inc esi
jmp 0x40573d
push str.SHGetFolderPath_in_GetARMExePath_failed:
lea ecx, [ebp - 0x14]
call fcn.004020dd
push edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 1
call fcn.00403273
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a54
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401a54
mov eax, esi
call fcn.0041aa45
ret

Function at 0x405750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4484a0]
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.0041bfd0
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 0x4057d5
lea eax, [ebp - 0x210]
push eax
call fcn.0041fc6e
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.0040360e
mov esi, str.TempArmUI.ini
push esi
call fcn.0041fc6e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402366
push edi
call fcn.00405689
pop ecx
test eax, eax
jne 0x405859
mov ecx, edi
call fcn.004025a7
mov esi, 0x104
mov ecx, edi
push esi
call fcn.00403333
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call fcn.004033b5
test esi, esi
je 0x40585d
push 0x5c
push dword [edi]
call fcn.0041d414
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x405839
mov eax, dword [edi]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x405839
mov eax, dword [eax - 0xc]
dec eax
cmp ecx, eax
je 0x405839
mov esi, 0x437078
push esi
call fcn.0041fc6e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402366
mov esi, str.ArmUI.ini
push esi
call fcn.0041fc6e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402366
push edi
call fcn.00405689
pop ecx
test eax, eax
je 0x40585d
xor eax, eax
jmp 0x405860
push 2
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041aa34
leave
ret
Function at 0x406dd2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
shufps xmm0, xmmword [ebp - 0x3b5], 0xa

Function at 0x408745
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 0x4087a9
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 0x40218d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x10
xor esi, esi
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0043e1d0
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0043e1d0
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
cmp esi, 1
jne 0x4021e1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x40236e
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1108
call fcn.0045fdc0
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x800
push esi
xor edi, edi
lea eax, [ebp - 0x1108]
push edi
push eax
call fcn.0043e1d0
add esp, 0xc
push esi
lea eax, [ebp - 0x908]
push edi
push eax
call fcn.0043e1d0
add esp, 0xc
lea eax, [ebp - 0x1108]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0043e1d0
add esp, 0xc
lea esi, [ebp - 0x108]
call fcn.0040228e
mov eax, esi
push eax
lea eax, [ebp - 0x1108]
push eax
lea eax, [ebp - 0x908]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x908]
push str..tmp
push eax
call fcn.0043e9a7
pop ecx
pop ecx
lea eax, [ebp - 0x908]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402433
inc edi
cmp edi, 0xa
jl 0x4023d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043b155
leave
ret
lea eax, [ebp - 0x908]
push eax
push ebx
call fcn.00402c33
xor eax, eax
inc eax
jmp 0x402425