joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003994
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.10002020
xor eax, eax
push ebp
push 0x10003b7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx + 4], esi
xor eax, eax
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 8], eax
mov byte [ebx + 0x10], 0
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 4]
call fcn.10001c28
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x5a4d
je 0x100039f6
mov eax, 0x10003b90
call fcn.10003314
jmp 0x10003b64
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edi, eax
cmp dword [edi], 0x4550
je 0x10003a27
mov eax, 0x10003bac
call fcn.10003314
jmp 0x10003b64
push 4
push 0x2000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
push eax
call fcn.10002b34
mov esi, eax
test esi, esi
jne 0x10003a68
push 4
push 0x2000
mov eax, dword [edi + 0x50]
push eax
push 0
call fcn.10002b34
mov esi, eax
test esi, esi
jne 0x10003a68
mov eax, 0x10003bc8
call fcn.10003314
jmp 0x10003b64
mov dword [ebx + 4], esi
xor eax, eax
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 8], eax
mov byte [ebx + 0x10], 0
push 4
push 0x1000
mov eax, dword [edi + 0x50]
push eax
push esi
call fcn.10002b34
push 4
push 0x1000
mov eax, dword [edi + 0x54]
push eax
push esi
call fcn.10002b34
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10003ab3
mov eax, 0x10003be8
call fcn.10003314
jmp 0x10003b64
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
add ecx, dword [edi + 0x54]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.10002ba4
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov ecx, eax
mov dword [ebx], ecx
mov dword [ecx + 0x34], esi
mov ecx, ebx
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.100038a4
mov eax, esi
sub eax, dword [edi + 0x34]
test eax, eax
je 0x10003b0e
push eax
mov edx, ebx
mov eax, 5
push dword [edx + eax*4]
dec eax
jns 0x10003b03
call fcn.100037d0
mov eax, ebx
call fcn.1000356c
test al, al
jne 0x10003b25
mov eax, 0x10003c14
call fcn.10003314
jmp 0x10003b64
mov eax, ebx
call fcn.10003448
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10003b60
mov edi, eax
add edi, esi
test edi, edi
jne 0x10003b49
mov eax, 0x10003c38
call fcn.10003314
jmp 0x10003b64
push 0
push 1
push esi
call edi
test eax, eax
jne 0x10003b60
mov eax, 0x10003c58
call fcn.10003314
jmp 0x10003b64
mov byte [ebx + 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10003b81
lea eax, [ebp - 4]
call fcn.10001bd4
ret
Function at 0x19b54a4
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
jmp 0x197265f
jmp 0x19bafbd
cmp edi, 0x6a4abc5b
mov bx, dx
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jmp 0x19d4f3f
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
test bp, bp
sub edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
xor si, dx
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
cmc
xor edi, edi
cmc
cmp si, dx
stc
sub eax, eax
xchg al, al
lodsb al, byte [esi]
cmp al, 0x61
jmp 0x1a00f92
loop 0x19bafc4
jmp 0x19a69a6
jmp 0x19b54d2
jne 0x19b54c4
mov eax, ebx
mov dword [ebp - 4], eax
cbw
cmovo eax, esp
movzx eax, bx
mov eax, dword [ebp - 4]
jmp 0x198f9d9
jl 0x1a00f9b
sub al, 0x20
clc
ror edi, 0xd
test bx, si
add edi, eax
jmp 0x19967a2
Function at 0x40c664
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp dword [0x42301c], 0
je 0x40c684
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov dword [0x42301c], 1
push 0x40
mov eax, 0x4150d8
add eax, 0x154
push eax
mov eax, 0x4150d8
add eax, 0x192
push eax
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
jmp 0x40c6b3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cb36
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x54], 0
push 1
lea eax, [ebp - 0x54]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0xc]
shl eax, 2
cmp dword [eax + eax*4 + 0x415558], 0xffffffff
je 0x40cb85
inc dword [ebp - 0xc]
jmp 0x40cb69
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
mov dword [ecx + ecx*4 + 0x415558], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
mov dword [ecx + ecx*4 + 0x415560], eax
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
lea eax, [ebp - 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
mov dword [ecx + ecx*4 + 0x415564], eax
test dword [ebp - 0x4c], 0xffff
jne 0x40cc08
mov eax, dword [ebp - 0xc]
shl eax, 2
mov dword [eax + eax*4 + 0x415560], 4
mov eax, dword [ebp - 0xc]
shl eax, 2
cmp dword [eax + eax*4 + 0x415560], 4
je 0x40cc35
push 0
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x40cc4a
push 0
push 0
mov eax, dword [ebp - 8]
add eax, 0x40
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x40cc4f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cc54
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040cd57
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40cc8e
jmp 0x40cd4d
mov eax, dword [ebp - 4]
sub eax, 0x40
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040cd57
add esp, 0x14
test eax, eax
jne 0x40ccbf
jmp 0x40cd48
mov dword [ebp - 0x14], 0
jmp 0x40ccce
inc dword [ebp - 0x14]
mov eax, dword [ebp - 4]
sub eax, 0x40
cmp eax, dword [ebp - 0x14]
jbe 0x40ccfd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dl, byte [eax + ecx + 0x40]
mov al, byte [edx + 0x415308]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov byte [ecx + edx], al
jmp 0x40cccb
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x40cd52
jmp 0x40ccfd
jmp 0x40ccfd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cd57
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
cmp dword [ebp + 0x18], 0
je 0x40cd76
mov dword [ebp - 0x14], 0xc0000000
jmp 0x40cd7d
mov dword [ebp - 0x14], 0x80000000
cmp dword [ebp + 0x18], 0
je 0x40cd93
mov dword [ebp - 0xc], 2
jmp 0x40cd9a
mov dword [ebp - 0xc], 1
cmp dword [ebp + 0x18], 0
je 0x40cdb0
mov dword [ebp - 4], 2
jmp 0x40cdb7
mov dword [ebp - 4], 3
cmp dword [ebp + 0x18], 0
je 0x40cdcd
mov dword [ebp - 0x10], 4
jmp 0x40cdd4
mov dword [ebp - 0x10], 2
cmp dword [ebp + 0x18], 0
je 0x40cdea
mov dword [ebp - 8], 2
jmp 0x40cdf1
mov dword [ebp - 8], 4
push 0
push 0x80
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x40ce28
xor eax, eax
jmp 0x40cec3
push 0
mov eax, dword [ebp + 0x18]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x40ce66
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x40cec3
mov eax, dword [ebp + 0x18]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x40ceae
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x40cec3
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
jmp 0x40cec3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d358
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x40d374
xor eax, eax
jmp 0x40d419
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x40d389
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], eax
jbe 0x40d3b4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [eax + ecx]
mov al, byte [edx + 0x415410]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov byte [ecx + edx], al
jmp 0x40d386
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov dword [ebp - 4], 0
jmp 0x40d3e4
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], eax
jbe 0x40d40f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [eax + ecx]
mov al, byte [edx + 0x415308]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov byte [ecx + edx], al
jmp 0x40d3e1
mov eax, 1
jmp 0x40d419
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d50d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x40d526
xor eax, eax
jmp 0x40d572
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 1
je 0x40d540
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 2
jne 0x40d550
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x40d568
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
sub eax, 0x40
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, 1
jmp 0x40d572
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d6c8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
nop
leave
add esp, 4
popal
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
pushal
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
jmp 0x40d704
inc dword [ebp - 0xc]
mov eax, dword [0x423018]
cmp dword [ebp - 0xc], eax
jge 0x40d739
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x4237c8]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x40d734
jmp 0x40d739
jmp 0x40d701
mov eax, dword [0x423018]
cmp dword [ebp - 0xc], eax
jl 0x40d763
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0040cc54
add esp, 8
mov dword [ebp - 0x10], 1
jmp 0x40d793
cmp dword [0x42321c], 0
jne 0x40d784
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
mov dword [ebp - 0x10], eax
jmp 0x40d793
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov dword [ebp - 0x10], eax
popal
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x40db68
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
nop
nop
leave
add esp, 4
popal
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
pushal
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
jmp 0x40dbb0
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
shl eax, 2
cmp dword [eax + eax*4 + 0x415558], 0xffffffff
je 0x40dbe4
mov eax, dword [ebp - 0x1c]
shl eax, 2
mov ecx, dword [ebp - 0x18]
cmp dword [eax + eax*4 + 0x415558], ecx
jne 0x40dbdf
jmp 0x40dbe4
jmp 0x40dbad
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x1c]
shl eax, 2
lea eax, [eax + eax*4]
add eax, 0x415558
push eax
call fcn.0040d0e3
add esp, 0x18
test eax, eax
je 0x40dc38
cmp dword [ebp - 4], 0
je 0x40dc33
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
shl ecx, 2
add dword [ecx + ecx*4 + 0x41555c], eax
jmp 0x40dc55
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 0x14

Function at 0x411299
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
jne 0x4112c1
xor eax, eax
leave
ret
mov eax, dword [ebp - 0x84]
xor ecx, ecx
sub eax, ecx
je 0x4112f5
dec eax
je 0x4112d5
dec eax
je 0x4112e7
jmp 0x4112bd
cmp dword [ebp - 0x8c], ecx
jne 0x4112e1
push 4
jmp 0x4112f7
jbe 0x4112e7
push 5
jmp 0x4112f7
cmp dword [ebp - 0x90], 5
sbb eax, eax
add eax, 7
leave
ret
push 3
pop eax
leave
ret

Function at 0x413f0d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x413f3f
push ebx
push edi
mov edi, dword [ebp + 8]
sub edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
push 4
pop ebx
lea ecx, [eax + esi]
mov eax, esi
cdq
idiv ebx
mov al, byte [edx + ebp + 0x10]
xor al, byte [ecx + edi]
inc esi
cmp esi, dword [ebp + 0x14]
mov byte [ecx], al
jl 0x413f20
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4070e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x407102
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407109
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4070f8
mov eax, 1
add ebx, ebx
jne 0x40711b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407110
jne 0x40712c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407110
xor ecx, ecx
sub eax, 3
jb 0x407140
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4071b2
mov ebp, eax
add ebx, ebx
jne 0x40714b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407158
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40717c
inc ecx
add ebx, ebx
jne 0x407168
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40715d
jne 0x407179
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40715d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40719c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40718d
jmp 0x4070fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40719c
add edi, ecx
jmp 0x4070fe
pop esi
mov edi, esi
mov ecx, 0x62
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4071ba
cmp byte [edi], 0
jne 0x4071ba
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 0x4071bf
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x40722e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x71dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x72b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4071ec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x72c0]
or eax, eax
je 0x407228
mov dword [ebx], eax
add ebx, 4
jmp 0x407209
call dword [esi + 0x72bc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40725f
cmp al, 0xef
ja 0x407252
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x407234
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x407241
mov ebp, dword [esi + 0x72c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x407293
sub esp, 0xffffff80
jmp 0x40152f
Function at 0x401000
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, 0x402c
call fcn.00403280
push ebx
push esi
push edi
mov edi, dword [esp + 0x403c]
lea eax, [esp + 0x14]
push eax
push edi
or ebx, 0xffffffff
mov dword [esp + 0x14], 0
call fcn.0040b84a
mov esi, eax
mov eax, dword [esp + 0x30]
neg esi
sbb esi, esi
push 0x8000
not esi
push edi
and esi, eax
call fcn.0040321d
add esp, 0x10
test esi, esi
mov dword [esp + 0x10], eax
jbe 0x4010e5
push ebp
cmp esi, 0x4000
mov eax, 0x4000
ja 0x401062
mov eax, esi
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
call fcn.0040407d
mov ebp, eax
add esp, 0xc
test ebp, ebp
jbe 0x4010e4
mov edi, ebp
shr edi, 2
xor ecx, ecx
test edi, edi
jbe 0x4010a1
movzx eax, byte [esp + ecx*4 + 0x3c]
movzx edx, bl
xor eax, edx
mov edx, dword [eax*4 + 0x40d200]
shr ebx, 8
xor ebx, edx
inc ecx
cmp ecx, edi
jb 0x401086
mov eax, ebp
and eax, 3
je 0x4010d2
movzx edx, byte [esp + edi*4 + 0x3c]
mov ecx, 4
sub ecx, eax
shl ecx, 3
or eax, 0xffffffff
shr eax, cl
movzx ecx, al
movzx eax, bl
and ecx, edx
xor ecx, eax
mov eax, dword [ecx*4 + 0x40d200]
shr ebx, 8
xor ebx, eax
mov eax, dword [esp + 0x10]
add eax, ebp
cmp eax, esi
mov dword [esp + 0x10], eax
jb 0x401053
pop ebp
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00403cc6
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, esi
jb 0x4010fc
not ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x402c
ret

Function at 0x401110
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0xc
push esi
lea eax, [esp + 4]
push eax
push ecx
push edx
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401171
mov ecx, dword [esp + 0x20]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401166
cmp dword [esp + 0xc], 4
jne 0x401166
xor esi, esi
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x401180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
or ebp, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4011f8
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4011ed
cmp dword [esp + 0x18], 1
jne 0x4011ed
xor ebp, ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x401210
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
lea eax, [esp + 4]
push eax
push ecx
push edx
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40125a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40124f
xor esi, esi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x401260
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4012cd
mov edx, dword [esp + 0x14]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401283
mov ecx, dword [esp + 4]
sub eax, esi
inc eax
push eax
mov eax, dword [esp + 0x18]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4012b9
mov edx, dword [esp + 4]
push edx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
mov esi, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret

Function at 0x4012e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0xc
push esi
lea eax, [esp + 8]
push eax
push ecx
push edx
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401349
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x24], 8
mov dword [esp + 0x1c], 0xb
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40133e
cmp dword [esp + 4], 0xb
jne 0x40133e
xor esi, esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret