joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405bc0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4258e8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
push edi
mov eax, dword [0x4321e0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0041a210
mov edx, dword [0x433174]
xor eax, eax
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x4c], 1
mov word [esp + 0x50], cx
mov dword [esp + 0xc], edx
mov dword [esp + 0x6c], ecx
cmp dword [esi + 0x18], 8
jb 0x405c3c
mov ecx, dword [esi + 4]
jmp 0x405c3f
lea ecx, [esi + 4]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x405c4c
mov eax, dword [esi]
jmp 0x405c4e
mov eax, esi
push ecx
push eax
push str._s__s
lea edx, [esp + 0x18]
call fcn.004067c0
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x405c69
mov esi, dword [esi]
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405ca6
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
lea edx, [edi - 0xc]
cmp edx, 0x433164
je 0x405cc8
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405cc8
push esi
call fcn.00417bee
add esp, 4
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x64
ret

Function at 0x405ce0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 5
push 0
push 0
push eax
push str.TaskbarPin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x433164
je 0x405d23
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405d23
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.00417bee
pop ecx
ret 4
Function at 0x406a20
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, 1
cmp eax, ebx
jne 0x406a70
mov dword [esi + 0x24], ebx
call fcn.004038c0
push ebx
call fcn.00402f30
add esp, 4
call fcn.00404c10
push esi
call fcn.00404d80
push 0
push 0
push esi
push 0x404620
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], 0
cmp dword [esi + 0x24], 0
je 0x406ac8
mov eax, ebx
pop ebx
ret 0xc
cmp eax, 2
jne 0x406a9a
push esi
mov dword [esi + 0x24], ebx
call fcn.00404d80
push esi
call fcn.00405140
call fcn.004054f0
call fcn.00405780
call fcn.004059a0
call fcn.004034e0
jmp 0x406a5e
cmp eax, 0x113
jne 0x406ab2
mov dword [esi + 0x24], ebx
cmp dword [esp + 0xc], ebx
jne 0x406a5e
push esi
call fcn.00406050
jmp 0x406a5e
cmp eax, 0x11
jne 0x406ac8
push 0
mov dword [esi + 0x24], ebx
call fcn.00402f30
add esp, 4
mov dword [edi], ebx
jmp 0x406a64
xor eax, eax
pop ebx
ret 0xc
Function at 0x40e870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x40e880
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40e890
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40ed90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4321e0]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40ee0a
xor eax, eax
cmp ecx, ebp
je 0x40edf2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x40ee18
cmp ecx, ebp
je 0x40eeab
push ecx
jmp 0x40eea5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x40ee7a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0040ed90
mov ebx, eax
cmp ebx, ebp
jne 0x40eec8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
je 0x40ee40
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40ee8d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.0040ef40
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40eeab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004178c7
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40eed7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40eead
Function at 0x40f9c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x425c40
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4321e0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40fa3f
call fcn.0040e1e0
mov esi, eax
jmp 0x40fb21
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40fa5b
call fcn.0040e1e0
jmp 0x40fb18
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x40fa74
call fcn.0040e1e0
jmp 0x40fb18
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x40faa8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40fa96
lea eax, [ebp]
call fcn.0040e190
lea esi, [ebp - 0x1c]
call fcn.0040e8c0
mov eax, 0x8007000e
jmp 0x40fb33
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0040e1a0
mov dword [ebp - 4], 1
jmp 0x40fad1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40fadf
mov esi, 0x8007000e
jmp 0x40fb1a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40fafd
call fcn.0040e1e0
jmp 0x40fb18
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.0040f870
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40fb31
lea eax, [ebp]
call fcn.0040e190
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004178c7
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40fe10
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x214
mov eax, dword [0x4321e0]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
xor eax, eax
push 0x208
mov esi, ecx
push eax
lea ecx, [esp + 0x16]
push ecx
mov edi, edx
mov dword [esp + 0x14], 0
mov word [esp + 0x18], ax
call fcn.0041a210
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x40fe57
mov edi, dword [edi + 4]
jmp 0x40fe5a
add edi, 4
push edi
push 0x104
lea edx, [esp + 0x14]
push edx
push 0x42bccc
push str.IconFile
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fe95
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x10]
call fcn.00401670
mov ecx, dword [esp + 0x218]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004178c7
add esp, 0x214
ret
Function at 0x4103f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x425580
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4321e0]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4321e0]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov eax, ecx
lea ecx, [eax + 4]
add eax, 0x20
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov ebp, 0x4330ac
mov dword [esp + 0x14], 2
mov edx, dword [esp + 0x1c]
push edx
mov ebx, 0x42bcd4
lea esi, [esp + 0x40]
call fcn.00401bc0
lea ecx, [ebp - 0x1c]
push ecx
xor esi, esi
push eax
lea edi, [esp + 0x80]
mov dword [esp + 0xa8], esi
call fcn.00410860
add esp, 0xc
mov byte [esp + 0x9c], 2
cmp dword [esp + 0x54], 8
jb 0x410491
mov edx, dword [esp + 0x40]
push edx
call fcn.004178bc
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x50], esi
xor eax, eax
push ecx
mov ebx, 0x42bcd4
lea esi, [esp + 0x24]
mov dword [esp + 0x58], 7
mov word [esp + 0x44], ax
call fcn.00401bc0
push ebp
push eax
lea edi, [esp + 0x64]
mov byte [esp + 0xa8], 3
call fcn.00410860
add esp, 0xc
mov byte [esp + 0x9c], 5
cmp dword [esp + 0x38], 8
jb 0x4104e9
mov edx, dword [esp + 0x24]
push edx
call fcn.004178bc
add esp, 4
xor eax, eax
xor esi, esi
lea ecx, [ebp + 0x1c]
lea edi, [esp + 0x58]
lea ebx, [esp + 0x74]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], esi
mov word [esp + 0x24], ax
call fcn.004105c0
lea edi, [esi + 8]
test al, al
je 0x410537
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], edi
jae 0x410526
lea eax, [esp + 0x78]
push 5
push esi
push esi
push eax
push str.StartPin
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x70], edi
jb 0x41054a
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004178bc
add esp, 4
xor edx, edx
mov dword [esp + 0x9c], 0xffffffff
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], esi
mov word [esp + 0x5c], dx
cmp dword [esp + 0x8c], edi
jb 0x41057e
mov eax, dword [esp + 0x78]
push eax
call fcn.004178bc
add esp, 4
add ebp, 0x54
sub dword [esp + 0x14], 1
jne 0x410445
mov al, 1
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.004178c7
add esp, 0x8c
ret
Function at 0x4105c0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x4253d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4321e0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
push esi
mov eax, dword [0x4321e0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor ebp, ebp
push ebp
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0xc]
push eax
push 0x42a078
push 1
push ebp
push 0x42a088
mov dword [esp + 0x20], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4106f6
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], ebp
mov ecx, dword [eax]
push 0x42a098
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebp
jne 0x4106f6
lea ecx, [esp + 0x14]
call fcn.00410730
mov dword [esp + 0x3c], ebp
mov ecx, dword [esp + 0x18]
mov ebp, 8
cmp dword [esp + 0x2c], ebp
jae 0x410660
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x50]
call eax
cmp dword [esi + 0x18], ebp
jb 0x410677
mov esi, dword [esi + 4]
jmp 0x41067a
add esi, 4
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push esi
push eax
call edx
cmp dword [edi + 0x18], ebp
jb 0x410691
mov ecx, dword [edi + 4]
jmp 0x410694
lea ecx, [edi + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push 0
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
cmp dword [ebx + 0x18], ebp
jb 0x4106ad
mov ecx, dword [ebx + 4]
jmp 0x4106b0
lea ecx, [ebx + 4]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 1
push ecx
push eax
mov eax, dword [edx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
je 0x4106fa
cmp dword [esp + 0x2c], ebp
jb 0x4106f6
mov eax, dword [esp + 0x18]
push eax
call fcn.004178bc
add esp, 4
xor al, al
jmp 0x41070f
cmp dword [esp + 0x2c], ebp
jb 0x41070d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004178bc
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004178c7
add esp, 0x34
ret
Function at 0x410730
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4321e0]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
lea eax, [esp + 8]
push eax
push 1
xor edi, edi
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE_
mov dword [esp + 0x1c], edi
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x410789
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], cx
push edi
mov eax, 0x42bccc
jmp 0x410834
push 0x206
lea eax, [esp + 0x1a]
xor edx, edx
push edi
push eax
mov word [esp + 0x20], dx
call fcn.0041a210
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push edi
push edi
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4107f6
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], ax
push edi
mov eax, 0x42bccc
jmp 0x410834
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
lea eax, [esp + 0x14]
mov word [esi + 4], dx
lea edx, [eax + 2]
jmp 0x410820
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x410820
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.00401670
mov ecx, dword [esp + 0x21c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004178c7
add esp, 0x218
ret
Function at 0x410950
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x425540
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4321e0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x44], 0
cmp ebp, 0xffffffff
je 0x410aa7
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004124a0
add esp, 4
test eax, eax
jne 0x410aa0
mov edx, dword [esp + 0x50]
mov ebx, dword [edx + 0x20]
lea eax, [esp + 0x20]
push eax
mov edi, 0x1000
call fcn.00402550
mov byte [esp + 0x44], 1
xor edi, edi
mov eax, ebx
mov esi, 0x1000
sub eax, edi
cmp eax, esi
jae 0x4109e9
mov esi, eax
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
jne 0x4109f8
call fcn.00417ea4
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
push edx
mov ecx, esi
call fcn.00412670
add esp, 4
cmp eax, esi
jne 0x410a8e
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
jne 0x410a1e
call fcn.00417ea4
mov edx, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410a8e
add edi, esi
cmp edi, ebx
jne 0x4109da
mov edi, dword [esp + 0x4c]
call fcn.004128f0
mov eax, dword [esp + 0x2c]
xor esi, esi
cmp eax, esi
je 0x410a58
push eax
call fcn.004178bc
add esp, 4
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.004178bc
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov edi, dword [esp + 0x4c]
call fcn.004128f0
lea esi, [esp + 0x20]
call fcn.004025c0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x411000
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push edi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x41101a
pop edi
xor al, al
pop esi
pop ecx
ret
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x411081
mov eax, dword [esp + 0x14]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x411081
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41107a
cmp dword [esp + 0xc], edi
jne 0x41107a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov al, 1
pop esi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x417716
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x434038], 0
push esi
jne 0x417689
call fcn.004175af
test eax, eax
je 0x4176cc
mov eax, dword [0x434038]
cmp eax, 1
jne 0x4176aa
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4176cc
pop esi
ret
push eax
call dword [0x434040]
test eax, eax
jne 0x417714
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 0x4176d0
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x434038]
call dword [0x434040]
mov edi, eax
test edi, edi
je 0x4176f5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x417711
mov edi, esi
add esi, 0xff0
push edi
push dword [0x434038]
call dword [0x43403c]
add edi, 0x10
cmp edi, esi
jb 0x4176fd
mov eax, edi
pop edi
pop esi
ret
jmp 0x417676

Function at 0x4178c7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4321e0]
jne 0x4178d1
repz ret
jmp fcn.0041a47c

Function at 0x422a64
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.0041ad09
and dword [ebp - 4], 0
cmp dword [0x434b74], 0
mov ebx, eax
jne 0x422b15
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422bc6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x422bc6
push eax
call fcn.0041ac97
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434b74], eax
call esi
push eax
call fcn.0041ac97
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x434b78], eax
call esi
push eax
call fcn.0041ac97
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x434b7c], eax
call esi
push eax
call fcn.0041ac97
pop ecx
mov dword [0x434b84], eax
test eax, eax
je 0x422b15
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041ac97
pop ecx
mov dword [0x434b80], eax
mov eax, dword [0x434b80]
cmp eax, ebx
je 0x422b6d
cmp dword [0x434b84], ebx
je 0x422b6d
push eax
call fcn.0041ad12
push dword [0x434b84]
mov esi, eax
call fcn.0041ad12
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422b6d
test edi, edi
je 0x422b6d
call esi
test eax, eax
je 0x422b64
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422b64
test byte [ebp - 0xc], 1
jne 0x422b6d
or dword [ebp + 0x10], 0x200000
jmp 0x422ba6
mov eax, dword [0x434b78]
cmp eax, ebx
je 0x422ba6
push eax
call fcn.0041ad12
pop ecx
test eax, eax
je 0x422ba6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422ba6
mov eax, dword [0x434b7c]
cmp eax, ebx
je 0x422ba6
push eax
call fcn.0041ad12
pop ecx
test eax, eax
je 0x422ba6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434b74]
call fcn.0041ad12
pop ecx
test eax, eax
je 0x422bc6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422bc8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10012dd
Capabilities:
Terminate process

Disassembly:
call fcn.010011e4
push 0x5c
push 0x10013f8
call fcn.010019ac
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1003064
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x1001ace
xor esi, esi
inc esi
mov eax, dword [0x1003060]
cmp eax, esi
je 0x1001aed
mov eax, dword [0x1003060]
test eax, eax
jne 0x100142d
mov dword [0x1003060], esi
push 0x10013f4
push 0x10013e8
call fcn.0100160f
pop ecx
pop ecx
test eax, eax
jne 0x1001b78
mov eax, dword [0x1003060]
cmp eax, esi
jne 0x1001390
push 0x10013e4
push 0x10013dc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003060], 2
cmp dword [ebp - 0x20], ebx
jne 0x100139d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10033a8], ebx
jne 0x1001afa
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1001b78
mov eax, dword [eax]
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
jbe 0x1001633
cmp cx, 0x22
je 0x1001420
inc eax
inc eax
jmp 0x10013c0
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x10013d6
mov dword [0x10033ac], esi
jmp 0x100136c
cmp cx, bx
je 0x1001641
cmp dword [ebp - 0x1c], ebx
jne 0x10013d0
movzx ecx, word [eax]
cmp cx, bx
je 0x1001656
cmp cx, 0x20
ja 0x1001656
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1001641
test byte [ebp - 0x40], 1
jne 0x1001b1c
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.0100144f
mov dword [0x1003054], eax
cmp dword [0x1003048], ebx
jne 0x1001b55
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, esi
jne 0x1001add
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001333
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100131f
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100136c
push 0x10033a8
call fcn.01001d6a
pop ecx
test eax, eax
je 0x10013a9
push ebx
push 2
push ebx
call dword [0x10033a8]
jmp 0x10013a9
movzx ecx, word [ebp - 0x3c]
jmp 0x1001663
cmp dword [0x10033ac], ebx
jne 0x1001b63
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003054]
jmp 0x1001b84
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001692
ret