joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b10
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46b560
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4854a0]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
push edi
mov eax, dword [0x4854a0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
push 4
mov esi, ecx
xor ebx, ebx
mov edi, 0xf
push str..bak
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00403a90
mov dword [esp + 0x70], ebx
mov eax, dword [esi + 0x28]
add eax, 0xfffffffc
lea edx, [esi + 0x14]
push eax
xor ecx, ecx
lea esi, [esp + 0x30]
call fcn.00402520
lea ecx, [esp + 0x10]
push ecx
push eax
lea esi, [esp + 0x50]
mov byte [esp + 0x78], 1
call fcn.004053a0
mov esi, 0x10
add esp, 8
cmp dword [esp + 0x44], esi
jb 0x407bae
mov edx, dword [esp + 0x30]
push edx
call fcn.0041bf87
add esp, 4
cmp dword [esp + 0x28], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
jb 0x407bcd
mov eax, dword [esp + 0x14]
push eax
call fcn.0041bf87
add esp, 4
cmp dword [esp + 0x60], esi
mov eax, dword [esp + 0x4c]
jae 0x407bdb
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x60], esi
mov edi, eax
jb 0x407bf7
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0041bf87
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00436f5b
add esp, 0x64
ret
Function at 0x408410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46bb36
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4854a0]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x3c], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x4091d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46babe
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4854a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x28], 0xf
mov dword [esi + 0x24], ebx
mov byte [esi + 0x14], bl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
push 0x18
mov byte [esp + 0x20], 2
call fcn.0041bf5c
add esp, 4
cmp eax, ebx
je 0x409248
mov ecx, 1
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], 2
mov byte [eax + 0x14], cl
mov edi, eax
jmp 0x40924a
xor edi, edi
xor ecx, ecx
mov eax, 0x100
mov dword [esi + 0x3c], edi
mov dword [edi + 0xc], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041bf8c
add esp, 4
mov dword [edi + 0x10], eax
xor eax, eax
mov ecx, dword [edi + 0x10]
mov dword [eax + ecx], ebx
add eax, 4
cmp eax, 0x400
jl 0x409273
mov byte [esi + 0x40], bl
mov dword [esi + 0x140], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x409e60
Capabilities:
Encode data using xor

Disassembly:
test esi, esi
je 0x409eaf
mov edx, dword [ecx + 0x140]
test edx, edx
jbe 0x409eac
xor eax, eax
test edx, edx
jbe 0x409e89
mov dl, byte [ecx + eax + 0x40]
xor dl, 0xb7
mov byte [eax + esi], dl
add eax, 1
cmp eax, dword [ecx + 0x140]
jb 0x409e74
mov edx, dword [ecx + 0x140]
mov dl, byte [edx + esi - 1]
mov al, byte [esi]
mov byte [esi], dl
mov edx, dword [ecx + 0x140]
mov byte [edx + esi - 1], al
mov eax, dword [ecx + 0x140]
mov byte [esi + eax], 0
ret
mov byte [esi], 0
ret

Function at 0x409ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push str.InstallDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409f2f
mov eax, dword [esp + 8]
cmp eax, 1
je 0x409f0d
cmp eax, 2
jne 0x409f1f
test esi, esi
mov eax, dword [esp]
je 0x409f2b
test eax, eax
je 0x409f28
cmp byte [eax + esi - 1], 0
je 0x409f2b
mov eax, 0xd
pop ecx
ret 4
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4
Function at 0x40f0d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x46c0a2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4854a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x477b60
mov dword [edi + 0x54], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.0040f570
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.00410b80
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x48ad34]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x24], 2
call fcn.0040fb70
test eax, eax
jne 0x40f1d0
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x40f1c0
or eax, 4
and eax, 0x17
test dword [ecx + 0xc], eax
mov dword [ecx + 8], eax
je 0x40f1d0
call fcn.00401df0
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8

Function at 0x40f320
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
mov ecx, dword [esi + 4]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
jb 0x40f361
ja 0x40f356
cmp ecx, dword [esp]
jbe 0x40f361
mov eax, 2
add esp, 0xc
ret 8
mov edx, dword [esi + 4]
push 0
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor eax, eax
add esp, 0xc
ret 8
Function at 0x410b80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x46ac8b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4854a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00450f3c
push 4
mov dword [esp + 0x20], 0
call fcn.0041bf5c
mov edi, eax
add esp, 4
test edi, edi
je 0x410c00
call fcn.00450d0a
mov dword [edi], eax
call fcn.00450b3e
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00450e46
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x410bf5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00450e67
jmp 0x410c02
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x412a10
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, eax
or ebp, 0xffffffff
cmp dword [edi + 0x30], ebp
je 0x412bdb
cmp dword [edi + 0x34], 0x40000000
jne 0x412ac6
call fcn.00413d80
test eax, eax
je 0x412bdb
mov eax, dword [edi]
mov ebx, dword [0x487dc0]
mov byte [eax + 0x14], 0xed
mov eax, dword [edi]
lea esi, [eax + 2]
mov ecx, ebx
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x412a72
test dl, dl
je 0x412a6e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x412a72
add eax, 2
add ecx, 2
test dl, dl
jne 0x412a52
xor eax, eax
jmp 0x412a76
sbb eax, eax
sbb eax, ebp
test eax, eax
je 0x412a86
push 8
push ebx
push esi
call fcn.00438070
add esp, 0xc
mov ecx, dword [edi + 0x30]
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push 0
lea edx, [esp + 0x14]
push edx
push 0x18
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412bdb
cmp dword [esp + 0x10], 0x18
jne 0x412bdb
mov ecx, edi
call fcn.00407b10
mov edx, dword [edi + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
push eax
mov dword [edi + 0x30], ebp
mov dword [edi + 0x38], 0
call fcn.0041bf87
lea ebx, [edi + 4]
mov dword [edi], 0
mov ebp, dword [ebx + 4]
add esp, 4
cmp ebp, dword [ebx + 8]
jbe 0x412afb
call fcn.004382be
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
mov dword [esp + 0x10], esi
jbe 0x412b10
call fcn.004382be
lea esp, [esp]
cmp ebx, ebx
je 0x412b19
call fcn.004382be
cmp ebp, esi
je 0x412b6e
cmp ebp, dword [ebx + 8]
jb 0x412b27
call fcn.004382be
mov esi, dword [ebp]
test esi, esi
je 0x412b5b
cmp dword [esi + 0x18], 0x10
jb 0x412b40
mov ecx, dword [esi + 4]
push ecx
call fcn.0041bf87
add esp, 4
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
push esi
mov byte [esi + 4], 0
call fcn.0041bf87
add esp, 4
cmp ebp, dword [ebx + 8]
jb 0x412b65
call fcn.004382be
mov esi, dword [esp + 0x10]
add ebp, 4
jmp 0x412b10
mov ebp, dword [ebx + 8]
cmp dword [ebx + 4], ebp
jbe 0x412b7b
call fcn.004382be
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x412b88
call fcn.004382be
cmp esi, ebp
je 0x412bb9
mov eax, dword [ebx + 8]
sub eax, ebp
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea edx, [ecx + esi]
mov dword [esp + 0x10], edx
jle 0x412bb2
push ecx
push ebp
push ecx
push esi
call fcn.00436f6a
add esp, 0x10
mov eax, dword [esp + 0x10]
mov dword [ebx + 8], eax
mov ebx, dword [edi + 0x140]
test ebx, ebx
je 0x412bd1
call fcn.0040e3a0
push ebx
call fcn.0041bf87
add esp, 4
mov dword [edi + 0x140], 0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x412e10
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
or ebx, 0xffffffff
cmp dword [ebp + 0x30], ebx
push esi
push edi
je 0x412fdd
cmp dword [ebp + 0x34], 0x40000000
jne 0x412ecb
push ebp
call fcn.00414410
test eax, eax
je 0x412fdd
mov eax, dword [ebp]
mov edi, dword [0x487dc0]
mov byte [eax + 0x14], 0xed
mov eax, dword [ebp]
lea esi, [eax + 2]
mov ecx, edi
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x412e76
test dl, dl
je 0x412e72
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x412e76
add eax, 2
add ecx, 2
test dl, dl
jne 0x412e56
xor eax, eax
jmp 0x412e7a
sbb eax, eax
sbb eax, ebx
test eax, eax
je 0x412e8a
push 8
push edi
push esi
call fcn.00438070
add esp, 0xc
mov ecx, dword [ebp + 0x30]
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp]
mov ecx, dword [ebp + 0x30]
push 0
lea edx, [esp + 0x18]
push edx
push 0x18
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412fdd
cmp dword [esp + 0x14], 0x18
jne 0x412fdd
mov ecx, ebp
call fcn.00407b10
mov edx, dword [ebp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp]
push eax
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x38], 0
call fcn.0041bf87
lea edi, [ebp + 4]
mov dword [ebp], 0
mov ebx, dword [edi + 4]
add esp, 4
cmp ebx, dword [edi + 8]
jbe 0x412f02
call fcn.004382be
mov esi, dword [edi + 8]
cmp dword [edi + 4], esi
mov dword [esp + 0x14], esi
jbe 0x412f13
call fcn.004382be
cmp edi, edi
je 0x412f1c
call fcn.004382be
cmp ebx, esi
je 0x412f70
cmp ebx, dword [edi + 8]
jb 0x412f2a
call fcn.004382be
mov esi, dword [ebx]
test esi, esi
je 0x412f5d
cmp dword [esi + 0x18], 0x10
jb 0x412f42
mov ecx, dword [esi + 4]
push ecx
call fcn.0041bf87
add esp, 4
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
push esi
mov byte [esi + 4], 0
call fcn.0041bf87
add esp, 4
cmp ebx, dword [edi + 8]
jb 0x412f67
call fcn.004382be
mov esi, dword [esp + 0x14]
add ebx, 4
jmp 0x412f13
mov ebx, dword [edi + 8]
cmp dword [edi + 4], ebx
jbe 0x412f7d
call fcn.004382be
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x412f8a
call fcn.004382be
cmp esi, ebx
je 0x412fbb
mov eax, dword [edi + 8]
sub eax, ebx
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea edx, [ecx + esi]
mov dword [esp + 0x14], edx
jle 0x412fb4
push ecx
push ebx
push ecx
push esi
call fcn.00436f6a
add esp, 0x10
mov eax, dword [esp + 0x14]
mov dword [edi + 8], eax
mov ebx, dword [ebp + 0x140]
test ebx, ebx
je 0x412fd3
call fcn.0040e3a0
push ebx
call fcn.0041bf87
add esp, 4
mov dword [ebp + 0x140], 0
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x413330
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x18
push edi
push 1
lea edx, [esp + 0x14]
push edx
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edx, dword [esi + 4]
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [esp + 8]
sub ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
sbb eax, dword [esp + 0x14]
xor edx, edx
cmp eax, edx
ja 0x413397
jb 0x413386
cmp ecx, ebx
jae 0x413397
mov eax, dword [esp + 0x24]
mov dword [eax], 2
pop edi
add esp, 0x18
ret 8
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
push 0
lea edi, [esi + 8]
push edi
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4133cb
mov ecx, dword [esp + 0x24]
mov eax, ebx
sub eax, dword [edi]
mov dword [edi], eax
neg eax
sbb eax, eax
and eax, 3
mov dword [ecx], eax
pop edi
add esp, 0x18
ret 8
mov edx, dword [esp + 0x24]
mov dword [edx], 5
pop edi
add esp, 0x18
ret 8

Function at 0x4133e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x18]
push edi
push 1
lea edx, [esp + 0xc]
push edx
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 4]
push 0
lea edi, [esi + 8]
push edi
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413432
mov eax, ebx
sub eax, dword [edi]
mov dword [edi], eax
neg eax
sbb eax, eax
and eax, 4
mov dword [ebp], eax
pop edi
pop ebp
add esp, 0xc
ret 8
pop edi
mov dword [ebp], 6
pop ebp
add esp, 0xc
ret 8
Function at 0x41f212
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41f258
call fcn.004215d5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41f258
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41f29b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41f284
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41f284
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41f298
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x426bfb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x426c3e
call fcn.004215d5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x426c3e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x426c59
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004267b2
test ebx, ebx
mov esi, eax
je 0x426c57
test edi, edi
je 0x426c57
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x428fc0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x428fee
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42900c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00428f2a
jmp 0x42900c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42900c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00428f2a
test edi, edi
mov eax, edi
jne 0x428ff6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x489c40]
test ecx, ecx
je 0x4290cf
jmp 0x428fbf
ret 8

Function at 0x436f5b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4854a0]
jne 0x436f65
repz ret
jmp fcn.0043d18a
Function at 0x448f23
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00441356
xor ebx, ebx
cmp dword [0x48a764], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x448ff8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x448f63
xor eax, eax
jmp 0x4490bc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4745a0
push edi
call esi
cmp eax, ebx
je 0x448f5c
push eax
call fcn.004412f3
mov dword [esp], 0x474590
push edi
mov dword [0x48a764], eax
call esi
push eax
call fcn.004412f3
mov dword [esp], 0x47457c
push edi
mov dword [0x48a768], eax
call esi
push eax
call fcn.004412f3
mov dword [0x48a76c], eax
lea eax, [ebp - 8]
push eax
call fcn.0043b0d5
test eax, eax
pop ecx
pop ecx
je 0x448fc6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043819e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x448ff8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004412f3
cmp eax, ebx
pop ecx
mov dword [0x48a774], eax
je 0x448ff8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004412f3
pop ecx
mov dword [0x48a770], eax
mov eax, dword [0x48a770]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x449071
cmp dword [0x48a774], esi
je 0x449071
push eax
call fcn.0044135f
pop ecx
call eax
cmp eax, ebx
je 0x44903e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x48a774]
call fcn.0044135f
pop ecx
call eax
test eax, eax
je 0x44903e
test byte [ebp - 0x18], 1
jne 0x449071
lea eax, [ebp - 0xc]
push eax
call fcn.0043b10c
test eax, eax
pop ecx
je 0x449059
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043819e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x449068
or dword [ebp + 0x10], 0x200000
jmp 0x4490a2
or dword [ebp + 0x10], 0x40000
jmp 0x4490a2
mov eax, dword [0x48a768]
cmp eax, esi
je 0x4490a2
push eax
call fcn.0044135f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4490a2
mov eax, dword [0x48a76c]
cmp eax, esi
je 0x4490a2
push dword [ebp - 4]
push eax
call fcn.0044135f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x48a764]
call fcn.0044135f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x453310
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4697c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4854a0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x453347
mov eax, dword [esi]
jmp 0x453349
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45337f
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
push eax
push edi
push esi
call fcn.004531f0
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
test ebx, 0x400
je 0x45347e
cmp dword [edi + 0x18], 8
jb 0x453399
mov ecx, dword [esi]
mov dword [esp + 0x40], ecx
jmp 0x45339d
mov dword [esp + 0x40], esi
push 0
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x18]
call fcn.00452b60
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 0
jae 0x4533c4
lea eax, [esp + 0x14]
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x40], esi
cmp dword [esp + 0x28], 8
mov byte [esp + 0x34], 2
jb 0x4533f9
mov eax, dword [esp + 0x14]
push eax
call fcn.0041bf87
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], 0
jne 0x45343d
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
push ecx
push edi
push esi
call fcn.004531f0
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
push edi
call fcn.004518f0
add esp, 4
test al, al
mov dword [esp + 0x34], 0xffffffff
push esi
jne 0x453478
mov edi, dword [esp + 0x40]
mov dword [edi], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x44]
test esi, esi
je 0x453494
mov dword [esi], 0
call fcn.00455b50
mov dword [esi + 4], eax
test bl, 0x10
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 3
jne 0x4534ad
mov dword [esp + 0x40], 2
mov edx, dword [eax]
mov eax, dword [esp + 0x3c]
mov dword [eax], edx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret