joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ffe5336
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
push bx
inc esp
inc esp
add al, 0
not eax
not eax
inc esi
dec esi
xor eax, ecx
xor eax, ecx
push eax
pop eax
pushf
popf
push eax
pop eax
not eax
not eax
inc esi
dec esi
not eax
not eax
and al, 0xff
add al, 4
sub al, 4
add al, 0
xor eax, ecx
xor eax, ecx
and al, 0xff
pushf
popf
push eax
pop eax
add al, 4
sub al, 4
push es
pop ds
xor eax, ecx
xor eax, ecx
push es
pop ds
add al, 4
sub al, 4
add al, 0
not eax
not eax
inc esi
dec esi
xor eax, ecx
xor eax, ecx
push es
pop ds
pushf
popf
push es
pop ds
push bx
inc esp
inc esp
inc esi
dec esi
pushf
popf
inc esi
dec esi
xor eax, ecx
xor eax, ecx
push eax
pop eax
not eax
not eax
add al, 0
not eax
not eax
push es
pop ds
push bx
inc esp
inc esp
add al, 0
add al, 4
sub al, 4
add al, 0
nop
push eax
pop eax
call 0x7ffe53c8
pop edx
inc esi
dec esi
xor dx, dx
push eax
pop eax
pushf
popf
inc esi
dec esi
xor eax, ecx
xor eax, ecx
cld
add edx, 0xd5e0
xor eax, ecx
xor eax, ecx
and al, 0xff
xor ecx, ecx
push bx
inc esp
inc esp
inc esi
dec esi
inc esi
dec esi
cld
mov cl, 0x1e
not eax
not eax
inc esi
dec esi
xor byte [ecx + edx], 0x71
loop 0x7ffe53fa
not eax
not eax
clc
push dword fs:[0x24]
pop dword [edx + 0xa]
cld
mov cl, 0xff
push es
pop ds
not eax
not eax
add al, 0
push edx
loop 0x7ffe541a
not eax
not eax
add al, 0
not eax
not eax
cld
push es
pop ds
mov dword [edx + 0x11], 0xffffacbb
inc esi
dec esi
and al, 0xff
mov ecx, dword [eax + 0x2c]
push es
pop ds
not eax
not eax
stc
push eax
pop eax
mov dword [edx + 0x1b], ecx
mov dword [edx + 0x100], ecx
inc esi
dec esi
not eax
not eax
and al, 0xff
not eax
not eax
cld
mov dword [eax + 0x2c], esp
push bx
inc esp
inc esp
and al, 0xff
add al, 4
sub al, 4
push 0
and al, 0xff
lea esp, [esp]
push 0
add al, 0
pushf
popf
and al, 0xff
push 0
xor eax, ecx
xor eax, ecx
add al, 0
add al, 4
sub al, 4
push eax
pop eax
nop
push 0
push es
pop ds
xor eax, ecx
xor eax, ecx
push es
pop ds
add al, 0
push 0x30
push eax
pop eax
push edx
cdq
pop edx
push 0x20
push es
pop ds
push bx
inc esp
inc esp
add al, 0
push 0
xor eax, ecx
xor eax, ecx
push eax
pop eax
push bx
inc esp
inc esp
pushal
inc eax
popal
push 0
xor eax, ecx
xor eax, ecx
add al, 0
add edx, 0xffff7f31
push eax
pop eax
cld
push edx
push edx
xor eax, ecx
xor eax, ecx
push es
pop ds
stc
push 0
inc esi
dec esi
add al, 4
sub al, 4
push eax
pop eax
call dword [edx + 0x8212]
push bx
inc esp
inc esp
inc esi
dec esi
push bx
inc esp
inc esp
add al, 0
cld
add esp, 0x3f8
push eax
pop eax
not eax
not eax
xor eax, eax
push es
pop ds
not eax
not eax
inc esi
dec esi
pushf
popf
stc
inc eax
add al, 4
sub al, 4
push eax
pop eax
push es
pop ds
ret 0xc
Function at 0x401460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov edx, eax
push edi
push esi
push ebx
neg edx
sub esp, 8
and edx, 3
je 0x4015b2
xor byte [eax], 0x5a
cmp edx, 1
je 0x4015d5
xor byte [eax + 1], 0x5a
cmp edx, 3
jne 0x4015f0
xor byte [eax + 2], 0x5a
mov ebx, 0x125
mov dword [esp], 3
mov ecx, 0x128
mov esi, 0x124
mov edi, 0x49
sub ecx, edx
mov dword [esp + 4], ecx
lea ebp, [edi - 1]
add edx, eax
mov ecx, 1
xor dword [edx], 0x5a5a5a5a
and ebp, 7
cmp ecx, edi
jae 0x401581
test ebp, ebp
je 0x40153b
cmp ebp, 1
je 0x40152d
cmp ebp, 2
je 0x401523
cmp ebp, 3
je 0x401519
cmp ebp, 4
je 0x40150f
cmp ebp, 5
je 0x401505
cmp ebp, 6
je 0x4014fb
xor dword [edx + 4], 0x5a5a5a5a
mov ecx, 2
xor dword [edx + ecx*4], 0x5a5a5a5a
add ecx, 1
xor dword [edx + ecx*4], 0x5a5a5a5a
add ecx, 1
xor dword [edx + ecx*4], 0x5a5a5a5a
add ecx, 1
xor dword [edx + ecx*4], 0x5a5a5a5a
add ecx, 1
xor dword [edx + ecx*4], 0x5a5a5a5a
add ecx, 1
xor dword [edx + ecx*4], 0x5a5a5a5a
add ecx, 1
cmp ecx, edi
jae 0x401581
xor dword [edx + ecx*4], 0x5a5a5a5a
xor dword [edx + ecx*4 + 4], 0x5a5a5a5a
xor dword [edx + ecx*4 + 8], 0x5a5a5a5a
xor dword [edx + ecx*4 + 0xc], 0x5a5a5a5a
xor dword [edx + ecx*4 + 0x10], 0x5a5a5a5a
xor dword [edx + ecx*4 + 0x14], 0x5a5a5a5a
xor dword [edx + ecx*4 + 0x18], 0x5a5a5a5a
xor dword [edx + ecx*4 + 0x1c], 0x5a5a5a5a
add ecx, 8
cmp ecx, edi
jb 0x40153b
mov edx, dword [esp]
sub ebx, esi
add edx, esi
cmp dword [esp + 4], esi
je 0x4015aa
xor byte [eax + edx], 0x5a
cmp ebx, 1
lea edi, [edx + 1]
je 0x4015aa
xor byte [eax + edi], 0x5a
add edx, 2
cmp ebx, 2
je 0x4015aa
xor byte [eax + edx], 0x5a
add esp, 8
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x128
mov edi, 0x4a
mov dword [esp + 4], 0x128
mov ebx, 0x128
mov dword [esp], 0
jmp 0x4014b2
mov ebx, 0x127
mov dword [esp], 1
jmp 0x40149d
mov ebx, 0x126
mov dword [esp], 2
jmp 0x40149d
Function at 0x4021e0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40222b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x402224
test esi, esi
je 0x402224
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402200
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402410
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402460
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402538
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40249e
cmp eax, 4
jne 0x4024c0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4024ae
cmp edx, 4
je 0x4024ae
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402410
Function at 0x10018c9
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [ebp - 0x404], 0
and dword [ebp - 0x3f8], 0
mov dword [ebp - 0x3f4], eax
mov eax, dword [0x10011e4]
mov dword [ebp - 0x3f0], eax
mov eax, dword [0x10011e8]
mov dword [ebp - 0x3ec], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x3e8]
mov dword [ebp - 0x400], 0x14
mov dword [ebp - 0x3fc], 0x1c
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1001922
jmp loc.0100f98e

Function at 0x10024f0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1005f30]
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
push 1
push eax
mov dword [ebp - 0x28], 0x200b
mov dword [ebp - 0x24], 0x1002163
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 8], 4
mov dword [ebp - 4], str.NetDDEShareClass
call dword [sym.imp.USER32.dll_RegisterClassW]
jmp loc.0100fb38

Function at 0x1002558
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x14
push 0x1005f00
push 0x15
xor ebx, ebx
push eax
mov dword [0x1005f30], eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x1001300
call fcn.01002653
mov edi, dword [ebp + 0x10]
xor eax, eax
inc eax
cmp byte [edi], 0x2b
jne 0x1002599
mov dword [0x1005ab0], eax
inc edi
cmp byte [edi], bl
mov esi, 0x1005ec0
jne 0x10025d1
push 0x10011dc
push esi
mov dword [ebp + 8], 0x10
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 8]
push eax
push 0x1005ec4
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
neg eax
sbb eax, eax
and eax, esi
mov dword [0x1005f28], eax
jmp 0x10025ec
push 0x12
push esi
push 0xffffffffffffffff
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [0x1005ee2], bx
mov dword [0x1005f28], esi
jmp 0x100f88c

Function at 0x10026e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x40c]
push 0x1001354
push 0x100134c
xor ebx, ebx
and dword [ebp - 4], ebx
push eax
mov dword [ebp - 8], 4
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp + 8]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x40c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100276f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
jmp loc.0100f94a
mov eax, dword [ebp + 0x10]
pop ebx
leave
ret 0x10
Function at 0x1002777
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x610]
push 0x1001354
xor ebx, ebx
push 0x100134c
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], 0x400
mov dword [ebp - 8], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp + 8]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x610]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
jne 0x1002859
jmp loc.0100f18e
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
cmp esi, ebx
jbe 0x100286f
mov byte [edi + esi - 1], bl
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x1002941
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x1001390
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002999
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x10013cc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100298c
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100299b
xor eax, eax
pop esi
leave
ret 4

Function at 0x1009e22
Capabilities:
Packed with generic packer

Disassembly:
mov dword [ecx + 0x10], edi
sbb cl, 0x99
and dword [ebp - 0x64], 0
inc eax
inc dword [ebp - 0x64]
call esi
xor eax, edi
jmp 0x1009eb5
jmp loc.0100fc19
lea ecx, [esp + 0x20]
wait
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], edx
jmp 0x1009e14
call esi
lea edi, [eax]
call 0x1009e22
jmp 0x100eb57

Function at 0x100ebb4
Capabilities:
Packed with generic packer

Disassembly:
jmp loc.0100f413
push 1
sub eax, eax
jmp 0x100eb26

Function at 0x100ebc1
Capabilities:
Packed with generic packer

Disassembly:
mov dword [ecx + 0x10], edi
sbb cl, 0x99
and dword [ebp - 0x64], 0
inc eax
inc dword [ebp - 0x64]
call esi
xor eax, edi
jmp 0x1009eb5
jmp loc.0100fc19
lea ecx, [esp + 0x20]
wait
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], edx
jmp 0x1009e14
call esi
lea edi, [eax]
call 0x1009e22
jmp 0x100eb57

Function at 0x100ec03
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
jmp loc.0100fad2
add eax, dword [ebx + 0x3c]
add edx, dword [eax + 0x78]
push 0xffffffffffffffff
jmp 0x100eb03
mov edx, ebx
mov ah, 0xa
mov esi, ebx
mov eax, ebx
jmp 0x100eb67
Function at 0x403930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d5e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x38], 0
je 0x403963
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x40396f
mov al, 1
jmp 0x403b12
mov dword [ebp - 0x2c], 8
call fcn.004055b0
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x20], eax
call fcn.004055b0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.004055e0
add esp, 8
movzx eax, al
test eax, eax
je 0x4039b2
xor al, al
jmp 0x403b12
push 0
push 8
lea ecx, [ebp - 0x54]
call fcn.00401c70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x54]
call fcn.00404e70
mov ecx, eax
call fcn.00402f50
mov esi, eax
lea ecx, [ebp - 0x54]
call fcn.00406710
add esi, eax
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x54]
call fcn.00404e70
mov ecx, eax
call fcn.00402f50
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x38]
call fcn.00406c30
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x403a2d
cmp dword [ebp - 0x1c], 1
je 0x403a34
cmp dword [ebp - 0x1c], 3
je 0x403ace
jmp 0x403ae6
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x3d], 0
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00404e70
mov ecx, eax
call fcn.00402f50
mov edx, dword [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x18], edx
je 0x403a97
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 1
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x54]
call fcn.00404e70
mov ecx, eax
call fcn.00402f50
push eax
call fcn.00432450
add esp, 0x10
cmp dword [ebp - 0x18], eax
je 0x403a97
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00402980
mov al, byte [ebp - 0xd]
jmp 0x403b12
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x403aba
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00402980
mov al, byte [ebp - 0xe]
jmp 0x403b12
cmp dword [ebp - 0x18], 0
jne 0x403acc
push 0
push 8
lea ecx, [ebp - 0x54]
call fcn.00404b10
jmp 0x403afe
mov byte [ebp - 0xf], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00402980
mov al, byte [ebp - 0xf]
jmp 0x403b12
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00402980
mov al, byte [ebp - 0x10]
jmp 0x403b12
jmp 0x4039c5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4576be
Capabilities:
Read file on windows

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

Function at 0x4609ca
Capabilities:
Set environment variable

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

Function at 0x4609d5
Capabilities:
Set environment variable

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

Function at 0x461078
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00460dff
Function at 0x402dd4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x406008], 0x8088405
inc edx
mov dword [ebx + 0x406008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402f1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x406010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402fb4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f94
xor eax, eax
push ebp
push 0x402f8d
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 0x402fd0
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 0x402f94
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x406010]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x406010], ax
mov esp, ebp
pop ebp
ret

Function at 0x4036bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x407034], 0
je 0x40371d
cmp word [0x407208], 0xd7b2
jne 0x4036e5
cmp dword [0x407210], 0
jbe 0x4036e5
mov eax, 0x407204
call dword [0x407220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x403744
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40601c], 0
jne 0x403739
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403f94
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403b38
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x403fad
test al, 0x10
je 0x403fb1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x404140
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.004039a8
add esp, 0x104
pop ebx
ret

Function at 0x404170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403b28
xor eax, eax
push ebp
push 0x4041b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403b38
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041bf
lea eax, [ebp - 4]
call fcn.0040383c
ret
Function at 0x40443c
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
lea edx, [esp + 0xc]
mov eax, dword [0x4098a4]
mov ecx, 0x40
call fcn.00402cac
mov dword [0x4097f0], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x4097f0
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x40446a
xor ebx, ebx
xor ebp, ebp
xor esi, esi
xor edi, edi
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x4097f0]
add eax, esi
add eax, edi
mov dword [esp + 4], 3
mov ecx, dword [esp + 4]
mov edx, eax
shl edx, cl
mov ecx, dword [esp + 4]
neg ecx
shr eax, cl
or edx, eax
mov eax, edx
mov esi, eax
mov dword [ebx*4 + 0x4097f0], esi
lea eax, [edi + esi]
mov dword [esp + 8], eax
mov ecx, dword [esp + 8]
mov eax, dword [esp + ebp*4 + 0xc]
add eax, esi
add eax, edi
shl eax, cl
mov ecx, dword [esp + 8]
neg ecx
mov edx, dword [esp + ebp*4 + 0xc]
add edx, esi
add edi, edx
shr edi, cl
or eax, edi
mov edi, eax
mov dword [esp + ebp*4 + 0xc], edi
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc ebp
and ebp, 0x8000000f
jns 0x404502
dec ebp
or ebp, 0xfffffff0
inc ebp
dec dword [esp]
jne 0x40448a
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40458c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edx, dword [0x40989c]
sub dword [eax + 8], edx
mov edx, dword [0x409898]
sub dword [eax], edx
mov edx, 0x14
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 8]
mov dword [eax + 0xc], ebx
mov ebx, dword [eax + 4]
mov dword [eax + 8], ebx
mov ebx, dword [eax]
mov dword [eax + 4], ebx
mov dword [eax], ecx
mov ecx, dword [eax + 0xc]
mov ebx, ecx
add ecx, ecx
inc ecx
imul ebx, ecx
mov esi, 5
mov ecx, esi
mov edi, ebx
shl edi, cl
mov ecx, esi
neg ecx
shr ebx, cl
or edi, ebx
mov ecx, edi
mov esi, ecx
mov ecx, dword [eax + 4]
mov ebx, ecx
add ecx, ecx
inc ecx
imul ebx, ecx
mov dword [esp], 5
mov ecx, dword [esp]
mov edi, ebx
shl edi, cl
mov ecx, dword [esp]
neg ecx
shr ebx, cl
or edi, ebx
mov ecx, edi
mov ebx, ecx
mov ecx, dword [eax + 8]
mov edi, edx
add edi, edi
sub ecx, dword [edi*4 + 0x4097f4]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 8]
mov edi, dword [esp + 4]
shr edi, cl
mov ecx, dword [esp + 8]
neg ecx
mov ebp, dword [esp + 4]
shl ebp, cl
or edi, ebp
mov ecx, edi
xor ecx, esi
mov dword [eax + 8], ecx
mov ecx, dword [eax]
mov edi, edx
add edi, edi
sub ecx, dword [edi*4 + 0x4097f0]
mov dword [esp + 0xc], ecx
mov ecx, esi
mov edi, dword [esp + 0xc]
shr edi, cl
mov ecx, esi
neg ecx
mov esi, dword [esp + 0xc]
shl esi, cl
or edi, esi
mov ecx, edi
xor ecx, ebx
mov dword [eax], ecx
dec edx
test edx, edx
jne 0x4045a9
mov edx, dword [0x4097f4]
sub dword [eax + 0xc], edx
mov edx, dword [0x4097f0]
sub dword [eax + 4], edx
mov al, 1
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40475c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x4098ec
mov esi, 0x4098f0
mov edi, 0x4098f4
mov ebp, 0x409904
mov byte [0x4098cc], 1
mov eax, dword [0x4098e0]
push eax
call sub.kernel32.dll_LockResource
mov dword [0x4098e4], eax
mov eax, dword [0x4098dc]
push eax
mov eax, dword [0x4097e0]
push eax
call sub.kernel32.dll_SizeofResource
call fcn.00402bb4
mov dword [0x4098e8], eax
mov eax, dword [0x4098e4]
mov dword [ebx], eax
mov eax, dword [0x4098e8]
mov dword [esi], eax
mov eax, 0x404884
call fcn.00404510
call fcn.0040443c
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov eax, dword [0x4098dc]
push eax
mov eax, dword [0x4097e0]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [0x40990c], eax
mov dword [0x409910], edx
jmp 0x40482b
mov edx, edi
mov eax, dword [ebx]
mov ecx, 0x10
call fcn.00402cac
mov eax, edi
call fcn.0040458c
mov edx, dword [esi]
mov eax, edi
mov ecx, 0x10
call fcn.00402cac
add dword [ebp], 0x10
adc dword [ebp + 4], 0
mov eax, dword [ebx]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [esi]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [0x40990c]
mov edx, dword [0x409910]
sub eax, dword [ebp]
sbb edx, dword [ebp + 4]
cmp edx, 0
jne 0x404849
cmp eax, 0x10
jae 0x4047f2
jmp 0x40484b
jge 0x4047f2
call fcn.00404580
mov eax, dword [0x4098e8]
xor edx, edx
add eax, dword [0x40990c]
adc edx, dword [0x409910]
sub eax, 1
sbb edx, 0
mov dword [ebx], eax
mov eax, dword [ebx]
movzx eax, byte [eax]
mov byte [0x409914], al
pop ebp
pop edi
pop esi
pop ebx
ret