joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1017374d
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop esi
add esi, 9
jmp 0x101730a5
jmp 0x10173627
push ecx
push eax
push edx
jmp 0x10173639
push eax
push edx
rdtsc
pop edx
pop eax
rdtsc
jmp 0x10173658
jmp 0x1017366c
pop edx
pop eax
pop ecx
pushfd
push ecx
mov dword [esp], ebx
mov dword [esp], 0x3bfe0d61
not dword [esp]
or dword [esp], 0x7f9e3181
push 0x18cf31a3
mov dword [esp], edi
mov edi, 0xff9ff350
sub dword [esp + 4], edi
pop edi
push ebp
mov dword [esp], 0x66b792f6
not dword [esp]
push ebx
mov ebx, 0x5bf73c3c
sub dword [esp + 4], 0x4fbf9243
add dword [esp + 4], ebx
add dword [esp + 4], 0x4fbf9243
pop ebx
add dword [esp], 0xffffffff
sub dword [esp], 0x3b7fca93
xor dword [esp], 0xb9a8ee1b
push ebx
mov ebx, esp
push ecx
mov ecx, 4
add ebx, ecx
pop ecx
sub ebx, 4
xor ebx, dword [esp]
xor dword [esp], ebx
xor ebx, dword [esp]
mov esp, dword [esp]
mov dword [esp], eax
push 0x14aea721
mov dword [esp], edi
mov dword [esp], 0x7fef55d4
or dword [esp], 0x6f91dbf1
inc dword [esp]
dec dword [esp]
and dword [esp], 0x3edfb3e6
sub dword [esp], 0xc723c3be
not dword [esp]
and dword [esp], 0x4f1ee0e2
sub dword [esp], 0x37fa16c1
or dword [esp], 0x4f7594fc
and dword [esp], 0x1e2f206e
sub dword [esp], 0xf2baf2ea
mov dword [esp], ebx
push dword [esp + 0x10]
mov eax, dword [esp]
push ebp
mov ebp, esp
add ebp, 4
push eax
mov eax, 0x69cfc536
add eax, 1
dec eax
add eax, 0x96303ace
add ebp, eax
pop eax
xchg dword [esp], ebp
pop esp
push dword [esp + 8]
mov ebx, dword [esp]
push edi
push esp
mov edi, dword [esp]
add esp, 4
add edi, 4
add edi, 4
xchg dword [esp], edi
pop esp
mov dword [esp + 8], eax
mov dword [esp + 0x10], ebx
push dword [esp]
mov ebx, dword [esp]
add esp, 4
sub esp, 4
mov dword [esp], esi
mov esi, esp
add esi, 4
add esi, 4
xchg dword [esp], esi
pop esp
push dword [esp]
pop eax
push 0x19d24b6c
mov dword [esp], eax
mov eax, esp
add eax, 4
add eax, 4
push eax
push dword [esp + 4]
pop eax
pop dword [esp]
pop esp
jmp 0x10170b4d
Function at 0x10175a50
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop esi
add esi, 9
jmp 0x10175437
jmp 0x1017599d
je 0x101759ad
pushal
push ecx
pop ecx
ja 0x101759ac
popal
pushfd
push esi
mov dword [esp], edi
mov dword [esp], 0x7f7fddb3
xor dword [esp], 0x7f67b800
shl dword [esp], 1
push ebx
mov ebx, 0x7f6faed6
add dword [esp + 4], ebx
pop ebx
inc dword [esp]
add dword [esp], 0xb81d2d09
dec dword [esp]
shl dword [esp], 2
xor dword [esp], 0xdef69d5b
push edx
mov dword [esp], ecx
push edx
mov edx, 0x79ff432a
mov dword [esp + 4], edx
pop edx
push eax
mov eax, 0x86181112
add dword [esp + 4], eax
pop eax
push ebx
mov ebx, esp
push edx
mov edx, 4
sub ebx, 0x3efe6d5c
add ebx, edx
add ebx, 0x3efe6d5c
pop edx
sub ebx, 4
xor ebx, dword [esp]
xor dword [esp], ebx
xor ebx, dword [esp]
pop esp
mov dword [esp], eax
push edi
mov edi, esp
add edi, 4
sub edi, 4
xchg dword [esp], edi
pop esp
mov dword [esp], eax
mov dword [esp], ebp
mov dword [esp], ecx
mov dword [esp], ebx
push dword [esp + 0x10]
push dword [esp]
pop eax
push ebp
mov ebp, esp
add ebp, 4
add ebp, 4
xchg dword [esp], ebp
pop esp
push dword [esp + 8]
mov ebx, dword [esp]
push 0x15bcb5e7
mov dword [esp], edx
mov edx, esp
add edx, 4
push eax
mov eax, 4
add edx, eax
pop eax
xchg dword [esp], edx
pop esp
mov dword [esp + 8], eax
mov dword [esp + 0x10], ebx
mov ebx, dword [esp]
sub esp, 4
mov dword [esp], ebx
push esp
pop ebx
add ebx, 4
add ebx, 4
xchg dword [esp], ebx
mov esp, dword [esp]
push dword [esp]
mov eax, dword [esp]
push ebp
mov ebp, esp
push ebx
mov ebx, 0x7ff3fb48
inc ebx
sub ebx, 0x7ff3fb45
add ebp, ebx
pop ebx
add ebp, 4
xchg dword [esp], ebp
pop esp
add esp, 4
jmp 0x10170b4d

Function at 0x1018320d
Capabilities:
Execute anti-debugging instructions

Disassembly:
add al, 0x24
xor dword [esi + ecx*8 + 0x73], ebp
xor dword [esp], 0x3ff9c181
dec dword [esp]
push ebp
mov ebp, 0x77b95844
or dword [esp + 4], ebp
pop ebp
xor dword [esp], 0x14df16bf
mov dword [esp], ebx
push dword [esp + 0x10]
push dword [esp]
pop eax
sub esp, 4
mov dword [esp], edx
mov edx, esp
add edx, 4
add edx, 4
xchg dword [esp], edx
pop esp
push dword [esp + 8]
push dword [esp]
pop ebx
push ebp
mov ebp, esp
add ebp, 4
add ebp, 4
xor ebp, dword [esp]
xor dword [esp], ebp
xor ebp, dword [esp]
pop esp
mov dword [esp + 8], eax
mov dword [esp + 0x10], ebx
mov ebx, dword [esp]
push esi
mov dword [esp], eax
mov eax, esp
push edi
mov edi, 4
add eax, 0x3def7baa
add eax, edi
sub eax, 0x3def7baa
pop edi
add eax, 4
xchg dword [esp], eax
pop esp
mov eax, dword [esp]
push ebx
mov ebx, esp
push ecx
push edx
mov edx, 0x7bff4deb
mov ecx, edx
pop edx
not ecx
sub ecx, 0x8400b210
add ebx, ecx
pop ecx
add ebx, 4
xor ebx, dword [esp]
xor dword [esp], ebx
xor ebx, dword [esp]
pop esp
jmp 0x10170b4d
Function at 0x10006ad9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10006b18
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10006b18
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10006b18
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10006b18
cmp dword [ecx + 0x74], 0xe
jbe 0x10006b18
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10009519
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 0x100095b6
push ebx
push esi
call fcn.100094e2
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.10009476
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10009563
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100095b5
push edi
push eax
call fcn.10007e17
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10009583
call fcn.10007fbe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100095b4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10009476
add esp, 0x20
test eax, eax
jne 0x100095a2
push edi
call fcn.10007fbe
jmp 0x100095aa
push ebx
call fcn.10007fbe
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 0x10009823
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011a30
push 0x10011a28
push str.FlsAlloc
push 0x1f
call fcn.1000973f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10009857
push dword [ebp + 8]
mov ecx, esi
call dword [0x10010158]
call esi
jmp 0x1000985d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100098a1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011a40
push 0x10011a38
push str.FlsGetValue
push 0x21
call fcn.1000973f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100098d8
push dword [ebp + 8]
mov ecx, esi
call dword [0x10010158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100098e0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011a48
push 0x10011a40
push str.FlsSetValue
push 0x22
call fcn.1000973f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000991a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10010158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000ee30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000ee5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000ee5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401100
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
xor edi, edi
cmp dword [0x8c22e8], 0x594
mov dword [ebp - 8], eax
jne 0x40112c
push edi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
mov ecx, dword [0x4a3068]
mov edx, dword [0x4a306c]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], edx
call fcn.004010f0
mov eax, dword [0x4a3070]
mov ecx, dword [0x4a3074]
add dword [ebp - 0x18], 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], ecx
mov ebx, 0x20
jmp 0x401170
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x8c22e8]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4011f6
push edi
lea edx, [ebp - 0x474]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push edi
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0x30
lea ecx, [ebp - 0x70]
push edi
push ecx
mov dword [ebp - 0x74], edi
call fcn.00402f80
add esp, 0xc
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor ecx, ecx
xor edx, edx
lea eax, [ebp - 0x40]
push eax
mov word [ebp - 0x1c], cx
mov word [ebp - 0x1a], dx
mov ecx, dword [ebp - 0x1c]
push ecx
push edi
push str.Jahuk
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov eax, dword [ebp - 4]
mov ecx, dword [0x8c22e8]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401210
mov dword [0x8c1884], 0xedeb2e40
jmp 0x401230
cmp ecx, 0x3eb
jne 0x401230
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x8c1234], edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov edx, esi
shr edx, cl
add eax, esi
mov dword [ebp - 0x14], eax
mov dword [0x8c1880], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov ecx, dword [ebp - 8]
shl ecx, 4
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 4]
add eax, dword [ebp - 0x30]
xor eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ecx
sub esi, ecx
call fcn.004010e0
sub ebx, 1
jne 0x401170
cmp dword [0x8c22e8], 0xa6d
mov ebx, dword [ebp + 8]
mov dword [ebx], esi
jne 0x4012d3
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [ebx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4012e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x8c22e8]
sub esp, 0x48
shr eax, 3
push esi
mov esi, dword [0x8c1238]
test eax, eax
jbe 0x40134d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [ebp - 4], eax
lea ebx, [ebx]
cmp dword [0x8c22e8], 0x959
jne 0x40133c
push 0
push 0
call edi
lea eax, [ebp - 0x48]
push eax
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call fcn.00401100
add esi, 8
sub dword [ebp - 4], 1
jne 0x401310
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4016d0
Capabilities:
Get geographical location
Get system information on windows
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
cmp dword [0x8c22e8], 0x400
push esi
push edi
jne 0x40173e
xor ecx, ecx
xor eax, eax
lea edx, [ebp - 4]
push edx
mov word [ebp - 4], ax
mov word [ebp - 2], cx
mov eax, dword [ebp - 4]
push eax
push ecx
push str.voyapamujopemopubefetexo
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
lea ecx, [ebp - 0x42c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0
lea edx, [ebp - 0xc2c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
lea eax, [ebp - 0x24]
call fcn.00401810
lea esi, [ebp - 0x24]
call fcn.00401830
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
lea ebx, [ebx]
call edi
cmp esi, 0x2af2a3
jle 0x401762
cmp ebx, 0x78abdb45
jne 0x40176b
inc esi
cmp esi, 0x1c5d
jl 0x401750
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x40179d
inc esi
cmp esi, 0x4f6a4
jl 0x401780
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x4017bc
cmp ebx, 0x785074d5
jne 0x4017c5
inc esi
cmp esi, 0x11915
jl 0x4017a8
mov eax, dword [0x4a32ac]
mov dword [0x8c22e8], eax
call fcn.00401450
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, 0x3078f
pop ebx
cmp dword [0x8c22e8], 0x51f
jne 0x4017f2
lea ecx, [ebp - 0x2c]
push ecx
call esi
sub edi, 1
jne 0x4017e0
mov eax, dword [0x8c1238]
mov dword [0x8c187c], eax
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4033f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a21f8]
jne 0x4033fa
repz ret
jmp fcn.0040772e
Function at 0x40735b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040415a
and dword [ebp - 4], 0
cmp dword [0x4a3cac], 0
mov ebx, eax
jne 0x40740c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4074bd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4074bd
push eax
call fcn.004040e8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a3cac], eax
call esi
push eax
call fcn.004040e8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a3cb0], eax
call esi
push eax
call fcn.004040e8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a3cb4], eax
call esi
push eax
call fcn.004040e8
pop ecx
mov dword [0x4a3cbc], eax
test eax, eax
je 0x40740c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004040e8
pop ecx
mov dword [0x4a3cb8], eax
mov eax, dword [0x4a3cb8]
cmp eax, ebx
je 0x407464
cmp dword [0x4a3cbc], ebx
je 0x407464
push eax
call fcn.00404163
push dword [0x4a3cbc]
mov esi, eax
call fcn.00404163
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407464
test edi, edi
je 0x407464
call esi
test eax, eax
je 0x40745b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40745b
test byte [ebp - 0xc], 1
jne 0x407464
or dword [ebp + 0x10], 0x200000
jmp 0x40749d
mov eax, dword [0x4a3cb0]
cmp eax, ebx
je 0x40749d
push eax
call fcn.00404163
pop ecx
test eax, eax
je 0x40749d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40749d
mov eax, dword [0x4a3cb4]
cmp eax, ebx
je 0x40749d
push eax
call fcn.00404163
pop ecx
test eax, eax
je 0x40749d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a3cac]
call fcn.00404163
pop ecx
test eax, eax
je 0x4074bd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4074bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408398]
jne 0x403906
repz ret
jmp fcn.00403dae

Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
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 eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a

Function at 0x414de9
Capabilities:
Encode data using xor

Disassembly:
xor dword [edx], eax
add ecx, 0xa8207311
add ecx, ecx
add edx, 4
cmp edx, ebx
jne fcn.00414de9
or esi, esi
ret
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.0041ff30
add esp, 0xc
push esi
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4013b8
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.0040f6b2
lea ecx, [esi + esi]
mov dword [edi], eax
push ecx
push 0
push eax
call fcn.0041ff30
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.0040f6ad
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 0x403f9d
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040556a
pop ecx
test eax, eax
je 0x403fd8
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 0x403fd8
push 0x186a0
push esi
push 2
call fcn.00403025
add esp, 0xc
pop esi
pop ebp
ret

Function at 0x40476f
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 0x404824
mov eax, 0x100000
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 4], eax
mov edi, esi
call fcn.00426679
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 0x404814
cmp dword [ebp - 8], 0
jbe 0x404814
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 0x4047f4
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 0x404810
push eax
push 0
push esi
call fcn.0041ff30
add esp, 0xc
test edi, edi
je 0x4047b6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0042647d
pop ecx
jmp 0x40482c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404d3c
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 0x404d67
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 0x40556a
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