joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423540
Capabilities:
Get local ipv4 addresses

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push 0x288
xor bl, bl
mov dword [esp + 0x10], 0x288
call fcn.00428d6c
mov esi, eax
add esp, 4
lea eax, [esp + 0xc]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x423591
push esi
call fcn.00428c8f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00428d6c
add esp, 8
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4235f9
test esi, esi
je 0x4235f9
push edi
mov edi, esi
lea esp, [esp]
call fcn.004232d0
test al, al
jne 0x4235b1
mov edi, dword [edi]
test edi, edi
jne 0x4235a0
jmp 0x4235bc
mov ecx, ebp
mov eax, edi
call fcn.004234f0
mov bl, 1
xor eax, eax
pop edi
cmp ax, word [ebp]
jne 0x4235f9
mov eax, esi
jmp 0x4235d0
lea ecx, [eax + 0x1b0]
test ecx, ecx
jne 0x4235f0
mov eax, dword [eax]
test eax, eax
jne 0x4235d0
push esi
call fcn.00428c8f
add esp, 4
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
mov ecx, ebp
call fcn.004234f0
mov bl, 1
push esi
call fcn.00428c8f
add esp, 4
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret

Function at 0x424000
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x70
mov eax, dword [0x4531a0]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp dword [ecx + 0x18], 0x10
mov eax, dword [ecx + 0x14]
mov byte [esp + 0x68], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp], 0x67452301
mov dword [esp + 4], 0xefcdab89
mov dword [esp + 8], 0x98badcfe
mov dword [esp + 0xc], 0x10325476
jb 0x424050
mov ecx, dword [ecx + 4]
jmp 0x424053
add ecx, 4
push ecx
lea ecx, [esp + 4]
call fcn.00423750
cmp byte [esp + 0x68], 0
jne 0x424074
push esi
lea esi, [esp + 4]
mov byte [esp + 0x6c], 1
call fcn.004237f0
pop esi
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [edi], eax
mov eax, dword [esp + 0x64]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
xor ecx, esp
mov eax, edi
call fcn.00428ba7
add esp, 0x70
ret

Function at 0x4240a0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4531a0]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push 0
push 2
xor bl, bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x424149
push 0x22c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0042ccb0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x424142
mov ecx, edi
lea eax, [esp + 0x2c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424126
test dx, dx
je 0x424122
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424126
add eax, 4
add ecx, 4
test dx, dx
jne 0x424100
xor eax, eax
jmp 0x42412b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x424140
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4240f7
jmp 0x424142
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00428ba7
add esp, 0x230
ret
Function at 0x426420
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x4531a0]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
push edi
push 0x114
lea eax, [esp + 0x10]
mov esi, ecx
push 0
push eax
mov dword [esi + 0x14], 0
call fcn.0042ccb0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [esp + 0x1c], 2
jne 0x42648c
mov ecx, esi
call fcn.00426740
test eax, eax
jne 0x4264a0
mov ecx, esi
call fcn.004269c0
test eax, eax
jne 0x4264a0
call fcn.00426bb0
jmp 0x4264a0
xor edi, edi
mov edi, edi
test eax, eax
jne 0x4264a0
push esi
call fcn.004265e0
inc edi
cmp edi, 0xa
jl 0x426490
mov eax, dword [esi + 0x14]
test eax, eax
jl 0x4264e1
cmp eax, dword [esi + 0x10]
jge 0x4264e1
mov edx, eax
shl edx, 7
lea ecx, [edx + esi + 0x18]
push ecx
inc eax
push 0x40
push ebx
mov dword [esi + 0x14], eax
call fcn.0042c616
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00428ba7
add esp, 0x124
ret
mov ecx, dword [esp + 0x128]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00428ba7
add esp, 0x124
ret
Function at 0x426740
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x494
mov eax, dword [0x4531a0]
xor eax, esp
mov dword [esp + 0x48c], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x10], 0x20
jge 0x4269a2
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x2a2]
push ecx
mov word [esp + 0x2a4], ax
call fcn.0042ccb0
push ebx
push str..PhysicalDrive_d
lea edx, [esp + 0x2ac]
call fcn.00426f30
add esp, 0x14
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x2b0]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x426994
xor eax, eax
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x18
lea edx, [esp + 0x30]
push edx
push eax
push eax
push 0x74080
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call ebp
test eax, eax
je 0x426989
mov bl, byte [esp + 0x27]
test bl, bl
jbe 0x426989
xor eax, eax
push 0x210
push eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov byte [esp + 0x8c], al
lea eax, [esp + 0x90]
push eax
call fcn.0042ccb0
mov al, byte [esp + 0x24]
mov cl, al
and cl, 1
add esp, 0xc
or cl, 0xfa
shl cl, 4
push 0
mov byte [esp + 0x71], cl
mov cl, al
shr bl, cl
lea edx, [esp + 0x20]
push edx
push 0x210
and bl, 0x10
mov byte [esp + 0x7c], al
lea eax, [esp + 0x94]
push eax
neg bl
push 0x20
sbb bl, bl
lea ecx, [esp + 0x78]
push ecx
and bl, 0xb5
push 0x7c088
add bl, 0xec
push edi
mov byte [esp + 0x88], 0
mov byte [esp + 0x89], 1
mov byte [esp + 0x8b], 0
mov byte [esp + 0x8c], 0
mov byte [esp + 0x8e], bl
mov dword [esp + 0x84], 0x200
call ebp
test eax, eax
je 0x426989
movzx eax, word [esp + 0xae]
movzx edx, word [esp + 0xac]
movzx ecx, word [esp + 0xb0]
mov dword [esp + 0x40], eax
movzx eax, word [esp + 0xb4]
mov dword [esp + 0x3c], edx
movzx edx, word [esp + 0xb2]
mov dword [esp + 0x44], ecx
movzx ecx, word [esp + 0xb6]
mov dword [esp + 0x4c], eax
movzx eax, word [esp + 0xba]
mov dword [esp + 0x48], edx
movzx edx, word [esp + 0xb8]
mov dword [esp + 0x50], ecx
movzx ecx, word [esp + 0xbc]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x54], edx
movzx edx, word [esp + 0xbe]
mov dword [esp + 0x5c], ecx
mov ecx, eax
shl ecx, 7
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x20]
lea esi, [ecx + esi + 0x18]
inc eax
lea ecx, [esp + 0x3c]
mov dword [edx + 0x10], eax
call fcn.00426500
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x18]
inc ebx
cmp ebx, 0x10
mov dword [esp + 0x18], ebx
jl 0x42676e
mov ecx, dword [esp + 0x49c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00428ba7
add esp, 0x494
ret
Function at 0x426bb0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x221c
call fcn.00430900
mov eax, dword [0x4531a0]
xor eax, esp
mov dword [esp + 0x2218], eax
push ebx
push ebp
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
jmp 0x426be0
cmp dword [esi + 0x10], 0x20
jge 0x426d50
push edi
push str..PhysicalDrive_d
lea edx, [esp + 0x2c]
call fcn.00426f30
add esp, 8
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x426d42
mov edi, dword [esi + 0x10]
xor eax, eax
push 0x2000
lea ecx, [esp + 0x228]
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0042ccb0
add esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea edx, [esp + 0x18]
push edx
push 0x2000
lea eax, [esp + 0x230]
push eax
push 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0x2d1400
push ebp
call ebx
test eax, eax
je 0x426cbb
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x23c]
shl edx, 7
lea ecx, [edx + esi + 0x18]
lea eax, [esp + eax + 0x224]
push ecx
call fcn.00426d70
mov edx, dword [esi + 0x10]
shl edx, 7
movzx eax, word [edx + esi + 0x18]
push eax
call fcn.0042c8d7
add esp, 4
test eax, eax
je 0x426cbb
mov eax, 1
add dword [esi + 0x10], eax
mov dword [esp + 0xc], eax
cmp edi, dword [esi + 0x10]
jne 0x426d35
push 0x2000
lea ecx, [esp + 0x228]
push 0
push ecx
call fcn.0042ccb0
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push 0x2000
lea eax, [esp + 0x230]
push eax
push 0
push 0
push 0x2d0c10
push ebp
call ebx
test eax, eax
je 0x426d35
mov ecx, dword [esi + 0x10]
shl ecx, 7
lea ebx, [ecx + esi + 0x18]
lea edi, [esp + 0x234]
call fcn.00426ef0
mov edx, dword [esi + 0x10]
shl edx, 7
movzx eax, word [edx + esi + 0x18]
push eax
call fcn.0042c8d7
add esp, 4
test eax, eax
je 0x426d35
mov eax, 1
add dword [esi + 0x10], eax
mov dword [esp + 0xc], eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
xor ebx, ebx
inc edi
cmp edi, 0x10
mov dword [esp + 0x10], edi
jl 0x426be0
mov ecx, dword [esp + 0x2224]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00428ba7
add esp, 0x221c
ret
Function at 0x427177
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x455ef0], 0
push esi
jne 0x4270ea
call fcn.00427010
test eax, eax
je 0x42712d
mov eax, dword [0x455ef0]
cmp eax, 1
jne 0x42710b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42712d
pop esi
ret
push eax
call dword [0x455ef8]
test eax, eax
jne 0x427175
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x427131
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x455ef0]
call dword [0x455ef8]
mov edi, eax
test edi, edi
je 0x427156
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x427172
mov edi, esi
add esi, 0xff0
push edi
push dword [0x455ef0]
call dword [0x455ef4]
add edi, 0x10
cmp edi, esi
jb 0x42715e
mov eax, edi
pop edi
pop esi
ret
jmp 0x4270d7

Function at 0x428ba7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4531a0]
jne 0x428bb1
repz ret
jmp fcn.0042f4fc

Function at 0x43bc47
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.00430a3a
and dword [ebp - 4], 0
cmp dword [0x456d5c], 0
mov ebx, eax
jne 0x43bcf8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43bda9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43bda9
push eax
call fcn.004309c8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x456d5c], eax
call esi
push eax
call fcn.004309c8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x456d60], eax
call esi
push eax
call fcn.004309c8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x456d64], eax
call esi
push eax
call fcn.004309c8
pop ecx
mov dword [0x456d6c], eax
test eax, eax
je 0x43bcf8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004309c8
pop ecx
mov dword [0x456d68], eax
mov eax, dword [0x456d68]
cmp eax, ebx
je 0x43bd50
cmp dword [0x456d6c], ebx
je 0x43bd50
push eax
call fcn.00430a43
push dword [0x456d6c]
mov esi, eax
call fcn.00430a43
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43bd50
test edi, edi
je 0x43bd50
call esi
test eax, eax
je 0x43bd47
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43bd47
test byte [ebp - 0xc], 1
jne 0x43bd50
or dword [ebp + 0x10], 0x200000
jmp 0x43bd89
mov eax, dword [0x456d60]
cmp eax, ebx
je 0x43bd89
push eax
call fcn.00430a43
pop ecx
test eax, eax
je 0x43bd89
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43bd89
mov eax, dword [0x456d64]
cmp eax, ebx
je 0x43bd89
push eax
call fcn.00430a43
pop ecx
test eax, eax
je 0x43bd89
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x456d5c]
call fcn.00430a43
pop ecx
test eax, eax
je 0x43bda9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43bdab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c2e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x100]
push 0x404008
push eax
call fcn.00401ca0
mov ecx, 0x401bdc
mov eax, 0x4017fd
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00401d18
push 0x100
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004020d0
add esp, 0x24
call fcn.00401846
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
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 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0xba1370
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 0xba138e
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 0xbca074
push ecx
mov edi, eax
call fcn.00bb5198
mov esi, eax
add esp, 8
test esi, esi
jne 0xba13cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00bb502e
push esi
call fcn.00bb4fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xba4850
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 0xba48ae
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 0xbcf720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xba48ba
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.00bb51e1
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 0xba48ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xbcf720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xba492a
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.00bb6082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xba4957
mov word [eax], si
add eax, 2
push eax
call fcn.00bb6030
add esp, 4
jmp 0xba4959
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 0xba48ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xba48b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xba4ff0
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 0xba5080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xba50c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xbca458
push ecx
call fcn.00bb51e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00bb51e1
add esp, 0x10
jmp 0xba50d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00bb520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00bb4dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00ba5050
mov eax, dword [0xbcf728]
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 0xba513b
push esi
call fcn.00ba4fb0
add esp, 4
mov dword [0xbcf728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xba514c
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.00ba4ff0
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 0xba8440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xba84b7
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 0xba848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xba8471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xba847e
add edx, ecx
cmp ebx, edx
jb 0xba848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xba8467
xor ecx, ecx
jmp 0xba84a2
test eax, eax
jne 0xba8492
xor ecx, ecx
jmp 0xba84a2
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.00ba83c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xba88f0
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 0xba8921
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 0xba8946
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 0xba896e
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 0xba8993
push ecx
push esi
call fcn.00ba84c0
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