joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51bbd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5760b3
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5c524c]
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 + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0
mov dword [ebx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x201
push dword [0x5c6940]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0051bb20
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x51bdb1
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0051e890
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x596958
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x51bdb1
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x51bca5
cmp eax, 2
jne 0x51bdb1
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x51bcc6
test cl, 1
jne 0x51bdb1
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x51bccc
jmp 0x51bdb1
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x51bdb1
call fcn.00415b60
mov ecx, eax
test ecx, ecx
je 0x51bddc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.0051a130
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x20]
push 0x596960
push eax
call fcn.0051c0f0
mov esi, dword [ebp - 0x78]
push 0x2a
push esi
call fcn.0051a4c0
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x7c], eax
jne 0x51bd95
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x51bd36
sub edx, ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
sar edx, 1
push edx
push eax
call fcn.0041aed0
push dword [0x5c6948]
lea eax, [ebp - 0x74]
push dword [0x5c6944]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x51bd72
mov dword [ebx], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51bd8e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x51bdb3
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51bdb1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
test edi, edi
je 0x51bdbe
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.0047467d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040e300
int3
Function at 0x51bdf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5760e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5c524c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push dword [0x5c6940]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0051bb20
test eax, eax
je 0x51bf18
mov esi, dword [ebp - 0x18]
mov edi, dword [0x5c6940]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x51bec3
cmp dword [esi], 0
je 0x51beb6
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x51be83
mov eax, 1
jmp 0x51bee4
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x51bebc
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x51bee4
cmp dword [esi + 4], 0
jne 0x51bec3
mov eax, 1
jmp 0x51bee4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x51bf0e
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x51bef6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x51bf1b
xor ebx, ebx
jmp 0x51bfbf
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x51bfbf
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x51bf78
mov ecx, dword [ebx]
test ecx, ecx
je 0x51bfde
push ecx
push eax
call fcn.005298c9
add esp, 8
test eax, eax
je 0x51bf78
mov edx, dword [edi]
test edx, edx
je 0x51bf78
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51bf50
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.m2_old
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x51bf83
lea eax, [edx + 0xd]
jmp 0x51bfb8
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51bf90
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x596958
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x51bfca
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040e300
int3
Function at 0x51d670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x51d6e1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x51d6af
cmp eax, 2
jne 0x51d6cb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x51d6db
test ecx, ecx
je 0x51d6d6
test cl, 1
jne 0x51d6cb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x51d6db
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x54130b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0054118a

Function at 0x5440c0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00543d80

Function at 0x54edde
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0xabb540
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4ad000]
push edi
or ebp, 0xffffffff
jmp 0xabb562
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xabb569
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xabb558
mov eax, 1
add ebx, ebx
jne 0xabb57b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xabb58c
jne 0xabb5ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xabb5ab
dec eax
add ebx, ebx
jne 0xabb598
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xabb570
add ebx, ebx
jne 0xabb5a7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xabb5fd
xor ecx, ecx
sub eax, 3
jb 0xabb5c3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xabb632
sar eax, 1
mov ebp, eax
jmp 0xabb5ce
add ebx, ebx
jne 0xabb5ce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xabb59c
inc ecx
add ebx, ebx
jne 0xabb5dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xabb59c
add ebx, ebx
jne 0xabb5e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xabb5de
jne 0xabb5fa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xabb5de
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xabb61c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xabb60e
jmp 0xabb55e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xabb61c
add edi, ecx
jmp 0xabb55e
pop esi
mov edi, esi
mov ecx, 0x10672
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xabb63a
cmp byte [edi], 0x26
jne 0xabb63a
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 0xabb63f
lea edi, [esi + 0x690000]
mov eax, dword [edi]
or eax, eax
je 0xabb6ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x716e9c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x716fe0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xabb66c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x716fe8]
or eax, eax
je 0xabb6a8
mov dword [ebx], eax
add ebx, 4
jmp 0xabb689
call dword [esi + 0x716fe4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xabb6df
cmp al, 0xef
ja 0xabb6d2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xabb6b4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xabb6c1
mov ebp, dword [esi + 0x716fec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0xabb713
sub esp, 0xffffff80
jmp 0x77e4e4
Function at 0x401a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp + 0x10]
push ecx
push 0
push edx
push eax
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401ab3
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
test esi, esi
je 0x401ad1
test edi, edi
jbe 0x401ad1
cmp dword [ebp + 0x14], 0
jne 0x401ad1
mov eax, dword [ebp + 0x10]
cmp eax, 1
je 0x401ace
cmp eax, 2
jne 0x401ad1
mov byte [esi], 0
pop edi
mov eax, 1
pop esi
pop ebp
ret 0x10

Function at 0x401b20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x448684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
xor bl, bl
call fcn.00412950
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401b72
cmp dword [ebp - 0x94], 6
mov al, 1
jae 0x401b74
mov al, bl
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004126c6
mov esp, ebp
pop ebp
ret

Function at 0x403950
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
or esi, 0xffffffff
call fcn.00412950
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x54], 0x44
jb 0x40398d
mov eax, dword [eax + 4]
jmp 0x403990
add eax, 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4039f8
cmp byte [ebp + 0xc], 0
je 0x4039c3
mov eax, dword [ebp - 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x10]
lea ecx, [ebp + 0xc]
push ecx
push edx
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4039e1
mov esi, dword [ebp + 0xc]
jmp 0x4039e4
or esi, 0xffffffff
mov eax, dword [ebp - 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [ebp - 0xc]
push ecx
call edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4078b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c280
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x448684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x118], ebx
test byte [0x449c34], 1
mov dword [ebp - 0x11c], esi
jne 0x40792b
mov eax, 1
or dword [0x449c34], eax
mov dword [ebp - 4], eax
push 0x43d200
mov dword [0x449c30], 0xf
mov dword [0x449c2c], ebx
mov byte [0x449c1c], bl
call fcn.00413c52
add esp, 4
mov byte [ebp - 4], bl
cmp byte [0x44734f], bl
je 0x407985
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40795b
push ebx
push 0x43e500
mov ecx, 0x449c18
call fcn.004055e0
jmp 0x407985
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407964
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
mov ecx, 0x449c18
call fcn.004055e0
mov byte [0x44734f], bl
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x449c18
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004053a0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x118], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004126c6
mov esp, ebp
pop ebp
ret 4
Function at 0x408450
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c538
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x448684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x134], ebx
call fcn.004078b0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x43e634
push 0x43e500
mov dword [ebp - 0x134], 1
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], ebx
mov byte [ebp - 0x12c], bl
lea edx, [eax + 1]
jmp 0x4084e0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4084e0
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x130]
call fcn.004055e0
mov dword [ebp - 4], 1
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x130]
push edx
mov ecx, esi
call fcn.004054d0
cmp dword [esi + 0x18], 0x10
jb 0x40851f
mov eax, dword [esi + 4]
jmp 0x408522
lea eax, [esi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x408582
push 0x1d
push str.Failed_to_create_directory:
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x13c], 0xf
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0x150], bl
call fcn.004055e0
mov byte [ebp - 4], 2
push esi
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x170]
push ecx
call fcn.00407270
add esp, 0xc
push 0x443ba4
lea edx, [ebp - 0x170]
push edx
call fcn.00412c01
mov byte [ebp - 4], bl
cmp dword [ebp - 0x118], 0x10
jb 0x40859d
mov eax, dword [ebp - 0x12c]
push eax
call fcn.004127b1
add esp, 4
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], ebx
mov byte [ebp - 0x12c], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004126c6
mov esp, ebp
pop ebp
ret 4
Function at 0x4085e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c598
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x448684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x118], ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov dword [ebp - 0x138], esi
mov byte [esi + 4], bl
mov dword [ebp - 4], ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 0x118], 1
mov byte [ebp - 0x114], bl
call fcn.00412950
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408690
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x134]
call fcn.004055e0
mov dword [ebp - 4], 1
push str.DesktopZoneAlarmSetup.exe
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x154]
push ecx
call fcn.00408090
add esp, 0xc
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.004053a0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x13c], 0x10
jb 0x4086f9
mov edx, dword [ebp - 0x150]
push edx
call fcn.004127b1
add esp, 4
mov dword [ebp - 0x13c], 0xf
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0x150], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x11c], 0x10
jb 0x40872a
mov eax, dword [ebp - 0x130]
push eax
call fcn.004127b1
add esp, 4
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004126c6
mov esp, ebp
pop ebp
ret 4
Function at 0x40d740
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ce08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x448684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x24]
push 0xffffffffffffffff
push edi
lea ecx, [ebp + 8]
push ecx
mov ecx, 0x447464
mov dword [0x449c54], eax
call fcn.004053a0
push edi
push edi
push edi
push 0x40d5a0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x449c60], eax
cmp eax, edi
je 0x40d87f
mov edx, dword [0x449c5c]
push edi
push 0x3e8
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [0x449c5c]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push eax
lea ecx, [ebp - 0x28]
push ecx
call esi
test eax, eax
je 0x40d80c
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea esp, [esp]
cmp dword [ebp - 0x24], 0x400
je 0x40d80a
lea edx, [ebp - 0x28]
push edx
call edi
lea eax, [ebp - 0x28]
push eax
call ebx
mov ecx, dword [0x449c5c]
push 0
push 0
push ecx
lea edx, [ebp - 0x28]
push edx
call esi
test eax, eax
jne 0x40d7e0
xor edi, edi
mov eax, dword [0x449c60]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40d833
mov ecx, dword [0x449c60]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x449c60]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x449c5c]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [0x449c5c]
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [0x449c50]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], 0x10
jb 0x40d87b
mov edx, dword [ebp + 0xc]
push edx
call fcn.004127b1
add esp, 4
mov eax, esi
jmp 0x40d89d
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], 0x10
jb 0x40d898
mov eax, dword [ebp + 0xc]
push eax
call fcn.004127b1
add esp, 4
mov eax, 0xe
mov byte [ebp + 0xc], 0
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], 0xf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x40d8c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ce3b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x448684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x43e500
mov byte [ecx + 4], bl
call fcn.004055e0
mov dword [ebp - 4], ebx
mov byte [esi + 0x28], bl
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dd00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40dd36
cmp byte [edi], 0
je 0x40dd36
push esi
push edi
mov esi, edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi - 1]
cmp eax, edi
jbe 0x40dd35
movzx ecx, byte [eax]
xor byte [esi], cl
mov cl, byte [esi]
xor byte [eax], cl
mov cl, byte [eax]
xor byte [esi], cl
inc esi
dec eax
cmp eax, esi
ja 0x40dd22
pop esi
mov eax, edi
pop edi
pop ebp
ret 4

Function at 0x40dee0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x448684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x106
lea eax, [ebp - 0x213]
push 0
push eax
mov byte [ebp - 0x214], 0
call fcn.00412950
push 0x106
lea ecx, [ebp - 0x10b]
push 0
push ecx
mov byte [ebp - 0x10c], 0
call fcn.00412950
add esp, 0x18
xor ebx, ebx
push ebx
lea edx, [ebp - 0x214]
push edx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x43eba8
lea eax, [ebp - 0x214]
push eax
call edi
push ebx
push 0x43eba8
lea ecx, [ebp - 0x214]
push ecx
call fcn.0040de00
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40e02a
lea ecx, [ecx]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
test eax, eax
jne 0x40dfad
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x43eba8
lea ecx, [ebp - 0x10c]
push ecx
jmp 0x40dfc2
lea edx, [ebp - 0x10c]
push edx
call edi
push 0x43eba8
lea eax, [ebp - 0x10c]
push eax
call edi
push 0
lea ecx, [ebp - 0x10c]
push ecx
push 0x104
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40dff1
test al, 0x10
jne 0x40e006
push 0
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x218], eax
inc ebx
push ebx
push 0x43eba8
lea edx, [ebp - 0x214]
push edx
call fcn.0040de00
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40df80
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004126c6
mov esp, ebp
pop ebp
ret 4