joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415b0b
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x4b5d0e
call fcn.00476610
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 8]
mov dword [esi], vtable.CFileManagerEx.0
mov dword [esi + 4], vtable.CFileManagerEx.1.0
mov dword [edi], vtable.CFileManagerEx.2.0
push 1
push esi
mov dword [ebp - 4], 3
call fcn.00415c8d
push dword [0x4fbd80]
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
jne 0x415b7a
push dword [esi + 0x80]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415b7a
push esi
call fcn.00416036
push dword [esi + 0x80]
call fcn.00402a92
pop ecx
lea eax, [esi + 0x84]
push eax
mov byte [ebp - 4], 2
call fcn.004161f5
mov ecx, dword [esi + 0x80]
sub ecx, 0x10
call fcn.00402870
mov dword [esi + 0x64], vtable._BaseModule::CCriticalSection.0
add esi, 0x68
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
call fcn.004230a2
call fcn.004766e8
ret

Function at 0x415c1c
Capabilities:
Check if file exists
Create directory
Create thread

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
cmp esi, edi
je 0x415c86
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415c3c
push edi
push esi
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
mov esi, dword [esp + 0x10]
lea ecx, [esi + 0x80]
call fcn.004027b6
push edi
push edi
push esi
push 0x415bff
push edi
push edi
call fcn.00476129
add esp, 0x18
push edi
push edi
push 1
push edi
mov dword [esi + 0xa4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xb8], eax
cmp dword [esi + 0xa4], edi
je 0x415c86
cmp eax, edi
je 0x415c86
xor eax, eax
inc eax
jmp 0x415c88
xor eax, eax
pop edi
pop esi
ret 8

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

Disassembly:
push 8
mov eax, 0x4b403b
call fcn.00476610
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418390
and al, 0x10
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
je 0x418390
xor eax, eax
call fcn.004766e8
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
call fcn.004180af
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x14]
push esi
call fcn.0047600e
cmp eax, 1
pop ecx
jle 0x4183be
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x4183be
xor ecx, ecx
mov word [eax], cx
push 0x5c
push esi
call fcn.00475250
pop ecx
pop ecx
cmp eax, edi
jne 0x4183da
push 0xf
pop edi
push esi
call fcn.00476c84
pop ecx
mov eax, edi
jmp 0x41838a
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.00418362
pop ecx
cmp eax, edi
je 0x4183ee
mov edi, eax
jmp 0x4183cf
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4183cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4183ea
jmp 0x4183cf
Function at 0x4189ef
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [edi + 8], 0xffffffff
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov dword [edi + 0xc], esi
cmp ebx, esi
jne 0x418a17
xor eax, eax
jmp 0x418add
mov ecx, edi
call fcn.00418aeb
lea ecx, [edi + 0x10]
mov dword [ebp - 0x14], 0x12
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d3fa2]
mov byte [ebp - 0x15], al
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d3fa2]
mov byte [ebp - 0x16], al
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d3fa2]
mov byte [ebp - 0x17], al
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d3fa2]
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x18]
xor dword [ecx], eax
add ecx, 4
dec dword [ebp - 0x14]
jne 0x418a28
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
lea ebx, [edi + 0x14]
mov dword [ebp - 0x14], 9
lea esi, [ebp - 0x10]
mov eax, edi
call fcn.0041b379
mov eax, dword [ebp - 0x10]
mov dword [ebx - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
add ebx, 8
dec dword [ebp - 0x14]
jne 0x418a87
lea ebx, [edi + 0x5c]
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0x80
lea esi, [ebp - 0x10]
mov eax, edi
call fcn.0041b379
mov eax, dword [ebp - 0x10]
mov dword [ebx - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
add ebx, 8
dec dword [ebp - 0x14]
jne 0x418ab5
dec dword [ebp - 0x18]
jne 0x418aae
xor eax, eax
inc eax
mov dword [edi + 0xc], eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004755ea
leave
ret
Function at 0x41bcd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebp, ebp
cmp dword [esi + 0x1108], eax
je 0x41bcf8
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], 0x3f3
mov dword [eax + 0x1c], ebp
mov dword [eax + 0x20], ebp
xor eax, eax
pop ebp
ret
mov eax, dword [0x4fb894]
cmp eax, 0xffffffff
je 0x41bd1c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebp
je 0x41bd1c
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], 0x3f4
jmp 0x41bcee
push esi
push 1
call fcn.0041c147
pop ecx
pop ecx
test eax, eax
jne 0x41bd3c
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], 0xe
jmp 0x41bcf1
push ebx
lea ebx, [esi + 0x10cc]
mov eax, ebx
call fcn.0041873f
cmp dword [esi + 0x10f0], ebp
jne 0x41bdf1
cmp dword [esi + 0x110c], ebp
jne 0x41bdf5
push edi
push str.Cabinet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [esi + 0x110c], eax
call edi
push str.FDICopy
push dword [esi + 0x110c]
mov dword [esi + 0x1110], eax
call edi
push str.FDIIsCabinet
push dword [esi + 0x110c]
mov dword [esi + 0x1114], eax
call edi
push str.FDIDestroy
push dword [esi + 0x110c]
mov dword [esi + 0x1118], eax
call edi
mov dword [esi + 0x111c], eax
pop edi
cmp dword [esi + 0x1110], ebp
je 0x41bdde
cmp dword [esi + 0x1114], ebp
je 0x41bdde
cmp dword [esi + 0x1118], ebp
je 0x41bdde
cmp eax, ebp
jne 0x41bdf5
mov dword [esi + 0x110c], ebp
mov dword [ebx + 0x18], 0x3e8
mov dword [ebx + 0x1c], ebp
mov dword [ebx + 0x20], ebp
xor eax, eax
jmp 0x41be33
push ebx
push 1
push 0x41c256
push fcn.0041c235
push 0x41c20a
push 0x41c1e3
push 0x41c181
push 0x41c17c
push 0x41c177
call dword [esi + 0x1110]
xor ecx, ecx
add esp, 0x24
cmp eax, ebp
setne cl
mov dword [esi + 0x10f0], eax
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x41cb72
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
test dword [ebp + 0xc], 0x100
je 0x41cb8c
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047eb9d
add esp, 0xc
pop ebp
ret 0xc

Function at 0x41cba1
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41cc25
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x41cc11
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
test esi, 0x100
ja 0x41cc03
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0xc]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x27
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
leave
ret 0xc
Function at 0x41e59b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b5bb4
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
mov eax, dword [0x4f3bd0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x41e5e3
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e5cd
push str.version1.0_encodingutf_16
lea ecx, [esp + 0x18]
call fcn.004028ab
push dword [ebp + 0xc]
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], ebx
call fcn.004028ab
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x74], 1
call fcn.004122b9
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x41e634
call fcn.00402944
mov byte [esp + 0x68], 4
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e646
call fcn.00402944
cmp dword [esp + 0x4c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
jne 0x41e666
lea ecx, [esp + 0x48]
call fcn.00411c9f
mov eax, ebx
jmp 0x41e5cf
push 0x4d8234
lea ecx, [esp + 0x18]
call fcn.004028ab
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 5
call fcn.00411c22
mov byte [esp + 0x68], 7
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e69e
call fcn.00402944
cmp dword [esp + 0x40], ebx
mov esi, dword [ebp + 8]
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e6cd
cmp dword [esp + 0x3c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e6cd
lea ecx, [esi + 8]
lea edx, [esp + 0x38]
call fcn.0041e81b
push str.Plugin_AfterSetup
lea ecx, [esp + 0x18]
call fcn.004028ab
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 8
call fcn.00411c22
mov byte [esp + 0x68], 0xa
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e705
call fcn.00402944
cmp dword [esp + 0x30], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e731
cmp dword [esp + 0x2c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e731
lea ecx, [esi + 0x20]
lea edx, [esp + 0x28]
call fcn.0041e81b
push str.Plugin_BeforeUninstall
lea ecx, [esp + 0x18]
call fcn.004028ab
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 0xb
call fcn.00411c22
mov byte [esp + 0x68], 0xd
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e769
call fcn.00402944
cmp dword [esp + 0x20], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e795
cmp dword [esp + 0x1c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e795
lea ecx, [esi + 0x38]
lea edx, [esp + 0x18]
call fcn.0041e81b
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0xa
call fcn.004029fc
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 7
call fcn.004029fc
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 4
call fcn.004029fc
xor ebx, ebx
inc ebx
jmp 0x41e656
Function at 0x420aa1
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b59dd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4f3bd0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [edi + 4]
call fcn.00421230
push 0x4d8478
lea ecx, [esp + 0x10]
call fcn.004028ab
mov ecx, dword [ebp + 0xc]
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0041fb43
mov byte [esp + 0x38], 2
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x420b0e
call fcn.00402944
lea eax, [esp + 0x10]
call fcn.00410fac
test al, al
je 0x420b35
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x420b2e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x420bc2
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
test eax, eax
jle 0x420b1b
xor esi, esi
test eax, eax
jle 0x420bac
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00411ab0
mov byte [esp + 0x38], 3
cmp dword [esp + 0x24], 0
sete al
test al, al
sete al
test al, al
je 0x420b9e
cmp dword [esp + 0x20], 0
sete al
test al, al
sete al
test al, al
je 0x420b9e
push edi
lea ecx, [esp + 0x20]
call fcn.00420d06
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.004029fc
inc esi
cmp esi, dword [esp + 0xc]
jl 0x420b47
jmp 0x420bac
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.004029fc
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x420bbf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x42107d
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x634
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push edi
call dword [eax + 4]
and dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
test eax, eax
jle 0x42115e
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [esp + 0x10]
lea esi, [edi + 4]
call fcn.004211a5
mov edx, dword [eax + 4]
cmp dword [edx - 0xc], 0
je 0x42114c
cmp dword [edi + 0x1c], 0
je 0x421143
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4210e6
push 4
lea ecx, [eax + 0x14]
push ecx
push 4
jmp 0x4210f7
cmp ecx, 1
jne 0x4210ff
mov ecx, dword [eax + 0x18]
mov esi, dword [ecx - 0xc]
add esi, esi
push esi
push ecx
push 1
push dword [eax + 8]
push edx
push dword [eax]
jmp 0x42113f
cmp ecx, 2
jne 0x42114c
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x14]
push edi
call dword [eax + 8]
lea eax, [esp + 0x430]
push eax
call fcn.0047600e
pop ecx
add eax, eax
push eax
lea eax, [esp + 0x434]
push eax
push 1
lea eax, [esp + 0x230]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x2c]
call ebx
jmp 0x42114c
push edx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jl 0x4210ba
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
xor eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.004755ea
mov esp, ebp
pop ebp
ret 4
Function at 0x421b16
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push edi
cmp dword [ebx + 0x28], esi
je 0x421b2d
lea edi, [ebx + 0xc]
call fcn.004221f9
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push 0x80
push 3
push esi
push 7
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
jne 0x421b5a
xor eax, eax
jmp 0x421c02
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
mov dword [ebp - 4], eax
jge 0x421bd6
cmp dword [ebp - 0xc], esi
jne 0x421bd6
add eax, 4
push eax
call fcn.004776ed
mov edi, eax
pop ecx
cmp edi, esi
je 0x421bd6
mov eax, dword [ebp - 4]
add eax, 4
push eax
push esi
push edi
call fcn.00475570
add esp, 0xc
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
mov ecx, ebx
push edi
call fcn.00421c96
push edi
mov dword [ebp - 0x10], 1
call fcn.0047725c
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x30]
call fcn.0042343e
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret 8
Function at 0x4231ce
Capabilities:
Check if file exists
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x14], edi
cmp dword [eax - 0xc], ebx
jne 0x42320a
mov eax, 0xffffd8ee
jmp 0x423358
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x423200
mov eax, dword [esi + 0x1c]
push ebx
push 1
push 3
push ebx
push 7
push closesocket
push eax
mov dword [esp + 0x28], 0xffffd8f0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x423346
cmp eax, 0xffffffff
je 0x42333c
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x42333c
mov edi, dword [esi + 4]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
xor edx, edx
div dword [esp + 0x44]
push ebx
sub edi, edx
mov eax, edi
mov edi, dword [esi + 4]
push eax
push ebx
push 4
push dword [esp + 0x20]
sub edi, eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x42332e
add edi, eax
mov dword [esp + 0x20], edi
cmp edi, ebx
je 0x423324
lea eax, [esp + 0x4c]
push eax
push dword [esi + 8]
push edi
call fcn.0040d17e
push 0x10
lea eax, [esi + 0xc]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00478363
add esp, 0x18
test eax, eax
je 0x4232d5
mov dword [esp + 0xc], 0xffffd8ee
jmp 0x423324
push dword [esi + 8]
call fcn.004776ed
mov edi, eax
pop ecx
cmp edi, ebx
je 0x423200
push dword [esi + 8]
push dword [esp + 0x24]
push edi
call fcn.00479b60
push dword [esp + 0x20]
mov eax, dword [esi + 8]
push dword [esp + 0x28]
mov ecx, dword [esi + 0x1c]
cdq
push edx
push eax
push edi
push ecx
call fcn.0047347a
push edi
mov esi, eax
call fcn.0047725c
add esp, 0x28
cmp esi, ebx
jl 0x423324
mov dword [esp + 0xc], 1
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x423354
push dword [esp + 0xc]
mov eax, dword [edi]
push edi
call dword [eax + 0xc]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004755ea
mov esp, ebp
pop ebp
ret 0xc
Function at 0x423820
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.004271c0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00427260
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.004755ea
add esp, 0x68
ret
Function at 0x423990
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0x20119
xor edi, edi
push edi
push 0x4d84ec
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x423b21
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esi + 0x10], eax
push ebx
mov dword [esi + 0x14], eax
lea edx, [esp + 0x1c]
push edx
mov dword [esi + 0x18], eax
push eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x28]
push str.Operator
mov edi, 0x400
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423a23
cmp dword [esp + 0x14], 1
jne 0x423b08
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x423b08
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.IssueDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x423a68
cmp dword [esp + 0x14], 1
jne 0x423b08
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x423b08
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.ExpirationDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x423a9f
cmp dword [esp + 0x14], 1
jne 0x423b08
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x423b08
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.SignData
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x423b08
cmp dword [esp + 0x14], 3
jne 0x423b08
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x423b08
lea eax, [esi + 0xc]
call fcn.00423890
test eax, eax
je 0x423b08
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, 0x400
sub ecx, edi
push eax
mov dword [edx], ecx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret