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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccf58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], 0
test edx, edx
jne 0x4219d7
push 0x4df3d0
call fcn.00406580
jmp 0x421b0a
push edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.00406580
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00407480
mov ecx, eax
call fcn.00406a50
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406bd0
push 0x4df41c
push dword [eax]
call fcn.0048ccf3
mov edx, dword [ebp - 0x18]
add esp, 8
test eax, eax
setne bl
add edx, 0xfffffff0
or edi, 0xffffffff
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x421a3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x421a50
push 1
push 0x4df41c
lea ecx, [ebp - 0x14]
call fcn.00407950
push 8
push str.DeliScan
lea ecx, [ebp - 0x14]
call fcn.00407950
lea ecx, [ebp - 0x14]
call fcn.00407480
mov ecx, eax
call fcn.00406a50
cmp dword [ebp + 0xc], 0
je 0x421a89
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x421a89
mov ecx, dword [ebp - 0x14]
call fcn.004217f0
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406bd0
push 0x4df41c
push dword [eax]
call fcn.0048ccf3
mov edx, dword [ebp - 0x18]
add esp, 8
test eax, eax
mov ecx, edi
setne bl
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x421ac6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x421ad9
push 1
push 0x4df41c
lea ecx, [ebp - 0x14]
call fcn.00407950
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00407b40
mov dword [ebp - 4], 0xffffffff
add eax, 0x10
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov dword [esi], eax
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x421b0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
Function at 0x421b30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccf8b
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x800
lea eax, [ebp - 0x813]
mov dword [ebp - 0x81c], 0
push 0
push eax
mov byte [ebp - 0x814], 0
call fcn.0048f5e0
add esp, 0xc
mov dword [ebp - 0x818], 0
lea ecx, [ebp - 0x818]
push 0x4df3d0
call fcn.00406580
push 0
push 5
lea eax, [ebp - 0x814]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x421bfb
push dword [ebp + 0xc]
lea edx, [ebp - 0x814]
push ecx
mov ecx, esi
call fcn.00421990
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edi, dword [ebp - 0x818]
or ecx, 0xffffffff
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x421c35
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x421c35
mov ecx, dword [ebp - 0x818]
lea ecx, [ecx - 0x10]
call fcn.00407b40
mov dword [ebp - 4], 0xffffffff
add eax, 0x10
mov edx, dword [ebp - 0x818]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [esi], eax
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x421c35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret

Function at 0x422d40
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cd0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x50d4cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00407670
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.00422c70
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x422db1
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.0048d361
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x422dda
push dword [esp + 0xc]
call fcn.0048b08b
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4239c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd1ea
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.004848e7
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x423a66
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.0048d361
push 0x50a200
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0048fd4b
push edi
push esi
call fcn.004847ba
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 4
Function at 0x4253a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd3a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x50d4cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ecx + 0x708]
push ecx
push 0
push ecx
mov edx, dword [edx + 0x20]
lea ecx, [ebp - 0x24]
call fcn.00476ed0
add esp, 0xc
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x4253ef
mov edx, dword [edx]
test edx, edx
jne 0x4253f7
xor ecx, ecx
jmp 0x425409
mov ecx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x425400
sub ecx, esi
mov esi, dword [ebp + 8]
push ecx
push edx
mov ecx, esi
call fcn.00407a20
cmp dword [ebp - 0x10], 0x10
jb 0x425426
push dword [ebp - 0x24]
call fcn.0048b08b
add esp, 4
push 0x4df3d0
push dword [esi]
call fcn.0048ccf3
add esp, 8
test eax, eax
jne 0x42544b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
je 0x425470
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x425bd0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [0x518dd0]
mov esi, dword [ebp + 8]
add ecx, 0xb4
push 0
push str.scan_open
mov eax, dword [ecx]
call dword [eax + 4]
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
call fcn.00406580
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call esi
test eax, eax
jne 0x425c50
lea eax, [ebx + 0x724]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407500
or edi, 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x425cde
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x425cde
call fcn.00401910
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x425c82
push 0x80004005
call fcn.00401330
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push str._select___s
push eax
call fcn.00408450
mov esi, dword [ebp - 0x18]
add esp, 0xc
push 1
push 0
push esi
push str.explorer.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425cde
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x708]
cmp byte [eax + 0x3c], 0
je 0x425cf2
mov ecx, dword [ebp - 0x14]
call fcn.00473ff0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x425d13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 4

Function at 0x425d60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00425e10
Function at 0x4265f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x501eb8
push 0x4978f0
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x50d4cc]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x41c], 0
push 0x3ff
push 0
lea eax, [ebp - 0x41b]
push eax
call fcn.0048f5e0
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0x3ff
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_wvnsprintfA]
push 0x4e1774
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x4266a6
mov dword [ebp - 4], 0xfffffffe
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret

Function at 0x427c70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd5d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x518d78]
mov byte [eax + 0x814], 1
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x5f0]
call fcn.00428050
test eax, eax
js 0x427d19
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x427cfa
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x4e17e8
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x14]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
test ecx, ecx
je 0x427d0b
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x427d19
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0x90a
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x427d49
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4289c0
Capabilities:
Check if file exists
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd706
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x138]
push eax
call fcn.00428780
mov dword [ebp - 4], 0
lea eax, [ebp - 0x138]
cmp dword [ebp - 0x124], 0x10
push 0
cmovae eax, dword [ebp - 0x138]
push 0x4df3d0
push eax
call fcn.004210d0
add esp, 0xc
test eax, eax
jne 0x428a35
cmp dword [ebp - 0x128], eax
setne al
test eax, eax
sete al
test al, al
je 0x428a5a
cmp dword [ebp - 0x124], 0x10
jb 0x428a53
push dword [ebp - 0x138]
call fcn.0048b08b
add esp, 4
xor al, al
jmp 0x428be1
push 0x103
lea eax, [ebp - 0x11b]
mov byte [ebp - 0x11c], 0
push 0
push eax
call fcn.0048f5e0
add esp, 0xc
lea eax, [ebp - 0x11c]
push 0x104
push eax
push str._ALLUSERSPROFILE_DeliDeliScn_NWDELISCN_ConfigMain.ini
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [eax - 1]
cmp ecx, 0x101
ja 0x428aad
inc eax
cmp eax, 0x104
jae 0x428b53
mov byte [ebp + eax - 0x11c], 0
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x428a3c
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0
push eax
push 0x104
push 0x518fc0
push 0x4df3d0
push str.IPAddress
push str.SelectedDevice
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor edx, edx
mov ecx, 0x518fc0
test eax, eax
mov eax, 0x4df3d0
cmove ecx, edx
test ecx, ecx
cmovne eax, ecx
lea ecx, [ebp - 0x120]
push eax
call fcn.00406580
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.00407480
mov ecx, eax
call fcn.00406a50
cmp dword [ebp - 0x124], 0x10
lea ecx, [ebp - 0x138]
cmovae ecx, dword [ebp - 0x138]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x428b58
push 0x80004005
call fcn.00401330
call fcn.0048d845
push ecx
push dword [ebp - 0x120]
call fcn.0048ccf3
add esp, 8
test eax, eax
sete al
test al, al
je 0x428b75
mov byte [ebx], 0
jmp 0x428ba4
cmp dword [ebp - 0x124], 0x10
lea ecx, [ebp - 0x11c]
push ecx
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
push eax
push str.IPAddress
push str.SelectedDevice
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebx], 1
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x120]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x428bc8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x124], 0x10
jb 0x428bdf
push dword [ebp - 0x138]
call fcn.0048b08b
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 4
Function at 0x42b820
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cda1e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x50d4cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [edi], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.0042bbb0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [edi + 0x20], 0
lea ecx, [edi + 0x24]
push eax
push 0
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.0042bbb0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
je 0x42b948
test dl, 0x10
jne 0x42b948
mov eax, 1
jmp 0x42b94a
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.0042b9e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x42ec00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x42ec31
lea esp, [esp]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x42ec20
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x431610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
mov dword [edi], 0
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43168b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x43165b
cmp eax, 2
jne 0x43166d
mov eax, dword [ebp - 0xc]
test esi, esi
je 0x431687
test eax, eax
je 0x431684
cmp byte [esi + eax - 1], 0
je 0x431687
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048b090
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4346f0
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
mov esi, ecx
test ebx, ebx
jne 0x43471f
pop esi
mov eax, 0x80004003
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x434731
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x434776
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4347e5
pop edi
movzx eax, ax
pop esi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push ebx
call dword [sym.imp.ole32.dll_GetHGlobalFromStream]
mov esi, eax
test esi, esi
js 0x4347dc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push dword [ebp - 0xc]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4347d7
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4347dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4347dc
movzx esi, si
or esi, 0x80070000
jmp 0x4347dc
mov esi, 0x8007000e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b090
mov esp, ebp
pop ebp
ret
Function at 0x436fc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ce510
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x50d4cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ebx, [ecx + 0x28]
mov dword [esp + 0x18], eax
mov ecx, ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], ebx
push eax
call fcn.00411100
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x519b84
call edi
mov eax, dword [ebx + 0x44]
mov ebx, dword [ebx + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x519b84
mov dword [esp + 0x28], eax
call esi
push 0x519b84
call edi
mov eax, dword [esp + 0x14]
push 0x519b84
mov edi, dword [eax + 0x44]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x2c], eax
call esi
mov dword [esp + 0x14], 0
lea eax, [esp + 0x24]
mov dword [esp + 0x38], 0
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040f7f0
mov dword [esp + 0x38], 0xffffffff
sub esp, 0x10
mov esi, dword [esp + 0x24]
movd xmm0, ebx
mov ebx, dword [esp + 0x28]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xc], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [esp], xmm0
push dword [esi + 4]
push dword [ebx]
call dword [sym.imp.gdiplus.dll_GdipFillRectangle]
test eax, eax
je 0x4370c2
mov dword [ebx + 4], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
call fcn.0040bb50
mulsd xmm0, qword [0x4e8b10]
mov dword [esp + 0x14], 0
cvttsd2si eax, xmm0
imul ecx, eax, 0x46
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
lea eax, [esp + 0x18]
mov dword [esp + 0x38], 1
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 0xff000000
call fcn.0040f7f0
sub esp, 0x10
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x48], 0xffffffff
mov esi, dword [esp + 0x24]
movss dword [esp + 0xc], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [esp], xmm0
push dword [esi + 4]
push dword [ebx]
call dword [sym.imp.gdiplus.dll_GdipFillRectangle]
test eax, eax
je 0x437167
mov dword [ebx + 4], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8