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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [ecx + 8], 0
mov eax, dword [ecx]
jne 0x40d84c
test eax, eax
jne 0x40d84c
xor eax, eax
cmp dword [esi + 0xc], 0
jne 0x40d84c
xor eax, eax
cmp dword [esi + 4], 0
mov edx, 0
je 0x40d89c
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x40d86b
call fcn.00407340
push dword [esi]
call fcn.0040fef0
add esp, 4
mov dword [esi], 0
xor eax, eax
mov ecx, dword [esi + 4]
lea edx, [ecx + 1]
cmp edx, 2
jb 0x40d891
call fcn.00407340
push dword [esi + 4]
call fcn.0040fef0
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi]
xor ecx, ecx
mov edx, eax
xorps xmm0, xmm0
movlps qword [esi + 8], xmm0
mov eax, ecx
mov ebx, dword [edi]
cmp edx, ebx
je 0x40d8e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x40d8c7
call fcn.00407340
push dword [esi]
call fcn.0040fef0
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x40d8d6
mov dword [esi], ebx
call fcn.00407340
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp eax, ebx
je 0x40d92c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jb 0x40d912
call fcn.00407340
push dword [esi + 4]
call fcn.0040fef0
add esp, 4
mov dword [esi + 4], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x40d922
mov dword [esi + 4], ebx
call fcn.00407340
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x40da40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x5df440]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x40dad0
mov edi, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov ebx, eax
call esi
lea ecx, [ebp - 0x14]
push 2
push 0
push 0
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edi, eax
test eax, eax
je 0x40dad4
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp dword [esi], ebx
je 0x40dae1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jb 0x40dabb
mov dword [ebp - 0x18], eax
call fcn.00407340
push dword [esi]
call fcn.0040fef0
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [esi], 0
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x40dada
mov dword [esi], ebx
mov esi, eax
call fcn.00407340
mov eax, esi
jmp 0x40dada
mov bl, 1
jmp 0x40dae6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00513cac
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40e4b0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
pop ebp
ret 4

Function at 0x40e4d0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
pop ebp
ret 4

Function at 0x40eb96
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
call fcn.0040d9d0
test al, al
je 0x40ebbc
push 0x32
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edi, [esi + 0x20]
mov ecx, edi
push 0
call fcn.0040ec66
mov ebx, dword [esi + 0x30]
test ebx, ebx
je 0x40ec23
mov dword [ebp - 0x10], edi
mov edi, dword [esi + 0x34]
cmp ebx, edi
je 0x40ebea
mov ecx, ebx
call fcn.0040e0d0
add ebx, 0xc
cmp ebx, edi
jne 0x40ebd9
mov ebx, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
sub eax, ebx
cmp eax, 0x1000
mov edi, dword [ebp - 0x10]
jb 0x40ec0b
mov ecx, dword [ebx - 4]
add ebx, 0xfffffffc
sub ebx, ecx
cmp ebx, 0x20
jae 0x40ec60
add eax, 0x23
mov ebx, ecx
push eax
push ebx
call fcn.00513968
add esp, 8
xorps xmm0, xmm0
movlps qword [esi + 0x30], xmm0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40ec33
push eax
call fcn.0051a296
add esp, 4
mov ecx, edi
call fcn.0040ec8a
lea ecx, [esi + 0x18]
call fcn.00403540
lea ecx, [esi + 0x14]
call fcn.00403540
lea ecx, [esi + 0x10]
call fcn.00403540
mov ecx, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0040d940
call fcn.0051a096
int3
Function at 0x412560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [0x5df440]
xor edx, ebp
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x14]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x10]
push edx
push esi
push edi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x4125c8
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x4125c8
cmp dword [ebp - 0x14], 4
jne 0x4125c8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00513cac
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8

Function at 0x4125e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1010
call fcn.00514200
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x5df440]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x810]
push 0x800
push 0xff
push ebx
call fcn.00516ef0
add esp, 0xc
mov dword [ebp - 0x1018], 1
mov dword [ebp - 0x101c], 0x800
lea eax, [ebp - 0x101c]
lea ecx, [ebp - 0x1018]
push eax
push ebx
push ecx
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x412740
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1018]
cmp eax, 2
je 0x41269a
mov edi, 0x3f4
cmp eax, 1
jne 0x412740
push ebx
call fcn.0051ef91
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x14]
cmp eax, edi
jae 0x412709
sub esp, 0xc
mov al, byte [ebp - 0x1010]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
mov ecx, esi
jmp 0x412702
lea esi, [ebp - 0x1010]
push 0x800
push 0xff
push esi
call fcn.00516ef0
add esp, 0xc
push 0x400
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x101c], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x412740
push esi
call fcn.0051ef91
add esp, 4
mov edi, eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x14]
cmp eax, edi
mov edx, esi
jae 0x41271d
sub esp, 0xc
mov al, byte [ebp - 0x1014]
mov byte [esp + 4], al
mov dword [esp + 8], edx
mov dword [esp], edi
call fcn.004065d0
jmp 0x41273e
mov ecx, esi
cmp eax, 8
jb 0x412712
mov esi, dword [ecx]
mov dword [ecx + 0x10], edi
mov eax, edi
add eax, edi
push eax
push ebx
jmp 0x41272f
mov esi, ecx
cmp eax, 8
jb 0x412726
mov esi, dword [ecx]
mov dword [ecx + 0x10], edi
mov eax, edi
add eax, edi
push eax
push edx
push esi
call fcn.00516970
add esp, 0xc
mov word [esi + edi*2], 0
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00513cac
mov eax, edi
add esp, 0x1010
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x413f20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, dword [ebp + 0xc]
mov eax, dword [0x5df440]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea edi, [esp + 8]
push 0x4c
push str....._base_file_version_info_win.cc
push str.CreateFileVersionInfoWin
push edi
call fcn.00407310
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.0041a5a0
mov dword [esp + 4], 0xffffffff
cmp dword [esi + 0x14], 8
jb 0x413f8b
mov esi, dword [esi]
mov ebx, dword [ebp + 8]
lea eax, [esp + 4]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x413fcd
js 0x41411e
mov edi, eax
cmp eax, 0x1000
jb 0x413fda
lea eax, [edi + 0x23]
push eax
call fcn.00513938
add esp, 4
test eax, eax
je 0x414123
mov ebx, eax
add ebx, 0x23
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x413fe5
mov dword [ebx], 0
mov esi, ebx
jmp 0x414100
push edi
call fcn.00513938
add esp, 4
mov ebx, eax
push edi
push 0
push ebx
call fcn.00516ef0
add esp, 0xc
push ebx
push edi
push dword [esp + 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4140cf
mov dword [esp + 8], 0
mov dword [esp + 0x1c], 0xffffffff
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xc]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4140cf
mov esi, dword [esp + 8]
test esi, esi
je 0x4140cf
add edi, ebx
push 0x1c
call fcn.00513938
add esp, 4
mov ecx, dword [esi]
mov dword [eax], 0x588730
movd xmm0, edi
mov edi, eax
movd xmm1, ebx
punpckldq xmm1, xmm0
pshufd xmm0, xmm1, 0x14
movdqu xmmword [eax + 4], xmm0
mov dword [eax + 0x14], ecx
mov dword [esp + 8], 0
mov dword [esp + 0x1c], 0xffffffff
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xc]
push eax
push 0x588926
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4140c1
mov esi, edi
lea edi, [esp + 0x18]
push str.::VerQueryValue_data__kRoot__fixed_file_info__dummy_size_
push 0x29
push str....._base_file_version_info_win.cc
push edi
call fcn.00407bc0
add esp, 0x10
mov ecx, edi
call fcn.00407cf0
mov ecx, edi
mov edi, esi
call fcn.00407d00
mov eax, dword [esp + 8]
mov dword [edi + 0x18], eax
mov esi, dword [ebp + 8]
mov dword [esi], edi
jmp 0x414100
mov esi, dword [ebp + 8]
mov dword [esi], 0
test ebx, ebx
je 0x414100
cmp edi, 0x1000
jb 0x4140f6
mov eax, dword [ebx - 4]
add ebx, 0xfffffffc
sub ebx, eax
cmp ebx, 0x20
jae 0x414123
add edi, 0x23
mov ebx, eax
push edi
push ebx
call fcn.00513968
add esp, 8
lea ecx, [esp + 0x20]
call fcn.0041a5c0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00513cac
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004054c0
call fcn.0051a096
int3
Function at 0x417110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp + 0xc]
mov eax, dword [0x5df440]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea edi, [esp + 0x20]
mov dword [esp + 0x10], edi
movsd xmm0, qword [0x588bd0]
movsd qword [esp + 0x14], xmm0
mov eax, dword [0x5eb024]
mov ecx, dword [0x5ed6c4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x41720e
lea eax, [esp + 0x10]
mov dword [esp + 8], eax
movsd qword [esp], xmm1
mov dword [esp + 0xc], 0
mov ecx, 0x5eb000
call fcn.0042d57e
sub esp, 0x10
mov ebx, dword [esp + 0x18]
mov dword [esi], 0
movsd xmm0, qword [0x5874c0]
movsd qword [esi + 0x10], xmm0
mov byte [esi], 0
cmp ebx, 0xf
jbe 0x4171da
mov al, byte [esp + 0x1c]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], ebx
mov ecx, esi
call fcn.00407350
sub esp, 0xc
mov ebx, dword [esp + 0x18]
test ebx, ebx
jns 0x4171f1
jmp 0x4171f9
mov dword [esi + 0x10], ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00516970
mov byte [esi + ebx], 0
mov eax, dword [esp + 0x10]
mov byte [eax + ebx], 0
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.00513cac
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], 0x5eb024
call fcn.00513c48
movsd xmm1, qword [ebp + 0xc]
cmp dword [0x5eb024], 0xffffffff
jne 0x417176
mov dword [0x5eb000], 1
xorps xmm0, xmm0
movlps qword [0x5eb004], xmm0
mov byte [0x5eb00c], 0x65
movaps xmm0, xmmword [0x588be0]
movups xmmword [0x5eb010], xmm0
mov dword [0x5eb020], 0
mov dword [esp], 0x5eb024
call fcn.00513bf7
movsd xmm1, qword [ebp + 0xc]
jmp 0x417176
Function at 0x4229a2
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [0x5df440]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
mov esi, 5
cmp eax, 3
jne 0x422a43
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 8
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
jb 0x4229e6
mov esi, dword [esi]
mov ebx, dword [ebx]
push 0
push edx
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x422a30
mov esi, eax
lea eax, [ebp - 0x14]
mov dword [eax], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
push 3
push edi
push edi
lea ecx, [ebp - 0x14]
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb edi, edi
lea eax, [ebp - 0x14]
or edi, dword [eax]
jmp 0x422a33
xor edi, edi
dec edi
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
xor eax, eax
cmp edi, 0xffffffff
sete al
lea esi, [eax + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00513cac
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x423b4c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov ebx, ecx
mov al, byte [ebp + 8]
mov ecx, dword [0x5df440]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
test al, al
je 0x423b9c
xor edi, edi
inc edi
mov esi, 0x5891a2
mov ecx, ebx
push 0
push 0x4341d0
push edi
push str.NtMapViewOfSection
push esi
call fcn.00423352
mov ecx, ebx
push edi
push 0x434410
push edi
push str.NtUnmapViewOfSection
push esi
call fcn.00423352
jmp 0x423ba6
cmp dword [ebx + 8], 0
je 0x423d1a
mov eax, dword [ebx]
mov edi, dword [eax]
sub esp, 0x14
movdqa xmm0, xmmword [0x589130]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x6c], eax
mov esi, dword [ebx + 8]
shl esi, 6
lea eax, [esi + 0x50]
mov dword [ebp - 0x70], eax
push eax
call fcn.00422f5c
add esp, 4
mov dword [ebp - 0x74], ebx
mov ebx, eax
mov ecx, 0xfffff000
and eax, ecx
add eax, dword [ebp - 0x6c]
and ebx, 0xfff
add esi, 0x104f
and esi, ecx
push 0x40
push 0x1000
push esi
push eax
mov dword [ebp - 0x6c], edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test eax, eax
jne 0x423c3b
lea esi, [ebp - 0x60]
push str.thunk_base
push 0x183
push str....._sandboxwin_srcinterception.cc
push esi
call fcn.00407bc0
add esp, 0x10
mov ecx, esi
call fcn.00407cf0
mov ecx, esi
call fcn.00407d00
add edi, ebx
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x60]
movdqu xmmword [esi + 8], xmm0
xor eax, eax
dec eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], eax
movdqu xmmword [esi + 0x38], xmm0
movdqu xmmword [esi + 0x28], xmm0
movdqu xmmword [esi + 0x18], xmm0
mov eax, dword [ebp - 0x70]
mov dword [esi], eax
mov dword [esi + 0xc], 0
mov dword [esi + 4], 0x10
pxor xmm0, xmm0
movdqu xmmword [0x5eb0cc], xmm0
movdqu xmmword [0x5eb0dc], xmm0
movdqu xmmword [0x5eb0ec], xmm0
movdqu xmmword [0x5eb0fc], xmm0
movdqu xmmword [0x5eb10c], xmm0
movdqu xmmword [0x5eb11c], xmm0
movdqu xmmword [0x5eb128], xmm0
mov ecx, dword [ebp - 0x74]
push esi
push eax
push edi
call fcn.00423f92
mov ebx, eax
test eax, eax
jne 0x423d1c
lea eax, [ebp - 0x64]
mov dword [eax], 0xffffffff
push eax
push 0x10
push esi
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, 0x2a
test eax, eax
je 0x423d1c
cmp dword [ebp - 0x64], 0x10
jne 0x423d1c
lea eax, [ebp - 0x68]
mov dword [eax], 0xffffffff
push eax
push 0x20
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push 0x6c
push 0x5eb0cc
push str.g_originals
call fcn.0040f014
mov ebx, eax
jmp 0x423d1c
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00513cac
mov eax, ebx
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x424aa0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x5df440]
xor ecx, ebp
mov dword [ebp - 8], ecx
test eax, eax
je 0x424aec
push eax
push dword [ebp + 8]
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x424aec
lea esi, [ebp - 0xc]
push 0x58932a
push 0x20
push str....._base_rand_util_win.cc
push esi
call fcn.00407bc0
add esp, 0x10
mov ecx, esi
call fcn.00407cf0
mov ecx, esi
call fcn.00407d00
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00513cac
add esp, 8
pop esi
pop ebp
ret
Function at 0x429f2c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x42a049
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x3c]
cmp dword [eax + edx + 0x74], 0
je 0x42a049
cmp word [eax + edx + 0x14], 0x68
jb 0x42a049
mov eax, dword [eax + edx + 0x78]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
mov esi, ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x581450]
mov dword [ebp - 0x14], esi
mov ecx, esi
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x42a049
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
cmp ecx, 0xffff
jbe 0x42a08b
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0x14]
mov esi, eax
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x581450]
mov ecx, edi
push dword [ebp - 0x10]
call ebx
mov ecx, eax
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x42a049
lea edi, [ecx + eax*4]
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov edx, ecx
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edi
sub edi, edx
mov eax, edi
sar eax, 2
shr edi, 0x1f
add edi, eax
and edi, 0xfffffffe
mov dword [ebp - 0x18], edx
mov eax, dword [edx + edi*2]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x581450]
mov ecx, esi
push dword [ebp - 0x10]
call ebx
mov ecx, dword [ebp + 8]
mov cl, byte [ecx]
test cl, cl
je 0x42a01f
mov edx, dword [ebp - 0x28]
cmp cl, byte [eax]
jne 0x42a021
inc eax
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x42a013
xor ecx, ecx
mov edx, dword [ebp - 0x18]
lea edi, [edx + edi*2]
movzx eax, byte [eax]
cmp cl, al
je 0x42a055
movzx ecx, cl
cmp ecx, eax
lea eax, [edi + 4]
cmovg edx, eax
mov eax, dword [ebp - 0x2c]
cmovs eax, edi
mov edi, eax
xor eax, eax
cmp edx, edi
jne 0x429fd8
jmp 0x42a04b
xor eax, eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x581450]
mov ecx, esi
push dword [ebp - 0x10]
call ebx
sub edi, dword [ebp - 0x24]
sar edi, 1
movzx eax, word [eax + edi]
mov ecx, dword [ebp - 0x1c]
add ax, word [ecx + 0x10]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x20]
mov word [ebx], ax
mov al, 1
jmp 0x42a04b

Function at 0x42ae20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042ae30
Function at 0x42d050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x290
mov eax, dword [0x5df440]
xor eax, ebp
mov dword [esp + 0x288], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x270], xmm0
movdqa xmmword [esp + 0x260], xmm0
movdqa xmmword [esp + 0x250], xmm0
movdqa xmmword [esp + 0x240], xmm0
lea ebx, [esp + 0x38]
push 0x3bb
push str....._base_files_file_util_win.cc
push 0x58999e
push ebx
call fcn.00407310
add esp, 0x10
lea ecx, [esp + 0x240]
push 0
push ebx
call fcn.0041a5a0
lea eax, [esp + 0x3a]
push 0x206
push 0xff
push eax
call fcn.00516ef0
add esp, 0xc
mov word [esp + 0x38], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 0xfffffefb
cmp esi, 0xfffffefc
jb 0x42d133
push ebx
call fcn.0051ef91
add esp, 4
lea edi, [esp + 8]
mov ecx, edi
push eax
push ebx
call fcn.004054f0
lea ebx, [esp + 0x20]
mov ecx, edi
push ebx
call fcn.004064d0
mov ecx, dword [ebp + 8]
push ebx
call fcn.00405640
mov ecx, ebx
call fcn.004055e0
mov ecx, edi
call fcn.004055e0
cmp esi, 0xfffffefc
setae bl
lea ecx, [esp + 0x240]
call fcn.0041a5c0
mov ecx, dword [esp + 0x288]
xor ecx, ebp
call fcn.00513cac
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x42d160
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x5df440]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
mov ebx, esp
push 0x3cb
push str....._base_files_file_util_win.cc
push 0x5899b3
push ebx
call fcn.00407310
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.0041a5a0
cmp dword [edi + 0x14], 8
jb 0x42d1c6
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov ecx, esi
call fcn.0041a5c0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00513cac
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42dd50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.00514200
mov eax, dword [0x5df440]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5df038]
cmp eax, 0xffffffff
je 0x42debb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x42debb
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.00516970
add esp, 0xc
mov ecx, dword [0x5df038]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.004411b0
add esp, 8
test ebx, ebx
je 0x42ddcb
push ebx
call fcn.00513976
add esp, 4
mov eax, dword [0x5ebd54]
mov ecx, dword [0x5ed6c4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x42dedc
mov esi, dword [0x5ebd50]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x42ded0
lea eax, [ebp - 0x1410]
push 0xc00
push 0x5eb150
push eax
call fcn.00516970
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ecx, 0x101
jmp 0x42de39
mov ecx, dword [ebp - 0x1418]
dec ecx
je 0x42deab
test al, 1
je 0x42deab
mov dword [ebp - 0x1418], ecx
mov ebx, 8
xor eax, eax
lea edi, [ebp - 0x810]
jmp 0x42de6e
add ebx, 0xc
add edi, 8
cmp ebx, 0xc08
je 0x42de30
mov esi, dword [edi]
test esi, esi
je 0x42de60
cmp dword [ebp + ebx - 0x1418], 0
je 0x42de60
mov ecx, dword [edi + 4]
cmp ecx, dword [ebp + ebx - 0x1410]
jne 0x42de60
mov ecx, dword [ebp + ebx - 0x1414]
test ecx, ecx
je 0x42de60
mov dword [edi], 0
call dword [0x581450]
push esi
call ecx
add esp, 4
mov al, 1
jmp 0x42de60
push 2
push dword [ebp - 0x1414]
call fcn.004411b0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00513cac
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.00416e90
jmp 0x42de01
push 0x5ebd54
call fcn.00513c48
add esp, 4
cmp dword [0x5ebd54], 0xffffffff
jne 0x42ddec
push 4
call fcn.00513938
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.00416e80
mov dword [0x5ebd50], esi
push 0x5ebd54
call fcn.00513bf7
add esp, 4
jmp 0x42ddec

Function at 0x42df30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5df038]
cmp eax, 0xffffffff
je 0x42df50
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
pop ebp
ret