joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006b5a
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x100abc0
call fcn.01007034
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x100e250
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1006910
cmp eax, esi
jne 0x1006903
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1006913
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10068ea
xor esi, esi
inc esi
mov eax, dword [0x100e24c]
cmp eax, esi
jne 0x1006926
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1006955
mov eax, dword [0x100e24c]
test eax, eax
jne 0x100694f
mov dword [0x100e24c], esi
push 0x1001298
push 0x100128c
call fcn.0100684f
pop ecx
pop ecx
test eax, eax
je 0x1006955
jmp 0x1006a7d
mov dword [0x100cd94], esi
mov eax, dword [0x100e24c]
cmp eax, esi
jne 0x1006979
push 0x1001288
push 0x1001280
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100e24c], 2
test ebx, ebx
jne 0x1006985
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100e258], 0
je 0x10069a9
push 0x100e258
call fcn.01006fab
pop ecx
test eax, eax
je 0x10069a9
push 0
push 2
push 0
call dword [0x100e258]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1006a05
test al, al
je 0x10069c3
cmp dword [ebp - 0x1c], 0
jne 0x1006a05
mov al, byte [esi]
test al, al
je 0x10069d3
cmp al, 0x20
ja 0x10069d3
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10069c3
test byte [ebp - 0x3c], 1
je 0x10069df
movzx eax, word [ebp - 0x38]
jmp 0x10069e2
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x100cd90], eax
cmp dword [0x100cd84], 0
jne 0x1006a59
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1006a14
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1006a27
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x10069b0
cmp dword [0x100cd94], 0
jne 0x1006a68
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100cd90]
jmp 0x1006a89
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01007079
ret
call fcn.01007176
jmp 0x10068b0

Function at 0x1006f20
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1006f33
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1006f2f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1006f60
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1006f9f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1006f95
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1006fa1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1006f85
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100752b
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 0x1007542
xor eax, eax
jmp 0x100754a
shr eax, 4
not eax
and eax, 1
pop ebp
ret 4

Function at 0x10076b0
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 [0x100c5e4], 0xfffffffe
mov dword [ebp - 0xb0], 0xc
jne 0x10077d5
and dword [0x100c5e4], 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10077d5
cmp dword [ebp - 0x94], 1
jne 0x10077d5
cmp dword [ebp - 0xa0], 4
jne 0x10077d5
cmp dword [ebp - 0x9c], 0xa
jae 0x10077d5
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10077d5
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 0x10077d5
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 0x10077d5
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0100758e
test eax, eax
je 0x10077d5
and dword [ebp - 0xa8], 0x3ff
cmp dword [ebp - 0xa8], 1
je 0x10077cb
cmp dword [ebp - 0xa8], 0xd
jne 0x10077d5
mov dword [0x100c5e4], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x100c5e4]
xor ecx, ebp
call fcn.01006b69
leave
ret

Function at 0x1007846
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.010077eb
Function at 0x1008ba6
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 0x1008be5
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 0x1008bc0
pop esi
and edi, 3
xor eax, eax
dec edi
je 0x1008c01
dec edi
je 0x1008bfa
dec edi
jne 0x1008c06
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 0x5d9eb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8d000]
push edi
jmp 0x5d9eca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5d9ed1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d9ec0
mov eax, 1
add ebx, ebx
jne 0x5d9ee3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5d9ef4
jne 0x5d9f13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d9f13
dec eax
add ebx, ebx
jne 0x5d9f00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5d9ed8
add ebx, ebx
jne 0x5d9f0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5d9f65
xor ecx, ecx
sub eax, 3
jb 0x5d9f2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5d9f9a
sar eax, 1
mov ebp, eax
jmp 0x5d9f36
add ebx, ebx
jne 0x5d9f36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d9f04
inc ecx
add ebx, ebx
jne 0x5d9f44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d9f04
add ebx, ebx
jne 0x5d9f51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5d9f46
jne 0x5d9f62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5d9f46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5d9f84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5d9f76
jmp 0x5d9ec6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5d9f84
add edi, ecx
jmp 0x5d9ec6
pop esi
mov edi, esi
mov ecx, 0x3ede
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5d9fa2
cmp byte [edi], 0x11
jne 0x5d9fa2
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 0x5d9fa7
lea edi, [esi + 0x1c7000]
mov eax, dword [edi]
or eax, eax
je 0x5da01f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f0b54]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f0cd0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5d9fd4
mov ecx, edi
jns 0x5da003
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 + 0x1f0cd4]
or eax, eax
je 0x5da019
mov dword [ebx], eax
add ebx, 4
jmp 0x5d9ff1
call dword [esi + 0x1f0ce4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5da050
cmp al, 0xef
ja 0x5da043
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5da025
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5da032
mov ebp, dword [esi + 0x1f0cd8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x5da084
sub esp, 0xffffff80
jmp 0x4276e7
Function at 0x402225
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406190
cmp edx, dword [eax]
je 0x402247
add eax, 8
inc ecx
cmp eax, 0x406220
jl 0x402238
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406190]
jne 0x402375
mov eax, dword [0x408584]
cmp eax, 1
je 0x40234f
test eax, eax
jne 0x402278
cmp dword [0x4060e0], 1
je 0x40234f
cmp edx, 0xfc
je 0x402375
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4022af
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402810
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004029c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4022f2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004029c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053e8
push edi
call fcn.00404060
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402810
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402820
lea eax, [ebp - 0xa0]
push 0x4053c8
push eax
call fcn.00402820
push dword [esi + 0x406194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402820
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403fd4
add esp, 0x2c
pop edi
jmp 0x402375
lea eax, [ebp + 8]
lea esi, [esi + 0x406194]
push 0
push eax
push dword [esi]
call fcn.004029c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40d591
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404de1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x408460]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 0x24], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp + 0x28]
mov dword [esi + 8], edx
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], edi
test cl, cl
jne 0x40d664
mov dword [ebp + 0x28], edi
test eax, eax
je 0x40d631
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x40d61b
mov edi, eax
add ecx, 0x10
dec edx
jne 0x40d613
mov dword [ebp + 0x28], edi
mov eax, 0x406784
cmp edi, 0x100000
ja 0x40d634
lea eax, [ebp + 0x28]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.0040dd31
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x40d65a
push eax
call fcn.0040ddc7
add esp, 4
mov dword [esi + 0x24], edi
push 0
call fcn.0040ddc7
add esp, 4
xor ecx, ecx
mov eax, ebx
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0040dd31
add esp, 4
mov dword [ebp + 0x28], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40d6b0
push 0x402640
push 0x402600
push ebx
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebx
call fcn.0040de8e
jmp 0x40d6b2
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x40d6e1
test eax, eax
je 0x40d6de
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402640
push ecx
push 0x44
push eax
call fcn.0040de2b
push ebx
call fcn.0040ddc7
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.0040d1d1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x401159
Capabilities:
Get common file path

Disassembly:
jmp 0x408320
push 0xffffffffffffffff
push 0x46b1e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x8c]
test eax, eax
jne 0x408446
push ebx
call fcn.0045f076
mov ebx, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f89
push 0
call ebx
test eax, eax
mov dword [ebp + 0x8c], eax
jne 0x408445
push esi
call fcn.00438725
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x18], 0
jge 0x4083ae
push 0x104
lea ecx, [esp + 0x10]
call fcn.00401203
mov esi, dword [esp + 0xc]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x4083c2
xor eax, eax
jmp 0x4083d6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4083c7
sub eax, edx
js 0x408456
cmp eax, dword [esi - 8]
jg 0x408456
push edi
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x18]
mov byte [eax + esi], 0
call fcn.00401294
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x408421
push 0x6a
push esi
call ebx
test eax, eax
je 0x40841a
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebp + 0x8c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x408444
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
pop ebx
mov ecx, dword [esp + 8]
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.004014ba
int3
Function at 0x401181
Capabilities:
Get common file path

Disassembly:
jmp 0x40bd70
push 0xffffffffffffffff
push 0x46b3a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0xf4]
test eax, eax
jne 0x40be96
push ebx
call fcn.0045f076
mov ebx, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f89
push 0
call ebx
test eax, eax
mov dword [ebp + 0xf4], eax
jne 0x40be95
push esi
call fcn.00438725
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x18], 0
jge 0x40bdfe
push 0x104
lea ecx, [esp + 0x10]
call fcn.00401203
mov esi, dword [esp + 0xc]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x40be12
xor eax, eax
jmp 0x40be26
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40be17
sub eax, edx
js 0x40bea6
cmp eax, dword [esi - 8]
jg 0x40bea6
push edi
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x18]
mov byte [eax + esi], 0
call fcn.00401294
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40be71
push 0x6a
push esi
call ebx
test eax, eax
je 0x40be6a
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebp + 0xf4], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x40be94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
pop ebx
mov ecx, dword [esp + 8]
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.004014ba
int3

Function at 0x4011ae
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x406e40
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
push esi
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406ea8
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov edx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406e93
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret
Function at 0x4011fe
Capabilities:
Create process on windows

Disassembly:
jmp 0x4076b0
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
je 0x407829
cmp byte [ebx], 0
je 0x407829
mov ecx, dword [esp + 0x218]
test ecx, ecx
mov eax, str.open
je 0x4076e4
mov eax, 0x472a14
push ebp
mov ebp, dword [esp + 0x218]
push esi
push ebp
push 0
push 0
push ebx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40781d
lea eax, [esp + 0xc]
push eax
push str..htm
push SysReAllocStringLen
call fcn.004011ae
add esp, 0xc
test eax, eax
jne 0x40781d
push edi
lea edi, [esp + 0x10]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407730
mov ecx, dword [str._shellopencommand]
mov edx, dword [0x4729f8]
mov eax, dword [0x4729fc]
mov dword [edi], ecx
mov ecx, dword [0x472a00]
mov dword [edi + 4], edx
mov edx, dword [0x472a04]
mov dword [edi + 8], eax
lea eax, [esp + 0x10]
mov dword [edi + 0xc], ecx
push eax
mov ecx, eax
push ecx
push SysReAllocStringLen
mov dword [edi + 0x10], edx
call fcn.004011ae
add esp, 0xc
test eax, eax
jne 0x40781c
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.00414373
add esp, 8
test eax, eax
jne 0x4077c2
lea eax, [esp + 0x10]
push 0x4729e8
push eax
call fcn.00414373
add esp, 8
test eax, eax
jne 0x4077c2
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4077b3
sub eax, edx
lea eax, [esp + eax + 0xf]
jmp 0x4077c5
mov byte [eax], 0
mov edi, eax
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4077c8
mov cx, word [0x4729e4]
mov word [edi], cx
mov ecx, ebx
mov esi, ebx
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4077e0
sub ecx, esi
mov edx, ecx
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4077f0
mov ecx, edx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [0x4890d0]
push ebp
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, 0x24
pop ebx
add esp, 0x208
ret
Function at 0x401375
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x402000
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 0x402019
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40202d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40204e
cmp esi, eax
jae 0x402027
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402040
cmp esi, eax
jae 0x402027
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x408750
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
push esi
push edi
xor eax, eax
mov ecx, 0x24
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
xor esi, esi
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x408797
cmp dword [esp + 0x18], 2
jne 0x408797
cmp dword [esp + 0xc], 6
mov eax, 1
jae 0x408799
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4140f2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004142f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41418d
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x48d7e8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41418d
cmp eax, 1
je 0x4141ae
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41418d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41415a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x414189
xor eax, eax
inc eax
jmp 0x4141cd
cmp edi, eax
jae 0x414191
xor eax, eax
jmp 0x4141cd
cmp eax, esi
jae 0x414198
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x48d7e8]
jmp 0x4141b1
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret