joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check mutex on windows
Hide graphical window
Inspect load icon resource

Disassembly:
sub esp, 0x9c
push esi
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xc]
mov esi, dword [esp + 0xa8]
rep stosd dword es:[edi], eax
mov ecx, 6
lea edi, [esp + 0x8c]
rep stosd dword es:[edi], eax
mov ecx, 0x15
lea edi, [esp + 0x34]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], 6
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x803
push eax
mov dword [esp + 0x30], str.MainWndClass
mov dword [esp + 0x10], 0x401210
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
push 0
jne 0x401093
push str.No_puedo_registrar_la_ventana_principal.
push str.C.G.I._RPCPedidos
push 0x3ea
push 1
call dword [sym.imp.Btel.dll__ReportBackTpvEvent_20]
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret 0x10
push esi
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x20000000
push 0
push str.MainWndClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x4032b4], eax
push 0
jne 0x4010ef
push str.No_puedo_crear_la_ventana_principal.
push str.C.G.I._RPCPedidos
push 0x3ea
push 1
call dword [sym.imp.Btel.dll__ReportBackTpvEvent_20]
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret 0x10
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4032b4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [0x4032b4]
push 0x65
push esi
mov dword [esp + 0x38], 0x58
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0x65
mov dword [esp + 0x44], 2
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
push eax
push 0
call edi
push str.PEDIDOS_MUTEX
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x401191
lea ecx, [esp + 0x30]
push ecx
push 2
call edi
mov edx, dword [0x4032b4]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
push str.No_puedo_abrir_el_MUTEX.
push str.C.G.I._RPCPedidos
push 0x3ea
push 1
call dword [sym.imp.Btel.dll__ReportBackTpvEvent_20]
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret 0x10
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00401230
test eax, eax
jne 0x4011d4
lea eax, [esp + 0x30]
push eax
push 2
call edi
mov ecx, dword [0x4032b4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret 0x10
lea edx, [esp + 0x30]
push edx
push 2
call edi
mov eax, dword [0x4032b4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [esp + 0x88]
add esp, 0x9c
ret 0x10
Function at 0x401230
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x98
push esi
push edi
xor esi, esi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], si
mov dword [esp + 8], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.004013a0
add esp, 8
test eax, eax
je 0x4012c6
cmp dword [esp + 8], esi
je 0x4012bb
lea edx, [esp + 0xc]
push esi
push edx
lea eax, [esp + 0x28]
push 0x80
push eax
push 0xfffffffffffffff5
mov word [esp + 0x34], 3
mov dword [esp + 0x36], 1
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4012bb
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
xor eax, eax
pop esi
add esp, 0x98
ret
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00401600
add esp, 8
test eax, eax
je 0x401324
lea ecx, [esp + 0xc]
push esi
push ecx
lea edx, [esp + 0x28]
push 0x80
push edx
push 0xfffffffffffffff5
mov word [esp + 0x34], 3
mov dword [esp + 0x36], 1
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401387
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
xor eax, eax
pop esi
add esp, 0x98
ret
mov edx, dword [esp + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00401ad0
add esp, 8
test eax, eax
je 0x401392
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x28]
push 0x80
push ecx
push 0xfffffffffffffff5
mov word [esp + 0x34], 3
mov dword [esp + 0x36], 1
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401387
mov edx, dword [esp + 8]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401387
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
xor eax, eax
pop esi
add esp, 0x98
ret
pop edi
mov eax, 1
pop esi
add esp, 0x98
ret
Function at 0x10014100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1001410f
pop dword [ebp - 0x20]
mov eax, 0x1001410f
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x6090eece
add dword [ebp - 0x30], 0xedc1567d
mov dword [ebp - 0x2c], 0xa36e6679
add dword [ebp - 0x2c], 0x8ec4e5cc
mov dword [ebp - 0x28], 0x7b02a98a
add dword [ebp - 0x28], 0xd1499aa4
mov dword [ebp - 0x24], 0xec64292e
add dword [ebp - 0x24], 0x139bd6d2
lea eax, [ebp - 0x30]
push eax
mov eax, 0xcdf0102e
sub eax, 0xbdee7ff2
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xe4ed69cc
add dword [ebp - 0x30], 0x8f84ff8a
mov dword [ebp - 0x2c], 0x95f6cf8d
add dword [ebp - 0x2c], 0xab7591e8
mov dword [ebp - 0x28], 0x90c600a3
sub dword [ebp - 0x28], 0x2d569437
mov dword [ebp - 0x24], 0x2bda9c1d
sub dword [ebp - 0x24], 0x2bda9c1d
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x38aba
push 0
call eax
mov ecx, 0x555166d2
add ecx, 0xaaaee980
xor esi, esi
add esi, eax
mov edi, 0x10022800
add edi, dword [ebp - 0x20]
mov ebx, 0x5f5dff50
xor dword [ebp - 0xc], 0x9d362d9c
mov edx, dword [edi]
xor edx, ebx
mov dword [esi], edx
xor dword [ebp - 8], 0x27ec504b
add esi, 0x9eb27656
add esi, 0x614d89ae
add edi, 0x661f4aa2
sub edi, 0x661f4a9e
loop 0x1001421d
add eax, 0xa9b5b4e8
add eax, 0x564b7f33
xor ebx, ebx
add ebx, eax
add eax, 0x6776bf85
sub eax, 0x6776bf80
mov ecx, 0xb3f18c7
sub ecx, 0xfb3f18c7
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x10014d90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x1001f83c]
push dword [esp + 4]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x234]
call eax
test eax, eax
je 0x10014dd2
push 0x51b
push str.hprof_util.c
push str.Unable_to_get_necessary_JVMTI_capabilities.
push 0
push 0
call fcn.10005090
add esp, 0x14
mov dword [esp + 4], 1
jmp fcn.10005080
ret

Function at 0x10016400
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
xorps xmm0, xmm0
push edx
movups xmmword [edx], xmm0
mov eax, dword [0x1001f83c]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x22c]
call eax
test eax, eax
je 0x10016449
push 0x50e
push str.hprof_util.c
push str.Unable_to_get_potential_JVMTI_capabilities.
push 0
push 0
call fcn.10005090
add esp, 0x14
mov dword [esp + 4], 1
jmp fcn.10005080
ret
Function at 0x40ce0a
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push esi
lea edx, [6]
push edx
mov edi, 0x4ee
shr edi, 8
push edi
pop dword [0x42499a]
push 0x424b96
mov ebx, 0x482
and ebx, 0xff
or ebx, ebx
jne 0x40ce3f
shl ebx, 6
mov dword [ebp - 0x30], ebx
push 0x60
call fcn.0040c224
push str.ISAietLG
push str.qcnixX
call dword [sym.imp.kernel32.dll_lstrcmpA]
mov dword [0x424a82], eax
push 0x101
push 0
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
mov dword [0x4249ee], eax
mov edi, 0x4c5
and edi, 0xfff
ror edi, 0xc
mov dword [ebp - 0x24], edi
mov esi, 0xca0
add esi, dword [0x422139]
test esi, esi
jne 0x40ce93
shr esi, 4
mov dword [ebp - 0x10], esi
mov eax, 0x679
sub eax, 0xde6
test eax, eax
jne 0x40cea7
shl eax, 8
push eax
pop dword [0x424983]
push str.yangs
push str.TZzMCn
call dword [sym.imp.kernel32.dll_lstrcmpA]
mov dword [0x424b04], eax
push 0x101
push 0
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
mov dword [0x42491b], eax
push 0x422c1f
push str.hdTXVA
call dword [sym.imp.kernel32.dll_lstrcmpA]
mov dword [0x424ad2], eax
mov dword [0x424ce9], 0xc8a8e1b2
push 0x101
push 0
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
mov dword [0x4248f0], eax
push esp
push esi
call fcn.0040c144
lea edx, [0x1f]
push edx
lea edx, [0x20]
push edx
push edi
jmp 0x462570
Function at 0xd8fe40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7f7000]
push edi
jmp 0xd8fe5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xd8fe61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd8fe50
mov eax, 1
add ebx, ebx
jne 0xd8fe73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xd8fe84
jne 0xd8fea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd8fea3
dec eax
add ebx, ebx
jne 0xd8fe90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xd8fe68
add ebx, ebx
jne 0xd8fe9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xd8fef5
xor ecx, ecx
sub eax, 3
jb 0xd8febb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xd8ff2a
sar eax, 1
mov ebp, eax
jmp 0xd8fec6
add ebx, ebx
jne 0xd8fec6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd8fe94
inc ecx
add ebx, ebx
jne 0xd8fed4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd8fe94
add ebx, ebx
jne 0xd8fee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xd8fed6
jne 0xd8fef2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xd8fed6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xd8ff14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xd8ff06
jmp 0xd8fe56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xd8ff14
add edi, ecx
jmp 0xd8fe56
pop esi
mov edi, esi
mov ecx, 0x4787
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xd8ff32
cmp byte [edi], 0x93
jne 0xd8ff32
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xd8ff37
lea edi, [esi + 0x98d000]
mov eax, dword [edi]
or eax, eax
je 0xd8ffaf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x98fa60]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x98fa9c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xd8ff64
mov ecx, edi
jns 0xd8ff93
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x98faa4]
or eax, eax
je 0xd8ffa9
mov dword [ebx], eax
add ebx, 4
jmp 0xd8ff81
call dword [esi + 0x98faa0]
mov ebp, dword [esi + 0x98faa8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xd8ffe3
sub esp, 0xffffff80
jmp 0x414c78
Function at 0x40e206
Capabilities:
Encode data using xor

Disassembly:
popal
mov esi, 0x115fd107
lahf
int1
mov al, byte [0xb56c1261]
pop es
aaa
jno 0x40e23c
vcvtsd2ss xmm0, xmm3, qword [edi - 0x80]
xchg byte [edx + 4], dl
xchg byte [ecx + 0x29], dl
jne 0x40e1f9
clc
loopne 0x40e23d
push es
enter 0xffffffffffffbc32, 0xffffffffffffffbb
push eax
lodsb al, byte [esi]
pop es
xor al, 0x74
scasd eax, dword es:[edi]
in al, dx
js 0x40e212
or byte [ebx], cl
push 0xb2e374be
mov esi, 0x910600c6
popfd
invalid
cmpsb byte [esi], byte es:[edi]
push ds
jle 0x40e256
fsub qword [eax + 0x22]
pop es
xchg edi, eax
cmp al, 0
and dword [esi], edx
sub al, 0x58
cwde
loopne 0x40e2a4
sbb ebp, esi
out dx, al
test eax, 0x767f50b8
pop esi
sub eax, 0xb205fe5f
lds edi, [ecx + 0x1e100017]
aam 0xa8
or al, 0x8d
out dx, eax
div dword [edx - 0x622220c0]
insd dword es:[edi], dx
jmp 0x87d81277
stosd dword es:[edi], eax
push ebp
xor eax, 0xe700eeac
into
fnstsw word [ebx]
dec sp
mov dword [0x1adbaa0e], eax
std
salc
cmpsd dword [esi], dword es:[edi]
movsb byte es:[edi], byte [esi]
call dword [ecx + 0x25]
ret 0x8830
Function at 0x7ac4e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x100
mov eax, dword [ebp + 8]
push eax
call fcn.007ac530
add esp, 8
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov edx, esi
mov ebx, dword [0x7ac9f4]
and edx, 0xff
mov al, byte [esi]
xor al, bl
mov byte [edi], al
inc edi
add ebx, edx
inc esi
xor bl, al
cmp al, 0
jne 0x7ac513
mov dword [0x7ac9f4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0xc25960
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x537000]
push edi
or ebp, 0xffffffff
jmp 0xc25982
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xc25989
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc25978
mov eax, 1
add ebx, ebx
jne 0xc2599b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xc259ac
jne 0xc259cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc259cb
dec eax
add ebx, ebx
jne 0xc259b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xc25990
add ebx, ebx
jne 0xc259c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xc25a1d
xor ecx, ecx
sub eax, 3
jb 0xc259e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xc25a52
sar eax, 1
mov ebp, eax
jmp 0xc259ee
add ebx, ebx
jne 0xc259ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc259bc
inc ecx
add ebx, ebx
jne 0xc259fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc259bc
add ebx, ebx
jne 0xc25a09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xc259fe
jne 0xc25a1a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xc259fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xc25a3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xc25a2e
jmp 0xc2597e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xc25a3c
add edi, ecx
jmp 0xc2597e
pop esi
mov edi, esi
mov ecx, 0x513ba5
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0xc25a77
cmp byte [edi], 0x96
jne 0xc25a5c
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0xc25a5a
lea edi, [esi + 0x806000]
mov eax, dword [edi]
or eax, eax
je 0xc25ac8
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8675c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x867718]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xc25a7d
mov ecx, edi
jns 0xc25aac
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x867720]
or eax, eax
je 0xc25ac2
mov dword [ebx], eax
add ebx, 4
jmp 0xc25a9a
call dword [esi + 0x86771c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xc25af9
cmp al, 0xef
ja 0xc25aec
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xc25ace
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xc25adb
mov ebp, dword [esi + 0x867724]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xc25b2d
sub esp, 0xffffff80
jmp 0x8e9785
Function at 0x40240d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x40244e
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x402427
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x40246c
dec esi
je 0x402463
dec esi
jne 0x402471
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40668f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x114
call fcn.0046a330
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
mov ecx, dword [ebp + 0x94]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0046984a
add ebp, 0x98
leave
ret

Function at 0x406afb
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1f8c]
mov eax, 0x200c
call fcn.00469cb0
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp + 0x1f88], eax
cmp dword [0x4c6f4c], 1
mov eax, dword [ebp + 0x1f94]
mov dword [ebp - 0x7c], eax
jne 0x406bdf
push esi
xor esi, esi
cmp word [0x4c6538], si
je 0x406bcd
push edi
xor eax, eax
push 0x1ffe
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.0046a330
push str.SerialNumber.txt
push 0x104
mov edi, 0x4c6538
push edi
mov dword [ebp - 0x80], esi
call fcn.00469454
add esp, 0x18
push esi
push 2
push 4
push esi
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406bcc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push str._s___X__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
lea ecx, [ebp - 0x80]
push ecx
push eax
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push ebx
push dword [ebp - 0x7c]
push str._s___X_
call fcn.00409158
add esp, 0xc
pop esi
push dword [ebp - 0x7c]
push 0x400
push 0x4c6748
call fcn.0046befa
mov ecx, dword [ebp + 0x1f88]
xor ecx, ebp
add esp, 0xc
mov dword [0x4c6740], ebx
call fcn.0046984a
add ebp, 0x1f8c
leave
ret
Function at 0x407cff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp + 0x1e4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0x200]
lea esi, [ebp + 0x1f0]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x2c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x204]
lea ebx, [ebp - 0x1c]
mov dword [ebp - 0x7c], eax
movsd dword es:[edi], dword [esi]
call fcn.004065b6
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
push 0x20019
xor edi, edi
push edi
mov eax, ebx
push eax
push closesocket
mov dword [ebp - 0x78], 0x44
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x407ddb
cmp dword [ebp - 0x74], edi
jne 0x407d83
xor eax, eax
jmp 0x407da3
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046db50
mov eax, esp
push esi
push dword [ebp - 0x74]
push eax
call fcn.00406299
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push edi
push edi
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x70]
call fcn.00406ace
cmp esi, edi
jne 0x407ddb
mov eax, dword [ebp - 0x7c]
cmp eax, edi
je 0x407ddb
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x2c], ecx
mov eax, esi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1e4]
xor ecx, ebp
call fcn.0046984a
add ebp, 0x1e8
leave
ret
Function at 0x408169
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x224]
sub esp, 0x2a4
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp + 0x220], eax
push ebx
push esi
push edi
lea esi, [ebp + 0x22c]
lea edi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push str._SerialNumber_SetMasterVersion
xor ebx, ebx
movsd dword es:[edi], dword [esi]
call fcn.00406afb
sub esp, 0xc
lea esi, [ebp - 0x70]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
call fcn.004064f6
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x60]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x408311
sub esp, 0x10
lea esi, [ebp - 0x70]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x1a0]
movsd dword es:[edi], dword [esi]
call fcn.004063e5
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x408308
movzx eax, byte [ebp + 0x23c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov dword [ebp - 0x78], eax
pop edi
cmp byte [ebp + 0x23c], bl
je 0x408256
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x49fbd0
push dword [ebp - 0x74]
call esi
jmp 0x408264
push 0x49fbd0
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx eax, byte [ebp + 0x240]
mov dword [ebp - 0x78], eax
cmp byte [ebp + 0x240], bl
je 0x408289
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x49fbd4
push dword [ebp - 0x74]
call esi
jmp 0x408297
push 0x49fbd4
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx eax, byte [ebp + 0x244]
mov dword [ebp - 0x78], eax
cmp byte [ebp + 0x244], bl
je 0x4082bc
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x48936c
push dword [ebp - 0x74]
call esi
jmp 0x4082ca
push 0x48936c
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx eax, byte [ebp + 0x248]
mov dword [ebp - 0x78], eax
cmp byte [ebp + 0x248], bl
je 0x4082ef
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x49fbcc
push dword [ebp - 0x74]
call esi
jmp 0x4082fd
push 0x49fbcc
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x74]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x49fbd8
mov ebx, esi
call fcn.00406afb
pop ecx
mov ecx, dword [ebp + 0x220]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046984a
add ebp, 0x224
leave
ret 0x20