joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002909
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
push 4
pop edi
push edi
lea eax, [ebp + 0xc]
push eax
push edi
push 0
mov ebx, 0x1001268
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x1002937
push dword [ebp + 0xc]
push ebx
jmp 0x1002969
push edi
lea eax, [ebp + 0x10]
push eax
push edi
push 0
mov ebx, 0x1001260
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1002931
push edi
lea eax, [ebp + 0x14]
push eax
push edi
push 0
mov edi, 0x1001258
push edi
push dword [ebp + 8]
call esi
test eax, eax
je 0x1002979
push dword [ebp + 0xc]
push edi
push 0x201
push eax
call fcn.010014c5
add esp, 0x10
jmp 0x100297b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x1002987
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x1005188]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov edx, dword [esi]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x60], edx
lea edx, [ebp - 0x5c]
push edx
xor ebx, ebx
lea edx, [ebp - 0x48]
push edx
push ebx
push ebx
lea edx, [ebp - 0x60]
push edx
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x64], 1
mov byte [ebp - 8], bl
mov dword [ebp - 0x54], ebx
push eax
jmp 0x1002a43
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x48]
mov cl, byte [eax]
mov edx, dword [ebp - 0x50]
mov byte [ebp - 0x49], cl
cmp cl, byte [edx]
jne 0x1002a08
cmp cl, bl
je 0x1002a04
mov cl, byte [eax + 1]
mov byte [ebp - 0x49], cl
cmp cl, byte [edx + 1]
jne 0x1002a08
add dword [ebp - 0x50], 2
inc eax
inc eax
cmp cl, bl
jne 0x10029df
xor eax, eax
jmp 0x1002a0d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1002a66
push dword [ebp - 0x58]
call dword [sym.imp.msvcrt.dll_atoi]
cmp dword [ebp - 0x64], eax
pop ecx
ja 0x1002a24
inc eax
mov dword [ebp - 0x64], eax
mov eax, dword [esi]
inc dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x58]
push dword [ebp - 0x54]
push dword [ebp - 0x68]
mov dword [ebp - 0x5c], 0x40
call edi
cmp eax, ebx
je 0x10029d6
cmp eax, 0x103
je 0x1002a6d
push 0x200
push eax
call fcn.010014c5
pop ecx
pop ecx
jmp 0x1002a85
mov eax, 0xb7
jmp 0x1002a85
push dword [ebp - 0x64]
push 0x1001270
push dword [ebp - 0x58]
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100341e
leave
ret 0x10
Function at 0x1002c78
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1005188]
push ebx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push esi
lea esi, [eax + 8]
xor ebx, ebx
cmp dword [esi], ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x54], 0x40
jne 0x1002ccf
push esi
push 0x2000f
push ebx
push 0x1001284
push dword [eax]
call edi
cmp eax, ebx
je 0x1002ccf
push 0x206
push eax
call fcn.010014c5
pop ecx
pop ecx
jmp 0x1002dd2
lea eax, [ebp - 0x50]
push eax
push 0x2000e
push ebx
push dword [ebp - 0x4c]
push dword [esi]
call edi
test eax, eax
je 0x1002cf8
push dword [ebp - 0x4c]
push 0x92
push 8
call fcn.01001547
add esp, 0xc
jmp 0x1002d3c
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push 0x1001270
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x50]
call edi
test eax, eax
je 0x1002d43
lea eax, [ebp - 0x44]
push eax
push 0x93
push 8
call fcn.01001547
add esp, 0xc
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1002dd2
push dword [ebp + 0xc]
push 0x94
push 8
call fcn.01001547
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x48], 0x103
jne 0x1002db2
push dword [ebp - 0x4c]
push dword [esi]
call edi
cmp eax, ebx
push dword [ebp - 0x4c]
je 0x1002da1
push 0x207
push eax
call fcn.010014c5
add esp, 0xc
jmp 0x1002dd2
push 0x95
push 0xa
call fcn.01001547
add esp, 0xc
jmp 0x1002dcc
cmp dword [ebp - 0x48], ebx
je 0x1002dcf
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
push 0x96
push 0xa
call fcn.01001547
add esp, 0x10
mov dword [ebp - 0x48], ebx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100341e
leave
ret 8
Function at 0x1002de6
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1005188]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
lea esi, [edi + 4]
xor ebx, ebx
cmp dword [esi], ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], 0x40
jne 0x1002e41
push esi
push 0x2000f
push ebx
push 0x10012b8
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x1002e41
push 0x208
push eax
call fcn.010014c5
pop ecx
pop ecx
jmp 0x1002f2b
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp - 0x48]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
je 0x1002e77
push dword [ebp - 0x48]
push 0x209
push eax
call fcn.010014c5
add esp, 0xc
jmp 0x1002f2b
cmp dword [ebp - 0x50], 1
jne 0x1002e8f
push dword [ebp - 0x48]
push 0x97
push 0xa
call fcn.01001547
add esp, 0xc
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
push dword [ebp - 0x4c]
mov ecx, edi
call fcn.01002987
cmp eax, ebx
mov dword [ebp - 0x48], eax
je 0x1002ed7
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x48], 0xb7
jne 0x1002f28
lea eax, [ebp - 0x44]
push eax
push esi
push 0x98
push 8
call fcn.01001547
add esp, 0x10
mov dword [ebp - 0x48], ebx
jmp 0x1002f28
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1002edc
sub eax, ecx
push eax
push esi
push 1
push ebx
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
mov dword [ebp - 0x48], eax
push esi
je 0x1002f0c
push 0x20a
push eax
call fcn.010014c5
jmp 0x1002f1c
or dword [edi + 0xc], 1
push 0x99
push 8
call fcn.01001547
add esp, 0xc
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100341e
leave
ret 8
Function at 0x1002f3f
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1005188]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
lea esi, [edi + 4]
cmp dword [esi], 0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], 0x40
jne 0x1002f9c
push esi
push 0x2000f
push 0
push 0x10012b8
push dword [edi]
call ebx
test eax, eax
je 0x1002f9c
push 0x20b
push eax
call fcn.010014c5
pop ecx
pop ecx
jmp 0x10030a7
lea eax, [ebp - 0x4c]
push eax
push 0x2000f
push 0
push dword [ebp - 0x48]
push dword [esi]
call ebx
test eax, eax
jne 0x1003018
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x50]
mov ecx, edi
push dword [ebp - 0x4c]
call fcn.01002987
cmp eax, 0xb7
jne 0x1003018
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, eax
test ebx, ebx
je 0x1003000
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x50]
push 0x20c
push ebx
call fcn.010014c5
add esp, 0xc
jmp 0x10030a7
push dword [ebp - 0x50]
or dword [edi + 0xc], 1
push 0x9a
push 8
call fcn.01001547
add esp, 0xc
jmp 0x100302d
push dword [ebp - 0x48]
push dword [ebp - 0x50]
push 0x9b
push 8
call fcn.01001547
add esp, 0x10
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
push dword [ebp - 0x4c]
mov dword [ebp - 0x54], 0x40
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push dword [ebp - 0x4c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x103
jne 0x100308c
push dword [ebp - 0x48]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
push dword [ebp - 0x48]
je 0x100307b
push eax
push 0x9c
push 1
jmp 0x100309b
push 0x9d
push 0xa
call fcn.01001547
add esp, 0xc
jmp 0x10030a3
cmp edi, ebx
je 0x10030a5
push dword [ebp - 0x48]
push edi
push 0x9e
push 0xa
call fcn.01001547
add esp, 0x10
xor edi, edi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100341e
leave
ret 8

Function at 0x1003149
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
call fcn.010030e2
test eax, eax
je 0x1003161
xor eax, eax
jmp 0x10031a2
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1003187
push 0x20f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010014c5
pop ecx
pop ecx
jmp 0x10031a2
push dword [ebp - 0x18]
push 0x9f
push 0xa
call fcn.01001547
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x18], 4
sete al
pop esi
leave
ret
Function at 0x10031aa
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, ecx
call fcn.010030e2
test eax, eax
jne 0x100325f
push eax
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x10031e6
push 0x210
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010014c5
pop ecx
pop ecx
jmp 0x100325f
push esi
mov esi, dword [sym.imp.msvcrt.dll_printf]
mov dword [ebp - 4], 0xa
push 0x1001318
call esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fflush]
pop ecx
pop ecx
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1003262
cmp dword [ebp - 0x1c], 4
je 0x1003254
cmp dword [ebp - 0x1c], 2
jne 0x1003276
mov eax, 0xc8
cmp dword [ebp - 8], eax
jae 0x1003236
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3e8
jbe 0x1003246
mov dword [ebp - 8], 0x3e8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 4]
jne 0x10031f4
push 0x1001314
call esi
xor eax, eax
pop ecx
pop esi
pop edi
leave
ret
push 0x211
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010014c5
pop ecx
jmp 0x100325d
push dword [ebp - 8]
push 0x1fa
push 0x139f
call fcn.010014c5
add esp, 0xc
jmp 0x100325e

Function at 0x1003292
Capabilities:
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, ecx
call fcn.010030e2
test eax, eax
jne 0x10032da
push esi
lea eax, [ebp - 0x20]
push eax
push 1
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10032ee
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x426
jne 0x10032dd
push 0xa0
push 0xa
call fcn.01001547
pop ecx
pop ecx
xor eax, eax
pop esi
pop edi
leave
ret
push 0x212
call esi
push eax
call fcn.010014c5
pop ecx
pop ecx
jmp 0x10032d9
mov esi, dword [sym.imp.msvcrt.dll_printf]
mov dword [ebp - 4], 0xa
push 0x1001318
call esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fflush]
pop ecx
pop ecx
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100337c
cmp dword [ebp - 0x1c], 1
je 0x100335b
cmp dword [ebp - 0x1c], 3
jne 0x100338c
mov eax, 0xc8
cmp dword [ebp - 8], eax
jae 0x100333d
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3e8
jbe 0x100334d
mov dword [ebp - 8], 0x3e8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 4]
jne 0x10032fb
push 0x1001314
call esi
cmp dword [ebp - 4], 0
pop ecx
jne 0x10032d7
push 0x1fb
push 0x5b4
jmp 0x10032e5
push 0x213
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10032e4
push dword [ebp - 8]
push 0x1fa
push 0x139f
call fcn.010014c5
add esp, 0xc
jmp 0x10032d9

Function at 0x100341e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005188]
jne 0x100342f
test ecx, 0xffff0000
jne 0x100342f
ret
jmp fcn.01003439
Function at 0x1003565
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001328
call fcn.01003810
cmp word [0x1000000], 0x5a4d
jne 0x10035a4
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x10035a4
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x10035bd
cmp ecx, 0x20b
je 0x10035aa
and dword [ebp - 0x1c], 0
jmp 0x10035d4
cmp dword [eax + 0x1000084], 0xe
jbe 0x10035a4
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x10035ce
cmp dword [eax + 0x1000074], 0xe
jbe 0x10035a4
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10054e0], 0xffffffff
or dword [0x10054e4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10054d8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10054d4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10054dc], eax
call fcn.01003806
cmp dword [0x1005190], 0
jne 0x1003631
push fcn.01003806
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010037ef
push 0x1001150
push 0x100114c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10054d0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10054cc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1001148
push 0x100112c
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100191c
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x10036a9
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10036de
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100384b
ret
Function at 0x95f370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x95f38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x988074
push ecx
mov edi, eax
call fcn.00973198
mov esi, eax
add esp, 8
test esi, esi
jne 0x95f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0097302e
push esi
call fcn.00972fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x962850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x9628ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x98d720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9628ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.009731e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x9628ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x98d720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x96292a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00974082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x962957
mov word [eax], si
add eax, 2
push eax
call fcn.00974030
add esp, 4
jmp 0x962959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x9628ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x9628b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x962ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x963080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9630c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x988458
push ecx
call fcn.009731e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009731e1
add esp, 0x10
jmp 0x9630d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0097320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00972dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00963050
mov eax, dword [0x98d728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x96313b
push esi
call fcn.00962fb0
add esp, 4
mov dword [0x98d728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x96314c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00962ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x966440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9664b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x96648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x966471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x96647e
add edx, ecx
cmp ebx, edx
jb 0x96648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x966467
xor ecx, ecx
jmp 0x9664a2
test eax, eax
jne 0x966492
xor ecx, ecx
jmp 0x9664a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.009663c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x9668f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x966921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x966946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x96696e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x966993
push ecx
push esi
call fcn.009664c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x967c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x967c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x967c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x967c38
add edx, eax
cmp ebx, edx
jb 0x967c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x967c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x967c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x967c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x967cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x967c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x967ca8
add edx, ecx
cmp ebx, edx
jb 0x967cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x967c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x967f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00974145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x967ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x967fdd
lea eax, [esp + 0x18]
push eax
jmp 0x967fe2
push 0x98d720
call fcn.00973fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x967fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x967f40
push 4
push ecx
push eax
call fcn.0097443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret