joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e089a77
Capabilities:
Read http header

Disassembly:
push 0x478
mov eax, 0x2e0c6422
call fcn.2e046d4a
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x38]
push ecx
push ebx
mov dword [ebp - 0x30], ebx
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x2e089b2a
call edi
cmp eax, 0x7a
je 0x2e089b2a
cmp byte [ebp + 0x14], bl
je 0x2e089af0
call edi
push ebx
push ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x10]
push eax
push 0x2e027770
push 2
call fcn.2e0893b2
mov ecx, dword [ebp - 0x34]
push 0x2e0d5f44
call fcn.2e036fe4
jmp 0x2e089bd2
push 0x2e027734
call edi
push eax
lea eax, [ebp - 0x378]
push 0x83
push eax
call fcn.2e03a6ff
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
lea edi, [ebp - 0x26c]
rep movsd dword es:[edi], dword [esi]
push 0x2e0c9750
lea eax, [ebp - 0x26c]
push eax
call fcn.2e04689f
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x38]
shr eax, 1
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x30], ebx
call fcn.2e089a3f
push ebx
lea eax, [ebp - 0x38]
push eax
push ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], ebx
call fcn.2e089018
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x3c]
call esi
test eax, eax
jne 0x2e089b94
push 0x2e027700
call edi
push eax
lea eax, [ebp - 0x484]
push 0x83
push eax
call fcn.2e03a6ff
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
lea edi, [ebp - 0x160]
rep movsd dword es:[edi], dword [esi]
push 0x2e0c9750
lea eax, [ebp - 0x160]
jmp 0x2e089b24
push ebx
lea ecx, [ebp - 0x54]
call fcn.2e089018
push eax
lea ecx, [ebp - 0x2c]
call fcn.2e036565
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.2e036fe4
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.2e036229
lea ecx, [ebp - 0x54]
call fcn.2e09b3df
push dword [ebp - 0x54]
call fcn.2e0465c7
pop ecx
mov eax, dword [ebp - 0x34]
call fcn.2e046dcd
ret 0x10
Function at 0x2e090748
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 0xc]
and dword [ebp - 4], 0
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x2e090818
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x2e090818
push edi
mov edi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x2e090817
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x2e090817
push esi
mov esi, dword [eax + 0x80]
add esi, edi
cmp esi, eax
je 0x2e090816
jmp 0x2e0907c6
mov eax, dword [esi + 0xc]
lea ecx, [eax + edi]
cmp eax, 0xffff
je 0x2e0907c3
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x2e0907cc
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x2e0907a8
cmp dword [esi + 0xc], 0
je 0x2e090816
mov esi, dword [esi + 0x10]
add esi, edi
jmp 0x2e0907e5
cmp eax, dword [ebp + 0x10]
jne 0x2e0907e2
test eax, eax
jne 0x2e0907ed
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x2e0907d9
jmp 0x2e090816
lea eax, [ebp + 0xc]
push eax
push 4
lea eax, [ebp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebp - 8]
push eax
call fcn.2e09040f
test eax, eax
je 0x2e090816
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
pop esi
pop edi
mov eax, dword [ebp - 4]
leave
ret 0x14

Function at 0x2e090971
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
xor esi, esi
mov dword [ebp - 4], ebx
cmp dword [0x2e111a04], ebx
je 0x2e090996
mov dword [eax], 1
jmp 0x2e090a58
push edi
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
push 0x20119
push ebx
push 0x2e0299f8
push SysReAllocString
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2e090a55
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x2e0299d0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2e0909e3
mov edi, dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x2e090a57
mov eax, dword [0x2e111a14]
push dword [eax + 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x38
call dword [eax]
mov ecx, dword [ebp - 0xc]
cmp ecx, ebx
je 0x2e090a0e
call fcn.2e0903f7
jmp 0x2e090a10
xor eax, eax
mov dword [0x2e111a04], eax
cmp eax, ebx
jne 0x2e090a1e
push 8
pop esi
jmp 0x2e090a47
add eax, 0x34
push eax
push 0x2e0299a4
call fcn.2e0914d4
mov esi, eax
cmp esi, ebx
jne 0x2e090a47
mov ecx, dword [0x2e111a04]
xor edi, edi
inc edi
push edi
call fcn.2e09081f
mov esi, eax
cmp esi, ebx
je 0x2e090a4e
call fcn.2e09092c
jmp 0x2e090a57
mov eax, dword [ebp + 8]
mov dword [eax], edi
jmp 0x2e090a57
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x2e090aa5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push 0x2e0299f8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2e090b09
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x2e029af0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2e090b00
cmp dword [ebp - 0xc], 4
jne 0x2e090b00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x28], ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4
Function at 0x2e090c17
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x2e0d630c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x408]
push eax
push 0x20119
xor edi, edi
push edi
push 0x2e029a80
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x41c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2e090e27
push esi
push 4
pop esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x40c]
push eax
push edi
push 0x2e029a78
push dword [ebp - 0x408]
mov dword [ebp - 0x414], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2e090cbf
cmp dword [ebp - 0x40c], esi
jne 0x2e090cbf
cmp dword [ebp - 0x41c], edi
je 0x2e090cbf
push 0x2000
push 0xff
push 0x2e108568
call fcn.2e047486
add esp, 0xc
jmp 0x2e090e1a
mov dword [ebp - 0x410], edi
jmp 0x2e090cc9
xor edi, edi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x40c]
push eax
push edi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x410]
mov dword [ebp - 0x424], 0xff
push dword [ebp - 0x408]
mov dword [ebp - 0x42c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 0x410]
cmp eax, 0xea
je 0x2e090e0d
cmp eax, edi
jne 0x2e090e1a
mov ecx, dword [ebp - 0x424]
xor eax, eax
mov word [ebp + ecx*2 - 0x204], ax
lea eax, [ebp - 0x428]
push eax
push 0x2e029a60
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call fcn.2e090bc5
test eax, eax
jne 0x2e090e0d
cmp dword [ebp - 0x40c], esi
jne 0x2e090e0d
mov edi, 0xffff
cmp dword [ebp - 0x420], edi
ja 0x2e090e0d
push dword [ebp - 0x428]
lea eax, [ebp - 0x404]
push 0x2e029a4c
push 0x2e0244e0
push 0xffffffffffffffff
push 0xff
push eax
call fcn.2e0478fe
add esp, 0x18
test eax, eax
jl 0x2e090e0d
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x40c]
push eax
push 0
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x414], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2e090e0d
cmp dword [ebp - 0x40c], esi
jne 0x2e090e0d
cmp dword [ebp - 0x418], edi
ja 0x2e090e0d
mov edi, dword [ebp - 0x420]
jmp 0x2e090e05
mov ecx, edi
and ecx, 7
mov eax, edi
mov dl, 1
shl dl, cl
shr eax, 3
lea eax, [eax + 0x2e108568]
or byte [eax], dl
inc edi
cmp edi, dword [ebp - 0x418]
jbe 0x2e090dee
cmp dword [ebp - 0x410], 0x32
jb 0x2e090cc7
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.2e046cd2
leave
ret 4
Function at 0x2e09124c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x100008]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x100000]
mov edi, dword [ebp + 0xc]
lea edx, [eax + edi]
mov ecx, 0x100000
cmp edx, ecx
ja 0x2e09129b
cmp eax, ecx
ja 0x2e09129b
cmp edi, ecx
ja 0x2e09129b
push edi
push dword [ebp + 8]
add eax, esi
push eax
call fcn.2e047583
add esp, 0xc
add dword [esi + 0x100000], edi
jmp 0x2e0912d1
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push dword [esi + 0x100004]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2e0912be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x2e0912d1
push edi
push dword [ebp + 8]
push esi
call fcn.2e047583
add esp, 0xc
mov dword [esi + 0x100000], edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x2e0914d4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x2e0d630c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x2e111a14]
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [eax + 8]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x210]
push ecx
push 0x100020
call dword [eax]
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x2e091516
call fcn.2e0912e2
jmp 0x2e091518
xor eax, eax
mov dword [esi], eax
test eax, eax
jne 0x2e091523
push 8
pop edi
jmp 0x2e091578
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x2e09156c
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi]
mov dword [ecx + 0x100004], eax
mov eax, dword [esi]
cmp dword [eax + 0x100004], 0xffffffff
jne 0x2e091586
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x2e091586
mov ecx, dword [esi]
test ecx, ecx
je 0x2e091586
call fcn.2e091468
and dword [esi], 0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.2e046cd2
leave
ret 8

Function at 0x2e0a67e7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0xb4], 0
je 0x2e0a682a
mov eax, dword [esi + 0xb8]
shr eax, 6
and al, 1
movzx eax, al
push eax
call fcn.2e0a5893
push 0
push dword [esi + 0xb4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp + 8], 0
je 0x2e0a682a
push dword [esi + 0xdc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
pop ebp
ret 4
Function at 0x2e0abed7
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [0x2e10f2f0]
mov edi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.2e0ab875
add esp, 0x10
call fcn.2e0abc9b
push eax
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.2e0ab875
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.2e0ab875
call fcn.2e0a47ef
movzx eax, ax
push eax
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.2e0ab875
push dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.2e0ab81c
add esp, 0x30
pop edi
pop esi
pop ebp
ret
Function at 0x2e0c24c1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc9c
mov eax, dword [0x2e0d630c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc88], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0xc8c], eax
mov eax, dword [esi + 0x870]
add eax, 0x20
mov ecx, eax
shl ecx, 3
cmp ecx, 0x320
mov dword [ebp - 0xc9c], ecx
jb 0x2e0c250e
xor eax, eax
jmp 0x2e0c26ea
push edi
mov edi, eax
shl edi, 4
push edi
lea eax, [ebp - 0xc84]
push 0
push eax
call fcn.2e047486
push edi
lea eax, [ebp - 0x644]
push 0
push eax
call fcn.2e047486
mov ecx, dword [ebp + 0x18]
add esp, 0x18
test ecx, ecx
jbe 0x2e0c266e
mov eax, dword [ebp + 0x14]
mov edi, dword [esi + 0x30]
shl eax, 2
mov dword [ebp - 0xc90], eax
mov eax, dword [ebp + 0x10]
shl eax, 2
push ebx
mov ebx, dword [esi + 0x34]
mov dword [ebp - 0xc94], eax
mov dword [ebp - 0xc98], ecx
jmp 0x2e0c256d
mov eax, dword [ebp - 0xc94]
mov ecx, dword [ebp - 0xc88]
and ecx, 7
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0xc88]
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x2e0c2597
mov eax, dword [ebp - 0xc88]
movzx eax, byte [edi + eax]
jmp 0x2e0c25db
mov ecx, dword [ebp - 0xc88]
cmp byte [edi + ecx], 7
mov ecx, dword [esi + 0x2c]
push dword [eax + ecx]
push esi
jae 0x2e0c25c5
call fcn.2e0c082b
mov ecx, dword [ebp - 0xc88]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x2e0c25d4
call fcn.2e0c082b
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc94], 4
inc dword [ebp - 0xc88]
lea eax, [ebp + eax*2 - 0xc84]
inc word [eax]
mov eax, dword [ebp - 0xc8c]
xor edx, edx
mov ecx, eax
and ecx, 7
inc edx
shl edx, cl
mov ecx, eax
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x2e0c260d
movzx eax, byte [edi + eax]
jmp 0x2e0c2651
cmp byte [edi + eax], 7
mov ecx, dword [ebp - 0xc90]
mov eax, dword [esi + 0x2c]
push dword [eax + ecx]
push esi
jae 0x2e0c263b
call fcn.2e0c082b
mov ecx, dword [ebp - 0xc8c]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x2e0c264a
call fcn.2e0c082b
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc90], 4
inc dword [ebp - 0xc8c]
lea eax, [ebp + eax*2 - 0x644]
inc word [eax]
dec dword [ebp - 0xc98]
jne 0x2e0c2567
pop ebx
xor esi, esi
xor edi, edi
cmp dword [ebp - 0xc9c], esi
jbe 0x2e0c26e7
movzx eax, word [ebp + esi*2 - 0xc84]
cmp ax, 0x100
movzx eax, ax
jae 0x2e0c2694
movzx eax, byte [eax + 0x2e032c30]
jmp 0x2e0c26a1
shr eax, 8
movzx eax, byte [eax + 0x2e032c30]
add eax, 8
movzx ecx, word [ebp + esi*2 - 0x644]
cmp cx, 0x100
movzx ecx, cx
jae 0x2e0c26bc
movzx ecx, byte [ecx + 0x2e032c30]
jmp 0x2e0c26c9
shr ecx, 8
movzx ecx, byte [ecx + 0x2e032c30]
add ecx, 8
mov eax, dword [eax*4 + 0x2e032be8]
sub eax, dword [ecx*4 + 0x2e032be8]
cdq
xor eax, edx
sub eax, edx
add edi, eax
inc esi
cmp esi, dword [ebp - 0xc9c]
jb 0x2e0c267a
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.2e046cd2
leave
ret 0x14
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x472e10]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406448
cmp eax, ebx
je 0x401533
push ebx
push dword [0x472e10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x472e10], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x4033c3
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42f1bc]
sub esi, dword [0x4331c8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
mov dword [0x472d80], eax
cmp esi, ebx
jle 0x403521
push dword [0x4331c4]
call fcn.004033ac
push ebx
push ebx
push dword [0x4331c8]
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x42f1b8], esi
mov dword [0x41f12c], ebx
mov ebp, 0x4271b8
mov eax, dword [0x4331c0]
sub eax, dword [0x4331c4]
mov edi, 0x4000
cmp eax, edi
jg 0x403438
mov edi, eax
push edi
mov esi, 0x42f1c0
push esi
call fcn.0040337a
test eax, eax
je 0x403533
add dword [0x4331c4], edi
mov dword [0x427148], esi
mov dword [0x42714c], edi
cmp dword [0x472d2c], ebx
je 0x40348f
cmp dword [0x472e00], ebx
jne 0x40348f
mov eax, dword [0x42f1b8]
sub eax, dword [0x42f1bc]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4331c8]
mov dword [0x41f12c], eax
call fcn.004032d8
pop ecx
mov ecx, 0x427130
mov dword [0x427150], ebp
mov dword [0x427154], 0x8000
call fcn.0040745b
test eax, eax
js 0x403538
mov esi, dword [0x427150]
sub esi, ebp
je 0x4034ed
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40353d
cmp esi, dword [esp + 0x10]
jne 0x40353d
add dword [0x4331c8], esi
cmp dword [0x42714c], ebx
jne 0x40345e
jmp 0x4034f9
cmp dword [0x42714c], ebx
jne 0x403538
cmp edi, ebx
je 0x403538
mov eax, dword [0x42f1bc]
mov ecx, eax
sub ecx, dword [0x4331c8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403422
push ebx
push ebx
push eax
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.004032d8
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x40352b
push 0xfffffffffffffffd
pop eax
jmp 0x40352b
push 0xfffffffffffffffe
jmp 0x40353a
Function at 0x403541
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x40356b
add eax, dword [0x472d78]
push edi
push edi
push eax
push dword [0x40b014]
mov dword [0x42f1bc], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004033c3
cmp eax, edi
jl 0x403664
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40b014]
call ebx
test eax, eax
je 0x403660
cmp dword [ebp - 4], esi
jne 0x403660
push dword [ebp + 8]
add dword [0x42f1bc], esi
call fcn.004033c3
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x403663
cmp dword [ebp + 0x10], edi
jne 0x40362f
cmp dword [ebp + 8], edi
jle 0x40365b
mov esi, 0x42f1c0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4035df
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40b014]
call ebx
test eax, eax
je 0x403660
cmp edi, dword [ebp - 4]
jne 0x403660
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40362b
cmp dword [ebp + 0x14], edi
jne 0x40362b
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42f1bc], eax
cmp dword [ebp + 8], 0
jg 0x4035d2
jmp 0x40365b
push 0xfffffffffffffffe
jmp 0x403662
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40363a
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40b014]
call ebx
test eax, eax
je 0x403660
mov eax, dword [ebp - 4]
add dword [0x42f1bc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403663
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405d8b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x457218
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x457218], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405dc6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405f7c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405f99
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405f9c
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [eax + 1]
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405fcb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40968c]
mov dword [ebp - 8], eax
mov eax, dword [0x409690]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40601b
test edi, edi
jne 0x405fd8
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406015

Function at 0x40601f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406098
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406081
cmp dword [ebp + 0x14], 1
je 0x406086
cmp dword [ebp + 0x14], 2
je 0x406086
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x3ffe], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x406233
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40625c
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x406250
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x406307
cmp dword [0x4614b0], ebx
je 0x406307
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x46a4c0], bx
je 0x4062d3
cmp dword [0x40b058], 0xffffffff
jne 0x4062dc
mov esi, 0x46a4c0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405f9c
mov dword [0x40b058], eax
cmp eax, 0xffffffff
je 0x406305
cmp dword [ebp + 8], 0xffffffff
jne 0x4062c8
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40b058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x406305
push 0x4096a8
mov esi, 0x4614c0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4