joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ecb8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6b97
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4f9004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
mov edi, dword [ebp + 8]
push esi
push eax
call fcn.0044e1a7
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0044ed83
add esp, 0xc
test eax, eax
jne 0x44ed0d
xor esi, esi
jmp 0x44ed2a
cmp dword [esi + 0x14], 8
jb 0x44ed15
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x44ed1d
mov edi, dword [edi]
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x44ed60
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44ed56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ed7d
push edx
push ecx
call fcn.0040660b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402c9b
mov esp, ebp
pop ebp
ret
call fcn.0047c5cb
int3

Function at 0x44ed83
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8013
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4f9004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x44edb9
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44ee3d
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x44edcf
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x44ee3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x44ee3d
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0044e1a7
add esp, 8
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
je 0x44ee5c
lea eax, [ebp - 0x28]
push eax
call fcn.0044ed83
add esp, 4
test eax, eax
je 0x44ee5c
cmp dword [esi + 0x14], 8
jb 0x44ee1b
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x44ee35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x44ee5c
lea ecx, [ebp - 0x28]
call fcn.00411b77
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402c9b
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
call fcn.00411b77
xor eax, eax
jmp 0x44ee42
Function at 0x452348
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba3ea
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4f9004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x45237f
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4524dc
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x452399
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4524dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4524dc
push esi
lea ecx, [ebp - 0x28]
call fcn.00411bca
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x45240b
or ecx, 0xffffffff
lea eax, [ebx - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x452405
lea ebx, [ebx]
cmp ecx, edx
je 0x45240b
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x4523f8
sub ecx, edx
sar ecx, 1
jmp 0x45240e
or ecx, 0xffffffff
cmp ecx, 0xffffffff
jne 0x45242c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
jmp 0x45249c
xor eax, eax
mov dword [ebp - 0x30], 0
cmp ebx, ecx
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 7
cmovb ecx, ebx
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.004057cc
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00414c66
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x45249c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x452492
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x452508
push edx
push ecx
call fcn.0040660b
add esp, 8
cmp dword [ebp - 0x18], 0
je 0x4524fc
lea eax, [ebp - 0x28]
push eax
call fcn.00452348
add esp, 4
test eax, eax
je 0x4524fc
cmp dword [esi + 0x14], 8
jb 0x4524ba
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4524d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4524fc
lea ecx, [ebp - 0x28]
call fcn.00411b77
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402c9b
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
call fcn.00411b77
xor eax, eax
jmp 0x4524e1
call fcn.0047c5cb
int3
Function at 0x453f49
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4f9004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.0044ea6d
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x453f8c
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x453f8c
test al, 0x10
je 0x453f8c
mov bl, 1
jmp 0x453f8e
xor bl, bl
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x453fc4
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x453fba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x453fd5
push edx
push ecx
call fcn.0040660b
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00402c9b
mov esp, ebp
pop ebp
ret
call fcn.0047c5cb
int3

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

Disassembly:
cmp dword [ecx + 0x10], 0
je 0x4549db
cmp dword [ecx + 0x14], 8
jb 0x4549c8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4549db
test al, 0x10
je 0x4549db
mov al, 1
ret
xor al, al
ret
Function at 0x45530d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbb52
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4f9004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
jl 0x4554ae
mov esi, dword [ebp + 0xc]
jg 0x45536a
test esi, esi
je 0x4554ae
cmp dword [ebx], 0xffffffff
je 0x4554ae
push esi
lea ecx, [ebp - 0x1c]
call fcn.00455521
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push 0
push eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
mov esi, dword [ebp - 0x10]
sub ecx, edi
mov byte [ebp + 0x13], 0
cmp esi, ecx
jae 0x4553ad
lea ebx, [edi + esi]
jmp 0x4553dd
jbe 0x4553e0
mov eax, dword [ebp - 0x14]
sub eax, edi
cmp esi, eax
jbe 0x4553cd
lea eax, [ebp + 0x13]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.0043452f
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x4553e0
sub esi, ecx
push esi
push 0
push ebx
call fcn.00402780
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
cmp edi, ebx
je 0x45546b
mov ecx, ebx
sub ecx, edi
mov dword [ebp + 0x10], ecx
cmp ecx, 0x1000
jb 0x455436
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x4554d9
push eax
call fcn.00405960
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4554de
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp + 0x10]
jmp 0x45544a
test ecx, ecx
je 0x455448
push ecx
call fcn.00405960
mov ecx, dword [ebp + 0x10]
add esp, 4
jmp 0x45544a
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
add eax, ecx
push ecx
mov dword [esi + 8], eax
mov esi, dword [esi]
push edi
push esi
call fcn.00405020
sub ebx, edi
add esp, 0xc
add ebx, esi
mov esi, dword [ebp + 8]
mov dword [esi + 4], ebx
test edi, edi
je 0x455498
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x45548e
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4554de
push ecx
push edi
call fcn.0040660b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.004275c0
call fcn.0047c5cb
int3
Function at 0x456302
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x456336
xor al, al
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x456346
mov ecx, dword [esi]
mov esi, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x458e5c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6ea1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4f9004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x505638]
mov ebx, dword [ebp + 8]
test al, 1
jne 0x458ec4
or eax, 1
mov dword [0x505630], 0
mov dword [0x505638], eax
xor eax, eax
push 0x4c03f5
mov dword [0x505634], 7
mov word [0x505620], ax
call fcn.0040394c
add esp, 4
cmp dword [0x505630], 0
jne 0x458ff1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
sub eax, dword [0x4fc964]
mov dword [ebp - 4], ecx
js 0x458f78
test eax, eax
jne 0x458f1a
mov edx, dword [0x4fc960]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458f0d
jmp 0x458f67
xor esi, esi
mov edi, 0x112
lea eax, [edi + esi]
cdq
sub eax, edx
mov edx, dword [ebp - 0x2c]
sar eax, 1
lea ecx, [eax + eax*2]
sub edx, dword [ecx*4 + 0x4fc964]
jns 0x458f3c
mov edi, eax
jmp 0x458f42
test edx, edx
jle 0x458f4d
mov esi, eax
mov eax, edi
sub eax, esi
cmp eax, 1
jg 0x458f21
jmp 0x458f75
lea eax, [eax + eax*2]
mov edx, dword [eax*4 + 0x4fc960]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458f5c
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004057cc
mov esi, dword [ebp - 0x18]
mov edx, dword [0x505634]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x458fbf
mov ecx, dword [0x505620]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458fb5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459045
push edx
push ecx
call fcn.0040660b
add esp, 8
mov eax, dword [ebp - 0x28]
mov dword [0x505620], eax
mov eax, dword [ebp - 0x24]
mov dword [0x505624], eax
mov eax, dword [ebp - 0x20]
mov dword [0x505628], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x50562c], eax
mov eax, dword [ebp - 0x14]
mov dword [0x505630], esi
mov dword [0x505634], eax
test esi, esi
je 0x459013
mov eax, dword [ebx + 4]
push 0x505620
cmp eax, dword [ebx + 8]
je 0x45900b
mov ecx, eax
call fcn.00411bca
add dword [ebx + 4], 0x18
jmp 0x459013
push eax
mov ecx, ebx
call fcn.0042c0f1
mov ecx, dword [ebx + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402c9b
mov esp, ebp
pop ebp
ret
call fcn.0047c5cb
int3
Function at 0x459254
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x459275
lea eax, [eax - 1]
dec esi
cmp byte [eax], 0x3d
je 0x459269
mov dword [ebp + 0xc], esi
xor eax, eax
test esi, esi
je 0x45932c
push ebx
mov edx, 1
mov dword [ebp + 8], 2
lea ebx, [esi - 1]
sub edx, ecx
shr ebx, 2
push edi
lea edi, [ecx + 2]
mov dword [ebp - 4], edx
inc ebx
jmp 0x4592a4
movsx ecx, byte [edi - 1]
mov dh, byte [ecx + 0x4d5608]
movsx ecx, byte [edi - 2]
mov dl, byte [ecx + 0x4d5608]
mov cl, dh
sar cl, 4
and cl, 3
shl dl, 2
or dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], dl
inc eax
mov ecx, dword [ebp + 8]
cmp ecx, esi
jae 0x459318
movsx ecx, byte [edi]
mov esi, dword [ebp + 0x10]
shl dh, 4
mov dl, byte [ecx + 0x4d5608]
mov cl, dl
sar cl, 2
and cl, 0xf
or cl, dh
mov byte [eax + esi], cl
inc eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
add ecx, edi
cmp ecx, esi
jae 0x459315
movsx ecx, byte [edi + 1]
shl dl, 6
mov cl, byte [ecx + 0x4d5608]
and cl, 0x3f
or cl, dl
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
mov ecx, dword [ebp + 8]
add ecx, 4
add edi, 4
mov dword [ebp + 8], ecx
sub ebx, 1
jne 0x4592a4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45a3ce
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc558
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4f9004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00450a6a
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
call fcn.00450a6a
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.00450a6a
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
call fcn.00450a6a
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 3
call fcn.00450a6a
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 4
call fcn.00450a6a
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 5
call fcn.00450a6a
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 6
call fcn.00450a6a
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 7
call fcn.00450a6a
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 8
call fcn.00450a6a
lea ecx, [esi + 0xf0]
mov byte [ebp - 4], 9
call fcn.00450a6a
lea ecx, [esi + 0x108]
mov byte [ebp - 4], 0xa
call fcn.00450a6a
lea ecx, [esi + 0x120]
mov byte [ebp - 4], 0xb
call fcn.00450a6a
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 0xc
call fcn.00450a6a
lea ecx, [esi + 0x150]
mov byte [ebp - 4], 0xd
call fcn.00450a6a
lea ecx, [esi + 0x168]
mov byte [ebp - 4], 0xe
call fcn.00450a6a
lea ecx, [esi + 0x180]
mov byte [ebp - 4], 0xf
call fcn.00450a6a
lea ecx, [esi + 0x198]
mov byte [ebp - 4], 0x10
call fcn.00450a6a
mov dword [esi + 0x1b0], 0
mov eax, esi
mov dword [esi + 0x1b4], 0
mov dword [esi + 0x1b8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x461a18
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd3e6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4f9004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
cmp eax, ecx
mov edx, dword [esi + 0x38]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 0
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.00406619
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x461a6f
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x461a80
push 0x3c
push esi
call fcn.0040660b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x463ed1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd7c5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4f9004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
call fcn.00464c90
test al, al
jne 0x463f19
or ebx, 0xffffffff
jmp 0x46407f
cmp dword [edi + 0xc], 0
jne 0x463f62
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 0
push 1
push 0
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi], eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push 0x4651d1
push 0
push 0
mov dword [ebp - 0x10], 0
call fcn.0047f087
add esp, 0x18
mov dword [edi + 0xc], eax
lea ecx, [edi + 0x10]
call fcn.00465a3b
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x20
mov byte [ebp - 4], 1
call fcn.00405960
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x463fa0
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call fcn.004630f2
mov ebx, eax
jmp 0x463fa2
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0x10
mov byte [ebp - 4], 3
call fcn.00405960
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
test esi, esi
je 0x463fd5
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_struct_KIC::Event_.0
mov dword [esi + 0xc], ebx
jmp 0x463fd7
xor esi, esi
cmp dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
je 0x46400e
push 4
call fcn.00405960
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], ecx
jmp 0x464011
mov ecx, dword [ebp - 0x14]
mov edx, dword [edi + 0x20]
cmp edx, dword [edi + 0x24]
je 0x464033
mov dword [edx + 4], esi
xor esi, esi
mov dword [edx], ebx
mov dword [edx + 8], ecx
add dword [edi + 0x20], 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
jmp 0x464043
lea ecx, [ebp - 0x1c]
push ecx
push edx
lea ecx, [edi + 0x1c]
call fcn.004636d5
mov esi, dword [ebp - 0x18]
lea ecx, [edi + 0x10]
call fcn.00465a42
push 0
push 1
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
xor ebx, ebx
test esi, esi
je 0x46407f
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x46407f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x46407f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea ecx, [ebp + 8]
call fcn.0044a27e
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x468720
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ecx]
cmp esi, 0x10
je 0x468737
cmp esi, 0x20
jne 0x46890b
shr esi, 2
mov edx, 4
cmp esi, edx
mov dword [ebp - 0xc], esi
mov eax, esi
cmovb eax, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [eax*4 + 0x1c]
mov dword [ebp - 8], eax
test edi, edi
je 0x46890a
mov dword [edi], 0x10
push ebx
mov dword [edi + 4], eax
xor ebx, ebx
add edi, 8
test esi, esi
je 0x4687a2
lea edx, [ecx + 5]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [edi + ebx*4], ecx
inc ebx
cmp ebx, esi
jl 0x468775
mov eax, dword [ebp - 8]
mov ebx, dword [edi + ebx*4 - 4]
mov ecx, esi
cmp esi, eax
jge 0x46888a
mov dword [ebp + 8], 0
mov dword [ebp - 4], edi
lea ebx, [ebx]
mov eax, ecx
cdq
idiv esi
test edx, edx
jne 0x468820
mov eax, dword [ebp + 8]
cdq
idiv esi
mov dl, byte [eax + 0x4daea0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx esi, byte [eax + 0x4d8ca0]
movzx eax, dl
xor esi, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x4d8ca0]
xor esi, eax
movzx eax, bl
shl esi, 8
shr ebx, 0x18
movzx eax, byte [eax + 0x4d8ca0]
xor esi, eax
movzx ebx, byte [ebx + 0x4d8ca0]
shl esi, 8
xor ebx, esi
mov esi, dword [ebp - 0xc]
jmp 0x46886d
cmp esi, 6
jbe 0x46886d
cmp edx, 4
jne 0x46886d
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x4d8ca0]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x4d8ca0]
shl eax, 8
xor edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x4d8ca0]
xor edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + 0x4d8ca0]
xor ebx, edx
mov eax, dword [ebp - 4]
inc dword [ebp + 8]
xor ebx, dword [eax]
add eax, 4
mov dword [edi + ecx*4], ebx
inc ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x4687c0
xor esi, esi
sub ecx, 1
js 0x468909
lea eax, [edi + eax*4]
mov dword [ebp + 8], eax
mov ebx, dword [edi + ecx*4]
cmp esi, 4
jl 0x4688f9
cmp ecx, 4
jb 0x4688f9
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x4d8ca0]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x4da2a0]
movzx eax, byte [eax + 0x4d8ca0]
xor edx, dword [eax*4 + 0x4da6a0]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x4d8ca0]
xor edx, dword [eax*4 + 0x4d9ea0]
movzx eax, bl
movzx eax, byte [eax + 0x4d8ca0]
xor edx, dword [eax*4 + 0x4daaa0]
mov eax, dword [ebp + 8]
jmp 0x4688fb
mov edx, ebx
mov dword [eax], edx
inc esi
add eax, 4
sub ecx, 1
mov dword [ebp + 8], eax
jns 0x468897
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x468cab
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
push edi
lea edi, [ebx + 0x10]
add eax, 3
shr eax, 2
lea eax, [eax + eax*2]
push eax
call fcn.004072bd
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebx + 0x14], 0x10
jb 0x468cd9
mov ebx, dword [ebx]
mov edi, dword [edi]
lea ecx, [edi - 1]
add ecx, ebx
cmp byte [ecx], 0x3d
jne 0x468cf2
lea ebx, [ebx]
dec ecx
dec edi
cmp byte [ecx], 0x3d
je 0x468ceb
xor edx, edx
test edi, edi
je 0x468da5
mov eax, 1
mov dword [ebp + 8], 2
sub eax, ebx
push esi
lea esi, [ebx + 2]
mov dword [ebp - 0xc], eax
lea ebx, [edi - 1]
shr ebx, 2
inc ebx
mov dword [ebp - 8], ebx
movsx eax, byte [esi - 1]
mov ch, byte [eax + 0x4daf08]
movsx eax, byte [esi - 2]
mov cl, byte [eax + 0x4daf08]
mov al, ch
sar al, 4
and al, 3
shl cl, 2
or cl, al
mov eax, dword [ebp - 4]
mov byte [edx + eax], cl
inc edx
mov eax, dword [ebp + 8]
cmp eax, edi
jae 0x468d8c
movsx eax, byte [esi]
mov ebx, dword [ebp - 4]
shl ch, 4
mov cl, byte [eax + 0x4daf08]
mov al, cl
sar al, 2
and al, 0xf
or al, ch
mov byte [edx + ebx], al
inc edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
add eax, esi
cmp eax, edi
jae 0x468d89
movsx eax, byte [esi + 1]
shl cl, 6
mov al, byte [eax + 0x4daf08]
and al, 0x3f
or al, cl
mov ecx, dword [ebp - 4]
mov byte [edx + ecx], al
inc edx
mov eax, dword [ebp + 8]
add eax, 4
add esi, 4
sub ebx, 1
mov dword [ebp + 8], eax
mov dword [ebp - 8], ebx
jne 0x468d1b
mov eax, dword [ebp - 4]
pop esi
mov ecx, dword [ebp + 0x10]
pop edi
pop ebx
test ecx, ecx
je 0x468db0
mov dword [ecx], edx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x468db9
mov dword [ecx], eax
test edx, edx
setne al
mov esp, ebp
pop ebp
ret