joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a90
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x420f58]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x405ad2
call edi
mov esi, eax
test esi, esi
je 0x405abc
mov eax, 1
jmp 0x405acd
call ebp
mov ebx, eax
test ebx, ebx
je 0x405bdf
mov eax, 2
mov dword [0x420f58], eax
cmp eax, 1
jne 0x405b72
test esi, esi
jne 0x405aeb
call edi
mov esi, eax
test esi, esi
je 0x405bdf
cmp word [esi], 0
mov eax, esi
je 0x405b05
add eax, 2
cmp word [eax], 0
jne 0x405af3
add eax, 2
cmp word [eax], 0
jne 0x405af3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x405b64
push edi
call fcn.00402fe0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405b64
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x405b56
push ebx
call fcn.00402e60
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x405bdf
test ebx, ebx
jne 0x405b83
call ebp
mov ebx, eax
test ebx, ebx
je 0x405bdf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x405b9b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405b8b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405b8b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402fe0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x405bbd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x405f60
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x41bcd8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x405f84
add eax, 8
inc ebp
cmp eax, 0x41bd68
jb 0x405f75
cmp ecx, dword [ebp*8 + 0x41bcd8]
jne 0x40612b
mov eax, dword [0x420c3c]
cmp eax, 1
je 0x4060ed
test eax, eax
jne 0x405fb0
cmp dword [0x41b824], 1
je 0x4060ed
cmp ecx, 0xfc
je 0x40612b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405feb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x406034
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x41841c
add ebx, ecx
push ebx
call fcn.00407220
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4183fc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x41bcdc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00407400
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x422120]
test eax, eax
je 0x4060fe
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x406108
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x41bcdc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x408f40
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x4210e0]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x408f88
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x408f68
mov eax, 2
jmp 0x408f83
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x409068
mov eax, 1
mov dword [0x4210e0], eax
cmp eax, 2
jne 0x408fa8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x40907a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x408fc3
mov ecx, dword [0x420f90]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x408fe2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00402fe0
mov esi, eax
add esp, 4
test esi, esi
jne 0x408ff9
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40905f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x409040
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40905f
push esi
call fcn.00402e60
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x40906f
push esi
call fcn.00402e60
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00402e60
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40b39c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4156ec
call fcn.00402c80
push ecx
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
call fcn.00414514
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x40b3ea
call fcn.00414514
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40b3f8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40b406
or eax, 0xffffffff
jmp 0x40b4f2
mov ecx, esi
call fcn.0040b327
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.0040c533
push edi
call fcn.0040bfd6
and dword [ebp - 0x1c], 0
test edi, edi
je 0x40b440
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40b440
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 1
and dword [ebp - 4], 0
push esi
call fcn.0040c4e7
push edi
call fcn.0040bfd6
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0040b0be
xor ebx, ebx
cmp eax, ebx
je 0x40b4b9
test byte [esi + 0x24], 0x10
je 0x40b484
push 4
mov ecx, esi
pop ebx
call fcn.0040e931
test ah, 1
je 0x40b47a
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0040e564
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x40b4b9
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0040e9c0
jmp 0x40b4b9
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x40b4cb
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x40b4e1
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x40b4e1
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0040b35e
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40e45a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x40e49c
call fcn.00414514
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40e49c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40e493
xor eax, eax
jmp 0x40e4a4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040e4aa
pop edi
pop esi
pop ebx
ret 4

Function at 0x41097b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x410998
cmp dword [0x420c04], edi
jne 0x410aea
cmp word [0x420c10], di
mov dword [0x420c04], 1
jne 0x4109ca
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x420c0c], eax
mov word [0x420c10], cx
cmp word [0x420c10], 2
jne 0x410a06
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x410a06
mov ecx, dword [0x420c0c]
cmp ecx, edi
je 0x410a06
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x420c08], eax
jmp 0x410aef
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00402ed0
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x420c08], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x410aea
cmp dword [ebp - 0x8c], 1
je 0x410a5a
cmp dword [ebp - 0x8c], 2
jne 0x410aea
cmp dword [ebp - 0x98], 4
jae 0x410ac9
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410aea
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x410abe
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.004038c0
add esp, 0xc
mov dword [0x420c08], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410aea
cmp dword [ebp - 0x8c], 2
jne 0x410aea
cmp dword [ebp - 0x98], 4
jb 0x410aea
push edi
push 0x420c08
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x420c08]
pop edi
leave
ret
Function at 0x4118fa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x41193e
push dword [ebp + 8]
call fcn.00414caf
mov esi, eax
test esi, esi
je 0x411969
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x411969
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x416c58
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc

Function at 0x414329
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41583e
call fcn.00402c80
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00409c84
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.00409c84
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.00409b01
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x40aea3
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x41490b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x41493b
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x4149c5
cmp dword [esp + 0x14], ebx
je 0x4149c5
cmp esi, ebx
jne 0x414961
push 0x10
call fcn.00414728
cmp eax, ebx
je 0x414950
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x414952
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.004146ca
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x414978
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x414988
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x414994
call fcn.00409acb
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push ebx
lea eax, [ecx + eax*4]
push eax
call fcn.00402ed0
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8
Function at 0x4149fb
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x414a4e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x414a31
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x414a31
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x414a48
and dword [ebp - 4], 0
jmp 0x414a48
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x414a41
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x414a12
cmp dword [ebp - 4], 0
je 0x414a7c
push esi
lea ecx, [ebx + 0x14]
call fcn.004146dd
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x414a72
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x422828
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x42284f
call fcn.0040caf5
mov dword [eax], esi
call fcn.0040cae2
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040beea
mov eax, esi
jmp 0x4228a4
test dword [ebp + 0xc], 0xfffffff9
jne 0x422835
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42287c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040cb08
pop ecx
call fcn.0040cae2
mov eax, dword [eax]
jmp 0x4228a4
test al, 0x10
jne 0x4228a2
test al, 1
je 0x4228a2
test byte [ebp + 0xc], 2
je 0x4228a2
call fcn.0040caf5
mov dword [eax], 5
call fcn.0040cae2
mov dword [eax], 0xd
jmp 0x422873
xor eax, eax
pop esi
pop ebp
ret

Function at 0x435497
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [eax + 6]
mov al, byte [eax + 4]
xor byte [edx], al
inc edx
dec ecx
test ecx, ecx
jne 0x4354a3
ret 4

Function at 0x4354ae
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, dword fs:[0x30]
mov dword [edi], eax
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
push 0
lea eax, [edi + 4]
mov dword [eax], 0x3376500f
push eax
push esi
call fcn.004355ec
test eax, eax
je 0x4355e8
push 0
lea eax, [edi + 0xc]
mov dword [eax], 0x2dfc830f
push eax
push esi
call fcn.004355ec
test eax, eax
je 0x4355e8
push 0
lea eax, [edi + 0x14]
mov dword [eax], 0x552e48c2
push eax
push esi
call fcn.004355ec
test eax, eax
je 0x4355e8
push 0
lea eax, [edi + 0x1c]
mov dword [eax], 0xb3f819f8
push eax
push esi
call fcn.004355ec
test eax, eax
je 0x4355e8
push 0
lea eax, [edi + 0x24]
mov dword [eax], 0x7c76ecf5
push eax
push esi
call fcn.004355ec
test eax, eax
je 0x4355e8
push 1
lea eax, [edi + 0x2c]
mov dword [eax], 0x116893e9
push eax
push esi
call fcn.004355ec
test eax, eax
je 0x4355e8
push 1
lea eax, [edi + 0x34]
mov dword [eax], 0x529977e2
push eax
push esi
call fcn.004355ec
test eax, eax
je 0x4355e8
push 1
lea eax, [edi + 0x3c]
mov dword [eax], 0x7b62ef3
push eax
push esi
call fcn.004355ec
test eax, eax
je 0x4355e8
push 1
lea eax, [edi + 0x44]
mov dword [eax], 0xa9c5b599
push eax
push esi
call fcn.004355ec
test eax, eax
je 0x4355e8
push 1
lea eax, [edi + 0x4c]
mov dword [eax], 0x6b372c05
push eax
push esi
call fcn.004355ec
test eax, eax
je 0x4355e8
push 1
lea eax, [edi + 0x54]
mov dword [eax], 0xa9e25a1d
push eax
push esi
call fcn.004355ec
test eax, eax
je 0x4355e8
push 1
lea eax, [edi + 0x5c]
mov dword [eax], 0xf67464e4
push eax
push esi
call fcn.004355ec
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4355e3
Function at 0x4355ec
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
mov eax, dword [edi + eax + 0x78]
add eax, edi
mov ecx, dword [eax + 0x18]
mov dword [ebp - 4], ecx
mov edx, dword [eax + 0x1c]
add edx, edi
mov dword [ebp - 8], edx
mov ecx, dword [eax + 0x20]
add ecx, edi
mov dword [ebp - 0xc], ecx
mov edx, dword [eax + 0x24]
add edx, edi
mov dword [ebp - 0x10], edx
xor esi, esi
test ebx, ebx
je 0x4356bc
mov eax, dword [ecx + esi*4]
add eax, edi
mov edx, 0x811c9dc5
movzx ecx, byte [eax]
test cl, cl
je 0x4356a8
lea eax, [eax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
jmp 0x435632
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx ecx, word [ecx + esi*2]
mov eax, dword [eax + ecx*4]
add eax, edi
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov ecx, eax
xor eax, eax
inc eax
cmp dword [ebp + 0x10], 1
jne 0x4356be
dec eax
xor edx, edx
cmp byte [ecx + edx], 0xf
jne 0x435676
cmp byte [ecx + edx + 1], 5
je 0x4356bc
cmp byte [ecx + edx], 0xc2
je 0x4356bc
cmp byte [ecx + edx], 0xc3
je 0x4356bc
cmp byte [ecx + edx], 0xb8
jne 0x4356a5
cmp byte [ecx + edx + 5], 0xba
jne 0x4356a5
mov esi, dword [ecx + edx + 1]
mov edi, dword [ecx + edx + 6]
mov dword [ebx + 5], edi
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], esi
xor eax, eax
inc eax
jmp 0x4356be
inc edx
jmp 0x435669
mov eax, dword [ebp + 0xc]
cmp edx, dword [eax]
je 0x435646
mov ecx, dword [ebp - 0xc]
inc esi
cmp esi, dword [ebp - 4]
jb 0x435628
xor eax, eax
pop edi
pop esi
add esp, 0x10
pop ebp
ret 0xc
Function at 0x4356d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
xor edx, edx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push dword [esi + 0x48]
call fcn.004356c7
push edx
push edx
push 0x60
push 1
push edx
push 0x80
push edx
lea eax, [ebp - 0x24]
push eax
push edi
push 0x80100080
lea eax, [ebp - 4]
push eax
call fcn.004356d1
add esp, 0x2c
test eax, eax
jne 0x435862
cmp dword [ebp - 0x20], 1
jne 0x435862
xor edx, edx
xorps xmm0, xmm0
mov dword [ebp - 0x2c], edx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
push dword [esi + 0x40]
call fcn.004356c7
push 5
push 0x18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call fcn.004356d1
add esp, 0x14
test eax, eax
jne 0x435862
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x435862
push dword [ebp - 0x14]
push 8
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
push eax
call dword [esi + 0x20]
mov dword [ebp - 0x2c], eax
push dword [esi + 0x58]
call fcn.004356c7
xor edx, edx
push edx
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push edx
push edx
push edx
push dword [ebp - 4]
call fcn.004356d1
add esp, 0x24
test eax, eax
jne 0x435862
push dword [esi + 0x50]
call fcn.004356c7
push dword [ebp - 4]
call fcn.004356d1
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x5a4d
je 0x43585e
movdqu xmm0, xmmword [ebx + 9]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
movdqu xmm1, xmmword [eax + ecx]
xorps xmm1, xmm0
movdqu xmmword [eax + ecx], xmm1
add ecx, 0x10
mov eax, edx
sub eax, ecx
cmp eax, 0x10
jge 0x4357d1
test eax, eax
je 0x435802
push edx
mov dl, byte [ebx + 9]
mov eax, dword [ebp - 0x2c]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, dword [esp]
jne 0x4357f8
pop edx
push dword [esi + 0x48]
call fcn.004356c7
xor edx, edx
push edx
push edx
push 0x60
push 1
push edx
push 0x80
push edx
lea eax, [ebp - 0x24]
push eax
push edi
push 0x40100080
lea eax, [ebp - 4]
push eax
call fcn.004356d1
add esp, 0x2c
test eax, eax
jne 0x435862
push dword [esi + 0x60]
call fcn.004356c7
xor edx, edx
push edx
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push edx
push edx
push edx
push dword [ebp - 4]
call fcn.004356d1
add esp, 0x24
test eax, eax
jne 0x435862
inc eax
jmp 0x435865
xor eax, eax
jmp 0x435865
xor eax, eax
dec eax
push eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x43587a
push eax
xor edx, edx
push edx
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
push eax
call dword [esi + 0x28]
pop eax
pop edi
pop esi
add esp, 0x30
pop ebp
ret 8

Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
jmp 0x431219