joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b07f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x38], 0
mov dl, byte [eax + 0x34]
push ebx
push esi
mov dword [ebp - 4], 0
mov ebx, 1
jle 0x4b083b
movzx esi, dl
push edi
nop
mov ecx, dword [eax + 0x260]
mov edi, ecx
shr edi, 0x18
shl ecx, 8
xor edi, esi
xor ecx, dword [edi*4 + 0x53e338]
mov dword [eax + 0x260], ecx
mov ecx, dword [ebp - 4]
add ecx, ebx
cmp ecx, dword [eax + 0x38]
mov dword [ebp - 4], ecx
jl 0x4b0810
pop edi
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], bl
mov esi, dword [eax + 0x38]
mov ecx, esi
sub ecx, ebx
je 0x4b08c9
sub ecx, ebx
je 0x4b08ab
sub ecx, ebx
je 0x4b089f
mov byte [esi + eax + 0x54], bl
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b2910
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x53d100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.004cc1d0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b2962
cmp dword [ebp - 0x114], 6
lea eax, [esi + 1]
jae 0x4b2964
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004cac83
mov esp, ebp
pop ebp
ret
Function at 0x4b4da0
Capabilities:
Write clipboard data

Disassembly:
push ebx
push esi
xor ebx, ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b4db0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4b4e07
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4b4e07
mov edx, eax
mov ecx, edi
sub edx, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x4b4de3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4b9da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
mov ebx, ecx
test esi, esi
je 0x4b9dd6
test ebx, ebx
je 0x4b9dd6
mov dl, byte [esi + edi]
mov ecx, dword [ebp + 8]
xor dl, byte [ecx]
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
inc eax
inc ecx
inc esi
dec ebx
and esi, 0xf
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
jne 0x4b9db6
cmp ebx, 0x10
jb 0x4b9e5f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, ecx
sub eax, edi
mov dword [ebp - 4], eax
mov eax, edx
sub eax, edi
mov dword [ebp - 8], eax
mov eax, ebx
shr eax, 4
mov dword [ebp - 0xc], eax
shl eax, 4
add ecx, eax
add edx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
push edi
push ecx
call fcn.0049b810
mov edx, dword [ebp + 0x14]
add esp, 0xc
call fcn.004b9d80
cmp esi, 0x10
jae 0x4b9e4a
mov ecx, 0xf
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + eax]
xor edx, dword [eax]
mov esi, dword [ebp - 4]
mov dword [esi + eax], edx
add eax, 4
sub ecx, 1
jne 0x4b9e34
mov eax, 0x10
add dword [ebp - 4], eax
add dword [ebp - 8], eax
sub ebx, eax
xor esi, esi
sub dword [ebp - 0xc], 1
jne 0x4b9e08
test ebx, ebx
je 0x4b9ead
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
push edi
push ecx
call fcn.0049b810
mov edx, dword [ebp + 0x14]
add esp, 0xc
call fcn.004b9d80
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub edx, edi
lea eax, [esi + edi]
sub ecx, edi
mov dword [ebp - 0xc], edx
add esi, ebx
mov edi, edi
mov dl, byte [eax + ecx]
xor dl, byte [eax]
mov edi, dword [ebp - 0xc]
dec ebx
mov byte [eax + edi], dl
inc eax
test ebx, ebx
jne 0x4b9e90
mov eax, dword [ebp + 0x18]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bdfdc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4be000
cmp dword [edi + 0x54], 0
jne 0x4be000
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004be9d3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004bdf9d
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4c422d
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 0x4c4274
call fcn.004be9d3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4c4274
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4c4290
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004c3da5
mov esi, eax
test edi, edi
je 0x4c428e
test ebx, ebx
je 0x4c428e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4cac83
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x53d100]
jne 0x4cac8d
repz ret
jmp fcn.004d396d

Function at 0x4df409
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.004d32d1
and dword [ebp - 4], 0
cmp dword [0x542718], 0
mov ebx, eax
jne 0x4df4ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4df56b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4fc828
push edi
call esi
test eax, eax
je 0x4df56b
push eax
call fcn.004d325f
mov dword [esp], 0x4fc818
push edi
mov dword [0x542718], eax
call esi
push eax
call fcn.004d325f
mov dword [esp], 0x4fc804
push edi
mov dword [0x54271c], eax
call esi
push eax
call fcn.004d325f
mov dword [esp], 0x4fc7e8
push edi
mov dword [0x542720], eax
call esi
push eax
call fcn.004d325f
pop ecx
mov dword [0x542728], eax
test eax, eax
je 0x4df4ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004d325f
pop ecx
mov dword [0x542724], eax
mov eax, dword [0x542724]
cmp eax, ebx
je 0x4df512
cmp dword [0x542728], ebx
je 0x4df512
push eax
call fcn.004d32da
push dword [0x542728]
mov esi, eax
call fcn.004d32da
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4df512
test edi, edi
je 0x4df512
call esi
test eax, eax
je 0x4df509
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4df509
test byte [ebp - 0xc], 1
jne 0x4df512
or dword [ebp + 0x10], 0x200000
jmp 0x4df54b
mov eax, dword [0x54271c]
cmp eax, ebx
je 0x4df54b
push eax
call fcn.004d32da
pop ecx
test eax, eax
je 0x4df54b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4df54b
mov eax, dword [0x542720]
cmp eax, ebx
je 0x4df54b
push eax
call fcn.004d32da
pop ecx
test eax, eax
je 0x4df54b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x542718]
call fcn.004d32da
pop ecx
test eax, eax
je 0x4df56b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4df56d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002260
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
call dword [eax + 0xc]
mov eax, dword [esi + 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
pop esi
mov dword [eax], edx
xor eax, eax
ret

Function at 0x100028c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018200
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10026014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
push 0
mov dword [esi], vtable.basic_debug_streambuf_char__struct_std::char_traits_char__.0
call fcn.10002290
mov eax, dword [esi + 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], edx
push dword [esi + 0x3c]
call fcn.1000880e
mov edi, dword [esi + 0x34]
add esp, 4
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
test edi, edi
je 0x10002955
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1000294a
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1000294a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push 8
push edi
call fcn.10004308
add esp, 8
test byte [ebp + 8], 1
je 0x10002966
push 0x40
push esi
call fcn.10004308
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1000d8ff
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c198
push 0x1001c190
push str.FlsAlloc
push 0x1e
call fcn.1000d7c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d933
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019164]
call esi
jmp 0x1000d939
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000d97d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c1a8
push 0x1001c1a0
push str.FlsGetValue
push 0x20
call fcn.1000d7c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d9b4
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10012332
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100123cf
push ebx
push esi
call fcn.100122fb
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10011011
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001237c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100123ce
push edi
push eax
call fcn.1000d41e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001239c
call fcn.1000b6cb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100123cd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10011011
add esp, 0x20
test eax, eax
jne 0x100123bb
push edi
call fcn.1000b6cb
jmp 0x100123c3
push ebx
call fcn.1000b6cb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10017e80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10017ead
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10017ead
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401d40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5a40e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00525b40
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00525b40
add esp, 0x18
mov dword [ebp - 0x420], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x428], 0
push 0x105
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x105
lea eax, [ebp - 0x41c]
push eax
push 0x550d68
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x401dfe
push 0x104
push esi
push dword [ebp - 0x420]
call fcn.00401fb0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x401e31
call fcn.00401e60
cmp eax, 1
je 0x401e21
cmp dword [ebp + 0x10], 0
jne 0x401e21
push str.TsnIorcAeBoda
jmp 0x401e26
push str.thsnYaVieBoda
push 0x104
push esi
call fcn.00402170
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x401e44
push eax
push 0x104
push esi
call fcn.00402170
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00525b2c
mov esp, ebp
pop ebp
ret

Function at 0x401e60
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x401e83
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401e7d
xor eax, eax
ret

Function at 0x401ea0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x401ec3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401ebd
xor eax, eax
ret
Function at 0x402010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor esi, esi
push esi
push 0x190000
push 3
push esi
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40204f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0xd
pop edi
cmove eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x402083
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4020a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, 0xd
test esi, esi
push edi
cmove esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], esi
je 0x4020f1
xor eax, eax
mov byte [ebp - 4], 0
mov word [ebp - 3], ax
mov byte [ebp - 1], al
lea eax, [ebp - 4]
push eax
push edi
call fcn.00402100
mov esi, eax
add esp, 8
test esi, esi
jne 0x4020f1
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
inc ecx
cmp eax, ecx
mov dword [ebp - 0x10], eax
push edx
lea eax, [ebp - 8]
mov esi, 0xd
push eax
push 4
lea eax, [ebp - 0x10]
cmove esi, edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
lea ebx, [edi + 0xd]
lea esp, [esp]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40215b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
cmove esi, ebx
cmp esi, 0xe8
jne 0x402152
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x402110
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp dword [ebp - 4], 4
pop edi
cmove ebx, eax
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402be0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x5a40e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x51c], eax
xor bl, bl
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x520], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x30e]
push eax
call fcn.00525b40
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x518], ax
lea eax, [ebp - 0x516]
push eax
call fcn.00525b40
add esp, 0x18
lea eax, [ebp - 0x310]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x104
lea eax, [ebp - 0x518]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x402c89
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525b2c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call fcn.00525b40
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00525d32
push 0x5510dc
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00525d87
add esp, 0x24
call fcn.00407ab0
mov esi, eax
test esi, esi
jne 0x402d0a
push dword [ebp - 0x51c]
lea eax, [ebp - 0x108]
push eax
call fcn.00407310
add esp, 8
test eax, eax
jne 0x402d49
call fcn.00407ab0
mov esi, eax
test esi, esi
je 0x402d49
mov eax, dword [0x5a9110]
test eax, eax
je 0x402d49
cmp byte [eax], 0
je 0x402d49
push 1
push 0
call fcn.00407910
add esp, 8
test eax, eax
jne 0x402d49
mov ecx, esi
call fcn.00407ac0
dec eax
cmp eax, 2
ja 0x402d49
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x402d47
lea eax, [eax + eax*2]
cmp dword [esi + eax*4 + 0x54], 1
jne 0x402d49
mov bl, 1
push dword [ebp - 0x520]
call fcn.00407780
add esp, 4
call fcn.00521950
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00525b2c
mov esp, ebp
pop ebp
ret
Function at 0x402d80
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5a40e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x420], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x41c], ebx
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov byte [ebp - 0x428], 0
call fcn.00525b40
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00525b40
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push ebx
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x402e3c
mov eax, dword [ebp - 0x428]
lea edx, [edi + 3]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525b2c
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
call fcn.00403080
call fcn.00407ab0
mov ecx, dword [ebp + 0x14]
mov esi, eax
test esi, esi
jne 0x402e94
cmp byte [ebp + 0x18], 0
jne 0x402e86
push ecx
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push dword [ebp - 0x418]
call fcn.004072c0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x402ecc
call fcn.00407ab0
mov esi, eax
test esi, esi
je 0x402ecc
mov ecx, dword [ebp + 0x14]
mov eax, dword [0x5a9110]
test eax, eax
je 0x402ecc
cmp byte [eax], 0
je 0x402ecc
push ecx
push dword [ebp - 0x418]
call fcn.00407910
add esp, 8
mov ecx, esi
mov edi, eax
call fcn.00407ac0
dec eax
cmp eax, 2
ja 0x402ecc
mov byte [ebp - 0x428], 1
call fcn.00402ff0
lea eax, [ebp - 0x414]
push eax
call ebx
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, dword [ebp - 0x428]
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.00525b2c
mov esp, ebp
pop ebp
ret

Function at 0x403010
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
push eax
push 0
push 2
push 0
push 0
push 0
push str.SoftwareAdobeAdobe_AcrobatDCAdobeViewer
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x403045
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x5512a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret