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

Disassembly:
push ebx
push esi
mov esi, ecx
or edx, 0xffffffff
push edi
add dword [esi + 0xa4], 0xfffffffc
lea edi, [esi + 0xa8]
mov ebx, dword [esi + 0xa4]
test ebx, ebx
je 0x411e78
nop
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x431420]
dec ebx
jne 0x411e60
mov ebx, dword [esi + 0xa4]
not edx
movzx ecx, byte [ebx + esi + 0xab]
movzx eax, byte [ebx + esi + 0xaa]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + esi + 0xa9]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + esi + 0xa8]
shl ecx, 8
or ecx, eax
cmp edx, ecx
je 0x411ebc
pop edi
pop esi
mov eax, 7
pop ebx
ret
lea edi, [esi + 0xa0]
mov dword [edi], 2
mov al, byte [esi + 0xa9]
test al, 0x3f
je 0x411edb
pop edi
pop esi
mov eax, 6
pop ebx
ret
test al, 0x40
je 0x411f06
push ebx
lea ebx, [esi + 0xa8]
mov ecx, esi
push edi
mov edx, ebx
call fcn.004118e0
add esp, 8
cmp eax, 1
jne 0x411eb3
mov eax, dword [esi + 8]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x2c], eax
jmp 0x411f1a
mov dword [esi + 0x28], 0xffffffff
lea ebx, [esi + 0xa8]
mov dword [esi + 0x2c], 0xffffffff
test byte [esi + 0xa9], 0x80
je 0x411f4d
push dword [esi + 0xa4]
mov edx, ebx
mov ecx, esi
push edi
call fcn.004118e0
add esp, 8
cmp eax, 1
jne 0x411eb3
mov eax, dword [esi + 8]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x34], eax
jmp 0x411f5b
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
mov ecx, dword [esi + 0xa4]
mov eax, ecx
mov edx, dword [edi]
sub eax, edx
cmp eax, 2
jb 0x411eb3
mov al, byte [edx + esi + 0xa8]
lea ebx, [edx + 1]
mov dword [edi], ebx
cmp al, 0x21
jne 0x411ed2
mov al, byte [ebx + esi + 0xa8]
inc ebx
mov dword [edi], ebx
cmp al, 1
jne 0x411ed2
sub ecx, ebx
cmp ecx, 1
jb 0x411eb3
mov dl, byte [ebx + esi + 0xa8]
lea eax, [ebx + 1]
mov ecx, dword [esi + 0x4a8]
mov dword [edi], eax
call fcn.00413380
test eax, eax
jne 0x412002
mov edx, dword [esi + 0xa4]
cmp dword [edi], edx
jae 0x411fde
mov eax, dword [edi]
mov cl, byte [eax + esi + 0xa8]
inc eax
mov dword [edi], eax
test cl, cl
jne 0x411ed2
cmp eax, edx
jb 0x411fc6
mov dword [edi], 0
xor eax, eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
pop edi
pop esi
pop ebx
ret
Function at 0x41e74c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004188ed
mov dword [ebp - 0x14], eax
cmp dword [0x4300ac], esi
jne 0x41e83f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41e7cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41e91f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41e91f
push 0x427f1c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41e91f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4300ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4300b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4300b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4300bc], eax
test eax, eax
je 0x41e83c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4300b8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41e864
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41e857
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41e879
push 4
pop eax
jmp 0x41e921
cmp dword [ebp - 0x14], esi
je 0x41e879
push dword [0x4300ac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41e85e
mov eax, dword [0x4300b8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41e8d7
cmp dword [0x4300bc], edi
je 0x41e8d7
push eax
call ebx
push dword [0x4300bc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41e8d7
test eax, eax
je 0x41e8d7
call ecx
test eax, eax
je 0x41e8cc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41e8cc
test byte [ebp - 8], 1
jne 0x41e8d7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41e907
mov eax, dword [0x4300b0]
cmp eax, edi
je 0x41e904
push eax
call ebx
test eax, eax
je 0x41e904
call eax
mov esi, eax
test esi, esi
je 0x41e904
mov eax, dword [0x4300b4]
cmp eax, edi
je 0x41e904
push eax
call ebx
test eax, eax
je 0x41e904
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4300ac]
call ebx
test eax, eax
je 0x41e91f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41e921
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004136c0
mov esp, ebp
pop ebp
ret
Function at 0x41efa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0041ec24
push eax
push esi
push dword [ebp + 8]
call fcn.0041ebd9
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0041ec24
push eax
push esi
push dword [ebp + 8]
call fcn.0041ebd9
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [di - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0041ec24
push eax
push esi
push dword [ebp + 8]
call fcn.0041ebd9
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0041ec14
pushfd
or esi, eax
mov dh, 0x88
popfd
jl 0x41f099
invalid
invalid
Function at 0x41f35a
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41f2eb
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x41f309
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x41f367
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x41f34e
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x41f357
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x41f361
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x41f343
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x41f2cd
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x41f3b4
dec eax
je 0x41f3ab
sub eax, 3
je 0x41f3a2
mov dword [ebp - 4], 0x40
jmp 0x41f3d1
mov dword [ebp - 4], 4
jmp 0x41f3b7
mov dword [ebp - 4], 0x20
jmp 0x41f3b7
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x41f403
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x41f383
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0041ec14
xor al, 0x40
add ebx, dword [ebp - 1]
jne 0x41f40e
push 1
push esi
call edi
mov eax, esi
jmp 0x41f40f
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x248a3740
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6e355d86
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4040e8
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
cmp al, 7
jb 0x404145
sub al, 7
je 0x4041b9
dec al
je 0x40410b
sub al, 2
je 0x40413d
sub al, 3
je 0x40412c
jmp 0x404145
call fcn.00403ac0
and eax, 0xff
cmp eax, dword [0x4096d0]
jge 0x4041b9
dec dword [0x4096d0]
jmp 0x4041b9
call fcn.00403ac0
and eax, 0xff
mov dword [0x4096d0], eax
jmp 0x4041b9
inc dword [0x4096cc]
jmp 0x4041b9
mov word [ebp - 8], 1
mov word [ebp - 6], 1
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
movzx ax, byte [ebp + 8]
mov word [ebp - 4], ax
movzx ax, byte [0x4096b4]
mov word [ebp - 2], ax
mov eax, dword [0x4096d0]
dec eax
mov word [ebp - 0x14], ax
mov eax, dword [0x4096cc]
dec eax
mov word [ebp - 0x12], ax
mov eax, dword [0x4096d0]
dec eax
mov word [ebp - 0x10], ax
mov eax, dword [0x4096cc]
dec eax
mov word [ebp - 0xe], ax
lea edi, [ebp - 0x14]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [0x40966c]
call sub.kernel32.dll_WriteConsoleOutputA
inc dword [0x4096d0]
call fcn.00403aac
and eax, 0xff
cmp eax, dword [0x4096d0]
jge 0x4041ef
call fcn.00403ac0
and eax, 0xff
mov dword [0x4096d0], eax
inc dword [0x4096cc]
jmp 0x4041ef
push 1
call fcn.00404294
dec dword [0x4096cc]
call fcn.00403ad4
and eax, 0xff
cmp eax, dword [0x4096cc]
jl 0x4041e2
leave
ret 4

Function at 0x404ce8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
movzx eax, byte [ebp + 8]
test eax, eax
sete byte [ebp - 5]
mov al, byte [ebp - 5]
test al, al
jne 0x404d2b
movzx eax, byte [ebp + 8]
add eax, 0x40
mov byte [0x408354], al
lea eax, [ebp - 0x210]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [0x408354]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [ebp - 0x10c]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov al, byte [ebp - 5]
test al, al
jne 0x404d4f
lea eax, [ebp - 0x210]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x310]
push edi
call fcn.004058c0
mov eax, dword [esp]
lea edi, [ebp - 0x310]
push edi
push dword [ebp + 0x10]
call fcn.00404920
mov al, byte [0x408358]
test al, al
jne 0x404da4
mov eax, dword [ebp + 0xc]
push eax
push eax
lea edi, [ebp - 0x310]
push edi
call fcn.00405904
mov eax, dword [esp]
lea edi, [ebp - 0x310]
push edi
push dword [ebp + 0x10]
call fcn.00404920
leave
ret 0xc
Function at 0x405e2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov dword [ebp - 8], 0
call fcn.00405ce4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
inc dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov al, byte [eax + edx]
test al, al
jne 0x405e4b
mov eax, edx
inc eax
push eax
mov eax, dword [ebp - 8]
lea edi, [ebp + eax*4 - 0x230]
push edi
call fcn.00406830
push dword [ebp - 4]
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x230]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040560c
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0x10], eax
jmp 0x405e93
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp byte [eax], 9
je 0x405e90
cmp byte [eax], 0xd
je 0x405e90
cmp byte [eax], 0x20
je 0x405e90
mov al, byte [eax]
or al, al
je 0x405f81
sub al, 0x22
je 0x405ecd
sub al, 5
jne 0x405ee3
lea edi, [ebp - 0x30]
lea esi, [0x4083c4]
cld
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
inc dword [ebp - 0x10]
jmp 0x405ef4
lea edi, [ebp - 0x30]
lea esi, [0x4083e4]
cld
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
inc dword [ebp - 0x10]
jmp 0x405ef4
lea edi, [ebp - 0x30]
lea esi, [0x408404]
cld
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0xc], edi
jmp 0x405eff
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
je 0x405f1a
mov eax, dword [ebp - 0x10]
movzx edi, byte [eax]
push edi
lea edi, [ebp - 0x30]
push edi
call fcn.00406854
jae 0x405efc
mov eax, dword [ebp - 8]
test eax, eax
je 0x405f64
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
inc eax
push eax
mov eax, dword [ebp - 8]
lea edi, [ebp + eax*4 - 0x230]
push edi
call fcn.00406830
push dword [ebp - 4]
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x230]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040560c
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x230]
mov edx, dword [ebp - 4]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x10]
movzx edi, byte [eax]
push edi
lea edi, [ebp - 0x30]
push edi
call fcn.00406854
jae 0x405f79
inc dword [ebp - 0x10]
inc dword [ebp - 8]
jmp 0x405e93
mov edi, dword [ebp - 8]
mov dword [0x409e44], edi
mov eax, edi
xor edi, edi
mov dword [ebp + eax*4 - 0x230], edi
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
shl eax, 2
push eax
push 0x409e48
call fcn.00406830
mov eax, dword [ebp - 8]
shl eax, 2
push eax
mov eax, dword [0x409e48]
push eax
lea edi, [ebp - 0x230]
push edi
call fcn.0040560c
call sub.kernel32.dll_GetCommandLineA
mov dword [0x408424], eax
leave
ret
Function at 0x47632f
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.00469e02
and dword [ebp - 4], 0
cmp dword [0x4be864], 0
mov ebx, eax
jne 0x4763e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x476491
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x476491
push eax
call fcn.00469d90
mov dword [esp], 0x49ccf0
push edi
mov dword [0x4be864], eax
call esi
push eax
call fcn.00469d90
mov dword [esp], 0x49ccdc
push edi
mov dword [0x4be868], eax
call esi
push eax
call fcn.00469d90
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4be86c], eax
call esi
push eax
call fcn.00469d90
pop ecx
mov dword [0x4be874], eax
test eax, eax
je 0x4763e0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00469d90
pop ecx
mov dword [0x4be870], eax
mov eax, dword [0x4be870]
cmp eax, ebx
je 0x476438
cmp dword [0x4be874], ebx
je 0x476438
push eax
call fcn.00469e0b
push dword [0x4be874]
mov esi, eax
call fcn.00469e0b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x476438
test edi, edi
je 0x476438
call esi
test eax, eax
je 0x47642f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47642f
test byte [ebp - 0xc], 1
jne 0x476438
or dword [ebp + 0x10], 0x200000
jmp 0x476471
mov eax, dword [0x4be868]
cmp eax, ebx
je 0x476471
push eax
call fcn.00469e0b
pop ecx
test eax, eax
je 0x476471
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x476471
mov eax, dword [0x4be86c]
cmp eax, ebx
je 0x476471
push eax
call fcn.00469e0b
pop ecx
test eax, eax
je 0x476471
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4be864]
call fcn.00469e0b
pop ecx
test eax, eax
je 0x476491
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x476493
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x12806b3
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4ca26b47
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402129
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402164
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402160
lea ebx, [ebx]
cmp esi, eax
jae 0x402164
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402150
cmp esi, eax
jb 0x40216a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403a20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x51edc8
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x565fd0]
xor eax, esp
mov dword [esp + 0x110], eax
push esi
mov eax, dword [0x565fd0]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov dword [esp + 0x124], 0
mov edx, dword [0x56d40c]
mov dword [esp + 8], 0
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x403a9a
push 0x104
mov ecx, 0x56d40c
call fcn.00402610
mov edx, dword [0x56d40c]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [0x56d40c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004f9c77
add esp, 8
test eax, eax
jl 0x403bb3
mov ecx, dword [0x56d40c]
cmp eax, dword [ecx - 8]
jg 0x403bb3
mov dword [ecx - 0xc], eax
mov ecx, dword [0x56d40c]
mov byte [ecx + eax], 0
test esi, esi
jne 0x403b53
push 0x104
lea edx, [esp + 0x18]
push esi
push edx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x104
call fcn.004fb1b0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x130]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403b40
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403b53
lea edx, [esp + 0x14]
push edx
push 0x547bd0
push edi
call fcn.00404790
add esp, 0xc
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x124], 0xffffffff
mov eax, dword [esp + 0x12c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004f96cd
add esp, 0x120
ret
push 0x80070057
call fcn.004020f0
int3