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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4b2d30
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b2f20
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov word [0x4bbf88], 0
mov edx, dword [0x4bbf7c]
mov eax, dword [ebp - 4]
call fcn.004b2624
cmp al, 1
jne 0x4b2d73
mov eax, dword [ebp - 4]
call fcn.004b29f8
cmp word [0x4bbf88], 0
je 0x4b2f05
xor eax, eax
push ebp
push 0x4b2efb
push dword fs:[eax]
mov dword fs:[eax], esp
mov si, 1
lea eax, [ebp - 0xc]
push eax
mov cx, 0x12
mov dx, 4
mov eax, dword [ebp - 4]
call fcn.004b1bf4
push 0
push 0x4b2f3c
lea edx, [ebp - 0x14]
movzx edi, si
mov eax, edi
call fcn.004092a4
push dword [ebp - 0x14]
push 0x4b2f6c
push dword [ebp - 0xc]
push 0x4b2f78
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00404c1c
mov eax, dword [ebp - 0x10]
call fcn.00404d5c
push eax
call sub.kernel32.dll_WinExec
xor ecx, ecx
mov dl, 1
mov eax, dword [0x48fdf0]
call fcn.0049c888
mov ebx, eax
mov eax, dword [0x4bbf74]
mov edx, dword [eax + 0x330]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x26c]
mov eax, ebx
call fcn.00488550
mov eax, ebx
call fcn.0049ca0c
mov edx, dword [eax]
call dword [edx + 0x44]
push 0x4b2f88
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004b19f4
push dword [ebp - 0x1c]
push 0x4b2fa8
lea edx, [ebp - 0x20]
mov eax, edi
call fcn.004092a4
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404c1c
mov eax, dword [ebp - 0x18]
push eax
mov eax, ebx
call fcn.0049ca0c
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.0049ad70
mov eax, ebx
call fcn.0049c934
mov eax, ebx
call fcn.00488550
mov eax, ebx
call fcn.0049ca0c
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, ebx
call fcn.0049ca0c
mov edx, 0x4b2fbc
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.0049ad70
mov eax, ebx
call fcn.00488544
mov edx, 0x4b2ff4
mov eax, ebx
call fcn.00489554
mov edx, dword [eax]
call dword [edx + 0x58]
lea edx, [ebp - 0x24]
call fcn.004092a4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.0044056c
mov eax, ebx
call fcn.00403a00
push 0x7c3
call sub.kernel32.dll_Sleep_1
mov byte [ebp - 5], 1
inc esi
cmp si, 4
jne 0x4b2d93
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b2f05
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2f27
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.004048c0
ret
Function at 0x4010b4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010c6
mov eax, dword [0x40d09f]
shl eax, 2
mov dword [0x40d0a3], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
mov edx, eax
call fcn.004034dc
pop edx
call fcn.00401b20
call fcn.004034e0
push 0
call fcn.004046b4
pop ecx
push 0x40d048
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
mov dword [0x40d0a7], eax
push 0
jmp fcn.0040a894

Function at 0x401204
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push dword [ebp - 8]
push dword [ebp - 0xc]
call sub.SHELL32.DLL_SHGetPathFromIDListW
mov esp, ebp
pop ebp
ret

Function at 0x401230
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
push esi
push edi
mov dword [ebp - 0x28], eax
mov eax, 0x40dc20
call fcn.00403d14
push 0
call sub.OLE32.DLL_CoInitialize
test eax, eax
jl 0x40136c
lea edx, [ebp - 0x2c]
push edx
push 0x40dc80
push 1
push 0
push 0x40dc90
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x401367
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x50]
mov edx, dword [ebp - 0x28]
add edx, 0x410
push edx
call fcn.00403ab0
pop ecx
test eax, eax
je 0x4012a9
mov ecx, dword [ebp - 0x28]
add ecx, 0x410
push ecx
mov eax, dword [ebp - 0x2c]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0x28]
add ecx, 0x618
push ecx
call fcn.00403ab0
pop ecx
test eax, eax
je 0x4012d3
push 0
mov eax, dword [ebp - 0x28]
add eax, 0x618
push eax
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x44]
jmp 0x401320
mov esi, 0x40d0c8
lea edi, [ebp - 0x238]
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x238]
mov eax, 0x25
call fcn.00401204
push str.SHELL32.dll
push 0x104
lea ecx, [ebp - 0x238]
push ecx
call fcn.00403bf8
add esp, 0xc
push 0xd
lea eax, [ebp - 0x238]
push eax
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x44]
push 5
mov eax, dword [ebp - 0x2c]
push eax
mov edx, dword [eax]
call dword [edx + 0x3c]
lea ecx, [ebp - 0x30]
push ecx
push 0x40dca0
mov eax, dword [ebp - 0x2c]
push eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
jl 0x40135e
push 1
mov ecx, dword [ebp - 0x28]
add ecx, 0x208
push ecx
mov eax, dword [ebp - 0x30]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
mov ecx, dword [ebp - 0x30]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
call sub.OLE32.DLL_CoUninitialize
mov eax, dword [ebp - 0x24]
mov dword fs:[0], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40137c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9c4
push esi
push edi
mov eax, 0x40dc38
call fcn.00403d14
mov esi, 0x40d2d0
lea edi, [ebp - 0x138]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, 0x40d3d4
lea edi, [ebp - 0x23c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
push 0x104
lea eax, [ebp - 0x138]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
lea edx, [ebp - 0x138]
push edx
push 0x104
lea ecx, [ebp - 0x23c]
push ecx
call fcn.004038bc
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
call fcn.0040397c
pop ecx
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
dec edx
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
jle 0x401424
mov ecx, dword [ebp - 0x2c]
movsx eax, byte [ebp + ecx - 0x23c]
cmp eax, 0x5c
je 0x401424
mov edx, dword [ebp - 0x2c]
mov byte [ebp + edx - 0x23c], 0
dec dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0
jg 0x401400
push str.ks.bat
push 0x104
lea ecx, [ebp - 0x23c]
push ecx
call fcn.004037e0
add esp, 0xc
mov esi, 0x40d4d8
lea edi, [ebp - 0x63c]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
push 0x40db01
lea eax, [ebp - 0x23c]
push eax
call fcn.004052fc
add esp, 8
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x138]
push ecx
lea eax, [ebp - 0x138]
push eax
push str._echo_off_r_n:Redo_r_ndel___s__r_nif_exist___s__goto_Redo_r_ndel___s__r_n
push 0x400
lea edx, [ebp - 0x63c]
push edx
call fcn.00405c7c
add esp, 0x18
lea ecx, [ebp - 0x63c]
push ecx
call fcn.0040397c
pop ecx
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
push 1
push dword [ebp - 0x34]
lea eax, [ebp - 0x63c]
push eax
call fcn.0040555c
add esp, 0x10
push dword [ebp - 0x30]
call fcn.00404f34
pop ecx
push 0
push 0
push 0
lea edx, [ebp - 0x23c]
push edx
push str.open
push 0
call sub.SHELL32.DLL_ShellExecuteA
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4014f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
push str.FILE
push str.RESFILE
push 0
call sub.KERNEL32.DLL_FindResourceW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401585
push dword [ebp - 0xc]
push 0
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401585
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
push 0
call sub.KERNEL32.DLL_SizeofResource
mov dword [ebp - 0x18], eax
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x401585
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_WriteFile
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_CloseHandle
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x40249c
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
call fcn.00402468
push str.LocalFastMM_PID________
push 0
push 4
call sub.KERNEL32.DLL_OpenFileMappingA
mov ebx, eax
test ebx, ebx
jne 0x4024bc
xor eax, eax
pop esi
pop ebx
ret
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.DLL_MapViewOfFile
mov esi, dword [eax]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
pop esi
pop ebx
ret

Function at 0x402548
Capabilities:
Read file via mapping

Disassembly:
push ebx
call fcn.00401b3c
test eax, eax
jne 0x4025a5
cmp dword [0x412d84], 0
jne 0x4025a5
call fcn.0040249c
test eax, eax
jne 0x4025a1
push str.LocalFastMM_PID________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
push 0
push 0
push 0
mov ebx, eax
push 2
push ebx
mov dword [0x412d84], ebx
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [eax], fcn.00402b5e
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
mov eax, 1
pop ebx
ret
xor eax, eax
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x40495c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x404978
call fcn.00405a28
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x404997
test bl, 1
je 0x404997
call fcn.0040973c
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x404ae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004055a4
test byte [ebp + 0xd], 0xc0
jne 0x404b04
mov eax, dword [0x40f044]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x404b11
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x404b3e
je 0x404b50
sub ecx, 0x100
je 0x404b62
sub ecx, 0x100
je 0x404b6b
sub ecx, 0x100
je 0x404b59
jmp 0x404b74
sub ecx, 0x600
je 0x404b6b
sub ecx, 0x100
je 0x404b50
jmp 0x404b74
mov dword [ebp - 8], 1
jmp 0x404b7b
mov dword [ebp - 8], 2
jmp 0x404b7b
mov dword [ebp - 8], 4
jmp 0x404b7b
mov dword [ebp - 8], 5
jmp 0x404b7b
mov dword [ebp - 8], 3
test byte [ebp + 0xd], 1
je 0x404ba2
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x40eabc]
test al, 0x80
je 0x404b9b
mov ebx, 0x80
jmp 0x404bb4
mov ebx, 1
jmp 0x404bb4
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x404bb4
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x404bc6
je 0x404bcf
dec eax
je 0x404bd8
jmp 0x404be1
mov dword [ebp - 4], 0x80000000
jmp 0x404bf0
mov dword [ebp - 4], 0x40000000
jmp 0x404bf0
mov dword [ebp - 4], 0xc0000000
jmp 0x404bf0
push 1
call fcn.004059bc
pop ecx
mov ebx, eax
jmp 0x404cf0
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x404c0c
sub eax, 0x10
je 0x404c10
sub eax, 0x10
je 0x404c17
sub eax, 0x10
je 0x404c1e
jmp 0x404c1e
xor edi, edi
jmp 0x404c23
mov edi, 1
jmp 0x404c23
mov edi, 2
jmp 0x404c23
mov edi, 3
test byte [ebp + 0xc], 4
je 0x404c3b
cmp dword [ebp - 4], 0x80000000
jne 0x404c39
mov edi, 1
jmp 0x404c3b
xor edi, edi
mov dword [ebp - 0x14], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
and edx, 0x80
cmp edx, 1
sbb ecx, ecx
neg ecx
mov dword [ebp - 0xc], ecx
push 0
push ebx
mov ecx, dword [ebp - 8]
push ecx
lea eax, [ebp - 0x14]
push eax
push edi
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x404ca9
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x404c9e
test byte [ebp + 0xd], 1
je 0x404c99
mov ebx, 0x50
jmp 0x404c9e
mov ebx, 2
push ebx
call fcn.004059bc
pop ecx
mov ebx, eax
jmp 0x404cf0
mov edi, esi
push edi
call fcn.00404a44
pop ecx
test eax, eax
je 0x404cbd
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x404cc9
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004056e4
add esp, 8
mov ebx, eax
inc eax
jne 0x404cf0
push 4
call fcn.004059bc
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004055d8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4096d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x4096fd
jmp 0x409734
call fcn.00409680
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0040397c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0040397c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4097b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x40ff18], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x409892
cmp dword [0x40ff14], 0
jne 0x409892
cmp dword [0x41013c], 0
je 0x40984c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00409528
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409832
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00409528
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409832
lea ebx, [ebp - 0x84]
jmp 0x409833
inc ebx
call fcn.00409770
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4098cd
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40ff1c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0040397c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40ff1f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4098cd
cmp dword [0x40ff14], 0
je 0x4098ac
cmp dword [0x40ff14], 0xffffffff
je 0x4098cd
push esi
call dword [0x40ff14]
pop ecx
mov eax, dword [0x40ff18]
test eax, eax
je 0x4098cd
cmp dword [0x40ff18], 0xffffffff
je 0x4098cd
cmp byte [eax], 0
je 0x4098cd
push esi
push eax
call fcn.004096d0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x968870
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x39c000]
push edi
or ebp, 0xffffffff
jmp 0x968892
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x968899
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x968888
mov eax, 1
add ebx, ebx
jne 0x9688ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9688bc
jne 0x9688db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9688db
dec eax
add ebx, ebx
jne 0x9688c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x9688a0
add ebx, ebx
jne 0x9688d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x96892d
xor ecx, ecx
sub eax, 3
jb 0x9688f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x968962
sar eax, 1
mov ebp, eax
jmp 0x9688fe
add ebx, ebx
jne 0x9688fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9688cc
inc ecx
add ebx, ebx
jne 0x96890c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9688cc
add ebx, ebx
jne 0x968919
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x96890e
jne 0x96892a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x96890e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x96894c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x96893e
jmp 0x96888e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x96894c
add edi, ecx
jmp 0x96888e
pop esi
mov edi, esi
mov ecx, 0x11299
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x96896a
cmp byte [edi], 0x67
jne 0x96896a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x96896f
lea edi, [esi + 0x564000]
mov eax, dword [edi]
or eax, eax
je 0x9689e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x56a92c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x56aaf4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x96899c
mov ecx, edi
jns 0x9689cb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x56aafc]
or eax, eax
je 0x9689e1
mov dword [ebx], eax
add ebx, 4
jmp 0x9689b9
call dword [esi + 0x56aaf8]
mov ebp, dword [esi + 0x56ab00]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x968a1b
sub esp, 0xffffff80
jmp 0x6e3323

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
push 0x208
push 0
mov edx, dword [ebp - 0xc]
add edx, 4
push edx
call fcn.00409080
add esp, 0xc
push 0x103
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
call fcn.00406700
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
cmp dword [ebp + 0x10], 0
je 0x4025d4
lea edx, [ebp - 8]
push edx
push 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4025d4
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.004026a0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x207
push 0x208
push 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
add ecx, 8
push ecx
call fcn.00409080
add esp, 0xc
mov dword [ebp - 4], 1
lea edx, [ebp - 8]
push edx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
add ecx, 8
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx]
add eax, 8
mov esp, ebp
pop ebp
ret

Function at 0x4026a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00408e2d
add esp, 4
shl eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0
mov edx, dword [ebp - 4]
add edx, 4
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 4
Function at 0x4052a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x423160]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x3c], 0
je 0x4052e0
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x4052ec
mov al, 1
jmp 0x40548f
mov dword [ebp - 0x10], 8
call fcn.00401210
push eax
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00401210
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004011f0
add esp, 8
movzx eax, al
test eax, eax
je 0x40532f
xor al, al
jmp 0x40548f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00404040
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.00404290
mov ecx, eax
call fcn.00405710
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00402830
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.00404290
mov ecx, eax
call fcn.00405710
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x3c]
call fcn.00406020
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4053aa
cmp dword [ebp - 0x6c], 1
je 0x4053b1
cmp dword [ebp - 0x6c], 3
je 0x40544b
jmp 0x405463
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00404290
mov ecx, eax
call fcn.00405710
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x405414
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.00404290
mov ecx, eax
call fcn.00405710
push eax
call fcn.00409259
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x405414
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004027f0
mov al, byte [ebp - 0x61]
jmp 0x40548f
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x405437
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004027f0
mov al, byte [ebp - 0x62]
jmp 0x40548f
cmp dword [ebp - 0x38], 0
jne 0x405449
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00404080
jmp 0x40547b
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004027f0
mov al, byte [ebp - 0x63]
jmp 0x40548f
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004027f0
mov al, byte [ebp - 0x64]
jmp 0x40548f
jmp 0x405342
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004089b1
mov esp, ebp
pop ebp
ret

Function at 0x4089b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423160]
jne 0x4089bb
repz ret
jmp fcn.0040d819