joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404202
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x426018]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 8], eax
mov al, byte [ebp + 0x10]
mov dword [esi + 0x10], edi
mov byte [esi + 0x14], al
mov byte [esi + 0x15], 1
mov dword [esi + 0x18], edi
test al, al
je 0x40428f
call fcn.0040132b
push eax
lea ecx, [esp + 0xc]
call fcn.00403afc
lea edx, [esp + 8]
mov dword [esp + 0x18], 0x4233bc
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004063ec
push dword [esp + 8]
lea eax, [esp + 0x10]
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esp + 8]
mov dword [esi + 0x18], eax
call fcn.004042cc
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4042b7
lea eax, [esp + 0x20]
push eax
push edi
push esi
push 0x404340
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00408bf5
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404408
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
call fcn.004044ae
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x40449b
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx + 8], eax
test eax, eax
je 0x404494
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [ebx + 0xc], edx
test edx, edx
je 0x404494
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404494
mov ecx, dword [ebp - 0x14]
mov al, 1
mov dword [ebx + 0x10], ecx
jmp 0x40449d
mov ecx, ebx
call fcn.004044ae
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bf5
leave
ret 4

Function at 0x40479e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
push edi
cmp esi, 0x40
jb 0x404802
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x404802
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x404802
cmp dword [edx + ecx], 0x4550
jne 0x404802
movzx eax, word [edx + ecx + 4]
mov edi, 0x14c
cmp ax, di
je 0x4047e7
mov edi, 0x8664
cmp ax, di
je 0x404802
add ecx, 0x98
add ecx, edx
mov eax, dword [ecx]
test eax, eax
je 0x404802
add eax, 0xc
cmp esi, eax
sbb eax, eax
not eax
and eax, ecx
jmp 0x404804
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x404863
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 0x60], edx
call fcn.00403b35
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x4c]
mov dword [ebp - 8], esi
push eax
call fcn.00409110
xor eax, eax
lea edi, [ebp - 0x5c]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x20], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x1c], ax
cmp dword [esi - 4], eax
jle 0x4048ce
push dword [esi - 0xc]
lea ecx, [ebp - 8]
call fcn.00403bfd
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4048fd
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x40493a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x40493a
cmp byte [ebp + 8], bl
je 0x40490d
push 0xffffffffffffffff
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x404925
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x404928
xor ebx, ebx
inc ebx
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.00401302
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bf5
leave
ret

Function at 0x4052e1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, ecx
lea ecx, [ebp - 0x14]
push ecx
push 1
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40535f
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40535f
cmp dword [ebp - 8], 4
jne 0x40535f
cmp dword [ebp - 0xc], 4
ja 0x40535f
mov ecx, dword [ebp - 0x10]
mov dword [edi], ecx
mov byte [edi + 4], 1
jmp 0x405362
mov byte [edi + 4], bl
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bf5
leave
ret
Function at 0x4088c0
Capabilities:
Parse pe header

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

Function at 0x410133
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
xor edi, edi
test esi, esi
je 0x4101a3
push esi
call fcn.004100fc
push edi
push edi
push edi
mov ebx, eax
push edi
sub ebx, esi
sar ebx, 1
push ebx
push esi
push edi
push edi
call fcn.00410045
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
je 0x4101a3
push eax
call fcn.004109e3
mov edi, eax
pop ecx
test edi, edi
je 0x410198
xor eax, eax
push eax
push eax
push dword [ebp - 4]
push edi
push ebx
push esi
push eax
push eax
call fcn.00410045
add esp, 0x20
test eax, eax
je 0x410198
mov ebx, edi
xor edi, edi
jmp 0x41019a
invalid

Function at 0x410268
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4102a3
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x41028a
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x41029b
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4102a5
inc edi
add eax, 0x28
cmp edi, esi
jb 0x410280
xor eax, eax
pop edi
pop esi
ret

Function at 0x4104be
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rol esi, 0x45
mov eax, 0xb945c6c8
cmpsd dword [esi], dword es:[edi]
call fcn.00410228
push cs
mov dword [esi + 0x50a8458d], ecx
call fcn.00410238
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004101ed
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x410516
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00410228
mov esi, 0x8dee16c9
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x4116aa
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.00410228
mov ah, 0x38
cmp byte [ecx], dl
test byte [ebp - 0x72b7b], cl
call dword [eax - 0x18]
pop ss
jmp 0x41171f
invalid

Function at 0x4118a9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [ebx - 0x41f0f33c]
inc ebp
clc
mov ecx, dword [ebp - 0x684]
sub ecx, eax
mov dword [ebp - 0x684], ecx
push 4
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 4]
push eax
lea eax, [ebp - 0x678]
test dword [eax + 0x50fffff9], ecx

Function at 0x4190f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41911d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41911d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x415f71
Capabilities:
Create thread

Disassembly:
push 0x364
mov eax, 0x4943ef
call fcn.0047a393
mov edi, ecx
mov dword [ebp - 0x368], edi
mov dword [ebp - 0x370], edi
call fcn.0043ae93
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [edi + 0xc44], ebx
mov dword [edi + 0xc48], ebx
mov dword [edi + 0xc4c], ebx
mov dword [edi + 0xc50], ebx
mov dword [edi + 0xc54], ebx
mov dword [edi + 0xc58], ebx
mov dword [edi + 0xc5c], ebx
lea edx, [edi + 0xc60]
mov ecx, edx
call fcn.0041f55f
lea ecx, [edx + 0x34]
call fcn.0041f55f
lea ecx, [edx + 0x68]
call fcn.0041f55f
mov dword [edi + 0xcfc], ebx
mov dword [edi + 0xd00], ebx
mov dword [edi + 0xd04], ebx
mov dword [edi + 0xd08], ebx
xor edx, edx
push 7
pop ebx
xor eax, eax
mov dword [edi + 0xd20], ebx
mov dword [edi + 0xd1c], edx
mov word [edi + 0xd0c], ax
lea ecx, [edi + 0xd24]
call fcn.0041f55f
xor eax, eax
mov dword [edi + 0xd6c], ebx
mov dword [edi + 0xd68], edx
mov word [edi + 0xd58], ax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
mov word [edi + 0xd70], dx
mov byte [edi + 0xd72], dl
call fcn.0041b218
mov esi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], bl
push eax
call fcn.0041b0fe
mov ecx, dword [ebp + 0xc]
add edi, 0xd74
mov byte [ebp - 4], 8
push eax
mov dword [ebp - 0x36c], edi
mov bl, byte [ecx + 0x6c]
mov ecx, edi
call fcn.00414d87
push esi
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 9
call fcn.00414d87
and dword [edi + 0x40], 0
xor eax, eax
push 7
pop ecx
mov dword [edi + 0x44], ecx
mov word [edi + 0x30], ax
and dword [edi + 0x58], eax
test bl, bl
mov dword [edi + 0x5c], ecx
mov word [edi + 0x48], ax
sete al
mov byte [edi + 0x60], al
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push ebx
push 1
call fcn.00415035
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call fcn.00415035
mov edi, dword [ebp - 0x368]
mov ecx, edi
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xddc], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0xc5c], eax
lea eax, [ebp - 0x364]
push eax
mov dword [edi + 0xdd8], ebx
mov dword [edi + 0xde0], ebx
call fcn.00416306
push edi
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x364]
push eax
lea ecx, [edi + 0xf0]
call fcn.0043b133
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0xddc]
cmp byte [eax + 0x6d], bl
je 0x41616b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.aaa
push 0x4cd748
call esi
push str.sID_eID_bID_1
push 0x4ce150
call esi
push ebx
push ebx
push ebx
push 0x41c0d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x2bf20
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push ebx
push str.Running
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x364]
call fcn.004161b4
mov eax, edi
call fcn.0047a342
ret 8
Function at 0x41775f
Capabilities:
Create process on windows

Disassembly:
push 0x410
mov eax, 0x494849
call fcn.0047a3ff
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x40c]
push eax
mov dword [ebp - 0x410], edi
call fcn.0043b08e
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
mov edx, 0x272d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf0]
call fcn.0041f3fe
mov edx, eax
lea ecx, [ebp - 0x2fc]
call fcn.00420628
lea ecx, [ebp - 0xf0]
mov bl, al
call fcn.0041f857
test bl, bl
je 0x417802
mov ecx, dword [edi + 0xd08]
test ecx, ecx
je 0x4177ef
push dword [edi + 0xde0]
push esi
push esi
call fcn.004466be
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x248]
mov byte [edi + 0xd71], 1
push eax
jmp 0x417839
push 1
push esi
push esi
lea ebx, [edi + 0xd0c]
mov byte [ebp - 4], 2
push ebx
lea eax, [edi + 0xd3c]
mov ecx, edi
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0041adad
push esi
push 1
lea ecx, [ebp - 0x44]
call fcn.00415035
lea eax, [ebp - 0x2c]
cmp eax, ebx
je 0x417841
push 0xffffffffffffffff
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00414fa2
cmp byte [edi + 0xd71], 0
je 0x417866
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 1
cmovae eax, dword [ebp - 0x2c]
push esi
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
push 2
push 0x111
push dword [ebp - 0x418]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
jmp 0x4179ac
push 1
lea ecx, [ebp - 0x2c]
call fcn.00415035
lea ecx, [ebp - 0x40c]
call fcn.0041410e
call fcn.0047a351
ret 4
Function at 0x41b3cc
Capabilities:
Write file on windows

Disassembly:
push 0x8c
mov eax, 0x495297
call fcn.0047a393
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, 0x272a
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.0041f3fe
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00414d61
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.0041f857
mov edi, str._nURL_
push edi
call fcn.00412bda
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.0041ce3a
push ecx
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x94]
call fcn.0041f605
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0041cd94
lea ecx, [ebp - 0x94]
call fcn.0041f857
mov dword [ebp - 0x98], ebx
test esi, esi
je 0x41b496
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x98]
push ebx
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00413694
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00415035
push ebx
push 1
lea ecx, [ebp + 0x20]
call fcn.00415035
call fcn.0047a342
ret
Function at 0x41b9e8
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4953ab
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4c6760]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x4c6760]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x41bb9a
lea eax, [esp + 0x10]
push eax
push 0x4ab04c
push 1
push ebx
push 0x4ab33c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41bb9a
cmp dword [esi + 0x14], 8
jb 0x41ba68
mov ecx, dword [esi]
jmp 0x41ba6a
mov ecx, esi
mov eax, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
push esi
mov ecx, edi
call fcn.0041bbc6
test al, al
je 0x41ba98
lea edx, [esi + 0x48]
cmp dword [edx + 0x14], 8
jb 0x41ba8c
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push ebx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x4ab38c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x41bb90
push str.DESKTOP
lea ecx, [esp + 0x1c]
call fcn.00414daf
lea edx, [esp + 0x18]
mov dword [esp + 0xa0], ebx
lea ecx, [esp + 0x78]
call fcn.0043ee80
push 0x4ae3d8
mov edx, eax
mov byte [esp + 0xa4], 1
lea ecx, [esp + 0x4c]
call fcn.00415607
pop ecx
lea ecx, [esi + 0x30]
mov byte [esp + 0xa0], 2
push ecx
mov edx, eax
lea ecx, [esp + 0x64]
call fcn.0041d756
mov byte [esp + 0xa4], 3
lea ecx, [esp + 0x34]
mov edx, eax
mov dword [esp], 0x4aeca0
call fcn.0041d77e
pop ecx
mov edx, eax
mov byte [esp + 0xa0], 4
cmp dword [edx + 0x14], 8
jb 0x41bb32
mov edx, dword [edx]
mov eax, dword [esp + 0x14]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
push ebx
push 1
lea ecx, [esp + 0x38]
call fcn.00415035
push ebx
push 1
lea ecx, [esp + 0x68]
call fcn.00415035
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.00415035
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.00415035
or dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x18]
push ebx
push 1
call fcn.00415035
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00476051
mov esp, ebp
pop ebp
ret 4
Function at 0x41e764
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4c6760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.0041e54c
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x41e789
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x38]
mov ebx, eax
call fcn.0041f857
cmp ebx, 0xffffffff
je 0x41e7a9
test bl, 0x10
jne 0x41e7a9
xor eax, eax
inc eax
jmp 0x41e7ab
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00476051
mov esp, ebp
pop ebp
ret

Function at 0x41e7ba
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4c6760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x38]
push eax
call fcn.0041e54c
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x41e7df
mov eax, dword [eax]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.0041f857
test esi, esi
je 0x41e809
cmp esi, 0xb7
je 0x41e809
cmp esi, 0x50
je 0x41e809
xor al, al
jmp 0x41e80b
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00476051
mov esp, ebp
pop ebp
ret

Function at 0x41f1d2
Capabilities:
Terminate process

Disassembly:
push 0x294
mov eax, 0x495b56
call fcn.0047a393
push 0x104
lea eax, [ebp - 0x218]
xor edi, edi
push eax
mov ebx, edi
push edi
mov dword [ebp - 0x29c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xc
call fcn.00448a20
mov esi, eax
pop ecx
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 4], edi
test esi, esi
je 0x41f244
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x264]
call fcn.0041f6c7
inc ebx
lea eax, [ebp - 0x264]
mov byte [ebp - 4], bl
mov ecx, esi
push eax
mov dword [ebp - 0x29c], ebx
call fcn.0041e47a
mov esi, eax
jmp 0x41f246
mov esi, edi
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x41f25a
lea ecx, [ebp - 0x264]
call fcn.0041f857
lea eax, [ebp - 0x298]
mov ecx, esi
push eax
call fcn.0041e616
push str._test
lea edx, [eax + 0x18]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00415607
pop ecx
lea ecx, [ebp - 0x298]
call fcn.0041f857
test esi, esi
je 0x41f2a0
mov ecx, esi
call fcn.004136d8
push esi
call fcn.00448a4d
pop ecx
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x41f2d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffb
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x41f2de
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4c6760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x20c]
mov esi, edx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41f36d
push 0x3c
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.00478570
and dword [ebp - 0x240], 0
lea eax, [ebp - 0x20c]
add esp, 0xc
mov dword [ebp - 0x248], 0x3c
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x23c], 0x4aef30
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x22c], 1
jb 0x41f358
mov esi, dword [esi]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x234], esi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x41f36f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00476051
mov esp, ebp
pop ebp
ret
Function at 0x43006d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x498851
call fcn.0047a360
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x4ae3dc
mov dword [ebp - 0x14], ebx
call fcn.00414daf
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push pe_nt_image_headers32
movzx ecx, si
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov dword [ebp - 0x18], eax
push ecx
push ecx
push ebx
push eax
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x430133
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00448a52
pop ecx
push edi
mov esi, eax
push esi
push ebx
push dword [ebp - 0x18]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call fcn.00413cf3
mov edi, dword [ebp - 0x10]
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0041521e
push esi
call fcn.00448a4d
pop ecx
jmp 0x430136
mov edi, dword [ebp - 0x10]
mov eax, edi
call fcn.0047a32e
ret