joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427d77
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x576af5
call fcn.00554d51
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x427d9d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x427dfc
call fcn.00410f0c
push eax
lea ecx, [ebp - 0x10]
call fcn.00402d90
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.00554d14
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0055db2f
push eax
call fcn.004027d0
add esp, 0x14
test esi, esi
je 0x427def
push esi
call fcn.0055db3a
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402fb0
mov eax, ebx
call fcn.00554d1a
ret 8

Function at 0x42a42e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x42a473
call fcn.00426bc4
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42a473
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x42a48f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004a6c2a
mov ebx, eax
test edi, edi
je 0x42a48d
test esi, esi
je 0x42a48d
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42ae74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x42af32
cmp dword [esi + 0x20], 0
je 0x42af32
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42af32
cmp dword [ebp + 8], 0
je 0x42af32
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.00426bc4
push 0x585928
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x42af03
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42af32
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.004c6f9e
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x42af23
test edi, edi
je 0x42af23
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x42af2e
mov ecx, esi
call fcn.0042ac17
mov eax, ebx
jmp 0x42af34
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43f1e8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ch, 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0043ef5b
in al, dx
sbb dword [edi + 0x48], 0x50a8458d
call fcn.0043ef6b
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0043ef20
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x43f249
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
invalid

Function at 0x43f5c0
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x43f60f
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
dec eax
or byte [ebx], al
ror byte [ecx - 0x35c4f7b3], 1
dec eax
or byte [ebx], al
ror byte [ecx - 0x35c4f7b3], 1
jae 0x43f60a
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x43f5f4
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x43f5fc
cmp edx, ebx
jne 0x43f74a
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x43f5cb
add eax, dword [eax + 4]
jmp 0x43f5b8
mov dword [ebp + 0xc], ebx
jmp 0x43f61a
Function at 0x43f632
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne fcn.0043f632
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x43f650
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 0x43f6ae
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 0x43f695
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x43f69e
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x43f6a8
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x43f68a
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x43f614
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 0x43f6fb
dec eax
je 0x43f6f2
sub eax, 3
je 0x43f6e9
mov dword [ebp - 4], 0x40
jmp 0x43f718
mov dword [ebp - 4], 4
jmp 0x43f6fe
mov dword [ebp - 4], 0x20
jmp 0x43f6fe
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 0x43f74a
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x43f6ca
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0043ef5b
invalid
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
Function at 0x443c57
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x443c70
call fcn.00426bc4
mov esi, dword [eax + 0xc]
push 0x5867a8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x443cc6
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x443cc5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x443ca6
xor esi, esi
jmp 0x443cbc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00443cce
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4c8aa8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x4c8ac2
mov edi, dword [esi + 0xc]
jmp 0x4c8b02
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4c8adb
call fcn.004230dc
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4c8af0
call fcn.004230dc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4c8b02
call fcn.004230dc
call fcn.00426bc4
cmp dword [eax + 0x3c], 0
je 0x4c8b17
push edi
mov ecx, ebx
call fcn.004c813c
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004c8cf4
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4c8b40
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4c8b4c
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c93fa
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0042796c
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4c9436
call fcn.004c961c
mov dword [esi + 0xc], 1
jmp 0x4c943b
call fcn.004c961c
cmp dword [esi], 0
je 0x4c9484
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4c945e
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00411149
jmp 0x4c946f
push 0xff
mov ecx, esi
call fcn.00402ab0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00404250
jmp 0x4c94a8
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4c94a8
push dword [esi]
push dword [ebp - 4]
call fcn.00432742
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c9571
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004c961c
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4c95b9
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00411149
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404250
jmp 0x4c95c4
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00432742
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4dcd0c
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x57b6f2
call fcn.00554d85
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00402ec0
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5b491c
call fcn.0040af40
cmp eax, 0xffffffff
jne 0x4dcdd7
push 0
push 0x586764
lea ecx, [ebp - 0x4d0]
call fcn.0040af40
cmp eax, 0xffffffff
jne 0x4dcdd7
push 0
push 0x5b4c8c
lea ecx, [ebp - 0x4d0]
call fcn.0040af40
cmp eax, 0xffffffff
jne 0x4dcdd7
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00402ec0
mov edi, eax
pop ecx
mov dword [ebp - 0x4d4], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x4d8], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x218]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4dcdb4
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.00554d14
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.00402fb0
jmp 0x4dce0f
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00402c40
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402fb0
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4dcdfd
mov edi, dword [ebp - 0x4cc]
jmp 0x4dce0f
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.00554d14
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00402fb0
mov eax, edi
call fcn.00554d2f
ret

Function at 0x56d5b2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056d272
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407949
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407949
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407949
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407949
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407949
mov dword [0x41203c], eax
call fcn.00407949
test eax, eax
jge 0x402550
push 8
call fcn.00407949
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407949
pop ecx
push 1
call fcn.00407949
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407949
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407949
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407949
jmp 0x402495

Function at 0x407949
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x407958
pop dword [ebp - 0x1c]
mov eax, 0x407958
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3528e
push 0
mov eax, 0xc876c210
add eax, 0x37ca1ec8
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x6b56a477
add ecx, 0x94a991f7
mov ebx, eax
mov edx, 0x413bc4
add edx, dword [ebp - 0x1c]
mov edi, 0x9de4efdd
sub edi, 0xf36b71c6
xor dword [ebp - 0xc], 0x7bc29e36
mov esi, dword [edx]
add dword [ebp - 4], edi
add esi, edi
mov dword [ebx], esi
xor dword [ebp - 8], 0x4231e3c3
add ebx, 0xcdc40002
add ebx, 0x323c0002
add edx, 4
loop 0x4079ac
add eax, 0x70914fca
add eax, 0x8f6f7cc1
mov ebx, eax
add eax, 0x3e696046
add eax, 0xc1969fbf
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x403015
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x403024
pop dword [ebp - 0x1c]
mov eax, 0xec4b197
sub eax, 0xe848173
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x2b9ae6d3
add dword [ebp - 0x2c], 0x22b75e78
mov dword [ebp - 0x28], 0xe0a29ae3
add dword [ebp - 0x28], 0x5190b162
mov dword [ebp - 0x24], 0xfd7c06de
sub dword [ebp - 0x24], 0xb12fc2b0
mov dword [ebp - 0x20], 0x22d75a99
sub dword [ebp - 0x20], 0x22d75a99
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xc22a3b31
sub eax, 0xc1e9bab9
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x71cb2a2a
sub dword [ebp - 0x2c], 0xfd58c0d4
mov dword [ebp - 0x28], 0xbe498969
add dword [ebp - 0x28], 0x8322d80c
mov dword [ebp - 0x24], 0x539488cb
add dword [ebp - 0x24], 0xfdae3a1
mov dword [ebp - 0x20], 0x1054dfa6
sub dword [ebp - 0x20], 0x1054dfa6
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xc3c6f3a5
add eax, 0x3c798cd7
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x37048
push 0
call eax
mov ecx, 0xfcfe5f5c
sub ecx, 0xfcfe1771
mov edi, eax
mov edx, 0xa02108c5
sub edx, 0x9fdbf4c5
add edx, dword [ebp - 0x1c]
mov esi, 0x3d0158e
xor dword [ebp - 0x18], 0x57c336f1
mov ebx, dword [edx]
add dword [ebp - 8], 0x9ec5c2f3
sub ebx, esi
add dword [ebp - 0x10], ebx
mov dword [edi], ebx
xor dword [ebp - 4], 0xf79169c0
add edi, 0xd341be7f
sub edi, 0xd341be7b
add edx, 4
loop 0x403140
add eax, 0x1f704555
sub eax, 0x1f6f32d6
xor ebx, ebx
add ebx, eax
add eax, 0x47091e57
add eax, 0xb8f6e1ae
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x10074bb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10074d2
xor eax, eax
jmp 0x10074da
shr eax, 4
not eax
and eax, 1
pop ebp
ret 4

Function at 0x1007640
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xa8], 0
cmp dword [0x100c5e8], 0xfffffffe
mov dword [ebp - 0xb0], 0xc
jne 0x1007765
and dword [0x100c5e8], 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1007765
cmp dword [ebp - 0x94], 1
jne 0x1007765
cmp dword [ebp - 0xa0], 4
jne 0x1007765
cmp dword [ebp - 0x9c], 0xa
jae 0x1007765
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1007765
lea eax, [ebp - 0xac]
push eax
push 0x20019
push 0
push 0x10015bc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007765
push edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x10012e1
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xac]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1007765
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0100751e
test eax, eax
je 0x1007765
and dword [ebp - 0xa8], 0x3ff
cmp dword [ebp - 0xa8], 1
je 0x100775b
cmp dword [ebp - 0xa8], 0xd
jne 0x1007765
mov dword [0x100c5e8], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x100c5e8]
xor ecx, ebp
call fcn.01006b33
leave
ret

Function at 0x10077d6
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0100777b

Function at 0x1008b36
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 2
test eax, eax
jle 0x1008b75
push esi
movzx esi, byte [ecx]
xor ebx, ebx
dec eax
inc ecx
mov bh, byte [ecx]
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or esi, ebx
inc ecx
xor edx, esi
test eax, eax
jg 0x1008b50
pop esi
and edi, 3
xor eax, eax
dec edi
je 0x1008b91
dec edi
je 0x1008b8a
dec edi
jne 0x1008b96
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
xor eax, edx
pop ebx
pop ebp
ret 0xc
Function at 0x401c00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401c4b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401c44
test esi, esi
je 0x401c44
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c20
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401e30
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401e80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401f54
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401ebe
cmp eax, 4
jne 0x401ee0
test esi, esi
je 0x401ed2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401ec4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401f1f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401f11
cmp ecx, 0x40
je 0x401ed2
cmp ecx, 4
je 0x401ed2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401e30
lea esi, [esi]
Function at 0x401b50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.Vcl40.bpl__System__LStrAddRef_qqrv
mov eax, dword [ebp - 8]
call sub.Vcl40.bpl__System__LStrAddRef_qqrv
mov eax, dword [ebp - 0xc]
call sub.Vcl40.bpl__System__LStrAddRef_qqrv
xor eax, eax
push ebp
push 0x401c1f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x401c38
call sub.Vcl40.bpl__System__LStrCat_qqrv
lea eax, [ebp - 8]
mov edx, 0x401c38
call sub.Vcl40.bpl__System__LStrCat_qqrv
lea eax, [ebp - 0xc]
mov edx, 0x401c38
call sub.Vcl40.bpl__System__LStrCat_qqrv
mov bl, 1
push 1
lea eax, [ebp - 0xc]
call sub.Vcl40.bpl__System_UniqueString_qqrr17System_AnsiString
push eax
lea eax, [ebp - 8]
call sub.Vcl40.bpl__System_UniqueString_qqrr17System_AnsiString
push eax
lea eax, [ebp - 4]
call sub.Vcl40.bpl__System_UniqueString_qqrr17System_AnsiString
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x401c04
xor ebx, ebx
push 0
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x401c44
call sub.Vcl40.bpl__System__LStrCat3_qqrv
mov eax, dword [ebp - 0x10]
mov cx, word [0x401c58]
mov dl, 1
call sub.Vcl40.bpl__Dialogs_MessageDlg_qqrx17System_AnsiString19Dialogs_TMsgDlgType47System__Set_t18Dialogs_TMsgDlgBtn_iuc_0_iuc_10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401c26
lea eax, [ebp - 0x10]
mov edx, 4
call sub.Vcl40.bpl__System__LStrArrayClr_qqrv
ret