joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033f0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x465978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, dword [esp + 0x20]
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x403454
lea eax, [esi - 0x10]
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403440
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x4034a5
push str.NETHOOD_
push esi
call fcn.0042472a
add esp, 8
test eax, eax
je 0x4034a5
sub eax, esi
cmp eax, ebx
je 0x4034a5
lea eax, [esi - 0x10]
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40348e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x10], esp
mov edi, esp
push esi
call fcn.004019b0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00401b30
add esp, 4
cmp eax, ebx
je 0x4034ee
push ecx
mov dword [esp + 0x10], esp
mov edi, esp
push esi
call fcn.004019b0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00403330
add esp, 4
test eax, eax
jne 0x4034ee
xor edi, edi
jmp 0x4034f3
mov edi, 1
mov dword [esp + 0x18], ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40350b
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret
Function at 0x406a90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x465d1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push eax
mov ecx, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x46a0c4
call fcn.00402830
mov ecx, dword [esp + 0x20]
mov dword [esi + 8], ecx
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], 0
call fcn.0043f879
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 1
call fcn.0043f879
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 2
call fcn.0043f879
mov ecx, edi
mov byte [esp + 0x14], 3
call fcn.00405440
mov ecx, edi
call fcn.00405610
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406b1c
mov ecx, edi
call fcn.004018c0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x40d410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x466386
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
call fcn.00441a77
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x18], 0
lea ebx, [esi + 8]
call fcn.00441a77
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov edx, dword [esp + 0x24]
test edx, edx
mov eax, dword [esp + 0x20]
mov byte [esp + 0x18], 1
mov dword [esi], eax
jne 0x40d476
xor eax, eax
jmp 0x40d48a
mov eax, edx
push ebp
lea ebp, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d480
sub eax, ebp
pop ebp
push eax
push edx
mov ecx, edi
call fcn.00401e30
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x40d49f
xor eax, eax
jmp 0x40d4ad
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d4a4
sub eax, edi
push eax
push edx
mov ecx, ebx
call fcn.00401e30
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x10], edx
mov edx, dword [ecx]
lea eax, [esi + 0x14]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov edx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov ecx, dword [esp + 0x10]
pop edi
mov dword [esi + 0x24], edx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24

Function at 0x40e9fe
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4664f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 8], ecx
mov dword [esi], 0x46c244
mov dx, word [eax]
push edi
mov word [esi + 0xe], dx
mov cx, word [eax + 4]
lea edi, [esi + 0xe]
mov word [esi + 0x10], cx
mov dx, word [eax + 8]
sub dx, word [eax]
lea ebx, [esi + 0x10]
lea ebp, [esi + 0x12]
mov word [ebp], dx
mov cx, word [eax + 0xc]
sub cx, word [eax + 4]
push 0
mov word [esi + 0x14], cx
lea ecx, [esp + 0x14]
call fcn.00401000
push ebx
push edi
mov ecx, eax
mov dword [esp + 0x40], 0
call fcn.00401300
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], ebx
call fcn.00401040
xor edi, edi
push edi
lea ecx, [esp + 0x24]
call fcn.00401000
lea edx, [esi + 0x14]
push edx
push ebp
mov ecx, eax
mov dword [esp + 0x40], 1
call fcn.00401300
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], ebx
call fcn.00401040
mov ecx, dword [esp + 0x30]
mov word [esi + 0xc], di
mov word [esi + 0x16], di
mov word [esi + 0x18], di
mov word [esi + 0x1a], di
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
Function at 0x411ed0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
test eax, eax
jne 0x411ee7
xor al, al
add esp, 0x104
ret
push esi
push edi
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 8]
push ecx
call edi
mov esi, eax
movsx edx, byte [esp + esi + 7]
dec esi
push edx
call fcn.00425be3
add esp, 4
test eax, eax
je 0x411f2a
movsx eax, byte [esp + esi + 7]
dec esi
push eax
call fcn.00425be3
add esp, 4
test eax, eax
jne 0x411f17
cmp byte [esp + esi + 8], 0x5c
jne 0x411f3a
mov al, byte [esp + esi + 7]
dec esi
cmp al, 0x5c
je 0x411f31
lea ecx, [esp + 8]
push ecx
mov byte [esp + esi + 0xd], 0
call edi
test eax, eax
je 0x411fa0
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x411f6c
and al, 0x10
sub al, 0x10
neg al
pop edi
pop esi
sbb eax, eax
inc eax
add esp, 0x104
ret
lea eax, [esp + 8]
push eax
call fcn.0042638d
mov esi, eax
push 0x5c
push esi
call fcn.00426360
add esp, 0xc
test eax, eax
je 0x411fc4
push esi
mov byte [eax], 0
call fcn.00411ed0
add esp, 4
test al, al
push esi
jne 0x411fab
call fcn.004260b6
add esp, 4
pop edi
xor al, al
pop esi
add esp, 0x104
ret
call fcn.004260b6
add esp, 4
push 0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x411fa0
pop edi
mov al, 1
pop esi
add esp, 0x104
ret

Function at 0x412010
Capabilities:
Timestomp file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x28
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x41203b
xor al, al
pop esi
add esp, 0x28
ret
push ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x4120b4
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x4120b4
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x4120b4
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
add esp, 0x28
ret
Function at 0x412230
Capabilities:
Set file attributes
Write file on windows

Disassembly:
sub esp, 0xd40
push ebp
mov ebp, ecx
mov eax, dword [ebp + 4]
test eax, eax
jne 0x41224c
xor al, al
pop ebp
add esp, 0xd40
ret 8
push esi
mov esi, dword [esp + 0xd4c]
test esi, esi
jne 0x41225b
lea esi, [ebp + 8]
push esi
call fcn.00411ed0
add esp, 4
test al, al
jne 0x412275
pop esi
xor al, al
pop ebp
add esp, 0xd40
ret 8
lea eax, [esp + 0x214]
push eax
mov ecx, ebp
call fcn.00411cd0
mov al, byte [esp + 0x444]
test al, al
je 0x4122c4
push 0
lea ecx, [esp + 0x218]
push ecx
push esi
lea edx, [esp + 0x11c]
push 0
push edx
call fcn.0042573d
lea eax, [esp + 0x124]
push eax
call fcn.00411ed0
add esp, 0x18
pop esi
pop ebp
add esp, 0xd40
ret 8
mov al, byte [esp + 0xd50]
test al, al
je 0x412314
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x114]
push edx
push 0
lea eax, [esp + 0x220]
push 0
push eax
call fcn.00425300
lea ecx, [esp + 0x45c]
push ecx
lea edx, [esp + 0x128]
push edx
push 0
lea eax, [esp + 0x234]
push 0
push eax
call fcn.0042573d
add esp, 0x28
push 0
lea ecx, [esp + 0x218]
push ecx
push esi
lea edx, [esp + 0x18]
push 0
push edx
call fcn.0042573d
lea eax, [esp + 0x20]
push eax
call fcn.00411fd0
add esp, 0x18
test al, al
je 0x412268
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x412373
pop edi
pop esi
xor al, al
pop ebp
add esp, 0xd40
ret 8
mov edx, dword [ebp + 4]
push edx
call fcn.00415b20
test eax, eax
jne 0x412365
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x412390
mov ecx, dword [ebp + 4]
push 0x800
lea eax, [esp + 0x554]
push eax
push ecx
call fcn.00415b80
mov esi, eax
test esi, esi
jle 0x4123d4
push 0
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0x55c]
push eax
push edi
mov dword [esp + 0x24], 0
call ebx
test eax, eax
je 0x4123d1
cmp dword [esp + 0x10], esi
je 0x412390
or esi, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 4]
push ecx
call fcn.00415f10
test esi, esi
pop ebx
jne 0x412411
mov edx, dword [esp + 0x430]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00412010
mov ecx, dword [esp + 0x44c]
add esp, 8
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebp
add esp, 0xd40
ret 8
Function at 0x413930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x148
push esi
mov esi, dword [esp + 0x150]
push edi
mov edi, dword [esp + 0x158]
xor eax, eax
mov ecx, edi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push esi
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x413972
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x41397f
pop edi
xor al, al
pop esi
add esp, 0x148
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 8]
mov dword [esp + 8], eax
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push edi
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
pop edi
mov al, 1
pop esi
add esp, 0x148
ret 8
Function at 0x414270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x20c
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
push edi
je 0x41428a
push 0
push eax
call fcn.00417400
mov edi, dword [esp + 0x21c]
xor eax, eax
test edi, edi
mov dword [esi + 4], 0
lea ebp, [esi + 8]
mov byte [ebp], 0
lea ecx, [esi + 0x110]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
je 0x414390
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x414390
push 0
lea edx, [esp + 0x14]
push edx
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x414390
push ebx
mov bl, byte [esp + 0x228]
test bl, bl
je 0x4142ff
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4142ff
xor bl, bl
neg bl
lea ecx, [esp + 0x14]
sbb ebx, ebx
and ebx, 2
push ebx
push ecx
call fcn.00416730
test eax, eax
mov dword [esi + 4], eax
pop ebx
je 0x41437a
mov edi, dword [esp + 0x220]
test edi, edi
jne 0x414357
push edi
push edi
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00425300
push edi
push edi
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.0042573d
add esp, 0x28
jmp 0x414372
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x414372
push 0
push 0
push edi
push 0
push ebp
call fcn.0042573d
add esp, 0x14
push ebp
mov ecx, esi
call fcn.00413800
mov ecx, dword [esi + 4]
pop edi
xor eax, eax
test ecx, ecx
pop esi
setne al
pop ebp
add esp, 0x20c
ret 0xc
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x20c
ret 0xc
Function at 0x415850
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x416c90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0xc
cmp eax, 0xc
jge 0x416ca2
xor eax, eax
add esp, 0xc
ret
mov eax, dword [0x48b234]
inc eax
cmp eax, 1
mov dword [0x48b234], eax
jne 0x416cc7
push 0
call fcn.0042598c
xor eax, 0xbb40e64e
push eax
call fcn.0042595d
add esp, 8
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x30]
push edi
push ebp
push eax
call fcn.00416e60
add esp, 0xc
xor esi, esi
call fcn.0042596a
mov ebx, eax
push edi
sar ebx, 7
push ebp
and ebx, 0xff
call fcn.00416de0
push ebx
push edi
push ebp
mov dword [esp + 0x3c], eax
call fcn.00416e00
mov dl, byte [esp + 0x3c]
add esp, 0x14
xor bl, dl
mov byte [esp + esi + 0x10], bl
inc esi
cmp esi, 0xa
jl 0x416ce4
mov ecx, dword [esp + 0x20]
push edi
push ebp
push ecx
call fcn.00416e60
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
add esp, 0xc
xor esi, esi
sub eax, edx
mov dword [esp + 0x20], eax
push edi
push ebp
call fcn.00416de0
mov bl, byte [esp + esi + 0x18]
mov dword [esp + 0x30], eax
mov eax, ebx
and eax, 0xff
push eax
push edi
push ebp
call fcn.00416e00
mov dl, byte [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add esp, 0x14
xor bl, dl
add ecx, esi
inc esi
cmp esi, 0xa
mov byte [esp + ecx + 0x10], bl
jl 0x416d39
push edi
push ebp
call fcn.00416de0
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
shr ebx, 0x10
mov edx, ebx
and edx, 0xff
push edx
push edi
push ebp
call fcn.00416e00
mov al, byte [esp + 0x3c]
push edi
xor bl, al
mov eax, dword [esp + 0x3c]
push ebp
mov byte [esi + eax], bl
inc esi
call fcn.00416de0
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x44], eax
shr ebx, 0x18
push ebx
push edi
push ebp
call fcn.00416e00
mov al, byte [esp + 0x50]
mov ecx, dword [esp + 0x4c]
add esp, 0x28
xor bl, al
mov byte [esi + ecx], bl
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x416e00
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x417110
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x4090]
test eax, eax
je 0x41717b
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x41717b
mov eax, 0xffffff78
push ebx
push ebp
sub eax, esi
push edi
lea ebp, [esi + 0x4094]
lea edi, [esi + 0x88]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x40a0]
push eax
push ebp
call fcn.00416de0
mov edx, dword [esi + 0x40a0]
xor ecx, ecx
mov cl, byte [edi]
mov ebx, eax
push ecx
push edx
push ebp
call fcn.00416e00
mov al, byte [edi]
add esp, 0x14
xor al, bl
mov byte [edi], al
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
inc edi
add eax, edi
cmp eax, ecx
jb 0x417140
pop edi
pop ebp
pop ebx
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0x20]
lea edx, [esi + 0x88]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
call dword [esi + 8]
mov ecx, dword [esi + 0x6c]
add esp, 0x10
cmp eax, ecx
je 0x4171a7
mov dword [esi + 0x6c], 0
or eax, 0xffffffff
pop esi
ret
mov dword [esi + 0x6c], 0
xor eax, eax
pop esi
ret
Function at 0x4177c0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4177cf
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x4879a0]
test eax, eax
je 0x4177dd
call fcn.00417760
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x4178df
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x48b238]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x48b238]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x48b238]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x48b238]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x48b238]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x48b238]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x48b238]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x48b238]
xor eax, ecx
inc esi
dec edi
jne 0x4177f7
pop edi
test edx, edx
je 0x417901
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x48b238]
xor eax, ecx
inc esi
dec edx
jne 0x4178e3
pop ebx
pop esi
not eax
ret 0xc
Function at 0x4245b7
Capabilities:
Get common file path

Disassembly:
push pe_nt_image_headers32
push 0x4745b8
call fcn.004276d0
mov eax, dword [0x489e80]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x42465b
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00425920
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x424648
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x42465b
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x424676
cmp byte [edi + 1], 0x3a
jne 0x424676
movzx eax, byte [edi]
push eax
call fcn.00424cfe
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x424686
push edi
call fcn.004260b6
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.004272de
call fcn.0042770b
ret

Function at 0x42469c
Capabilities:
Set current directory

Disassembly:
push 0x10
push 0x4745c8
call fcn.004276d0
mov ebx, dword [ebp + 8]
cmp ebx, 1
jl 0x42470b
cmp ebx, 0x1f
jg 0x42470b
push 7
call fcn.004295b2
pop ecx
and dword [ebp - 4], 0
add ebx, 0x40
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], 0x3a
mov byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4246e3
and dword [ebp - 0x20], 0
jmp 0x4246f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00427f8b
pop ecx
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 4], 0xffffffff
call fcn.00424702
mov eax, dword [ebp - 0x20]
jmp 0x424724
call fcn.00427f79
mov dword [eax], 0xd
call fcn.00427f82
mov dword [eax], 0xf
or eax, 0xffffffff
call fcn.0042770b
ret
Function at 0x426127
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00425920
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4261c2
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x48d630]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4261c2
cmp eax, 1
je 0x4261e3
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4261c2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42618f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4261be
xor eax, eax
inc eax
jmp 0x426202
cmp edi, eax
jae 0x4261c6
xor eax, eax
jmp 0x426202
cmp eax, esi
jae 0x4261cd
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x48d630]
jmp 0x4261e6
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret