joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403415
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movsx eax, byte [ebp + 8]
push esi
push edi
push eax
lea eax, [ebp - 0xc]
push str.._c:
push eax
xor esi, esi
call fcn.0040531f
add esp, 0xc
lea eax, [ebp - 0xc]
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x403481
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x18]
push 0xc
push eax
push esi
push esi
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40347a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
push 1
mov dword [eax], ecx
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, si
pop edi
pop esi
leave
ret

Function at 0x403741
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, 2
jb 0x403770
cmp byte [ebp - 0x103], 0x3a
mov al, byte [ebp - 0x104]
je 0x403772
mov al, 0x43
leave
ret

Function at 0x403c73
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x403c1b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x403c8d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push ebx
push esi
mov esi, dword [ebp + 8]
push str.Autodesk_Licensing_Service
push str.Autodesk
push str.SOFTWARE_sLicenses_s
lea eax, [ebp - 0x16c]
xor ebx, ebx
push 0x100
push eax
mov dword [esi], ebx
mov dword [ebp + 8], ebx
call fcn.00405290
add esp, 0x14
lea eax, [ebp + 8]
push eax
push 0x20019
lea eax, [ebp - 0x16c]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d72
push edi
push 0x60
pop edi
lea eax, [ebp - 0x6c]
push edi
push ebx
push eax
call fcn.00404ff0
add esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 3
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x4135a0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
pop edi
jne 0x403d72
cmp dword [ebp - 8], 3
jne 0x403d72
cmp dword [ebp - 0xc], 8
jb 0x403d72
cmp esi, ebx
je 0x403d6c
lea eax, [ebp - 0x6c]
push 4
push eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call fcn.00404c00
lea eax, [ebp - 0x68]
push 4
push eax
push esi
call fcn.00404c00
push esi
call fcn.00403bf5
mov eax, dword [ebp - 4]
add esp, 0x1c
sub dword [esi], eax
mov ax, 1
jmp 0x403d75
xor ax, ax
pop esi
pop ebx
leave
ret
Function at 0x403d79
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
xor ebx, ebx
cmp dword [0x41358c], ebx
je 0x403e8d
push str.Autodesk_Licensing_Service
push str.Autodesk
push str.SOFTWARE_sLicenses_s
lea eax, [ebp - 0x168]
push 0x100
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00405290
add esp, 0x14
lea eax, [ebp - 8]
push ebx
push eax
push 0x4134a0
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x168]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403dea
xor ax, ax
jmp 0x403e91
push esi
push 0x60
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00404ff0
push ebx
call fcn.00405ed3
push eax
call fcn.00405ea4
call fcn.00405eb1
mov esi, eax
shl esi, 0x10
call fcn.00405eb1
add esi, eax
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 4], esi
push eax
call fcn.00404c00
mov eax, dword [ebp - 4]
add esp, 0x20
add dword [ebp + 8], eax
push 4
pop esi
lea eax, [ebp + 8]
push eax
call fcn.00403bda
lea eax, [ebp + 8]
push 4
push eax
lea eax, [ebp + esi - 0x68]
push eax
call fcn.00404c00
mov eax, dword [ebp + 8]
add esi, 4
add eax, eax
add esp, 0x10
sub eax, dword [ebp - 4]
cmp esi, 0x60
mov dword [ebp + 8], eax
jb 0x403e32
lea eax, [ebp - 0x68]
push 0x60
push eax
push 3
push ebx
push 0x4135a0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
pop esi
jmp 0x403e91
mov ax, 1
pop ebx
leave
ret

Function at 0x403e94
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4139c0
call esi
push 0x4139d8
call esi
xor eax, eax
push eax
push eax
push eax
push 0x403edb
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x40aa93
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x412ba8
cmp edx, dword [eax]
je 0x40aab5
add eax, 8
inc ecx
cmp eax, 0x412c38
jl 0x40aaa6
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x412ba8]
jne 0x40abe3
mov eax, dword [0x413a38]
cmp eax, 1
je 0x40abbd
test eax, eax
jne 0x40aae6
cmp dword [0x4107c4], 1
je 0x40abbd
cmp edx, 0xfc
je 0x40abe3
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ab1d
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004051a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405120
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ab60
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405120
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e674
push edi
call fcn.00405d70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004051a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004051b0
lea eax, [ebp - 0xa0]
push 0x40e654
push eax
call fcn.004051b0
push dword [esi + 0x412bac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004051b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c51b
add esp, 0x2c
pop edi
jmp 0x40abe3
lea eax, [ebp + 8]
lea esi, [esi + 0x412bac]
push 0
push eax
push dword [esi]
call fcn.00405120
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10003a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10003ae8
cmp byte [esi + ebx - 1], 0xa
je 0x10003abc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1000c084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10004110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x100042e8
mov edi, dword [0x1000c084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x100041f7
test byte [0x10007248], 8
jne 0x10004290
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10007258], 8
jne 0x10004250
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10004199
cmp esi, 3
jbe 0x10004208
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x100041aa
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1000a938]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10004199
mov dword [esp], 0x10007258
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10004170
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10004170
mov dword [esp], 0x10007248
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x1000415b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10004163
mov eax, 0xffffffff
jmp 0x100041f7
Function at 0x410728
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
test ah, 0x80
je 0x410750
add dword [ebp - 4], 2
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
test ah, 0x80
je 0x410767
inc dword [ebp - 4]
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
test ah, 0x80
je 0x41077f
add dword [ebp - 4], 8
mov ax, word [ebp - 4]
jmp 0x410788
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x417c0f
pop dword [ebp - 0x10]
mov eax, 0x417c0f
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x4bd38
push 0
mov eax, 0x2ad52cf9
add eax, 0xd5713adf
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x42651af6
sub ecx, 0x4264daa5
mov edi, eax
mov esi, 0xe0be68bf
sub esi, 0xe07588bf
add esi, dword [ebp - 0x10]
mov ebx, 0x98e143b9
sub ebx, 0x5022b1eb
xor dword [ebp - 8], edx
mov edx, dword [esi]
mov dword [ebp - 0xc], 0x68d4c520
sub edx, ebx
xor dword [ebp - 4], 0x80c39b71
mov dword [edi], edx
add dword [ebp - 8], 0x4eaba985
add edi, 0xbd01b9a0
add edi, 0x42fe4664
add esi, 4
loop 0x417c69
add eax, 0x8b56a26f
sub eax, 0x8b55ae58
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x460beb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x460bf9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x4c6489
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c6070

Function at 0x4c6494
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c61fa

Function at 0x4cbb6a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cb522

Function at 0x4cbf04
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cbdd8

Function at 0x4038fa
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fa], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404658], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045ec], eax
mov dword [0x4040f2], eax
mov dword [0x4045d8], 0x30
mov dword [0x4045dc], 2
jmp 0x40393f
mov dword [0x4045e0], 0x403153
mov dword [0x4045e4], 0
mov dword [0x4045e8], 0
mov dword [0x404600], 0x40454e
mov dword [0x4045f8], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045f0], eax
mov dword [0x404604], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045f4], eax
push 0x4045d8
fadd dword [ebp + 0x40]
add bh, bh
adc eax, sym.imp.user32.dll_RegisterClassExA
push 0
push dword [0x4040f2]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push 0x40454e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404650], eax
push 5
push dword [0x404650]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404650]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404608]
jmp 0x403a13
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a05
mov eax, dword [0x404610]
jmp 0x403a2e
call 0x402bd5
ret
Function at 0x5ca7b4
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push edi
mov ebx, 0x6f6580
mov eax, dword [eax + 0xc]
push ebx
mov edi, dword [eax + 0x18]
push dword [edi + 0x28]
call fcn.005c46dc
pop ecx
pop ecx
test eax, eax
jne 0x5ca7db
mov eax, dword [edi + 0x10]
jmp 0x5ca7fa
push esi
mov esi, dword [edi + 4]
jmp 0x5ca7f3
push ebx
push dword [esi + 0x28]
call fcn.005c46dc
pop ecx
pop ecx
test eax, eax
je 0x5ca7fd
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x5ca7e1
xor eax, eax
pop esi
pop edi
pop ebx
ret
mov eax, dword [esi + 0x10]
jmp 0x5ca7f9
Function at 0x5d0628
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
test ebx, ebx
je 0x5d0683
mov edi, dword [ebp + 0xc]
test edi, 0xffff0000
jne 0x5d064d
sub edi, dword [ebx + esi + 0x10]
jmp 0x5d069e
mov ecx, dword [ebx + esi + 0x20]
xor eax, eax
add ecx, esi
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
cmp dword [ebx + esi + 0x18], eax
jbe 0x5d0683
mov eax, dword [ecx + eax*4]
add eax, esi
push edi
push eax
call fcn.005c6844
pop ecx
pop ecx
test eax, eax
je 0x5d068c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebx + esi + 0x18]
jb 0x5d0661
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp + 8]
test ecx, ecx
js 0x5d0683
mov eax, dword [ebx + esi + 0x24]
lea eax, [eax + ecx*2]
movzx edi, word [eax + esi]
cmp edi, 0xffffffff
je 0x5d0683
cmp edi, dword [ebx + esi + 0x14]
jae 0x5d0683
mov eax, dword [ebx + esi + 0x1c]
lea eax, [eax + edi*4]
mov eax, dword [eax + esi]
add eax, esi
jmp 0x5d0685
Function at 0x5d3d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x48]
lea esi, [ebx + 0x28]
mov edx, dword [ebx + 4]
add eax, 0x28
mov ecx, dword [ebx]
add eax, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
test edx, edx
jne 0x5d3d6b
cmp ecx, 0x20
jae 0x5d3d6b
mov edi, dword [ebp + 8]
mov ebx, dword [ebx + 0x18]
add ebx, 0x165667c5
mov edi, dword [edi + 0x1c]
adc edi, 0x27d4eb2f
jmp 0x5d3e02
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push dword [ebx + 8]
push 0x12
push dword [ebx + 0x24]
push dword [ebx + 0x20]
call fcn.005cb024
push 0xc
push dword [ebx + 0x1c]
mov edi, eax
mov esi, edx
push dword [ebx + 0x18]
call fcn.005cb024
push 7
push dword [ebx + 0x14]
add edi, eax
push dword [ebx + 0x10]
adc esi, edx
call fcn.005cb024
push 1
push dword [ebx + 0xc]
add edi, eax
push dword [ebx + 8]
adc esi, edx
call fcn.005cb024
add esp, 0x30
add edi, eax
adc esi, edx
push esi
push edi
call fcn.005c27b4
add esp, 0x10
push edx
push eax
call fcn.005c27b4
add esp, 0x10
push edx
push eax
call fcn.005c27b4
add esp, 0x10
push edx
push eax
call fcn.005c27b4
mov esi, dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp - 4]
mov edi, edx
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov edx, dword [ebp - 0x10]
add ebx, ecx
lea ecx, [esi + 8]
adc edi, edx
jmp 0x5d3e5c
push 0x1b
push esi
call fcn.006eca48
push edx
push eax
push 0
push 0
call fcn.005c8870
add esp, 0x14
xor edx, edi
xor eax, ebx
push edx
push eax
call fcn.005cb024
add esp, 0xc
push 0x9e3779b1
push 0x85ebca87
push edx
push eax
call fcn.006f1674
mov ecx, dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp - 4]
add ebx, 0xc2b2ae63
mov edi, edx
adc edi, 0x85ebca77
add esi, 8
add ecx, 8
mov dword [ebp - 8], ecx
cmp ecx, eax
jbe 0x5d3e0b
lea ecx, [esi + 4]
mov dword [ebp - 0x10], ecx
cmp ecx, eax
ja 0x5d3ebf
push 0x17
push esi
call fcn.005be3f4
pop ecx
mov ecx, eax
mov eax, 0x9e3779b1
mul ecx
mov esi, eax
mov eax, 0x85ebca87
mul ecx
add esi, edx
xor eax, ebx
xor esi, edi
push esi
push eax
call fcn.005cb024
add esp, 0xc
push 0xc2b2ae3d
push 0x27d4eb4f
push edx
push eax
call fcn.006f1674
mov esi, dword [ebp - 0x10]
mov ebx, eax
mov eax, dword [ebp - 4]
add ebx, 0x9e3779f9
mov edi, edx
adc edi, 0x165667b1
cmp esi, eax
jae 0x5d3f03
movzx eax, byte [esi]
push 0xb
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.006f1674
xor edx, edi
xor eax, ebx
push edx
push eax
call fcn.005cb024
add esp, 0xc
push 0x9e3779b1
push 0x85ebca87
push edx
push eax
call fcn.006f1674
inc esi
mov ebx, eax
mov edi, edx
cmp esi, dword [ebp - 4]
jb 0x5d3ec3
push 0xc2b2ae3d
xor eax, eax
mov ecx, edi
push 0x27d4eb4f
shr ecx, 1
xor eax, edi
xor ecx, ebx
push eax
push ecx
call fcn.006f1674
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.006f1674
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebx
leave
ret
Function at 0x6f5194
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, dword [edx]
mov eax, dword [edx + 4]
test esi, esi
jle 0x6f51f7
mov ecx, dword [ebp + 0x10]
sub dword [ebp + 0xc], ecx
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
push edi
inc bl
movzx ebx, bl
mov cl, byte [edx + ebx + 8]
add al, cl
movzx eax, al
mov dword [ebp + 8], eax
mov edi, dword [ebp + 8]
mov al, byte [edx + eax + 8]
mov byte [edx + ebx + 8], al
add al, cl
movzx eax, al
mov byte [edx + edi + 8], cl
mov cl, byte [eax + edx + 8]
mov eax, dword [ebp + 0x10]
xor cl, byte [esi + eax]
mov byte [eax], cl
inc eax
sub dword [ebp - 4], 1
mov dword [ebp + 0x10], eax
mov eax, edi
jne 0x6f51b6
mov esi, dword [ebp + 0x14]
pop edi
mov dword [edx + 4], eax
mov eax, esi
pop esi
mov dword [edx], ebx
pop ebx
leave
ret
Function at 0x401440
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5bda40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 8]
call fcn.00402120
movzx eax, al
test eax, eax
je 0x40147b
xor al, al
jmp 0x4014f0
mov ecx, dword [ebp + 8]
call fcn.00402100
push eax
lea ecx, [ebp - 0x30]
call fcn.004020a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.004594c0
mov byte [ebp - 0x11], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004020e0
movzx edx, byte [ebp - 0x11]
test edx, edx
je 0x4014ee
mov ecx, dword [ebp + 8]
call fcn.00402100
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
and eax, 0xfffffffe
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402100
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov al, 1
jmp 0x4014f0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x403680
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0
lea ecx, [ebp + 8]
call fcn.004072e0
push eax
call fcn.00538fa5
add esp, 8
cmp eax, 0xffffffff
jne 0x4036e9
push 1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp + 8]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x4036e9
mov dword [ebp - 0x24], 0
lea ecx, [ebp + 8]
call fcn.004072c0
mov eax, dword [ebp - 0x24]
jmp 0x4036fb
mov dword [ebp - 0x28], 1
lea ecx, [ebp + 8]
call fcn.004072c0
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x403aa0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571e1b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x5bda40]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x438], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x15], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x430], esp
push 0x59fd98
call fcn.00406900
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004038a0
add esp, 8
mov dword [ebp - 0x440], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004072e0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x403c1d
xor edx, edx
mov word [ebp - 0x424], dx
push 0x3fe
push 0
lea eax, [ebp - 0x422]
push eax
call fcn.0053f680
add esp, 0xc
mov dword [ebp - 0x20], 0x400
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x59fe5c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403c13
lea ecx, [ebp - 0x428]
call fcn.00410610
mov byte [ebp - 4], 2
lea edx, [ebp - 0x424]
push edx
push 0x59fe74
lea eax, [ebp - 0x428]
push eax
call fcn.004089d0
add esp, 0xc
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x428]
push edx
call fcn.00406fc0
add esp, 8
movzx eax, al
test eax, eax
je 0x403c00
lea ecx, [ebp + 8]
call fcn.00408860
shl eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.004072e0
push eax
push 1
push 0
push 0x59fe7c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0
jne 0x403bfe
mov byte [ebp - 0x15], 1
jmp 0x403c04
mov byte [ebp - 0x15], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x428]
call fcn.004072c0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x15]
mov byte [ebp - 0x431], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004072c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004072c0
mov al, byte [ebp - 0x431]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00538a54
mov esp, ebp
pop ebp
ret 4