joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esp + 0x268], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x60]
push 0x4ff
push str.file_util_win.cc
push 0x62e472
push ebx
call fcn.0050b300
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00522210
mov dword [esp + 0x5c], 0xa
mov al, byte [0x649456]
test al, al
jne 0x449383
lea esi, [esp + 0x62]
push 0x206
push 0xff
push esi
call fcn.00567640
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
dec esi
cmp esi, 0x103
ja 0x449353
push ebx
call fcn.005643e2
add esp, 4
lea edi, [esp + 8]
mov ecx, edi
push eax
push ebx
call fcn.00550450
xor eax, eax
dec eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
movsx eax, byte [edi + 0xb]
test eax, eax
mov dword [esp + 4], esi
jns 0x4492f8
mov eax, dword [esp + 0xc]
test eax, eax
js 0x44937d
mov edi, dword [esp + 8]
sete cl
test edi, edi
setne dl
or dl, cl
je 0x449380
mov esi, dword [ebp + 8]
lea ebx, [esp + 0x14]
mov ecx, ebx
push eax
push edi
call fcn.00550450
mov ecx, ebx
call fcn.0043fb80
cmp byte [esi + 0xb], 0
jns 0x44931f
push dword [esi]
call fcn.00562bc0
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], eax
movq xmm0, qword [esp + 0x14]
movq qword [esi], xmm0
mov byte [esp + 0x1f], 0
mov word [esp + 0x14], 0
cmp byte [esp + 0x13], 0
jns 0x44934f
push dword [esp + 8]
call fcn.00562bc0
add esp, 4
mov esi, dword [esp + 4]
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x20]
call fcn.00540b60
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.00565ea5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
int3
int3
movzx ecx, al
lea eax, [esp + 0x14]
mov dword [eax], ebx
lea esi, [esp + 8]
mov dword [esi], str.ScopedBlockingCall
lea edx, [esp + 0x5c]
push eax
push esi
call fcn.005b5b90
add esp, 8
jmp 0x44926f
Function at 0x44a010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa4
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [0x644040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov ecx, 0x7fffffff
lea esi, [ebp - 0xb0]
mov edi, eax
test eax, eax
je 0x44a095
cmp edi, ecx
mov eax, 0x7fffffff
cmovb eax, edi
mov dword [ebp - 0xb0], 0xffffffff
push 0
push esi
push eax
push ebx
mov esi, edx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44a0b4
mov ecx, dword [ebp - 0xb0]
cmp ecx, 0xffffffff
je 0x44a0b1
test ecx, ecx
mov edx, 0
cmovns edx, ecx
mov eax, edi
sub eax, edx
add ebx, edx
test ecx, ecx
mov edx, esi
mov ecx, 0x7fffffff
lea esi, [ebp - 0xb0]
jns 0x44a03b
jmp 0x44a0b4
test edi, edi
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565ea5
mov eax, ebx
add esp, 0xa4
pop esi
pop edi
pop ebx
pop ebp
ret
int3
cmp dword [0x64a79c], 2
jg 0x44a095
call fcn.004f27f0
lea esi, [ebp - 0xb0]
mov ecx, esi
push eax
push 2
push 0x8c
push str.file_io.cc
call fcn.0045af70
lea eax, [ebp - 0xa8]
push 9
push 0x63959b
push eax
call fcn.00538a30
add esp, 0xc
mov ecx, esi
call fcn.0044fb10
jmp 0x44a095

Function at 0x44af10
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xa4
mov esi, dword [ebp + 8]
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
call fcn.0044c920
add esp, 0x10
or edx, eax
jne 0x44af47
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
test eax, eax
je 0x44af5d
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00565ea5
mov eax, ebx
add esp, 0xa4
pop esi
pop ebx
pop ebp
ret
cmp dword [0x64a79c], 2
jg 0x44afa2
call fcn.004f27f0
lea esi, [ebp - 0xac]
mov ecx, esi
push eax
push 2
push 0xfc
push str.file_io_win.cc
call fcn.0045af70
lea eax, [ebp - 0xa4]
push 0xc
push 0x639560
push eax
call fcn.00538a30
add esp, 0xc
mov ecx, esi
call fcn.0044fb10
xor ebx, ebx
jmp 0x44af47
Function at 0x44b610
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
mov edx, esi
call fcn.0044bf00
mov eax, dword [esi]
test eax, eax
je 0x44b663
mov ebx, dword [eax + 0x28]
mov edi, dword [eax + 0x2c]
xor esi, esi
cmp ebx, edi
jne 0x44b66a
lea ecx, [ebp - 0x14]
call fcn.0044b6d0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565ea5
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, 3
jmp 0x44b645
cmp dword [ebx + 0x50], 0
jne 0x44b689
cmp byte [ebx + 0x1b], 0
js 0x44b67b
lea eax, [ebx + 0x10]
jmp 0x44b67e
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x44b68e
add ebx, 0x58
jmp 0x44b641
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jae 0x44b6b4
push ebx
mov dword [ebp - 0x18], edx
push edx
call fcn.005d4050
add esp, 8
mov ecx, dword [ebp - 0x18]
add ecx, 0x50
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x44b689
mov ecx, dword [ebp + 8]
push ebx
call fcn.005d3f40
mov ecx, eax
jmp 0x44b6ac
Function at 0x44ca10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov edi, edx
mov esi, ecx
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xorps xmm0, xmm0
movsd qword [ecx], xmm0
mov dword [ecx + 8], 0
push ecx
push edx
call fcn.004407e0
add esp, 8
test al, al
je 0x44ca79
movsx eax, byte [esi + 0xb]
test eax, eax
jns 0x44ca51
mov eax, dword [esi + 4]
test eax, eax
je 0x44ca79
push esi
call fcn.0044cb60
add esp, 4
test al, al
je 0x44ca79
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565ea5
mov eax, esi
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.0055ac70
mov ecx, 4
mov ebx, 0x62fa8c
mov eax, ecx
jmp 0x44ca9e
not eax
add eax, ecx
lea ebx, [ebx + edx*4]
add ebx, 0xc
mov ecx, eax
test eax, eax
je 0x44caaa
shr eax, 1
lea edx, [eax + eax*2]
cmp dword [ebx + edx*4], edi
jge 0x44ca98
jmp 0x44ca8e
cmp ebx, 0x62fabc
je 0x44caf2
cmp dword [ebx], edi
jg 0x44caf2
lea edi, [ebp - 0x216]
push 0x206
push 0xff
push edi
call fcn.00567640
add esp, 0xc
mov word [edi - 2], 0
lea edi, [ebp - 0x218]
push 0x104
push edi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
jbe 0x44cb05
xorps xmm0, xmm0
movsd qword [esi], xmm0
mov dword [esi + 8], 0
jmp 0x44ca62
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push edi
call fcn.005643e2
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.00550450
mov ecx, esi
call fcn.004f28e0
test al, al
je 0x44cb49
mov ecx, esi
call fcn.00527fb0
test al, al
jne 0x44cb49
push esi
call fcn.0044cb60
add esp, 4
test al, al
jne 0x44ca62
mov ecx, esi
call fcn.0055ac70
jmp 0x44caf2

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

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 [0x644040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x254
push str.file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.0050b300
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00522210
mov dword [esp + 0x4c], 0xa
mov al, byte [0x649456]
test al, al
jne 0x44cc03
cmp byte [edi + 0xb], 0
jns 0x44cbce
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
lea ecx, [esp + 0x10]
call fcn.00540b60
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00565ea5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, al
lea eax, [esp + 0x54]
mov dword [eax], ebx
lea esi, [esp + 0x50]
mov dword [esi], str.ScopedBlockingCall
lea edx, [esp + 0x4c]
push eax
push esi
call fcn.005b5b90
add esp, 8
jmp 0x44cbc6
Function at 0x450020
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x234
mov dword [ebp - 0x240], edx
mov edi, ecx
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, word [ecx + 0x14]
mov word [ebp - 0x28], ax
movzx eax, word [ecx + 0x16]
mov word [ebp - 0x26], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call esi
mov word [ebp - 0x24], ax
movzx eax, word [edi + 0x16]
mov word [ebp - 0x22], ax
movzx eax, word [edi + 0x14]
mov word [ebp - 0x20], ax
mov bx, 0x4e4
mov word [ebp - 0x1e], bx
call esi
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x1a], 0x40904e4
mov dword [ebp - 0x16], 0x40904b0
mov word [ebp - 0x12], bx
mov ebx, 2
lea esi, [ebp - 0x230]
push 0x208
push 0xff
push esi
call fcn.00567640
add esp, 0xc
movzx eax, word [ebp + ebx - 0x28]
mov dword [ebp - 0x23c], ebx
movzx ecx, word [ebp + ebx - 0x2a]
push dword [ebp - 0x240]
push eax
push ecx
push str.StringFileInfo_04x_04x_ls
mov eax, 0x104
push eax
push eax
push esi
call fcn.0044dd30
add esp, 0x1c
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 0xffffffff
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
push eax
push esi
push dword [edi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x450156
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x450156
mov ecx, dword [ebp - 0x238]
test ecx, ecx
je 0x450156
dec ecx
push ecx
push eax
call fcn.00564c4a
add esp, 8
mov edx, dword [ebp - 0x234]
test eax, eax
sete cl
test edx, edx
setne ch
or ch, cl
je 0x450170
mov ecx, dword [ebp + 8]
push eax
push edx
call fcn.00554020
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565ea5
add esp, 0x234
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x23c]
add ebx, 4
cmp ebx, 0x1a
lea esi, [ebp - 0x230]
jne 0x450095
jmp 0x450141
int3
Function at 0x4541b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ecx + 0x10], 1
push 0x20
call fcn.00562bc5
add esp, 4
mov edi, eax
mov dword [eax + 4], 0
mov dword [eax], 0x621e2c
sub esp, 0x10
movaps xmm0, xmmword [0x6395b0]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [edi + 8], eax
test eax, eax
je 0x45429c
movsd xmm0, qword [ebp + 8]
movsd qword [edi + 0x10], xmm0
mov dword [edi + 0x18], esi
mov ebx, dword [esi + 0xc]
mov dword [esi + 0xc], edi
test ebx, ebx
je 0x454235
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4542dc
push ebx
call fcn.00562bc0
add esp, 4
mov edi, dword [esi + 0xc]
xor eax, eax
push eax
push eax
push edi
push 0x4f4c50
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
test eax, eax
je 0x454262
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565ea5
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea edi, [ebp - 0x24]
push 0x1b
push str.thread_win.cc
push str.Start
push edi
call fcn.0050b300
add esp, 0x10
lea esi, [ebp - 0x14]
push edi
push esi
call fcn.005bae80
add esp, 8
mov ecx, esi
push 0x637650
call fcn.005d7cb0
mov ecx, esi
call fcn.00590430
jmp 0x45424e
lea eax, [ebp - 0x24]
push 0x1e
push str.semaphore_win.cc
push 0x63b05f
push eax
call fcn.0050b300
add esp, 0x10
lea ebx, [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.005bae80
add esp, 8
mov ecx, ebx
push str.CreateSemaphore
call fcn.005d7cb0
mov ecx, ebx
call fcn.00590430
jmp 0x454201
lea eax, [ebp - 0x24]
push 0x22
push str.semaphore_win.cc
push str.Semaphore
push eax
call fcn.0050b300
add esp, 0x10
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.005bae80
add esp, 8
mov ecx, edi
call fcn.00590430
jmp 0x454229
Function at 0x456e40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x644040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
je 0x456e70
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565ea5
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea eax, [ebp - 0x14]
mov dword [eax], 0x424570
push 0
push eax
push 0x424550
push 0x657bc4
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x456f6b
cmp dword [0x657bc8], 0
jne 0x456e5c
push dword [0x657bcc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x456e5c
mov esi, eax
mov eax, 0x657bd0
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x657bd4]
mov ebx, dword [0x657bd8]
mov eax, dword [0x657bdc]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x657be0]
mov dword [ebp - 0x20], eax
mov eax, dword [0x657be4]
mov dword [ebp - 0x24], eax
mov eax, 0x657bd0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x456f04
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov ecx, edi
call dword [0x63e1bc]
push dword [ebp - 0x18]
call edi
add esp, 4
test ebx, ebx
je 0x456f19
mov edi, dword [esi + 4]
mov ecx, ebx
call dword [0x63e1bc]
push edi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x456f2f
mov edi, dword [esi + 8]
call dword [0x63e1bc]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov ebx, dword [ebp - 0x24]
je 0x456f48
mov edi, dword [esi + 0xc]
call dword [0x63e1bc]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x456f5d
mov edi, dword [esi + 0x10]
mov ecx, ebx
call dword [0x63e1bc]
push edi
call ebx
add esp, 4
push esi
call fcn.00554e50
add esp, 4
jmp 0x456e5c
call fcn.005773ec
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ecx], 0x620684
cmp byte [ecx + 0x13], 0
js 0x456f9b
test edi, edi
je 0x456f93
push esi
call fcn.00562bc0
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebp
ret 4
push dword [esi + 8]
call fcn.00562bc0
add esp, 4
jmp 0x456f86
Function at 0x4585b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x649648]
mov ecx, dword [0x64784c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4585e1
movzx eax, word [0x649624]
cmp eax, 9
jne 0x45862c
xor eax, eax
inc eax
pop ebp
ret
push 0x649648
call fcn.00562c08
add esp, 4
cmp dword [0x649648], 0xffffffff
jne 0x4585d0
xorps xmm0, xmm0
movups xmmword [0x649634], xmm0
movups xmmword [0x649624], xmm0
mov dword [0x649644], 0
push 0x649624
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x649648
call fcn.00562c57
add esp, 4
jmp 0x4585d0
test eax, eax
je 0x4585df
cmp eax, 6
jne 0x45863c
mov eax, 2
jmp 0x4585df
cmp eax, 0xc
jne 0x458648
mov eax, 3
jmp 0x4585df
mov eax, 4
jmp 0x4585df

Function at 0x458770
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 1
je 0x4587c3
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4587e9
cmp byte [ebp + 0xc], 0
jne 0x4587cb
mov ecx, esi
mov edx, edi
call fcn.0043a1d0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565ea5
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x458790
cmp byte [esi + 4], 1
je 0x4587d5
mov eax, dword [esi]
jmp 0x4587db
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4587a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 4], 1
je 0x4587f9
mov eax, dword [esi]
jmp 0x4587ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x458813
xor ebx, ebx
jmp 0x4587ad
mov dword [ebp - 0x14], 0xffffffff
cmp byte [esi + 4], 1
je 0x458824
mov eax, dword [esi]
jmp 0x45882a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4587a2
mov edi, dword [ebp - 0x14]
jmp 0x4587a2
Function at 0x458bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov ebx, esp
push 0x97
push str.file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.0050b300
add esp, 0x10
xor eax, eax
mov ecx, edi
push eax
push eax
call fcn.00522210
mov dword [esp + 0x4c], 0xa
mov al, byte [0x649456]
test al, al
jne 0x458ca2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
js 0x458c9d
mov eax, dword [ebp + 8]
mov dword [esp], 0xffffffff
push 0
push ebx
push ecx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [esp]
lea ecx, [esp + 0x10]
call fcn.00540b60
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00565ea5
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x458c7d
movzx ecx, al
lea eax, [esp + 0x54]
mov dword [eax], ebx
lea edi, [esp + 0x50]
mov dword [edi], str.ScopedBlockingCall
lea edx, [esp + 0x4c]
push eax
push edi
call fcn.005b5b90
add esp, 8
jmp 0x458c55
Function at 0x458cd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x235
push str.file_util_win.cc
push str.PathHasAccess
push ebx
call fcn.0050b300
add esp, 0x10
xor eax, eax
mov ecx, edi
push eax
push eax
call fcn.00522210
mov dword [esp + 0x5c], 0xa
mov al, byte [0x649456]
test al, al
jne 0x458e41
cmp byte [esi + 0xb], 0
jns 0x458d43
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x458e37
test al, 0x10
mov ecx, 0x40000000
mov eax, 2
cmove eax, ecx
mov ecx, 0x80
mov edx, 0x2000000
cmove edx, ecx
push ebx
push edx
push 3
push ebx
push 7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x458da1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x458df7
call fcn.00501530
mov ebx, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
setne al
mov dword [esp + 0xc], eax
lea eax, [ebx + 1]
cmp eax, 2
jb 0x458dd7
call fcn.00501530
cmp dword [0x655038], 0
je 0x458dfb
mov esi, dword [0x655038]
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call dword [0x63e1bc]
mov ecx, esi
push ebx
call edi
lea ecx, [esp + 0x20]
call fcn.00540b60
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00565ea5
mov eax, dword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x458d9a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6318bd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x458e67
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x458e31
call dword [0x63e1bc]
call ecx
push 0
push eax
call fcn.004292e0
add esp, 8
jmp 0x458dc0
push 1
push 0
jmp 0x458e27
mov dword [esp + 0xc], 0
jmp 0x458dd7
movzx ecx, al
lea eax, [esp + 0x64]
mov dword [eax], ebx
lea edi, [esp + 0x60]
mov dword [edi], str.ScopedBlockingCall
lea edx, [esp + 0x5c]
push eax
push edi
call fcn.005b5b90
add esp, 8
jmp 0x458d3b
xor eax, eax
push eax
jmp 0x458e26
Function at 0x45c140
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov byte [esi], cl
mov byte [esi + 4], cl
cmp byte [eax + 4], 1
jne 0x45c1a6
test esi, esi
je 0x45c227
xor ecx, ecx
mov dword [esi], ecx
mov ebx, dword [eax]
mov dword [eax], ecx
lea edi, [ebx + 1]
cmp edi, 2
jb 0x45c178
call fcn.00501530
cmp dword [esi], ebx
je 0x45c1a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x45c1b2
cmp edi, 2
jb 0x45c199
mov dword [esi], ebx
call fcn.00501530
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 1
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00501530
mov eax, dword [esi]
cmp dword [0x655038], 0
mov dword [ebp - 0x18], eax
je 0x45c1eb
mov eax, dword [0x655038]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
call dword [0x63e1bc]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [ebp - 0x10]
mov dword [esi], 0
jmp 0x45c18d
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6318bd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45c22a
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x45c221
call dword [0x63e1bc]
call ecx
push 0
push eax
call fcn.004292e0
add esp, 8
jmp 0x45c1c5
push 1
push 0
jmp 0x45c217
int3
xor eax, eax
push eax
jmp 0x45c216

Function at 0x45e310
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
mov edx, esi
call fcn.0044bf00
mov eax, dword [esi]
test eax, eax
je 0x45e363
mov ebx, dword [eax + 0x28]
mov edi, dword [eax + 0x2c]
xor esi, esi
cmp ebx, edi
jne 0x45e36a
lea ecx, [ebp - 0x14]
call fcn.0044b6d0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565ea5
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, 3
jmp 0x45e345
cmp dword [ebx + 0x50], 2
jne 0x45e389
cmp byte [ebx + 0x1b], 0
js 0x45e37b
lea eax, [ebx + 0x10]
jmp 0x45e37e
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x45e38e
add ebx, 0x58
jmp 0x45e341
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jae 0x45e3b4
push ebx
mov dword [ebp - 0x18], edx
push edx
call fcn.005d4050
add esp, 8
mov ecx, dword [ebp - 0x18]
add ecx, 0x50
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x45e389
mov ecx, dword [ebp + 8]
push ebx
call fcn.005d3f40
mov ecx, eax
jmp 0x45e3ac

Function at 0x4e9c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.004e9c17

Function at 0x4ecf00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.004ecf17