joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408916
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x43f5f0]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x43f5f4], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x408978
mov ecx, dword [0x4365bc]
call fcn.0040c63a
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41a684
push 0
push 0xc2
push edi
call esi
mov byte [0x43f5f4], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x4089c8
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x408a12
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x41a758
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x408e63
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040d4c0
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x408e7e
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x408e88
mov byte [eax], 0
test edi, edi
je 0x408f31
movzx eax, word [edi]
test ax, ax
je 0x408f31
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x408ec1
cmp dword [ebp + 0xc], 0
je 0x408ecd
test esi, esi
jne 0x408ecd
test ebx, ebx
je 0x408ebd
mov byte [ebx], 1
mov esi, edx
jmp 0x408edc
cmp ax, 0xd
je 0x408eef
cmp ax, 0xa
je 0x408ef1
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x408ee7
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x408ea1
jmp 0x408ef1
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x408ef1
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x408f2c
mov word [ebx], ax
test esi, esi
je 0x408f2c
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040b6d0
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x408f33
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x408f78
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040d4c0
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d27c
cmp byte [0x43f5f5], 0
jne 0x40900d
push 6
push dword [0x41f028]
lea eax, [ebp - 0x1020]
push eax
call fcn.0040632d
push eax
call fcn.0040c114
test eax, eax
jne 0x40900d
push 0x41a440
call fcn.0040d269
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d44a
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x101e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040d3d0
add esp, 0x10
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40916e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040d4c0
push ebx
xor ebx, ebx
cmp byte [0x43f638], bl
je 0x4091f3
cmp word [0x4365c0], bx
je 0x4091f3
push esi
push 0x4365c0
lea esi, [ebp - 0x1008]
call fcn.00409131
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x4091f3
push dword [ebp + 8]
call fcn.0040d44a
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x4091f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040d4c0
cmp byte [0x43f638], 0
je 0x40929f
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x200c]
call fcn.00409131
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40929f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409296
shr dword [ebp - 4], 1
mov eax, 0x7ff
cmp dword [ebp - 4], eax
jae 0x40927a
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040b6d0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x409d40
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x43f5de], 0
mov eax, dword [ebp + 0xc]
mov dword [0x43f5d0], eax
mov eax, dword [ebp + 0x10]
mov dword [0x43f5d4], eax
mov eax, dword [ebp + 0x14]
mov dword [0x43f5c8], eax
je 0x409d70
xor eax, eax
inc eax
jmp 0x409d99
cmp byte [0x43f5df], 0
je 0x409d7e
push 2
pop eax
jmp 0x409d99
push dword [ebp + 8]
push 0x40955b
push dword [0x43f5f0]
push str.REPLACEFILEDLG
push dword [0x43f5cc]
call esi
dec eax
je 0x409deb
dec eax
je 0x409dfd
dec eax
je 0x409de4
dec eax
jne 0x409dc8
push dword [ebp + 8]
push 0x408a6c
push dword [0x43f5f0]
push str.RENAMEDLG
push dword [0x43f5cc]
call esi
test eax, eax
je 0x409d4a
mov al, 0x52
jmp 0x409df8
dec eax
je 0x409dd9
dec eax
mov al, 0x4e
jne 0x409df8
mov byte [0x43f5df], 1
jmp 0x409df8
mov byte [0x43f5e2], 1
mov al, 0x43
jmp 0x409df8
mov byte [0x43f5de], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x409df8
Function at 0x40bb47
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x434514]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x44cd08]
mov ecx, dword [0x43451c]
mov dword [0x434514], eax
movzx eax, al
add eax, dword [0x434518]
imul eax, eax, 0x8088405
inc eax
mov dword [0x434518], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cd08]
mov eax, dword [esp + 4]
mov dword [0x43451c], ecx
ret 4

Function at 0x40bbe4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040bba1
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040dbf0
add esp, 0xc
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040bb27
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040bb47
inc esi
cmp esi, 0xc
jl 0x40bc06
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x4233b0]
test byte [eax + 0x40], 2
movzx eax, byte [0x43342f]
jne 0x40bc41
movzx eax, byte [0x433437]
movzx ecx, cx
cmp ecx, eax
je 0x40bc4d
or eax, 0xffffffff
jmp 0x40bc92
mov ecx, dword [0x4333c8]
mov eax, ecx
cdq
cmp edx, dword [0x42218c]
push edi
jl 0x40bc6f
mov edx, dword [0x422188]
jg 0x40bc6b
cmp eax, edx
jbe 0x40bc6f
mov edi, edx
jmp 0x40bc71
mov edi, ecx
mov esi, dword [0x4333c0]
jmp 0x40bc8b
dec edi
call fcn.0040bb27
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040bb47
inc esi
test edi, edi
jne 0x40bc79
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40c651
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
jl 0x40c683
cmp dword [ebp - 4], edi
jne 0x40c6c4
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x40c6c4
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40c670
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40c670
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x40c71a
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41ae30
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x40c711
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x40c708
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x40ced8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x21], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.0040ce71
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x40cf3f
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0xc], edi
jne 0x40cfc1
cmp dword [ebp + 0xc], edi
je 0x40cfe4
cmp dword [esi + 0x14], edi
jne 0x40cfe4
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x40cfe4
push eax
mov ecx, esi
call fcn.0040cb4c
mov esi, eax
cmp esi, edi
je 0x40cfe4
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040d4eb
pop ecx
jmp 0x40cfe4
cmp eax, edi
je 0x40cfd7
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x1c], 0x64
jbe 0x40cfe4
mov ecx, esi
call fcn.0040c856
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40d191
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x41ae20
push 1
xor ebx, ebx
push ebx
push 0x41aed0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d262
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41aec0
push eax
call dword [ecx]
test eax, eax
jl 0x40d259
cmp byte [ebp + 8], bl
je 0x40d1e4
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40d201
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x40d213
push 0x41a684
jmp 0x40d216
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40d22b
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40d23c
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40d250
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x40d27c
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x4125c5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f3dc]
jne 0x4125cf
repz ret
jmp fcn.004166f5
Function at 0x417d37
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.00412646
and dword [ebp - 4], 0
cmp dword [0x44dbec], 0
mov ebx, eax
jne 0x417de8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417e99
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x417e99
push eax
call fcn.004125d4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44dbec], eax
call esi
push eax
call fcn.004125d4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44dbf0], eax
call esi
push eax
call fcn.004125d4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44dbf4], eax
call esi
push eax
call fcn.004125d4
pop ecx
mov dword [0x44dbfc], eax
test eax, eax
je 0x417de8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004125d4
pop ecx
mov dword [0x44dbf8], eax
mov eax, dword [0x44dbf8]
cmp eax, ebx
je 0x417e40
cmp dword [0x44dbfc], ebx
je 0x417e40
push eax
call fcn.0041264f
push dword [0x44dbfc]
mov esi, eax
call fcn.0041264f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x417e40
test edi, edi
je 0x417e40
call esi
test eax, eax
je 0x417e37
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x417e37
test byte [ebp - 0xc], 1
jne 0x417e40
or dword [ebp + 0x10], 0x200000
jmp 0x417e79
mov eax, dword [0x44dbf0]
cmp eax, ebx
je 0x417e79
push eax
call fcn.0041264f
pop ecx
test eax, eax
je 0x417e79
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x417e79
mov eax, dword [0x44dbf4]
cmp eax, ebx
je 0x417e79
push eax
call fcn.0041264f
pop ecx
test eax, eax
je 0x417e79
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44dbec]
call fcn.0041264f
pop ecx
test eax, eax
je 0x417e99
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417e9b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3000607d
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x300080b4]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.3000607d
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [0x300080b4]
jne 0x30005f68
ret

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 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 0x4046b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406568
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x409008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4046e6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404796
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004049a0
test al, al
je 0x40473f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x404782
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404778
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404778
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00404adf
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
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.00404a9e
mov esp, ebp
pop ebp
ret

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 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 0x4026d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x426c0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
push 0x19
mov esi, ecx
push 0x19
lea ecx, [esp + 0x10]
call dword [0x42cd08]
mov edi, dword [esp + 0x24]
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call dword [0x42cd0c]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x28]
call dword [0x42cd44]
mov ecx, dword [esi + 0x30]
push eax
mov byte [esp + 0x20], 1
call dword [0x42cd48]
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call dword [0x42cd4c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call dword [0x42cd10]
mov ecx, dword [esi + 0x34]
push eax
mov byte [esp + 0x20], 2
call dword [0x42cd14]
mov edx, dword [esp + 0x24]
pop edi
mov byte [esp + 0x18], 0
or eax, 0xffffffff
pop esi
lock xadd dword [edx], eax
jne 0x40277c
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x42c538]
add esp, 4
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call dword [0x42ce80]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4029b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x426c29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
call fcn.004025f0
movzx eax, byte [eax + 0xc]
mov edi, dword [0x42ccf0]
mov byte [esp + 0xc], al
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x18]
call edi
call fcn.004025f0
mov dl, byte [eax + 0xe]
mov ecx, dword [esi + 0x1c]
mov byte [esp + 0xc], dl
mov eax, dword [esp + 0xc]
push eax
call edi
call fcn.004025f0
mov eax, dword [eax + 0x10]
mov ecx, dword [esi + 0x20]
mov ebx, dword [0x42ccf4]
push eax
call ebx
call fcn.004025f0
mov eax, dword [eax + 0x18]
mov ecx, dword [esi + 0x28]
push eax
call ebx
call fcn.004025f0
mov eax, dword [eax + 0x30]
mov ecx, dword [esi + 0x2c]
push eax
call dword [0x42ccf8]
call fcn.004025f0
mov cl, byte [eax + 0x34]
mov byte [esp + 0xc], cl
mov edx, dword [esp + 0xc]
mov ecx, dword [esi + 0x40]
push edx
call edi
call fcn.004025f0
movzx eax, byte [eax + 0x35]
mov byte [esp + 0xc], al
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x44]
call edi
call fcn.004025f0
mov eax, dword [eax + 0x38]
push 0xa
push eax
lea edx, [esp + 0x14]
push edx
call dword [0x42c4a8]
add esp, 0xc
mov ecx, dword [esi + 0x48]
push eax
mov dword [esp + 0x2c], 0
call dword [0x42cd00]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x402aaf
mov edx, dword [esp + 0xc]
push edx
call dword [0x42c538]
add esp, 4
call fcn.004025f0
mov eax, dword [eax + 0x38]
mov ecx, dword [esi + 0x4c]
push eax
call dword [0x42ccfc]
call fcn.004025f0
mov ecx, dword [eax + 0x20]
add eax, 0x20
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov dx, word [eax + 0xc]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov word [esp + 0x20], dx
call fcn.004026d0
call fcn.004025f0
mov cl, byte [eax + 0x1c]
mov byte [esp + 0xc], cl
mov ebx, dword [esp + 0xc]
mov ecx, dword [esi + 0x38]
push ebx
call edi
mov ecx, dword [esi + 0x3c]
mov edi, dword [0x42cd04]
push ebx
call edi
mov ecx, dword [esi + 0x30]
push ebx
call edi
mov ecx, dword [esi + 0x34]
push ebx
call edi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret