joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421d66
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4c03a8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x421da6
cmp byte [ebx], 0xa
jne 0x421da6
or byte [eax + edi + 0x28], 4
jmp 0x421dab
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x421ea9
mov al, byte [edx]
cmp al, 0x1a
je 0x421e8b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x421dda
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x421dff
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x421e09
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x421dbc
jmp 0x421ea9
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421e86
cmp dword [ebp - 0xc], 0
je 0x421e86
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4c03a8]
test byte [eax + edi + 0x28], 0x48
je 0x421e60
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x421e4b
mov byte [esi], dl
jmp 0x421e5c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c03a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x421ea9
cmp byte [ebp - 1], 0xa
jne 0x421e6f
cmp esi, ebx
jne 0x421e6f
mov byte [esi], 0xa
jmp 0x421ea8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a844
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x421ea9
mov byte [esi], 0xd
jmp 0x421ea8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4c03a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x421ea5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421ea9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421eb2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4c03a8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x421ef5
cmp word [esi], dx
jne 0x421ef5
or byte [edi + eax + 0x28], 4
jmp 0x421efa
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x42204d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x42202d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x421f3c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x421f72
cmp eax, edx
jae 0x421f7e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x421f14
jmp 0x42204d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422029
cmp dword [ebp - 0x14], 0
je 0x422029
mov eax, dword [ebx*4 + 0x4c03a8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x422001
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x421fca
mov word [esi], cx
jmp 0x421ffd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4c03a8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4c03a8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4c03a8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42204d
pop ebx
cmp word [ebp - 4], bx
jne 0x422012
cmp esi, dword [ebp + 0xc]
jne 0x422012
mov word [esi], bx
jmp 0x42204a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a844
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42204d
push 0xd
jmp 0x422046
mov ecx, dword [ebx*4 + 0x4c03a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x422044
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42204d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x424a60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x424a8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x424a8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401176
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [0x408a34], eax
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0x19a
push 0x172
push 0
push 0
push 0x80000000
push 0x40a024
push 0x40a028
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x408a44], eax
cmp dword [0x408a44], 0
jne 0x4011d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
xor eax, eax
jmp 0x4012e7
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x88000000
push 0x40a030
push str.QSETUPBG
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x408a38], eax
cmp dword [0x408a44], 0
jne 0x40123c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
xor eax, eax
jmp 0x4012e7
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0xae
push 0x172
push 0
push 0
push 0x80000000
push 0x40a040
push str.QSETUPPROGRESS
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x408a3c], eax
cmp dword [0x408a44], 0
jne 0x40128d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
xor eax, eax
jmp 0x4012e7
push 4
mov eax, dword [0x408a38]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x408a38]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
mov eax, dword [0x408a3c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x408a3c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [0x408a44]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x408a44]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
jmp 0x4012e7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402da9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x408930
call fcn.00402ec7
add esp, 4
push 0x104
push 0x408820
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x40a520
push 0x408820
call fcn.004058f4
add esp, 8
push 0x104
push 0x408600
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x40a524
push 0x408600
call fcn.004058f4
add esp, 8
push 0x40a528
call fcn.0040352b
add esp, 4
and eax, 0xff
cmp eax, 2
jne 0x402e32
push str.C:Program_Files_
push 0x4084f0
call fcn.004058f8
add esp, 8
jmp 0x402e44
push 0x40a550
push 0x4084f0
call fcn.004058f8
add esp, 8
push 0x408600
push 0x4082d0
call fcn.004058f8
add esp, 8
push str.FONT_
push 0x4082d0
call fcn.004058f4
add esp, 8
push 0x4084f0
push 0x408710
call fcn.004058f8
add esp, 8
push str.Q9FIGHT_
push 0x408710
call fcn.004058f4
add esp, 8
push 0x408710
push 0x4083e0
call fcn.004058f8
add esp, 8
push 0x408600
push 0x4081c0
call fcn.004058f8
add esp, 8
push 0x40a568
push 0x4081c0
call fcn.004058f4
add esp, 8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035c7
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call fcn.00405a5c
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004058f8
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004058f4
add esp, 8
lea eax, [ebp - 0x20c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x374], pe_nt_image_headers32
lea eax, [ebp - 0x374]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x210], eax
mov word [ebp - 0x234], 0
cmp dword [ebp - 0x210], 0xffffffff
je 0x40381f
lea eax, [ebp - 0x348]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x374]
push eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403677
jmp 0x40381f
mov eax, dword [ebp - 0x214]
mov al, byte [eax]
and eax, 0xff
cmp eax, 0x2e
jne 0x403697
jmp 0x403638
test byte [ebp - 0x374], 0x10
je 0x40373f
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004058f8
add esp, 8
mov eax, dword [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004058f4
add esp, 8
push 0x40a588
lea eax, [ebp - 0x20c]
push eax
call fcn.004058f4
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004058f8
add esp, 8
mov eax, dword [ebp - 0x214]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004058f4
add esp, 8
push 0x40a58c
lea eax, [ebp - 0x108]
push eax
call fcn.004058f4
add esp, 8
push 1
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004035c7
add esp, 0x10
jmp 0x40381a
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004058f8
add esp, 8
mov eax, dword [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004058f4
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004058f8
add esp, 8
mov eax, dword [ebp - 0x214]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004058f4
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x4037b6
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x4037cc
push 1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
inc word [ebp - 0x234]
push 0x7d
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x403638
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ax, word [ebp - 0x234]
jmp 0x403838
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403c23
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
push ebx
push esi
push edi
mov dword [ebp - 8], 0x104
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionexplorerShell_Folders
lea edi, [ebp - 0x170]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x12f]
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, str.Common_Startup
lea ecx, [ebp - 0x274]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov dx, word [eax + 0xc]
mov word [ecx + 0xc], dx
mov al, byte [eax + 0xe]
mov byte [ecx + 0xe], al
lea edi, [ebp - 0x265]
xor eax, eax
mov ecx, 0x3d
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004058f8
add esp, 8
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403d07
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0x274]
push eax
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d0c
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push ebx
push esi
push edi
mov dword [ebp - 8], 0x104
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea edi, [ebp - 0x170]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x12f]
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004058f8
add esp, 8
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403db4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x174]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x174]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40555c
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], 0x80000001
mov dword [ebp - 4], 0x40abc0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4055b4
jmp 0x40564e
cmp dword [ebp + 8], 0
jne 0x4055ca
mov dword [ebp - 4], 0x40abcc
jmp 0x4055d0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
jne 0x4055ed
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x405624
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00405988
add esp, 4
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405633
jmp 0x40564e
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov dword [ebp - 8], 1
jmp 0x40564e
cmp dword [ebp - 0x1c], 0
je 0x405662
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
jmp 0x40566a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40566f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x104
mov dword [ebp - 8], str.EUDC950
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4056c0
jmp 0x405721
cmp dword [ebp + 8], 0
jne 0x4056d6
mov dword [ebp - 8], 0x40abe0
jmp 0x4056dc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x405710
jmp 0x405721
mov dword [ebp - 0xc], 1
jmp 0x405721
cmp dword [ebp - 0x18], 0
je 0x405735
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x40573d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405a5c
Capabilities:
Create directory

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, 0
jne 0x405a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405a8b
push eax
call fcn.00405ff6
add esp, 4
mov eax, 0xffffffff
jmp 0x405a8d
xor eax, eax
ret
Function at 0x405b09
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x406b54
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x40b01c], eax
mov al, ah
and eax, 0xff
mov dword [0x40b028], eax
mov eax, dword [0x40b01c]
shr dword [0x40b01c], 0x10
and eax, 0xff
mov dword [0x40b024], eax
shl eax, 8
add eax, dword [0x40b028]
mov dword [0x40b020], eax
call fcn.00405c89
mov dword [ebp - 4], 0
call fcn.00406a5c
call fcn.00406a51
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408d60], eax
call fcn.004065c5
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x40ae0c], eax
call fcn.004064fa
call fcn.004061bd
mov esi, dword [0x408d60]
mov al, byte [esi]
cmp al, 0x22
jne 0x405bc7
mov al, byte [ebp - 0x28]
inc esi
mov al, byte [esi]
test al, al
je 0x405bbf
cmp al, 0x22
jne 0x405bb4
cmp byte [esi], 0x22
jne 0x405bd1
inc esi
jmp 0x405bd1
cmp al, 0x20
jbe 0x405bd1
inc esi
cmp byte [esi], 0x20
ja 0x405bcb
cmp byte [esi], 0
je 0x405be1
cmp byte [esi], 0x20
ja 0x405be1
inc esi
cmp byte [esi], 0
jne 0x405bd6
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x405c01
movzx eax, word [ebp - 0x40]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.004061ed
jmp 0x405c3d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40620f
Capabilities:
Terminate process

Disassembly:
mov dword [0x40b054], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x40b050], bl
jne 0x40626b
cmp dword [0x408a50], 0
je 0x406259
mov esi, dword [0x408a48]
sub esi, 4
cmp dword [0x408a50], esi
ja 0x406259
mov eax, dword [esi]
test eax, eax
je 0x40624e
call eax
sub esi, 4
cmp dword [0x408a50], esi
jbe 0x406246
push 0x40b734
push 0x40b730
call fcn.0040628e
add esp, 8
push 0x40b73c
push 0x40b738
call fcn.0040628e
add esp, 8
test ebx, ebx
jne 0x40628b
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x4123b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd4
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
push esi
push 0x3e9
mov dword [esp + 0x38], 0x64
mov dword [esp + 0x24], esi
call fcn.00414990
mov ebp, eax
push esi
mov ebx, dword [esp + 0xec]
push esi
mov dword [esp + 0x58], ebp
lea edi, [ebx + 0x14]
mov ecx, edi
mov dword [esp + 0x1c], edi
call fcn.0040f550
cmp eax, esi
je 0x41294a
cmp dword [esp + 0xec], esi
jne 0x412443
lea esi, [eax + 0x18]
push esi
call fcn.00403220
add esi, eax
push esi
call fcn.00403220
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x412441
mov eax, dword [esi + 0x1c]
push eax
call dword [0x479414]
test eax, eax
je 0x412441
mov eax, dword [esi + 0x1b4]
test eax, eax
je 0x412456
push 0
push 0
mov ecx, esi
call fcn.00418920
xor esi, esi
cmp dword [esp + 0xf4], 1
jne 0x4124a1
mov dword [esp + 0xf8], esi
jmp 0x4124bb
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x479630]
test eax, eax
je 0x41247f
push 9
mov ecx, esi
call fcn.0046c04c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd4
ret 0x14
mov edx, dword [esi + 0x1c]
push edx
call dword [0x479478]
push eax
call fcn.00469619
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd4
ret 0x14
mov eax, dword [esp + 0xf8]
cmp eax, esi
je 0x4124bb
push eax
call dword [0x479414]
test eax, eax
je 0x41294a
push esi
push esi
push 0x7d9
call fcn.00414990
lea ecx, [ebx + 0x34]
push edi
mov dword [esp + 0x24], ecx
call fcn.0040f4e0
push ebx
mov ecx, ebp
call fcn.0040f9c0
cmp eax, esi
mov dword [esp + 0x4c], eax
je 0x41294a
lea eax, [esp + 0xb4]
mov ecx, edi
push eax
mov dword [esp + 0xa0], esi
mov dword [esp + 0x14], esi
call fcn.00410020
cmp eax, esi
mov dword [esp + 0x28], esi
jle 0x412531
mov edx, dword [esp + 0xb4]
lea ecx, [esp + 0x28]
push esi
push ecx
push esi
push 0xffffffffffffffff
push eax
push esi
push edx
mov ecx, edi
call fcn.0040f550
push eax
call fcn.00420100
add esp, 0x18
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x54]
call fcn.00402830
mov esi, 0x553ef4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x54], esi
call fcn.00402830
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], esi
call fcn.00402830
lea ecx, [esp + 0x34]
mov dword [esp + 0x68], esi
call fcn.00402830
mov esi, dword [ebx + 0x18]
mov ebx, esi
mov dword [esp + 0x30], esi
test esi, esi
mov dword [esp + 0x1c], ebx
jle 0x412839
Function at 0x4206f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x583a58]
xor edx, edx
cmp eax, edx
jne 0x420716
xor eax, eax
mov byte [eax + 0x583958], al
inc eax
cmp eax, 0x100
jl 0x4206fe
mov dword [0x583a58], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x583958
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4207a7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x42077a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x420748
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x420820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x420873
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x42085a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret