joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007528
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001b694]
jne 0x10007532
repz ret
jmp fcn.1000cc6c

Function at 0x10013bfb
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.1000c18e
and dword [ebp - 4], 0
cmp dword [0x1001d018], 0
mov ebx, eax
jne 0x10013cac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10013d5d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10018918
push edi
call esi
test eax, eax
je 0x10013d5d
push eax
call fcn.1000c11c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001d018], eax
call esi
push eax
call fcn.1000c11c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001d01c], eax
call esi
push eax
call fcn.1000c11c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1001d020], eax
call esi
push eax
call fcn.1000c11c
pop ecx
mov dword [0x1001d028], eax
test eax, eax
je 0x10013cac
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000c11c
pop ecx
mov dword [0x1001d024], eax
mov eax, dword [0x1001d024]
cmp eax, ebx
je 0x10013d04
cmp dword [0x1001d028], ebx
je 0x10013d04
push eax
call fcn.1000c197
push dword [0x1001d028]
mov esi, eax
call fcn.1000c197
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10013d04
test edi, edi
je 0x10013d04
call esi
test eax, eax
je 0x10013cfb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10013cfb
test byte [ebp - 0xc], 1
jne 0x10013d04
or dword [ebp + 0x10], 0x200000
jmp 0x10013d3d
mov eax, dword [0x1001d01c]
cmp eax, ebx
je 0x10013d3d
push eax
call fcn.1000c197
pop ecx
test eax, eax
je 0x10013d3d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10013d3d
mov eax, dword [0x1001d020]
cmp eax, ebx
je 0x10013d3d
push eax
call fcn.1000c197
pop ecx
test eax, eax
je 0x10013d3d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001d018]
call fcn.1000c197
pop ecx
test eax, eax
je 0x10013d5d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10013d5f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x576a2e5a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x3a4c7ab6
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40a880
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b41d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x463010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 8
lea ecx, [ebp - 0x1c]
call fcn.00408340
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
call fcn.00412ff7
add esp, 8
lea ecx, [ebp - 0x14]
call fcn.00408400
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00408400
push 0
push 2
call fcn.0042de99
add esp, 8
push eax
call fcn.00406bb0
push str.Windows_Code_Pages
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
xor cl, cl
call fcn.00409d90
call fcn.0040a020
int3

Function at 0x4274ea
Capabilities:
Parse pe header

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

Function at 0x43ee38
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x453b98
push 0x453b90
push str.FlsAlloc
push 0x1e
call fcn.0043eca5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43ee6c
push dword [ebp + 8]
mov ecx, esi
call dword [0x44e158]
call esi
jmp 0x43ee72
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43eeb6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x453ba8
push 0x453ba0
push str.FlsGetValue
push 0x20
call fcn.0043eca5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43eeed
push dword [ebp + 8]
mov ecx, esi
call dword [0x44e158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4412b8
Capabilities:
Read file on windows

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

Function at 0x4412c3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004410e9
Function at 0x44292e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00427750
mov eax, dword [0x463010]
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.0043a034
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x442970
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x442acc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0044aac0
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 + 0x4653a0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00442d54
mov ecx, dword [esi*4 + 0x4653a0]
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 0x442ac5
cmp eax, dword [edi + ecx + 0x24]
jne 0x442ac5
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 0x442ac5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00442d54
add esp, 0x14
test edx, edx
jl 0x442ac5
jg 0x442a3b
test eax, eax
jb 0x442ac5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x442ac5
jl 0x442a55
cmp dword [ebp - 0x1008], eax
ja 0x442ac5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x442a73
test ebx, ebx
je 0x442aac
cmp ecx, edi
jae 0x442aac
mov al, byte [ecx]
cmp al, 0xd
jne 0x442a8d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x442a99
cmp byte [ecx + 1], 0xa
jne 0x442a99
inc ecx
jmp 0x442a99
movzx eax, al
movsx eax, byte [eax + 0x463968]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x442a73
cmp edx, ebx
jne 0x442a73
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x442aca
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00426928
leave
ret
Function at 0x444667
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 0x444704
push ebx
push esi
call fcn.00444630
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.0044329e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4446b1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x444703
push edi
push eax
call fcn.004390d2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4446d1
call fcn.00439098
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x444702
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044329e
add esp, 0x20
test eax, eax
jne 0x4446f0
push edi
call fcn.00439098
jmp 0x4446f8
push ebx
call fcn.00439098
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 0x444707
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x444718
pop esi
ret
push ebx
push edi
push esi
call fcn.00444630
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004390d2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x444740
push ebx
push esi
push edi
call fcn.00427e00
add esp, 0xc
push 0
call fcn.00439098
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x444e8c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004449b3
Function at 0x4486b7
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 + 0x4653a0]
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 0x4486f7
cmp byte [ebx], 0xa
jne 0x4486f7
or byte [eax + edi + 0x28], 4
jmp 0x4486fc
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4487fa
mov al, byte [edx]
cmp al, 0x1a
je 0x4487dc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x44872b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x448750
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x44875a
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 0x44870d
jmp 0x4487fa
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 0x4487d7
cmp dword [ebp - 0xc], 0
je 0x4487d7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4653a0]
test byte [eax + edi + 0x28], 0x48
je 0x4487b1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44879c
mov byte [esi], dl
jmp 0x4487ad
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4653a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4487fa
cmp byte [ebp - 1], 0xa
jne 0x4487c0
cmp esi, ebx
jne 0x4487c0
mov byte [esi], 0xa
jmp 0x4487f9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00442d72
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4487fa
mov byte [esi], 0xd
jmp 0x4487f9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4653a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4487f6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4487fa
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x448803
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 + 0x4653a0]
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 0x448846
cmp word [esi], dx
jne 0x448846
or byte [edi + eax + 0x28], 4
jmp 0x44884b
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 0x44899e
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 0x44897e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x44888d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4488c3
cmp eax, edx
jae 0x4488cf
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 0x448865
jmp 0x44899e
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 0x44897a
cmp dword [ebp - 0x14], 0
je 0x44897a
mov eax, dword [ebx*4 + 0x4653a0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x448952
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x44891b
mov word [esi], cx
jmp 0x44894e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4653a0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4653a0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4653a0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x44899e
pop ebx
cmp word [ebp - 4], bx
jne 0x448963
cmp esi, dword [ebp + 0xc]
jne 0x448963
mov word [esi], bx
jmp 0x44899b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00442d72
add esp, 0x10
cmp word [ebp - 4], bx
je 0x44899e
push 0xd
jmp 0x448997
mov ecx, dword [ebx*4 + 0x4653a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x448995
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44899e
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 0x44a8c0
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x403e59
pop dword [ebp - 0x10]
mov eax, 0xcbc1e45a
sub eax, 0xcb81a601
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xc62aa561
add dword [ebp - 0x20], 0x88279fea
mov dword [ebp - 0x1c], 0x9ad6cf7a
sub dword [ebp - 0x1c], 0x68a38335
mov dword [ebp - 0x18], 0x1fefb384
sub dword [ebp - 0x18], 0xd3a36f56
mov dword [ebp - 0x14], 0x44a7cbf2
sub dword [ebp - 0x14], 0x44a7cbf2
lea eax, [ebp - 0x20]
push eax
mov eax, 0xd91ab524
add eax, 0x2725bb40
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x5d5d450a
add dword [ebp - 0x20], 0x1715244c
mov dword [ebp - 0x1c], 0x9682c46d
add dword [ebp - 0x1c], 0xaae99d08
mov dword [ebp - 0x18], 0xf92e5abf
sub dword [ebp - 0x18], 0x95beee53
mov dword [ebp - 0x14], 0xa05de09d
add dword [ebp - 0x14], 0x5fa21f63
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x7dca0bf3
add eax, 0x827664b5
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3d0dd
push 0
call eax
mov ecx, 0x613a
xor edx, edx
add edx, eax
mov esi, 0xa6c289c0
sub esi, 0xa68189c0
add esi, dword [ebp - 0x10]
mov ebx, 0x33349bd8
sub dword [ebp - 8], 0x9e46e9d0
mov edi, dword [esi]
add dword [ebp - 8], ebx
xor edi, ebx
add dword [ebp - 0xc], ebx
mov dword [edx], edi
sub dword [ebp - 4], 0x48fa914f
add edx, 0x377c4497
add edx, 0xc883bb6d
add esi, 0x9d3a9ffe
sub esi, 0x9d3a9ffa
loop 0x403f71
add eax, 0x177bb
xor ebx, ebx
add ebx, eax
add eax, 0x7b5bd9
add eax, 0xff84a42c
mov ecx, 0x3c256326
add ecx, 0xc41a9cda
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x406371
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40e86a
call fcn.0040d30f
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166e8]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4064e2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4064e2
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4064e2
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4064e2
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40645b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4064d4
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4064d4
mov ecx, 0x1234
cmp cx, ax
jne 0x4064d4
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x4064ae
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4063c9
mov eax, edi
call fcn.0040d2ca
ret 4

Function at 0x40d75b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40d76a
pop dword [ebp - 0x28]
mov eax, 0x12d7d773
sub eax, 0x12970009
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x35f83
push 0
mov eax, 0x7dc7e6e2
sub eax, 0x7d86f652
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x3e6c
mov edi, eax
mov edx, 0xedab2454
sub edx, 0xed697a54
add edx, dword [ebp - 0x28]
mov esi, 0xa5ee6192
sub dword [ebp - 0x18], esi
mov ebx, dword [edx]
sub dword [ebp - 0x14], 0x7250a716
xor ebx, esi
xor dword [ebp - 0x14], edi
mov dword [edi], ebx
sub dword [ebp - 4], ecx
add edi, 0xcb16f530
sub edi, 0xcb16f52c
add edx, 0xbd13eda5
sub edx, 0xbd13eda1
loop 0x40d7bd
add eax, 0xec83
mov ebx, eax
add eax, 0x43abed75
sub eax, 0x43abed70
mov ecx, 0xc3986e02
add ecx, 0x3ca791fe
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x45c680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00416c29
add esp, 4
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x4013a9
mov dword [ebp - 0x108], 0
jmp 0x4012cd
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
cmp dword [ebp - 0x108], 2
jge 0x4013a9
lea edx, [ebp - 0x110]
push edx
push 0x20019
push 0
push str.SoftwareVI_Like_EmacsEnvironment
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax*4 + 0x45c090]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4013a4
mov dword [ebp - 0x10c], 0x100
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x104]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401397
cmp dword [ebp - 0x10c], 0
je 0x401397
mov eax, dword [ebp - 0x10c]
sub eax, 1
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0x100
jae 0x401360
jmp 0x401365
call fcn.00404720
mov ecx, dword [ebp - 0x118]
mov byte [ebp + ecx - 0x104], 0
lea edx, [ebp - 0x104]
push edx
call fcn.004013c0
add esp, 4
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4013a9
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4012be
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404810
mov esp, ebp
pop ebp
ret
Function at 0x401920
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x10], 0
jne 0x401948
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
push 0x45c044
call fcn.00401e90
add esp, 8
push 0x400
push 0
push 0x45e1e0
call fcn.004059c0
add esp, 0xc
mov dword [ebp - 8], 1
jmp 0x40196e
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 8]
jge 0x401b04
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 4], edx
cmp dword [ebp + 0x10], 0
jne 0x40199d
mov eax, dword [ebp - 4]
push eax
push 0x45c04c
call fcn.00401e90
add esp, 8
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x2d
jne 0x401afd
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x401afb
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov edx, dword [ecx*4 + 0x45e1e0]
add edx, 1
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov dword [ecx*4 + 0x45e1e0], edx
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ebp - 0x10], al
cmp byte [ebp - 0x10], 0x6b
je 0x4019f9
cmp byte [ebp - 0x10], 0x74
je 0x401a37
jmp 0x401a8c
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.004018a0
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x401a32
mov edx, dword [ebp - 0xc]
push edx
call fcn.00402b50
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402f00
add esp, 4
jmp 0x401af6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.004018a0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.00416a10
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, 4
imul ecx, eax, 0x74
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x45e1e0], edx
cmp dword [ebp - 0x14], 0
jg 0x401a8a
mov eax, 4
imul ecx, eax, 0x74
mov dword [ecx + 0x45e1e0], 8
jmp 0x401af6
cmp dword [0x45c010], 0
je 0x401aaf
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
push eax
mov ecx, dword [0x45c010]
push ecx
call fcn.00405b20
add esp, 8
test eax, eax
je 0x401ab8
cmp dword [0x45c010], 0
jne 0x401af6
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
push eax
push str.ivqQ
call fcn.00405b20
add esp, 8
test eax, eax
jne 0x401af6
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
push edx
push str.unknown_option__c_n
push 2
call fcn.00409c00
add esp, 4
push eax
call fcn.00401e50
add esp, 0xc
push 1
call fcn.004158d0
jmp 0x4019ac
jmp 0x401aff
jmp 0x401b04
jmp 0x401965
cmp dword [ebp + 0x10], 0
jne 0x401b26
push 1
call fcn.00409c00
add esp, 4
push eax
push 1
push 1
push 0x45cff4
call fcn.0040b660
add esp, 0x10
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret