joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dda0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x40e
lea ecx, [ebp - 0x412]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x620], ebx
mov word [ebp - 0x414], ax
call fcn.00419b60
push 0x206
lea eax, [ebp - 0x61a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x61c], dx
call fcn.00419b60
add esp, 0x18
push 1
push 0x1a
lea ecx, [ebp - 0x61c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40def9
push str.Mixin
lea edx, [ebp - 0x61c]
push edx
push str._s_s
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00418ae3
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
lea ecx, [ebp - 0x414]
push ecx
call ebx
test eax, eax
jne 0x40de76
push eax
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40de76
push 0x433e6c
mov ecx, esi
call fcn.004064a0
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004180c9
mov esp, ebp
pop ebp
ret
push 0x433a54
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00419944
push edi
lea ecx, [ebp - 0x414]
push 0x208
push ecx
call fcn.00419944
add esp, 0x18
lea edx, [ebp - 0x414]
push edx
call ebx
test eax, eax
jne 0x40dec0
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40de59
xor ecx, ecx
lea eax, [ebp - 0x414]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dee0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x414]
push edx
jmp 0x40df0e
xor eax, eax
push ebx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
push 0x433e6c
mov ecx, esi
call fcn.004015f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.004180c9
mov esp, ebp
pop ebp
ret

Function at 0x40e070
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00419b60
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40e0c0
mov ecx, 0xb
mov esi, str.TFGAgentIgAgent.exe
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20c]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
neg eax
pop esi
call fcn.004180c9
mov esp, ebp
pop ebp
ret
Function at 0x40e100
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push str.IGTERM
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x40e125
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e130
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40e172
xor eax, eax
lea ecx, [ebp - 8]
mov word [ebp - 8], ax
mov dword [ebp - 6], eax
mov word [ebp - 2], ax
call fcn.0040e450
mov ax, word [ebp - 8]
cmp ax, 3
jne 0x40e170
mov ax, word [ebp - 6]
cmp ax, 2
jne 0x40e17b
mov ax, word [ebp - 4]
cmp ax, 0x2a
jne 0x40e17b
cmp word [ebp - 2], 2
jae 0x40e172
xor eax, eax
mov esp, ebp
pop ebp
ret
jbe 0x40e17d
mov eax, 1
mov esp, ebp
pop ebp
ret
ja 0x40e172
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40e190
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
test ebx, ebx
jne 0x40e1c2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004180c9
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e1af
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00419b60
add esp, 0xc
push ebx
lea edx, [ebp - 0x210]
push str._s.
push edx
call fcn.00418a44
add esp, 0xc
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x464], eax
cmp eax, 0xffffffff
je 0x40e1af
lea edx, [ebp - 0x460]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40e32d
jmp 0x40e240
lea eax, [ebp - 0x434]
push eax
push ebx
lea ecx, [ebp - 0x210]
push 0x433890
push ecx
call fcn.00418a44
add esp, 0x10
test byte [ebp - 0x460], 0x10
je 0x40e2cb
cmp word [ebp - 0x434], 0x2e
je 0x40e287
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.0040e190
add esp, 8
jmp 0x40e311
cmp dword [ebp + 0xc], 1
jne 0x40e2aa
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e311
push 4
push eax
lea edx, [ebp - 0x210]
push edx
jmp 0x40e30d
push 0x80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
call esi
jmp 0x40e29a
cmp dword [ebp + 0xc], 1
jne 0x40e2e0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40e2ff
push 0x80
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
jne 0x40e311
push 4
push eax
lea ecx, [ebp - 0x210]
push ecx
call esi
mov edi, eax
mov eax, dword [ebp - 0x464]
lea edx, [ebp - 0x460]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e240
mov ecx, dword [ebp - 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 1
jne 0x40e349
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40e35c
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push ebx
call esi
test eax, eax
jne 0x40e368
push 4
push eax
push ebx
call esi
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004180c9
mov esp, ebp
pop ebp
ret
Function at 0x40e380
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0xc
test ecx, ecx
je 0x40e443
test esi, esi
je 0x40e443
xor eax, eax
mov dword [esi], eax
push edi
mov dword [esi + 4], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x40e3ba
pop edi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 1]
push ebx
push ecx
call fcn.00417cfb
mov edx, dword [ebp - 4]
add esp, 4
mov ebx, eax
mov eax, dword [ebp + 8]
push ebx
push edi
push edx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40e3ee
push ebx
call fcn.004197f6
add esp, 4
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
xor eax, eax
push 0x433a54
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov edi, eax
test edi, edi
je 0x40e432
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
mov word [esi], cx
movzx ecx, word [eax + 0xe]
mov word [esi + 2], dx
movzx edx, word [eax + 0xc]
mov word [esi + 4], cx
mov word [esi + 6], dx
push ebx
call fcn.004197f6
add esp, 4
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x410110
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x410b10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov byte [ebp - 0x17], al
mov eax, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ecx
mov byte [ebp - 0x38], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x410b61
sub eax, esi
mov dword [ebp - 0x11c], eax
mov eax, edi
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x410b75
sub eax, esi
mov esi, eax
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov byte [ecx + 0x20], al
cmp esi, 0x40
jle 0x410bd6
lea eax, [ebp - 0x118]
push eax
call fcn.00410110
push esi
lea ecx, [ebp - 0x118]
push edi
push ecx
call fcn.004108c0
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00410970
add esp, 0x18
lea edi, [ebp - 0x14]
mov esi, 0x10
push 0x41
lea ecx, [ebp - 0x7c]
push 0
push ecx
call fcn.00419b60
push 0x41
lea edx, [ebp - 0xc0]
push 0
push edx
call fcn.00419b60
add esp, 0x18
test esi, esi
jle 0x410c22
lea edx, [ebp - 0x7c]
lea ebx, [ebp - 0xc0]
sub edx, edi
mov eax, edi
sub ebx, edi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
mov byte [ebx + eax], cl
inc eax
dec esi
jne 0x410c10
mov ebx, dword [ebp - 0x124]
xor eax, eax
jmp 0x410c30
xor byte [ebp + eax - 0x7c], 0x36
xor byte [ebp + eax - 0xc0], 0x5c
inc eax
cmp eax, 0x40
jl 0x410c30
lea eax, [ebp - 0x118]
push eax
call fcn.00410110
push 0x40
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x118]
push edx
call fcn.004108c0
mov eax, dword [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x118]
push ebx
push ecx
call fcn.004108c0
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00410970
lea ecx, [ebp - 0x118]
push ecx
call fcn.00410110
push 0x40
lea edx, [ebp - 0xc0]
push edx
lea eax, [ebp - 0x118]
push eax
call fcn.004108c0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x118]
push edx
call fcn.004108c0
add esp, 0x40
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00410970
add esp, 8
xor esi, esi
lea edi, [ebp - 0x37]
mov bl, byte [ebp + esi - 0x14]
movzx edx, bl
push edx
lea eax, [edi - 1]
push str._02x
push eax
call fcn.0041874b
shl bl, 4
movzx ecx, bl
push ecx
push str._02x
push edi
call fcn.0041874b
inc esi
add esp, 0x18
add edi, 2
cmp esi, 0x10
jl 0x410cd3
mov esi, dword [ebp - 0x120]
push 0x20
lea edx, [ebp - 0x38]
push edx
push esi
call fcn.00419be0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004180c9
mov esp, ebp
pop ebp
ret
Function at 0x410dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x18], 0
jbe 0x410e10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
test ebx, ebx
je 0x410e0e
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
sub edi, ecx
lea ecx, [ecx]
mov eax, dword [ebp + 0x1c]
add eax, esi
xor edx, edx
div dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
inc esi
inc ecx
mov dl, byte [edx + eax]
xor dl, byte [edi + ecx - 1]
mov byte [ecx - 1], dl
cmp esi, ebx
jb 0x410df0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x410e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x410e60
mov ecx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
sub edi, esi
xor edx, edx
mov eax, ecx
div dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
inc esi
mov dl, byte [edx + eax]
xor dl, byte [edi + esi - 1]
xor dl, cl
xor dl, ch
xor dl, byte [ebp + 0x1e]
inc ecx
xor dl, byte [ebp + 0x1f]
dec ebx
mov byte [esi - 1], dl
mov dword [ebp + 0x1c], ecx
jne 0x410e38
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x413f40
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push eax
push ecx
call fcn.00413a00
add esp, 0xc
test eax, eax
js 0x414197
mov edx, dword [edi + 0xf0]
add edx, edx
push ebx
push esi
add edx, edx
xor esi, esi
test edx, edx
jle 0x413fbf
lea ecx, [edi + edx*4 + 8]
lea eax, [edi + 8]
lea esp, [esp]
mov ebx, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebx
mov ebx, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebx
mov ebx, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebx
mov ebx, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebx
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x413f80
mov edi, dword [ebp + 0x10]
mov edx, 1
cmp dword [edi + 0xf0], edx
jle 0x414193
lea eax, [edi + 2]
jmp 0x413fe0
mov ecx, dword [eax + 0xe]
movzx ebx, byte [eax + 0xf]
mov ebx, dword [ebx*4 + str.ccccwwww]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff
mov esi, dword [esi*4 + 0x42eb10]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x42f310]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x42f710]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + str.ccccwwww]
movzx ebx, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x42ef10]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff
mov esi, dword [esi*4 + 0x42eb10]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x42f310]
movzx ebx, byte [eax + 4]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x42ef10]
movzx ebx, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x42f710]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff
mov esi, dword [esi*4 + 0x42eb10]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x42f310]
movzx ebx, byte [eax + 8]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x42ef10]
movzx ebx, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x42f710]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff
mov esi, dword [esi*4 + 0x42eb10]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x42f310]
movzx ebx, byte [eax + 0xc]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x42ef10]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x42f710]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [edi + 0xf0]
jl 0x413fe0
pop esi
xor eax, eax
pop ebx
pop edi
pop ebp
ret
Function at 0x414df0
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10c], ebx
cmp eax, 0x10
je 0x414e2b
cmp eax, 0xc
je 0x414e2b
cmp eax, 8
je 0x414e2b
mov dword [ebp + 0x14], 0x10
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ebx], eax
lea eax, [ecx - 8]
xor edx, edx
xor edi, edi
test eax, eax
js 0x414eaf
lea esi, [eax + 8]
mov eax, dword [ebp + 0x10]
shr esi, 3
lea edi, [esi*8]
jmp 0x414e50
movzx ebx, byte [eax + 1]
movzx ecx, byte [eax]
shl ebx, 8
or ecx, ebx
movzx ebx, byte [eax + 2]
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [eax + 3]
shl ebx, 0x18
or ecx, ebx
movzx ebx, byte [eax + 5]
mov dword [ebp + edx*4 - 0x104], ecx
movzx ecx, byte [eax + 4]
shl ebx, 8
or ecx, ebx
movzx ebx, byte [eax + 6]
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [eax + 7]
shl ebx, 0x18
or ecx, ebx
mov dword [ebp + edx*4 - 0x100], ecx
add eax, 8
add edx, 2
dec esi
jne 0x414e50
mov ebx, dword [ebp - 0x10c]
mov ecx, dword [ebp + 0xc]
jmp 0x414eb2
mov eax, dword [ebp + 0x10]
mov esi, ecx
sub esi, edi
je 0x414f24
and ecx, 7
add eax, ecx
dec ecx
xor edi, edi
xor esi, esi
cmp ecx, 7
ja case.default.0x414ec7
jmp dword [ecx*4 + 0x414fe0]
movzx edi, byte [eax - 1]
dec eax
shl edi, 0x18
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or edi, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or edi, ecx
movzx ecx, byte [eax - 1]
dec eax
or edi, ecx
movzx esi, byte [eax - 1]
dec eax
shl esi, 0x18
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or esi, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or esi, ecx
movzx eax, byte [eax - 1]
or esi, eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp + edx*4 - 0x104], esi
mov dword [ebp + edx*4 - 0x100], edi
lea eax, [ecx + 3]
mov ecx, dword [ebp + 0x14]
cdq
and edx, 3
add edx, eax
lea ecx, [ecx + ecx + 2]
sar edx, 2
mov eax, 1
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], ecx
mov dword [ebx + 4], 0xb7e15163
cmp ecx, eax
jle 0x414f65
mov esi, dword [ebx + eax*4]
sub esi, 0x61c88647
mov dword [ebx + eax*4 + 4], esi
inc eax
cmp eax, ecx
jl 0x414f53
cmp ecx, edx
jg 0x414f6b
mov ecx, edx
lea ecx, [ecx + ecx*2]
xor ebx, ebx
xor esi, esi
xor eax, eax
xor edi, edi
test ecx, ecx
jle 0x414fcf
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 0x10c]
lea ecx, [eax + edi]
add ecx, dword [edx + esi*4 + 4]
inc esi
rol ecx, 3
mov dword [edx + esi*4], ecx
mov edx, dword [ebp + ebx*4 - 0x104]
mov edi, ecx
add edx, eax
lea ecx, [eax + edi]
and ecx, 0x1f
add edx, edi
rol edx, cl
mov dword [ebp + ebx*4 - 0x104], edx
mov eax, edx
cmp esi, dword [ebp - 0x110]
jl 0x414fbc
xor esi, esi
inc ebx
cmp ebx, dword [ebp - 0x114]
jl 0x414fc7
xor ebx, ebx
dec dword [ebp - 0x108]
jne 0x414f80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004180c9
mov esp, ebp
pop ebp
ret
Function at 0x415c50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
call fcn.00415b40
test al, al
je 0x415d34
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
jb 0x415c7f
mov eax, dword [esi]
jmp 0x415c81
mov eax, esi
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push eax
mov eax, dword [edi + 4]
push eax
call ebx
test eax, eax
jne 0x415cd5
mov ecx, dword [ebp - 4]
push ecx
call fcn.00417cfb
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edi, eax
jb 0x415cb3
mov esi, dword [esi]
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
mov edx, dword [ecx + 4]
push edi
lea eax, [ebp - 8]
push eax
push 0
push esi
push edx
call ebx
test eax, eax
je 0x415ce0
push edi
call fcn.004197f6
add esp, 4
pop ebx
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 4]
cmp eax, ecx
ja 0x415cf9
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.004019e0
jmp 0x415d05
sub eax, ecx
push 0
push eax
mov ecx, esi
call fcn.0040db20
cmp dword [esi + 0x14], 0x10
jb 0x415d0d
mov esi, dword [esi]
mov eax, dword [ebp - 4]
push eax
push edi
push esi
call fcn.00419be0
push edi
call fcn.004197f6
mov ecx, dword [ebp - 0xc]
add esp, 0x10
call fcn.00415b20
pop ebx
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x415d80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x415d9d
test al, 0x10
je 0x415d9d
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x415db0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc08
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x803]
push 0
push eax
mov byte [ebp - 0x804], 0
call fcn.00419b60
push 0x3ff
lea ecx, [ebp - 0xc03]
push 0
push ecx
mov byte [ebp - 0xc04], 0
call fcn.00419b60
push 0x3ff
lea edx, [ebp - 0x403]
push 0
push edx
mov byte [ebp - 0x404], 0
call fcn.00419b60
add esp, 0x24
lea eax, [ebp - 0xc04]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x804]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x415e31
push esi
push edi
lea ecx, [ecx]
lea ecx, [ebp - 0x804]
push 0x42d680
push ecx
call fcn.00419420
mov esi, eax
add esp, 8
test esi, esi
je 0x415eef
mov byte [esi], 0
inc esi
xor eax, eax
jmp 0x415e70
mov cl, byte [ebp + eax - 0x804]
mov byte [ebp + eax - 0x404], cl
inc eax
test cl, cl
jne 0x415e70
lea edx, [ebp - 0x404]
push 0x3a
push edx
call fcn.0041a770
add esp, 8
test eax, eax
jne 0x415ea8
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x415ec2
lea edi, [ebp - 0x404]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415eb0
mov cx, word [0x42d680]
mov word [edi], cx
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [ebp - 0x804]
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x415ee0
jmp 0x415e40
lea eax, [ebp - 0x804]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415ef8
sub eax, edx
je 0x415e40
pop edi
xor eax, eax
pop esi
jmp 0x415f10
mov cl, byte [ebp + eax - 0x804]
mov byte [ebp + eax - 0x404], cl
inc eax
test cl, cl
jne 0x415f10
push 0
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0xc04]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004180c9
mov esp, ebp
pop ebp
ret