joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414779
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004100b5
xor ebx, ebx
cmp dword [0x4244a8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41484e
push 0x41cb64
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4147b9
xor eax, eax
jmp 0x414912
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41cb58
push edi
call esi
cmp eax, ebx
je 0x4147b2
push eax
call fcn.00410052
mov dword [esp], 0x41cb48
push edi
mov dword [0x4244a8], eax
call esi
push eax
call fcn.00410052
mov dword [esp], 0x41cb34
push edi
mov dword [0x4244ac], eax
call esi
push eax
call fcn.00410052
mov dword [0x4244b0], eax
lea eax, [ebp - 8]
push eax
call fcn.0040eac1
test eax, eax
pop ecx
pop ecx
je 0x41481c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cbfb
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41484e
push 0x41cb18
push edi
call esi
push eax
call fcn.00410052
cmp eax, ebx
pop ecx
mov dword [0x4244b8], eax
je 0x41484e
push 0x41cb00
push edi
call esi
push eax
call fcn.00410052
pop ecx
mov dword [0x4244b4], eax
mov eax, dword [0x4244b4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4148c7
cmp dword [0x4244b8], esi
je 0x4148c7
push eax
call fcn.004100be
pop ecx
call eax
cmp eax, ebx
je 0x414894
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4244b8]
call fcn.004100be
pop ecx
call eax
test eax, eax
je 0x414894
test byte [ebp - 0x18], 1
jne 0x4148c7
lea eax, [ebp - 0xc]
push eax
call fcn.0040eaf8
test eax, eax
pop ecx
je 0x4148af
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cbfb
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4148be
or dword [ebp + 0x10], 0x200000
jmp 0x4148f8
or dword [ebp + 0x10], 0x40000
jmp 0x4148f8
mov eax, dword [0x4244ac]
cmp eax, esi
je 0x4148f8
push eax
call fcn.004100be
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4148f8
mov eax, dword [0x4244b0]
cmp eax, esi
je 0x4148f8
push dword [ebp - 4]
push eax
call fcn.004100be
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4244a8]
call fcn.004100be
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40c7d0
nop
mov ecx, 0x777f1377
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x407f0dfa
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x401010
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x40101c
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x401026
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x401030
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x40103a
or eax, 8
shr ecx, 1
test cl, 1
je 0x401044
or eax, 4
shr ecx, 1
test cl, 1
je 0x40104e
or eax, 2
test cl, 2
je 0x401056
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
jmp 0x401110
test al, 1
je 0x40111d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x401110
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x401004
pop edi
pop ebx
ret

Function at 0x401140
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4291b4
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call fcn.0040fc62
add esp, 0xc
test eax, eax
je 0x401171
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call fcn.0040fca9
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x40119d
mov edx, dword [ebp - 4]
push edx
call fcn.0040fdaa
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call fcn.00410068
add esp, 0x10
test eax, eax
je 0x4011fa
push ebx
mov ecx, eax
mov edx, edi
test eax, eax
je 0x4011e1
mov edi, edi
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x4011c0
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call fcn.00410068
add esp, 0x10
test eax, eax
jne 0x4011b6
pop ebx
push edi
call fcn.00410085
mov edx, dword [ebp - 4]
push edx
call fcn.0040fdaa
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x407a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4252e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x42f660]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x407abc
xor eax, eax
jmp 0x407c41
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x407ae5
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x407ae5
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x407c41
cmp dword [edi + 0x54], 0
je 0x407c3e
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x407b0d
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x407b33
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.0041071c
add esp, 8
cmp eax, 0xffffffff
je 0x407c3e
mov eax, ebx
jmp 0x407c41
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00408350
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x407b50
mov edx, eax
cmp ebx, 0x10
jae 0x407b5c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x407c36
cmp eax, 1
jg 0x407bf0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x407b9c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x407bc5
cmp ebx, 0x10
jae 0x407bab
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0041096f
add esp, 0x10
cmp esi, eax
jne 0x407c36
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x407c29
test esi, esi
jne 0x407b50
cmp dword [ebp - 0x1c], 0x20
jae 0x407c36
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004083b0
jmp 0x407b45
cmp eax, 3
jne 0x407c36
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.0041071c
add esp, 8
cmp eax, 0xffffffff
je 0x407c1a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.0040b860
mov eax, esi
jmp 0x407c41
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.0040b860
mov eax, esi
jmp 0x407c41
lea ecx, [ebp - 0x2c]
call fcn.0040b860
mov eax, dword [ebp + 8]
jmp 0x407c41
lea ecx, [ebp - 0x2c]
call fcn.0040b860
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fb80
mov esp, ebp
pop ebp
ret 4
Function at 0x4086a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425368
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42f660]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x408831
cmp byte [ebx + 0x49], 0
je 0x408831
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x408825
lea esi, [ebp - 0x2c]
call fcn.00408350
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x408713
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40874c
dec eax
je 0x408750
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40882c
call fcn.0040b860
xor al, al
jmp 0x408833
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x408760
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40878d
cmp edi, 0x10
jae 0x40876f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0041096f
add esp, 0x10
cmp esi, eax
jne 0x40881d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x408829
test esi, esi
jne 0x408707
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40884e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40884e
cmp edi, esi
jae 0x408806
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040b660
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x408707
mov ecx, eax
cmp edi, 0x10
jae 0x4087e2
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4087fd
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x408701
test esi, esi
jne 0x4087d8
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x408815
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x408701
lea ecx, [ebp - 0x2c]
call fcn.0040b860
xor al, al
jmp 0x408833
lea ecx, [ebp - 0x2c]
call fcn.0040b860
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fb80
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0040f307
int3
Function at 0x409270
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424d1b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42f660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040f160
push 4
mov dword [ebp - 4], 0
call fcn.00410204
mov edi, eax
add esp, 4
test edi, edi
je 0x4092ec
call fcn.0040f761
mov dword [edi], eax
call fcn.0040f520
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040f2a6
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4092e2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040f2ce
jmp 0x4092ee
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4

Function at 0x40c3c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push eax
mov esi, ecx
lea ebx, [esi + 0xc]
push 0x100
push ebx
call fcn.00410341
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c417
push ebx
push str.__s__Could_not_open_file_n
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40c43a
push eax
call fcn.00411629
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
push ecx
call fcn.0040fa85
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x40c473
push ebx
push str.__s__Could_not_alloc_file_buffer_n
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c498
push ebx
push str.__s__Could_not_read_file_n
jmp 0x40c453
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c810
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x42f660]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00416c00
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.00411775
add esp, 0x1c
push 0x10
push str.Error
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40dd10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push edi
cmp ebx, eax
jne 0x40dd35
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi], 1
mov eax, esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push eax
push eax
push ebx
call fcn.004110a2
push ebx
call fcn.0041217f
add esp, 0x14
push 0
push 0
push 0
push ebx
mov edi, eax
mov dword [ebp - 0xc], edx
call fcn.004110a2
mov eax, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
jg 0x40dd70
jl 0x40dd69
test edi, edi
jae 0x40dd70
mov edi, 2
jmp 0x40dd7f
xor ecx, ecx
cmp edi, edi
jne 0x40dd7a
cmp ecx, eax
je 0x40dd9a
mov edi, 3
push ebx
call fcn.0040fdaa
add esp, 4
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xc], eax
call dword [0x430bb4]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40ddd2
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040fdaa
add esp, 4
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi], 3
mov eax, esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push 1
push ebx
call fcn.00410068
mov edx, dword [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
call fcn.0040fdaa
add esp, 0x14
cmp dword [ebp - 4], edi
je 0x40de13
push ebx
call dword [0x430bb8]
add esp, 4
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi], 2
mov eax, esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov ecx, ebx
xor eax, eax
call fcn.0040ce70
add esp, 4
cmp eax, 1
jne 0x40de2c
mov byte [edi + ebx], 0
mov edi, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push edi
push ebx
mov ebx, esi
call fcn.0040e220
pop edi
mov eax, esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fb80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f660]
jne 0x40fb8a
repz ret
jmp fcn.00415372
Function at 0x420fc9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42f660]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00418f38
and dword [ebp - 0x14], 0
cmp dword [0x7c5938], 0
mov dword [ebp - 0x18], eax
jne 0x42107c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x421124
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x421124
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x7c5938], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x7c593c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x7c5940], eax
call edi
push eax
call esi
mov dword [0x7c5948], eax
test eax, eax
je 0x42107c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x7c5944], eax
mov eax, dword [0x7c5944]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4210d5
cmp dword [0x7c5948], ecx
je 0x4210d5
push eax
call esi
push dword [0x7c5948]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4210d5
test ebx, ebx
je 0x4210d5
call edi
test eax, eax
je 0x4210cc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4210cc
test byte [ebp - 8], 1
jne 0x4210d5
or dword [ebp + 0x10], 0x200000
jmp 0x421108
mov eax, dword [0x7c593c]
cmp eax, dword [ebp - 0x18]
je 0x421108
push eax
call esi
test eax, eax
je 0x421108
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x421108
mov eax, dword [0x7c5940]
cmp eax, dword [ebp - 0x18]
je 0x421108
push eax
call esi
test eax, eax
je 0x421108
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x7c5938]
call esi
test eax, eax
je 0x421124
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x421126
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fb80
leave
ret
Function at 0x407910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0
jmp 0x407941
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 4
jge 0x407958
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov dl, byte [eax]
mov byte [ebp + ecx - 8], dl
jmp 0x407938
mov ecx, dword [ebp - 0x20]
call fcn.0040a550
movzx eax, al
test eax, eax
je 0x40798d
movzx ecx, byte [ebp - 5]
shl ecx, 0x18
movzx edx, byte [ebp - 6]
shl edx, 0x10
or ecx, edx
movzx eax, byte [ebp - 7]
shl eax, 8
or ecx, eax
movzx edx, byte [ebp - 8]
or ecx, edx
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
jmp 0x4079b1
movzx ecx, byte [ebp - 8]
shl ecx, 0x18
movzx edx, byte [ebp - 7]
shl edx, 0x10
or ecx, edx
movzx eax, byte [ebp - 6]
shl eax, 8
or ecx, eax
movzx edx, byte [ebp - 5]
or ecx, edx
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], 0
jle 0x407a80
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
call fcn.0041401b
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc]
add edx, 4
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call fcn.004172c0
add esp, 0xc
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x407a31
mov dword [ebp - 0x14], 0
jmp 0x407a0b
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ecx]
jge 0x407a31
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
movzx eax, byte [ecx + edx]
xor eax, 0x41
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov byte [edx + ecx], al
jmp 0x407a02
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
add eax, 4
mov ecx, dword [0x43aa04]
sub ecx, eax
push ecx
call fcn.0041401b
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
add edx, 4
mov eax, dword [0x43aa04]
sub eax, edx
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx + 4]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call fcn.004172c0
add esp, 0xc
mov esp, ebp
pop ebp
ret 0x14
Function at 0x409d10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x60], ecx
lea ecx, [ebp + 8]
call fcn.00405dc0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x8000000
push 0x44
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.004155f0
add esp, 0xc
mov dword [ebp - 0x58], 0x44
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 0x2c], 1
mov edx, 5
mov word [ebp - 0x28], dx
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x409d7b
mov dword [ebp - 0x2c], 1
mov ecx, 0xb
mov word [ebp - 0x28], cx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x58]
push eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409db9
mov byte [ebp - 0x59], 1
lea ecx, [ebp + 8]
call fcn.00401cd0
mov al, byte [ebp - 0x59]
jmp 0x409dd2
mov byte [ebp - 0x5a], 0
lea ecx, [ebp + 8]
call fcn.00401cd0
mov al, byte [ebp - 0x5a]
jmp 0x409dd2
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42eaf8
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x439684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], 0
push 0x105
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.004155f0
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040aff0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x224]
push eax
push str.TEMPPATH
lea ecx, [ebp - 0x10]
call fcn.0040b070
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040afd0
mov edx, dword [ebp - 0x228]
or edx, 1
mov dword [ebp - 0x228], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401cd0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00415541
mov esp, ebp
pop ebp
ret