joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c282
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 9
mov esi, ecx
lea edi, [ebp - 0x50]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x4c]
dec ebx
not ebx
and ebx, dword [ebp + 8]
je 0x40c2d8
lea edi, [esi + 0xc]
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0040b6a0
mov esi, dword [ebp - 8]
cmp byte [esi + 0xd], 0
jne 0x40c2d3
cmp ebx, dword [esi + 0x10]
jb 0x40c2d3
cmp esi, dword [edi]
jne 0x40c2e1
sub ebx, dword [ebp - 0x4c]
jne 0x40c2af
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
add esi, 0x14
lea edi, [ebp - 0x2c]
push 7
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
add eax, ebx
cmp dword [ebp + 8], eax
sbb eax, eax
and eax, ebx
jmp 0x40c2da

Function at 0x40c5ec
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x80
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x7c]
push 9
pop ecx
xor eax, eax
mov dword [ebp - 8], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
and dword [esi + 8], eax
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x34]
push eax
push 0
jmp 0x40c6f6
cmp dword [ebp - 0x24], 0x1000
jne 0x40c6e7
push 7
pop ecx
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
lea eax, [ebp - 4]
mov edi, dword [ebp - 0x34]
add esi, 0xc
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], esi
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0040b6a0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xd], 0
jne 0x40c680
cmp edi, dword [eax + 0x10]
jae 0x40c6c4
cmp dword [esi + 4], 0x5555555
je 0x40c713
mov esi, dword [esi]
push 0x30
call fcn.0042a85c
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
push 7
pop ecx
mov dword [edx + 0x10], eax
lea edi, [edx + 0x14]
push edx
push dword [ebp - 0x14]
xor eax, eax
push dword [ebp - 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
mov dword [edx], esi
mov dword [edx + 4], esi
mov dword [edx + 8], esi
mov word [edx + 0xc], ax
call fcn.00407ae3
push 7
lea edi, [eax + 0x14]
pop ecx
lea esi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x20], 0x70
je 0x40c6e7
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov eax, ecx
div dword [ebp - 0x78]
mov edx, dword [ebp - 8]
add dword [edx + 8], eax
jmp 0x40c6ea
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
add eax, ecx
lea ecx, [ebp - 0x34]
push 0x1c
push ecx
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x40c63c
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.004074b2
int3
Function at 0x40ec07
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40eca3
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40eca3
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40eca3
push 4
push 0xffffffffffffffff
push esi
push 0x40f36d
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40eca3
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 7
jbe 0x40ec6e
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40eca3
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40eca9
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40eca5

Function at 0x40ed63
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, ecx
push 0x2c
push 0
lea esi, [edi + 0xa0]
push esi
call fcn.00416c50
add esp, 0xc
lea eax, [edi + 0x8c]
push eax
lea eax, [ebp - 4]
push eax
push 0x2c
push esi
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40edb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40edb5
push 0xa
mov ecx, edi
call fcn.0040efdc
jmp 0x40edbf
mov dword [edi + 0x84], 5
pop edi
pop esi
leave
ret

Function at 0x410cf2
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
push ebx
push esi
lea eax, [esp + 0xb]
mov byte [esp + 0xb], 0
push eax
push 0x410dab
mov esi, ecx
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [esp + 0xc]
call fcn.0040171e
push dword [ebp + 0xc]
lea eax, [esp + 0x10]
push dword [ebp + 8]
push str._s_s.dmp
push eax
call fcn.00408e2a
lea ecx, [esp + 0x1c]
call fcn.004091ec
mov bl, byte [esp + 0x1b]
lea eax, [esp + 0x1c]
mov dl, byte [esi]
mov cl, bl
push 0
push eax
call fcn.0041124a
add esp, 0x18
cmp byte [esi + 1], 0
je 0x410d97
push dword [ebp + 0xc]
lea eax, [esp + 0x10]
push dword [ebp + 8]
push str._s_s_full.dmp
push eax
call fcn.00408e2a
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.004091ec
mov ecx, dword [esp + 0xc]
call fcn.00403149
test al, al
je 0x410d97
mov dl, byte [esi]
lea eax, [esp + 0xc]
push 0
push eax
mov cl, bl
call fcn.0041124a
pop ecx
pop ecx
mov ecx, dword [esp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.004016ae
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4110ec
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
movzx ecx, byte [0x43deb9]
neg ecx
push edi
sbb ecx, ecx
and ecx, 0x43dec0
je 0x411136
or dword [ebp - 0x18], 0xffffffff
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 7
call fcn.00406437
push dword [esi]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push str._StartProcessWithNoExceptionHandler___s_
push eax
call fcn.004031cc
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00409233
push 0x437840
lea ecx, [ebp - 8]
call fcn.00404067
push str.GOOGLE_UPDATE_NO_CRASH_HANDLER
lea ecx, [ebp - 4]
call fcn.00404067
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e066
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004016ae
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004016ae
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 8], eax
test eax, eax
je 0x41121f
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e0a7
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov edi, dword [ebp - 0x1c]
cmp edi, dword [ebp - 0x18]
je 0x41121f
push 0x40
lea eax, [ebp - 0x74]
mov dword [ebp - 0x78], 0x44
push ebx
push eax
call fcn.00416c50
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x4111eb
push dword [eax - 0xc]
mov ecx, esi
call fcn.00401990
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push edi
push 0x400
push ebx
push ebx
push ebx
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41121f
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x411226
call fcn.00409315
mov ebx, eax
test edi, edi
je 0x41123b
mov ecx, dword [ebp - 0x14]
sub ecx, edi
and ecx, 0xfffffffe
push ecx
push edi
call fcn.00404724
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00409259
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x411541
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x411560
mov ecx, edi
call fcn.0040171e
jmp 0x411614
push ebx
push esi
push str.SystemTemp
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], 0x24
call fcn.00404067
push str.BraveSoftwareTemp
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0x26
call fcn.00404067
mov byte [ebp - 0x10], 1
lea ebx, [ebp - 0x24]
lea ecx, [ebp - 4]
call fcn.0040171e
mov ecx, dword [ebx]
lea eax, [ebp - 4]
lea edx, [ebx + 4]
push eax
movzx eax, byte [edx + 4]
push eax
call fcn.00411498
mov esi, dword [ebp - 4]
pop ecx
pop ecx
test eax, eax
js 0x4115e1
mov ecx, esi
call fcn.00403185
test al, al
je 0x4115e1
push ecx
mov edx, esi
lea ecx, [ebp - 8]
call fcn.00403213
mov eax, dword [ebp - 8]
pop ecx
cmp dword [eax - 0xc], 0
jne 0x411619
lea ecx, [eax - 0x10]
call fcn.004016ae
lea ecx, [esi - 0x10]
call fcn.004016ae
add ebx, 0xc
lea eax, [ebp - 0xc]
cmp ebx, eax
jne 0x411595
mov ecx, edi
call fcn.0040171e
push 2
pop esi
lea ebx, [ebp - 8]
lea ebx, [ebx - 0xc]
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.004016ae
sub esi, 1
jne 0x411600
pop esi
pop ebx
mov eax, edi
pop edi
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi - 0x10]
call fcn.004018a1
mov ecx, dword [ebp - 8]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.004016ae
lea ecx, [esi - 0x10]
call fcn.004016ae
push 2
pop esi
lea ebx, [ebp - 8]
lea ebx, [ebx - 0xc]
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.004016ae
sub esi, 1
jne 0x411646
jmp 0x411612

Function at 0x412978
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x200
xor ebx, ebx
lea eax, [ebp - 0x204]
push ebx
push eax
call fcn.00416c50
add esp, 0xc
mov dword [ebp - 0x20c], 0x100
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x4129e1
push ecx
mov edx, 0x437844
lea ecx, [ebp - 0x204]
call fcn.00405158
pop ecx
test al, al
je 0x4129e1
mov al, 1
jmp 0x412a26
push esi
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], ebx
push eax
push 0x64
push ebx
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
mov esi, dword [ebp - 0x208]
test eax, eax
jne 0x412a1c
cmp dword [esi + 8], ebx
je 0x412a1c
push str.brave
push dword [esi + 8]
call fcn.004254c5
pop ecx
pop ecx
test eax, eax
jne 0x412a1c
mov bl, 1
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov al, bl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00416022
leave
ret
Function at 0x4132d6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
lea ecx, [ebp - 4]
call fcn.0040171e
push dword [esi]
lea eax, [ebp - 4]
push str.__s__r_n
push eax
call fcn.00408e54
mov esi, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [ecx]
mov dword [ebp + 8], eax
cmp eax, ecx
je 0x413331
push dword [eax + 0x14]
push dword [eax + 0x10]
lea eax, [ebp - 4]
push str._s_s_r_n
push eax
call fcn.00408e54
add esp, 0x10
lea ecx, [ebp + 8]
call fcn.0040422f
mov eax, dword [ebp + 8]
cmp eax, dword [esi]
jne 0x41330b
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
xor edi, edi
push edi
mov dword [ebp - 8], edi
mov eax, dword [esi - 0xc]
push ecx
add eax, eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x413357
call fcn.00409315
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004016ae
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4137d2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
mov bl, cl
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.00413366
test eax, eax
js 0x4138fa
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
je 0x4138fa
call fcn.00412035
mov eax, str.HKLMSoftwareBraveSoftwareUpdate_
test bl, bl
jne 0x413817
mov eax, str.HKCUSoftwareBraveSoftwareUpdate_
push eax
lea ecx, [ebp - 4]
call fcn.00404067
push 0x4388c0
lea ecx, [ebp - 8]
call fcn.00404067
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00403ab0
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.004016c6
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.004016ae
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004016ae
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.0040874e
test al, al
jne 0x413877
mov dl, 1
mov cl, bl
call fcn.0041390c
mov edi, eax
jmp 0x4138ec
push 1
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x43546c
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0x200
call fcn.00408258
mov edi, eax
test edi, edi
js 0x4138dd
mov eax, dword [ebp - 0x14]
xor edi, edi
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x4138d2
push 0
push 0
push 0
push 0
push dword [ecx + edi*4]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4138f6
mov eax, dword [ebp - 0x14]
inc edi
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x4138aa
xor dl, dl
mov cl, bl
call fcn.0041390c
mov edi, eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x43546c
call fcn.004080fa
lea ecx, [esi - 0x10]
call fcn.004016ae
jmp 0x4138fd
xor edi, edi
jmp 0x4138dd
xor edi, edi
inc edi
lea ecx, [ebp - 0x18]
call fcn.00404dc3
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413eb4
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, ecx
push esi
test dl, dl
je 0x413ec4
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x413eca
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor edx, edx
movzx esi, ax
mov ecx, 0x409
push edi
mov edi, edx
mov eax, ecx
cmp si, ax
je 0x413ef2
inc edi
imul eax, edi, 0x1a
movzx eax, word [eax + 0x433fb0]
test ax, ax
jne 0x413ed9
mov esi, ecx
jmp 0x413ef5
movzx esi, si
pop edi
cmp cx, si
je 0x413f12
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x433fb0]
test cx, cx
jne 0x413ef6
mov eax, 0x432a10
jmp 0x413f1a
imul eax, edx, 0x1a
add eax, 0x433fb2
push eax
mov ecx, ebx
call fcn.00404067
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x414de4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 8
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414e19
cmp dword [ebp - 8], 3
jne 0x414e19
cmp dword [ebp - 4], esi
jne 0x414e19
mov al, 1
jmp 0x414e29
push esi
push 0
push dword [ebp + 8]
call fcn.00416c50
add esp, 0xc
xor al, al
pop esi
leave
ret

Function at 0x414e2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x20
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414e61
cmp dword [ebp - 8], 3
jne 0x414e61
cmp dword [ebp - 4], esi
jne 0x414e61
mov al, 1
jmp 0x414e71
push esi
push 0
push dword [ebp + 8]
call fcn.00416c50
add esp, 0xc
xor al, al
pop esi
leave
ret
Function at 0x415da3
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub esp, 0xc
lea edx, [ebx + 0x1c]
lea ecx, [ebx + 0x40]
mov esi, eax
lea eax, [ebx + 0x38]
push edx
push ecx
lea ecx, [ebx + 0x3c]
push ecx
push eax
push edi
push esi
push ecx
lea ecx, [ebp - 0x88]
call fcn.00415c32
lea ecx, [ebp - 0x30]
call fcn.0040e9ee
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push 0x2c
mov eax, ecx
mov dword [ebp - 4], esi
push eax
push 0x2c
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x415e66
cmp dword [ebp - 0x30], 2
jne 0x415e66
cmp dword [ebp - 0x2c], esi
je 0x415e66
cmp dword [ebp - 0x10], esi
je 0x415e66
cmp dword [ebp - 0xc], esi
je 0x415e66
cmp dword [ebp - 8], esi
je 0x415e66
lea ecx, [ebp - 0x5c]
call fcn.0040e9ee
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0x5c], 3
push eax
push 0x2c
mov eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415e66
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x34], eax
mov al, 1
jmp 0x415e68
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4169e8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416a27
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416a27
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416a27
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416a27
cmp dword [ecx + 0x74], 0xe
jbe 0x416a27
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41fc7e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41fcc9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041fe9b
test al, al
jne 0x41fcc3
sub edx, 2
cmp edx, edi
jne 0x41fca9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41fceb
lea eax, [edi + 2]
cmp edx, eax
je 0x41fceb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041fbca
add esp, 0x10
jmp 0x41fde5
push esi
lea ecx, [ebp - 0x255]
call fcn.0041fe9b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41fd2e
push dword [ebp - 0x25c]
jmp 0x41fcdb
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41fd6b
cmp word [ebp - 0x226], 0
je 0x41fd8c
cmp word [ebp - 0x226], ax
jne 0x41fd6b
cmp word [ebp - 0x224], 0
je 0x41fd8c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041fbca
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41fdd8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41fd45
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41fdc0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41fde5
push 0x41f9fa
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00423d80
add esp, 0x10
jmp 0x41fdb5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416022
leave
ret

Function at 0x420c32
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ef04
push 0x42eefc
push str.FlsAlloc
push 0x1f
call fcn.00420b6d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420c66
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d40c]
call esi
jmp 0x420c6c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x420cb0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ef14
push 0x42ef0c
push str.FlsGetValue
push 0x21
call fcn.00420b6d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420ce7
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d40c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x420cef
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ef1c
push 0x42ef14
push str.FlsSetValue
push 0x22
call fcn.00420b6d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420d29
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42d40c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42a3a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a3cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a3cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10018200
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x10018720
test edx, edx
je 0x10018720
call fcn.10018217
mov eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x10018760
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.10018200
mov edx, dword [esp + 0xc]
shl ecx, 4
test eax, eax
jne 0x100187d1
lea eax, [edx + ecx + 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
movups xmmword [eax], xmm0
movups xmmword [edx], xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmmword [edx - 0x10], xmm1
cmp eax, edx
ja 0x10018796
movups xmm0, xmmword [edx]
aesimc xmm0, xmm0
movups xmmword [edx], xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
xor eax, eax
ret

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

Disassembly:
push ebp
push ebx
push esi
push edi
sub esp, 0x10
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
cmp ebp, 0x80
je 0x10019164
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
cmp ebp, 0xc0
je 0x1001913c
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
jmp 0x10019144
mov ecx, eax
mov edx, ebx
not ecx
not edx
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], edx
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
nop
call fcn.10019169

Function at 0x1004b780
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1024ee80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xorps xmm0, xmm0
mov dword [ebp - 8], 0
mov edx, ecx
movq qword [ebp - 0x10], xmm0
push esi
lea ecx, [ebp - 0x10]
xor bl, bl
call fcn.1004b660
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp esi, eax
je 0x1004b7e0
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi]
call edi
test eax, eax
movzx ebx, bl
mov eax, 1
cmovne ebx, eax
add esi, 4
cmp esi, dword [ebp - 0x14]
jne 0x1004b7c1
mov esi, dword [ebp - 0x10]
pop edi
test esi, esi
je 0x1004b810
mov ecx, dword [ebp - 8]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004b806
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004b822
push ecx
push esi
call fcn.10175c33
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.10175bf0
mov esp, ebp
pop ebp
ret
call fcn.10179b2f
int3