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

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x413464]
mov eax, dword [0x412450]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40b100
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x413480]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x40b100
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x40afa4
xor eax, eax
jmp 0x40b114
test al, 0x20
je 0x40afb5
push 2
push edi
push edi
push ecx
call fcn.0040db25
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40b08a
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x40b0d1
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x40b017
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40b008
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40afea
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b057
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40b063
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x40afde
jmp 0x40b065
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x40b0fb
cmp dword [ebp + 0x3a4], edi
je 0x40b0d1
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x40b0c3
mov dword [0x412fb8], eax
jmp 0x40b107
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b0b5
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40b065
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40b065
push dword [ebp + 0x3a4]
call fcn.0040ad11
pop ecx
jmp 0x40b111
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40b0e9
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40af9d
mov dword [0x412fb4], 0x1c
mov dword [0x412fb8], edi
jmp 0x40b111
sub eax, dword [ebp - 0x7c]
jmp 0x40b114
and dword [0x412fb8], 0
mov dword [0x412fb4], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00404b1b
add ebp, 0x39c
leave
ret
Function at 0x40b2de
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004098e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b379
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x412fc0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40b379
cmp eax, 1
je 0x40b39a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b379
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40b346
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40b375
xor eax, eax
inc eax
jmp 0x40b3b9
cmp edi, eax
jae 0x40b37d
xor eax, eax
jmp 0x40b3b9
cmp eax, esi
jae 0x40b384
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x412fc0]
jmp 0x40b39d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b3c1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x413464]
push edi
jae 0x40b596
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x413480]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x40b596
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x40b46c
test dl, 2
jne 0x40b46c
test dl, 0x48
je 0x40b436
cmp byte [eax + 5], 0xa
je 0x40b436
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b47f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40b467
mov dword [0x412fb8], ecx
jmp 0x40b59d
cmp eax, 0x6d
jne 0x40b473
xor eax, eax
jmp 0x40b5aa
push eax
call fcn.0040ad11
pop ecx
jmp 0x40b5a7
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x40b591
test eax, eax
je 0x40b4a6
cmp byte [ebx], 0xa
jne 0x40b4a6
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40b4af
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x40b58b
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40b57b
cmp al, 0xd
je 0x40b4e1
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x40b56d
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40b4fb
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x40b4f6
add dword [ebp - 8], 2
jmp 0x40b54f
mov dword [ebp - 8], eax
jmp 0x40b569
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b523
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40b569
cmp dword [ebp - 0x10], 0
je 0x40b569
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40b544
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40b54f
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40b56c
cmp ebx, dword [ebp + 0xc]
jne 0x40b554
cmp byte [ebp - 1], 0xa
jne 0x40b554
mov byte [ebx], 0xa
jmp 0x40b56c
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040c6c8
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40b56d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40b4c5
jmp 0x40b58b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40b58b
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x40b5aa
and dword [0x412fb8], 0
mov dword [0x412fb4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b8c3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x413160], ebx
push esi
push edi
jne 0x40b943
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40b97e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41073c
push edi
call esi
test eax, eax
mov dword [0x413160], eax
je 0x40b97e
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x413164], eax
call esi
cmp dword [0x412fc0], 2
mov dword [0x413168], eax
jne 0x40b943
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x413170], eax
je 0x40b943
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41316c], eax
mov eax, dword [0x41316c]
test eax, eax
je 0x40b988
call eax
test eax, eax
je 0x40b96f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x413170]
test eax, eax
je 0x40b96f
test byte [ebp - 8], 1
jne 0x40b988
cmp dword [0x412fcc], 4
jb 0x40b982
or byte [ebp + 0x12], 0x20
jmp 0x40b9a7
xor eax, eax
jmp 0x40b9b7
or byte [ebp + 0x12], 4
jmp 0x40b9a7
mov eax, dword [0x413164]
test eax, eax
je 0x40b9a7
call eax
mov ebx, eax
test ebx, ebx
je 0x40b9a7
mov eax, dword [0x413168]
test eax, eax
je 0x40b9a7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x413160]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b9bc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40b9ea
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40b9f1
cmp ebx, dword [eax + 4]
jae 0x40b9f1
xor eax, eax
jmp 0x40bbe1
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40ba02
xor eax, eax
inc eax
jmp 0x40bbe0
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40ba18
cmp ecx, edx
jae 0x40bb5d
cmp dword [eax + 4], 0
je 0x40ba21
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40ba09
cmp dword [ebp + 8], 0
je 0x40ba43
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40bb5d
cmp eax, esi
jae 0x40bb5d
mov eax, dword [0x413178]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40ba68
cmp dword [esi*4 + 0x413180], edi
je 0x40bb61
inc esi
cmp esi, eax
jl 0x40ba56
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40bbdd
cmp dword [ebp - 8], 0x1000000
jne 0x40bbdd
test byte [ebp - 0xc], 0xcc
je 0x40bae6
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40bbdd
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40bbdd
cmp word [eax + 0x18], 0x10b
jne 0x40bbdd
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40bbdd
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40bae6
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40bae6
test byte [ecx + 0x27], 0x80
jne 0x40bb5d
push 1
push 0x4131c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40b9fa
mov ecx, dword [0x413178]
test ecx, ecx
mov edx, ecx
jle 0x40bb1a
lea eax, [ecx*4 + 0x41317c]
cmp dword [eax], edi
je 0x40bb1a
dec edx
sub eax, 4
test edx, edx
jg 0x40bb0e
test edx, edx
jne 0x40bb4b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40bb27
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40bb3f
lea eax, [edx*4 + 0x413180]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40bb2d
cmp ecx, 0x10
jge 0x40bb4b
inc ecx
mov dword [0x413178], ecx
push 0
push 0x4131c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40b9fa
xor eax, eax
jmp 0x40bbe0
test esi, esi
jle 0x40b9fa
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4131c0
call ebx
test eax, eax
jne 0x40b9fa
cmp dword [esi*4 + 0x413180], edi
je 0x40bbb7
mov eax, dword [0x413178]
lea esi, [eax - 1]
test esi, esi
jl 0x40bba5
cmp dword [esi*4 + 0x413180], edi
je 0x40bba1
dec esi
jns 0x40bb95
test esi, esi
jge 0x40bbb5
cmp eax, 0x10
jge 0x40bbb0
inc eax
mov dword [0x413178], eax
lea esi, [eax - 1]
jmp 0x40bbb7
je 0x40bbcf
xor ecx, ecx
test esi, esi
jl 0x40bbcf
lea eax, [ecx*4 + 0x413180]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40bbbd
push 0
push 0x4131c0
call ebx
jmp 0x40b9fa
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dbc4
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004098e0
mov eax, dword [0x412450]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x413464]
mov dword [ebp - 4], eax
jae 0x40dd07
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x413480]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40dd07
push 1
push esi
push ebx
call fcn.0040c6c8
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x40dd11
push 2
push esi
push ebx
call fcn.0040c6c8
add esp, 0xc
cmp eax, 0xffffffff
je 0x40dd11
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40dcb1
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040ab40
push 0x8000
push ebx
call fcn.0040e1e4
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40dc70
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0040af3a
add esp, 0xc
cmp eax, 0xffffffff
je 0x40dc8e
sub edi, eax
test edi, edi
jg 0x40dc65
jmp 0x40dca4
cmp dword [0x412fb8], 5
jne 0x40dca1
mov dword [0x412fb4], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0040e1e4
pop ecx
pop ecx
jmp 0x40dcf1
jge 0x40dcf1
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0040c6c8
push ebx
call fcn.0040aefe
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40dcf1
mov dword [0x412fb4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x412fb8], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0040c6c8
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40dd14
mov dword [0x412fb4], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00404b1b
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40288e
pop dword [ebp - 0x3c]
mov eax, 0xb6add83
add eax, 0xf4d54b0b
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x5a23eec1
sub dword [ebp - 0x4c], 0xbd1a976
mov dword [ebp - 0x48], 0xb3ac0402
add dword [ebp - 0x48], 0x7e874843
mov dword [ebp - 0x44], 0xbee3f908
sub dword [ebp - 0x44], 0x7297b4da
mov dword [ebp - 0x40], 0x907a7a13
sub dword [ebp - 0x40], 0x907a7a13
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xaef22c45
sub eax, 0xaeb1bbe1
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x3c095b70
add dword [ebp - 0x4c], 0x38690de6
mov dword [ebp - 0x48], 0x744f6d7
sub dword [ebp - 0x48], 0xc5d89562
mov dword [ebp - 0x44], 0x9df39902
sub dword [ebp - 0x44], 0x3a842c96
mov dword [ebp - 0x40], 0x42fffffd
add dword [ebp - 0x40], 0xbd000003
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xa425f8dc
add eax, 0x5c1a77cc
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x35132
push 0
call eax
mov ecx, 0x50262904
sub ecx, 0x5025e71a
xor edi, edi
add edi, eax
mov edx, 0xfae0da4c
sub edx, 0xfa9fda4c
add edx, dword [ebp - 0x3c]
mov esi, 0xc97501e9
sub esi, 0x574ef707
xor dword [ebp - 0x30], 0xcfe552
mov ebx, dword [edx]
xor dword [ebp - 0x1c], eax
add ebx, esi
add dword [ebp - 0x24], edx
mov dword [edi], ebx
sub dword [ebp - 0x38], 0x9e300889
add edi, 4
add edx, 0x734cd26b
add edx, 0x8cb32d99
loop 0x4029b2
add eax, 0xfa7b
mov ebx, eax
add eax, 0x656f30d
sub eax, 0x656f308
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x403e59
pop dword [ebp - 0x24]
mov eax, 0x8815b68d
sub eax, 0x87d57834
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x4f4d10d3
sub dword [ebp - 0x34], 0xfacb88
mov dword [ebp - 0x30], 0x8f6456fe
sub dword [ebp - 0x30], 0x5d310ab9
mov dword [ebp - 0x2c], 0xaf83ed08
add dword [ebp - 0x2c], 0x9cc85726
mov dword [ebp - 0x28], 0xd6e5f51d
add dword [ebp - 0x28], 0x291a0ae3
lea eax, [ebp - 0x34]
push eax
mov eax, 0xd2c10775
add eax, 0x2d7f7917
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x69cbaffb
sub dword [ebp - 0x34], 0xf55946a5
mov dword [ebp - 0x30], 0xea01c472
add dword [ebp - 0x30], 0x576a9d03
mov dword [ebp - 0x2c], 0x97d237ad
sub dword [ebp - 0x2c], 0x3462cb41
mov dword [ebp - 0x28], 0xcf30d33c
add dword [ebp - 0x28], 0x30cf2cc4
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x5f0f2284
add eax, 0xa1315e50
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x34c1d
push 0
call eax
mov ecx, 0xe439a999
add ecx, 0x1bc69671
xor edi, edi
add edi, eax
mov esi, 0xf347aebc
add esi, 0xcf96144
add esi, dword [ebp - 0x24]
mov ebx, 0x609eb2ec
add ebx, 0xf0ce6953
mov dword [ebp - 0x18], 0xa902f220
mov edx, dword [esi]
xor dword [ebp - 0x18], esi
add edx, ebx
add dword [ebp - 8], 0x7e755fd5
mov dword [edi], edx
add dword [ebp - 8], 0xb1cb0454
add edi, 0x3a1722d7
sub edi, 0x3a1722d3
add esi, 0x2201aff4
sub esi, 0x2201aff0
loop 0x403f7d
add eax, 0x531f75c1
sub eax, 0x531e82c6
mov ebx, eax
add eax, 0x9bbd099a
add eax, 0x6442f66b
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408e84
mov ecx, 0x77cf7a18
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x6311554f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x402a24
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040414c
test esi, esi
jne 0x402a5a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040423c
jmp 0x402a78
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402928
mov edi, eax
test esi, esi
je 0x402a78
cmp dword [ebx], 0
je 0x402a78
dec esi
jmp 0x402a61
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403174
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x483020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40320c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031ec
xor eax, eax
push ebp
push 0x4031e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403228
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4031ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x483020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x483020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f48
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x486048], 0
je 0x403fa9
cmp word [0x48621c], 0xd7b2
jne 0x403f71
cmp dword [0x486224], 0
jbe 0x403f71
mov eax, 0x486218
call dword [0x486234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48306c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403fd0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x483030], 0
jne 0x403fc5
push 0
push 0x483064
push 0x48306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026ec
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x486049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4040c8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc