joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f0bc
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x47de59
call fcn.0044d428
sub esp, 0xa8
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x60]
push eax
call fcn.004047e4
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004047e4
push dword [ebp + 0x10]
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 1
call fcn.004047e4
push dword [ebp + 0x1c]
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 2
call fcn.004047e4
add esp, 0x20
cmp dword [ebp - 0x4c], ebx
mov byte [ebp - 4], 3
jbe 0x40f12b
cmp dword [ebp - 0x48], 0x10
jb 0x40f126
mov esi, dword [ebp - 0x5c]
jmp 0x40f12d
lea esi, [ebp - 0x5c]
jmp 0x40f12d
xor esi, esi
cmp dword [ebp - 0x30], ebx
jbe 0x40f142
cmp dword [ebp - 0x2c], 0x10
jb 0x40f13d
mov edx, dword [ebp - 0x40]
jmp 0x40f144
lea edx, [ebp - 0x40]
jmp 0x40f144
xor edx, edx
cmp dword [ebp - 0x68], ebx
jbe 0x40f159
cmp dword [ebp - 0x64], 0x10
jb 0x40f154
mov ecx, dword [ebp - 0x78]
jmp 0x40f15b
lea ecx, [ebp - 0x78]
jmp 0x40f15b
xor ecx, ecx
cmp dword [ebp - 0x80], 0x10
mov eax, dword [ebp - 0x94]
jae 0x40f16d
lea eax, [ebp - 0x94]
mov edi, dword [ebp + 0x18]
push eax
mov eax, edi
shr eax, 1
push eax
push dword [ebp + 0x14]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
cmp esi, ebx
jle 0x40f1fa
push dword [ebp + 0x14]
lea ecx, [ebp - 0xb4]
call fcn.00402bb5
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 4
call fcn.004046ef
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xb4]
call fcn.0040287e
push edi
push ebx
push dword [ebp + 0x14]
call fcn.0044d4a0
add esp, 0xc
cmp dword [ebp - 0x14], edi
jbe 0x40f1d5
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040155a
xor esi, esi
jmp 0x40f1fa
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x40f1e1
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x14]
call fcn.0044d900
mov esi, dword [ebp - 0x14]
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040155a
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x98]
call fcn.0040155a
push ebx
push edi
lea ecx, [ebp - 0x7c]
call fcn.0040155a
push ebx
push edi
lea ecx, [ebp - 0x44]
call fcn.0040155a
push ebx
push edi
lea ecx, [ebp - 0x60]
call fcn.0040155a
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x40f544
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40f59d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x40f5a2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push esi
push edi
lea eax, [ebp - 0x410]
push eax
push 0x484fe8
mov esi, SysReAllocString
push esi
call fcn.0040f544
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x40f68f
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x484fc0
lea eax, [ebp - 0x410]
push eax
call edi
lea eax, [ebp - 0x410]
push eax
push eax
push esi
call fcn.0040f544
add esp, 0xc
test eax, eax
jne 0x40f68f
lea eax, [ebp - 0x410]
push 0x484fb4
push eax
call fcn.0044c6be
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x40f647
lea eax, [ebp - 0x410]
push 0x484fac
push eax
call fcn.0044c6be
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x40f647
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp + eax*2 - 0x412]
jmp 0x40f64a
mov word [esi], bx
push 0x484fa8
push esi
call edi
push dword [ebp + 8]
push esi
call edi
push ebx
push ebx
push 0x410
lea eax, [ebp - 0x820]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x410]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp + 0xc]
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, ebx
jne 0x40f6a7
push 0x30
push 0x484f9c
push 0x484f70
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
inc eax
jmp 0x40f6a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40fc37
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x485574
push dword [ebp + 8]
call fcn.0044e4c5
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x40fcbc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40fcbc
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov cl, byte [eax]
mov dl, byte [eax + 2]
mov byte [ebp - 4], cl
mov cl, byte [eax + 1]
mov al, byte [eax + 3]
push esi
mov byte [ebp - 3], cl
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
mov eax, dword [ebp - 4]
mov esi, eax
movzx edx, dl
shr esi, 0x18
push esi
push edx
movzx ecx, cl
push ecx
and eax, 0xff
push eax
push 0x485568
push dword [ebp + 8]
call fcn.0044e4c5
add esp, 0x18
pop esi
leave
ret 4

Function at 0x40fd59
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.00476bf9
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x1c]
push 4
pop ecx
cmp dword [esp + 0x14], ecx
push 3
jne 0x40fd78
mov ebp, ecx
pop ecx
jmp 0x40fd79
pop ebp
mov eax, dword [edi + 0x130]
test eax, eax
je 0x40fd86
mov eax, dword [eax + 0x1c]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
push eax
call esi
mov ebx, eax
mov eax, dword [edi + 0x130]
test eax, eax
je 0x40fd9f
mov eax, dword [eax + 0x1c]
push ebp
push eax
call esi
test ebx, ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, eax
je 0x40fdb4
push 0
push ebx
call edi
test esi, esi
je 0x40fdc4
push 5
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40fdc9
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x104
push esi
call fcn.00476bf9
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x1c]
cmp dword [esi + 0x120], 1
je 0x40fec1
push 1
call fcn.00403c74
push eax
push 0x104
lea eax, [esp + 0x10]
push eax
push 0x483024
push dword [0x49e174]
push dword [esp + 0x124]
call fcn.004039e1
mov eax, dword [esi + 0x130]
add esp, 0x1c
test eax, eax
je 0x40fe21
mov eax, dword [eax + 0x1c]
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0xa
push eax
call edi
mov ebp, eax
mov eax, dword [esi + 0x130]
test eax, eax
je 0x40fe3d
mov eax, dword [eax + 0x1c]
push ebx
push 0x408
push eax
call edi
mov esi, dword [esi + 0x130]
test esi, esi
mov ebx, eax
je 0x40fe55
mov esi, dword [esi + 0x1c]
push 9
push esi
call edi
mov edi, eax
lea eax, [esp + 0x10]
push 0x483024
push eax
call fcn.0045e2d9
test eax, eax
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
pop ecx
pop ecx
jne 0x40fe9a
push 5
push edi
call esi
push 5
push ebp
call esi
push 0
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 1
push ebp
call esi
push 1
push edi
call esi
push 0
jmp 0x40febb
push 0
push edi
call esi
push 0
push ebp
call esi
push 5
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebp
call esi
push 0
push edi
call esi
push 1
push ebx
call esi
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x104
ret 4

Function at 0x40fedd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push dword [0x49e3e0]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ff25
push ebx
push ebx
push ebx
push ebx
push dword [0x49e34c]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ff1c
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
Function at 0x4103c8
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x3a8
push ebx
push esi
mov esi, ecx
call fcn.0040f804
xor ebx, ebx
inc ebx
cmp eax, 0x50000
jb 0x40fa23
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov byte [esi + 0xd6], bl
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [0x4a1220]
mov dword [esp + 0x10], 0x3a8
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x3b4], ebx
call fcn.00476bf9
mov eax, dword [eax + 8]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x80
lea ecx, [esp + 0x338]
push ecx
push 0x66
push eax
call edi
call fcn.00476bf9
mov eax, dword [eax + 8]
push 0x200
lea ecx, [esp + 0x134]
push ecx
push 0x12c
push eax
call edi
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x338], 0x7530
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
je 0x40fa1a
call fcn.0040f804
cmp eax, 0x60000
jae 0x40f931
mov byte [esi + 0xd4], bl
jmp 0x40f979
cmp dword [esi + 0x120], ebx
je 0x40f979
push ebx
call ebp
cmp byte [esi + 0xd4], 0
je 0x40f926
jmp 0x40f979
cmp dword [esi + 0x120], ebx
je 0x40fa1a
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x20
call edi
test ax, ax
jl 0x40f969
push 0x1b
call edi
test ax, ax
jl 0x40f969
push 0xd
call edi
test ax, ax
jge 0x40f976
mov byte [esi + 0xd5], bl
mov byte [esi + 0xd4], 0
push ebx
call ebp
cmp byte [esi + 0xd4], 0
jne 0x40f93c
cmp dword [esi + 0x120], ebx
je 0x40fa1a
mov al, byte [esi + 0xd5]
test al, al
mov byte [esi + 0xd5], 0
jne 0x40fa1a
mov byte [esi + 0xd7], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
jmp 0x40fa05
cmp byte [esi + 0x12c], 0
je 0x40fa0e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x493e0
jae 0x40fa0e
push 0x20
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x40f9ee
push 0x1b
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x40f9ee
push 0xd
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x40fa02
mov byte [esi + 0xd5], bl
mov byte [esi + 0xd4], 0
mov byte [esi + 0xd7], 0
push ebx
call ebp
cmp byte [esi + 0xd7], 0
jne 0x40f9af
mov byte [esi + 0xd7], 0
jmp 0x40f88b
pop edi
mov byte [esi + 0xd6], 0
pop ebp
push 0
push 2
mov byte [esi + 0x12c], 0
call fcn.00401838
cmp dword [esi + 0x120], ebx
pop ecx
pop ecx
je 0x40fa4a
mov ecx, dword [esi + 0x130]
push 5
call fcn.0046891b
pop esi
pop ebx
add esp, 0x3a8
ret
call fcn.00476bf9
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x1c]
cmp byte [ecx + 0x12c], 0
je 0x4103e1
jmp 0x40f860
ret
Function at 0x410854
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push dword [ebp + 8]
lea eax, [ebp - 8]
xor esi, esi
push eax
mov dword [ebp - 8], esi
mov byte [ebp - 1], 0
call fcn.00410795
cmp eax, esi
mov dword [ebp - 0x10], eax
jbe 0x4109d1
push ebx
push edi
push eax
call fcn.004637f6
pop ecx
mov edi, eax
xor ebx, ebx
cmp esi, dword [ebp - 0x10]
jae 0x41098e
mov eax, dword [ebp - 8]
lea ecx, [esi + 1]
cmp byte [eax + ecx - 1], 0
mov dword [ebp - 0xc], ecx
jne 0x410986
cmp esi, ebx
jbe 0x410986
sub esi, ebx
push esi
add ebx, eax
push ebx
push edi
call fcn.0044e640
push dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
push 0x105
mov byte [esi + edi], 0
lea eax, [ebp - 0x118]
push eax
mov esi, 0x483024
push esi
push dword [0x49e134]
push edi
call fcn.004039e1
push dword [0x49e1cc]
lea eax, [ebp - 0x118]
push eax
call fcn.0045e2d9
add esp, 0x2c
test eax, eax
je 0x410976
push dword [0x49e1d0]
lea eax, [ebp - 0x118]
push eax
call fcn.0045e2d9
test eax, eax
pop ecx
pop ecx
je 0x410976
push dword [0x49e1a0]
lea eax, [ebp - 0x118]
push eax
call fcn.0045e2d9
test eax, eax
pop ecx
pop ecx
je 0x410976
push dword [0x49e1e4]
lea eax, [ebp - 0x118]
push eax
call fcn.0045e2d9
test eax, eax
pop ecx
pop ecx
je 0x410976
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0045e2d9
test eax, eax
pop ecx
pop ecx
je 0x410970
push dword [0x49e1a4]
lea eax, [ebp - 0x118]
push eax
call fcn.0045e2d9
test eax, eax
pop ecx
pop ecx
jne 0x410986
mov byte [ebp - 1], 1
jmp 0x410986
push dword [ebp + 8]
push 0
push 0
push edi
call fcn.00403868
add esp, 0x10
mov esi, dword [ebp - 0xc]
jmp 0x41088b
push dword [ebp - 8]
call fcn.004637fb
push edi
call fcn.004637fb
cmp byte [ebp - 1], 0
pop ecx
pop ecx
pop edi
pop ebx
jne 0x4109d1
push dword [0x49e340]
push dword [0x49e33c]
push SysReAllocString
call fcn.0041c098
push dword [ebp + 8]
push 0
push 0
push dword [0x49e12c]
call fcn.00403868
add esp, 0x1c
pop esi
leave
ret 4
Function at 0x41192d
Capabilities:
Delete file

Disassembly:
mov eax, 0x47dfe9
call fcn.0044d428
sub esp, 0x158
push ebx
push esi
push edi
call fcn.00476bf9
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x1c]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
push 1
mov dword [ebp + 8], eax
call fcn.00403c74
push eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x164]
push eax
mov esi, 0x483024
push esi
push dword [0x49e13c]
push dword [ebp + 8]
call fcn.004039e1
lea eax, [ebp - 0x164]
push eax
call fcn.0044e764
cdq
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
push 1
mov dword [ebp - 0x24], edx
mov dword [ebp + 8], eax
call fcn.00403c74
push eax
push edi
lea eax, [ebp - 0x164]
push eax
push esi
push dword [0x49e138]
push dword [ebp + 8]
call fcn.004039e1
lea eax, [ebp - 0x164]
push eax
call fcn.0044e764
cdq
mov dword [ebp - 0x20], eax
add esp, 0x40
sub eax, dword [ebp - 0x28]
push 1
mov dword [ebp - 0x14], eax
mov eax, edx
sbb eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
mov dword [ebp + 8], eax
call fcn.00403c74
push eax
push edi
lea eax, [ebp - 0x164]
push eax
push esi
push dword [0x49e140]
push dword [ebp + 8]
call fcn.004039e1
lea eax, [ebp - 0x164]
push eax
call fcn.0044e764
mov edx, dword [ebp + 0x14]
add esp, 0x20
cmp eax, 0x11
je 0x411a20
mov eax, dword [ebp - 0x20]
sub dword [edx], eax
mov eax, dword [ebp - 0x1c]
sbb dword [edx + 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
sub dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
sbb dword [eax + 4], ecx
mov ecx, dword [esi + 0x120]
xor edi, edi
cmp ecx, 2
je 0x411a6f
cmp ecx, 3
je 0x411a6f
mov ecx, dword [esi + 0x124]
mov edi, dword [ecx]
push 0x65
push dword [edx + 4]
push dword [edx]
push dword [eax + 4]
push dword [eax]
call dword [edi + 0xc]
mov ecx, dword [esi + 0x124]
xor edi, edi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
push edx
push dword [ebp - 0x14]
call dword [eax + 0x40]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x60]
call fcn.00403846
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], edi
call fcn.004047e4
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x60]
call fcn.0040155a
cmp dword [ebp - 0x2c], 0x10
mov eax, dword [ebp - 0x40]
jae 0x411aa3
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebx]
push 1
call fcn.00403c74
push eax
push dword [0x49e1e4]
push dword [0x49e134]
push ebx
call fcn.00403868
add esp, 0x14
push edi
push 1
lea ecx, [ebp - 0x44]
mov dword [esi + 0x120], edi
call fcn.0040155a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x411e16
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x47e052
call fcn.0044d428
sub esp, 0x38
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
xor esi, esi
call fcn.00403846
and dword [ebp - 4], esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004047e4
pop ecx
pop ecx
push esi
push 1
lea ecx, [ebp - 0x44]
call fcn.0040155a
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x411e5a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x411e73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x411e73
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040155a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x411e90
Capabilities:
Delete file

Disassembly:
mov eax, 0x47e052
call fcn.0044d428
sub esp, 0x140
push 1
call fcn.00403c74
push eax
push 0x105
lea eax, [ebp - 0x14c]
push eax
push 0x483024
push dword [0x49e164]
push dword [0x49e12c]
call fcn.004039e1
lea eax, [ebp - 0x14c]
push eax
call fcn.0044d870
add esp, 0x20
cmp eax, 1
jbe 0x411f6f
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00403846
and dword [ebp - 4], 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004047e4
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.0040155a
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x411f1c
lea eax, [ebp - 0x24]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
test eax, eax
jne 0x411f44
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x411f41
lea eax, [ebp - 0x24]
push eax
call esi
push 1
call fcn.00403c74
push eax
push 0
push dword [0x49e164]
push dword [0x49e12c]
call fcn.00403868
add esp, 0x14
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040155a
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x411f7b
Capabilities:
Set current directory

Disassembly:
mov eax, 0x47e052
call fcn.0044d428
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push 0x483024
push dword [0x49e154]
push dword [0x49e12c]
call fcn.004039e1
add esp, 0x18
push esi
lea ecx, [ebp - 0x44]
mov edi, eax
call fcn.00403846
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004047e4
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.0040155a
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x411fe4
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x41200f
push dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
push ebx
push dword [0x49e154]
push dword [0x49e12c]
call fcn.00403868
add esp, 0x10
mov byte [esi], 0x30
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040155a
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x41202d
Capabilities:
Accept command line arguments
Persist via run registry key

Disassembly:
mov eax, 0x47e07c
call fcn.0044d428
sub esp, 0x34
push esi
xor esi, esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401ba9
push esi
push 0x485654
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call fcn.004014d9
cmp eax, esi
jge 0x41207a
push esi
push 0x48564c
lea ecx, [ebp - 0x18]
call fcn.004014d9
cmp eax, esi
jl 0x41217b
push ebx
add eax, 4
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.004052bb
xor ebx, ebx
lea eax, [ebp - 0x40]
push 0x4a19e8
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.004048d9
pop ecx
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 2
jb 0x4120b0
mov eax, dword [eax + 4]
jmp 0x4120b3
add eax, 4
push eax
lea ecx, [ebp - 0x20]
call fcn.00401b04
push esi
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0040155a
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
jge 0x4120dc
push 0x80070057
call fcn.004010a4
cmp word [eax], 0x22
jne 0x412103
push ebx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00410555
push 0x22
push eax
mov dword [ebp - 0x1c], ebx
call fcn.004105a3
test al, al
pop ecx
pop ecx
mov byte [ebp - 0xd], bl
jne 0x412107
mov byte [ebp - 0xd], 0
test byte [ebp - 0x1c], bl
je 0x412117
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401148
cmp byte [ebp - 0xd], 0
je 0x412127
push 0x22
lea ecx, [ebp - 0x14]
call fcn.00442487
push 0x484fa8
lea ecx, [ebp - 0x14]
call fcn.0041062a
mov eax, dword [ebp - 0x20]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.004105c0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi - 0xc]
shl eax, 1
push eax
push esi
push ebx
push dword [0x49e340]
push dword [0x49e33c]
push SysReAllocString
call fcn.0041c0e4
mov ecx, dword [ebp - 0x20]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.00401148
lea ecx, [esi - 0x10]
call fcn.00401148
pop ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401148
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x412193
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x47e096
call fcn.0044d428
sub esp, 0x23c
push edi
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], 0xfffffffe
call fcn.004112e5
and dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00469d98
push 4
pop edi
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x41226a
cmp dword [ebp - 0x18], 1
jle 0x412261
push esi
push dword [eax + 4]
lea eax, [ebp - 0x248]
push eax
call fcn.0044da22
pop ecx
pop ecx
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov esi, 0x8020
jmp 0x41222e
test edi, edi
jle 0x4122a7
cmp dword [ebp - 0x24], 0xb
jne 0x412298
push 0x1f4
dec edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x248]
push esi
lea ecx, [ebp - 0x40]
push eax
call fcn.00469dae
test eax, eax
je 0x412214
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.00411ccc
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
jne 0x412260
call fcn.0041202d
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0046a16f
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov dword [ebp - 0x2c], 0x48b5f4
call fcn.00401148
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], ecx
leave
ret
cmp dword [ebp - 0x24], 2
jne 0x412260
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x412260
or dword [ebp - 0x10], 0xffffffff
jmp 0x412260
Function at 0x4123d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47e0d2
call fcn.0044d428
sub esp, 0x264
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [0x49e3e0]
xor edi, edi
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x4124e0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [0x49e34c]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, esi
jne 0x4124d7
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x68]
call fcn.00402bb5
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], esi
call fcn.004046ef
pop ecx
pop ecx
push esi
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.0040287e
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x412471
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
call fcn.0044d900
push dword [ebp + 0xc]
call fcn.0044d870
add esp, 0xc
test eax, eax
jbe 0x4124cd
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d5c1
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [0x49e154]
push dword [0x49e12c]
call fcn.00403868
add esp, 0x18
push dword [ebp + 8]
lea ecx, [ebp - 0x4c]
call fcn.00403846
lea eax, [ebp - 0x4c]
push eax
call fcn.0041c2d8
pop ecx
push esi
push edi
lea ecx, [ebp - 0x4c]
call fcn.0040155a
push esi
push edi
lea ecx, [ebp - 0x30]
call fcn.0040155a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10