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

Disassembly:
push 0x38
mov eax, 0x454edd
call fcn.00441f1a
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x30], eax
mov esi, 0x104
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
call fcn.00415ddc
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
sub edi, esi
push edi
call ebx
cmp eax, edi
jbe 0x4243a4
mov esi, eax
lea eax, [ebp - 0x40]
call fcn.00415ddc
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
push esi
sub eax, esi
push eax
call ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405b5f
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00425913
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405e43
test esi, esi
je 0x4243d3
push esi
call fcn.0043a44a
pop ecx
mov eax, dword [ebp - 0x30]
call fcn.00441f9d
ret

Function at 0x424a27
Capabilities:
Identify system language via api

Disassembly:
push 4
mov eax, 0x4545a2
call fcn.00441eb1
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push eax
mov eax, esi
call fcn.004249fb
pop ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
mov eax, esi
call fcn.004249fb
pop ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push eax
mov eax, esi
call fcn.004249fb
mov eax, esi
mov dword [esp], 0x409
call fcn.004249fb
pop ecx
mov eax, esi
call fcn.00441f89
ret

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

Disassembly:
cmp dword [eax + 0x14], 0x10
jb 0x4256af
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

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

Disassembly:
cmp dword [eax + 0x14], 0x10
jb 0x4256c7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4256db
test al, 0x10
je 0x4256db
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x4259cd
Capabilities:
Get file version info

Disassembly:
push 0xf0
mov eax, 0x45915b
call fcn.00441f1a
mov eax, dword [ebp + 8]
push eax
mov esi, ebx
mov dword [ebp - 0x54], ebx
call fcn.00406ec6
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
mov byte [ebp - 4], 1
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x40], esi
jb 0x425a09
mov eax, dword [ebx]
jmp 0x425a0b
mov eax, ebx
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
cmp eax, esi
jne 0x425ac3
push str.System_error
mov dword [ebp - 0x4c], str.c:_ade_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u241_331_install_src_windows_common_FileUtils.cpp
mov dword [ebp - 0x48], str.VersionResource::VersionResource
mov dword [ebp - 0x44], 0x464
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x50], esp
push ebx
call fcn.00406ec6
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 2
call fcn.00409545
lea eax, [ebp - 0xfc]
push str.GetFileVersionInfoSize_
push eax
mov byte [ebp - 4], 3
call fcn.0040b58e
pop ecx
pop ecx
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 4
call fcn.0040b3b1
mov esi, eax
push 0x466ad0
push esi
call fcn.0040b58e
pop ecx
pop ecx
mov ecx, dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
push esi
lea edi, [ebp - 0x60]
call fcn.0042aa6f
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
push ecx
lea esi, [ebp - 0x4c]
mov ecx, eax
call fcn.0041acfa
lea eax, [ebp - 0x3c]
mov dword [esp], 0x46d888
push eax
call fcn.00441a81
mov esi, eax
lea eax, [ebx + 0x1c]
call fcn.0041053c
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
sub eax, ecx
cmp dword [ebx + 0x14], 0x10
jb 0x425adf
mov edx, dword [ebx]
jmp 0x425ae1
mov edx, ebx
mov edi, dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
push ecx
push eax
push dword [ebp - 0x40]
push edx
call edi
test eax, eax
jne 0x425b7f
push str.System_error
mov dword [ebp - 0x4c], str.c:_ade_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u241_331_install_src_windows_common_FileUtils.cpp
mov dword [ebp - 0x48], str.VersionResource::VersionResource
mov dword [ebp - 0x44], 0x46d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x50], esp
push ebx
call fcn.00406ec6
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 6
call fcn.00409545
lea eax, [ebp - 0xfc]
push str.GetFileVersionInfo_
push eax
mov byte [ebp - 4], 7
call fcn.0040b58e
pop ecx
pop ecx
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 8
call fcn.0040b3b1
mov esi, eax
push 0x466ad0
push esi
call fcn.0040b58e
pop ecx
pop ecx
mov ecx, edi
push esi
lea edi, [ebp - 0x60]
call fcn.0042aa6f
mov byte [ebp - 4], 9
jmp 0x425aa5
mov eax, ebx
call fcn.00441f9d
ret 4
Function at 0x426cfe
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4598dc
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x479630]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
mov eax, dword [0x479630]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esp + 0x108]
mov ebx, ecx
push eax
mov edi, esi
mov dword [esp + 0x18], ebx
call fcn.004256de
pop ecx
xor edi, edi
push esi
lea eax, [esp + 0x128]
mov dword [esp + 0x1a4], edi
call fcn.00425792
pop ecx
xor eax, eax
inc eax
mov dword [esp + 0x1a0], eax
cmp dword [esp + 0x118], edi
je 0x426dc4
push eax
lea eax, [esp + 0x10c]
push eax
lea edi, [esp + 0x148]
call fcn.0042620d
mov byte [esp + 0x1a0], 2
push dword [ebp + 0xc]
lea ecx, [esp + 0x128]
push ecx
mov ecx, eax
call fcn.00426cfe
mov esi, edi
mov byte [esp + 0x1a0], 1
call fcn.00426291
jmp 0x426f32
cmp dword [esi + 0x14], 0x10
jb 0x426dce
mov ecx, dword [esi]
jmp 0x426dd0
mov ecx, esi
mov eax, dword [ebx]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push edi
push ecx
push eax
call ebx
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x426ebe
push str.set_dword_value
lea ecx, [esp + 0xf0]
call fcn.00405b5f
mov dword [esp + 0xe4], 0xf
mov dword [esp + 0xe0], edi
mov byte [esp + 0xd0], 0
push esi
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x148]
push eax
push dword [esp + 0x20]
lea ecx, [esp + 0xe0]
mov byte [esp + 0x1b0], 4
call fcn.00427712
mov edi, eax
lea esi, [esp + 0x34]
mov byte [esp + 0x1a0], 5
call fcn.00416cfa
push str.System_error
push dword [esp + 0x1c]
mov eax, esi
push eax
mov ecx, ebx
lea edi, [esp + 0x34]
mov byte [esp + 0x1ac], 6
call fcn.0042aa6f
lea ecx, [esp + 0x168]
mov byte [esp + 0x1a0], 7
push ecx
lea esi, [esp + 0x20]
mov ecx, eax
mov dword [esp + 0x20], str.c:_ade_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u241_331_install_src_windows_common_Registry.cpp
mov dword [esp + 0x24], str.Registry::setDword
mov dword [esp + 0x28], 0x181
call fcn.0041acfa
lea eax, [esp + 0x16c]
mov dword [esp], 0x46d888
push eax
call fcn.00441a81
cmp dword [0x47d500], edi
jg 0x426f32
mov eax, dword [esp + 0x14]
mov ecx, esi
lea esi, [esp + 0xd0]
call fcn.004264c9
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [esp + 0xf4]
push eax
mov byte [esp + 0x1ac], 8
call fcn.0042789f
add esp, 0xc
push str.Registry::setDword
push 0x184
push str.c:_ade_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u241_331_install_src_windows_common_Registry.cpp
push edi
mov edx, eax
mov ecx, 0x47d500
mov byte [esp + 0x1b0], 9
call fcn.004147a0
push edi
push 1
lea ecx, [esp + 0xf4]
call fcn.00405e43
push edi
push 1
mov ecx, esi
call fcn.00405e43
lea esi, [esp + 0x108]
call fcn.0040b810
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.0043a455
mov esp, ebp
pop ebp
ret 8
Function at 0x4275a9
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x479630]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x3c]
push eax
mov edi, esi
mov ebx, ecx
call fcn.004256de
pop ecx
push esi
lea eax, [ebp - 0x20]
call fcn.00425792
xor edi, edi
pop ecx
cmp dword [ebp - 0x2c], edi
je 0x427677
mov ecx, dword [ebx + 8]
mov eax, dword [ebx]
push edi
or ecx, 0x2001f
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00426016
add esp, 0x14
cmp dword [ebp - 0x6c], edi
je 0x427639
mov edi, dword [ebp - 0x6c]
cmp byte [ebp - 0x70], 0
je 0x42761e
push dword [ebp - 0x74]
mov byte [ebp - 0x70], 0
call fcn.0042b1f6
pop ecx
lea esi, [ebp - 0x3c]
call fcn.0040b810
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a455
leave
ret 8
push 0x47c2a9
lea eax, [ebp - 0x20]
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x74]
mov eax, esp
mov dword [eax], ecx
mov cl, byte [ebp - 0x70]
mov byte [eax + 4], cl
mov dword [ebp - 0x78], esp
push ebx
lea ecx, [ebp - 0x3c]
lea edi, [ebp - 0x64]
mov byte [ebp - 0x70], 0
call fcn.0042618a
mov ecx, eax
call fcn.004275a9
lea esi, [ebp - 0x64]
mov edi, eax
call fcn.00426291
jmp 0x42760b
cmp dword [esi + 0x14], 0x10
jb 0x427681
mov ecx, dword [esi]
jmp 0x427683
mov ecx, esi
mov eax, dword [ebx]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 0x78], eax
cmp eax, edi
jne 0x42770a
cmp dword [0x47d500], edi
jg 0x42770a
lea eax, [ebp - 0x118]
push eax
call fcn.00409545
lea eax, [ebp - 0x118]
push str.Deleted__
push eax
call fcn.0040b58e
sub esp, 0x14
mov ecx, esi
mov esi, esp
mov eax, ebx
mov dword [ebp - 0x7c], esp
call fcn.004264c9
lea esi, [ebp - 0x118]
call fcn.0040b3b1
mov esi, eax
push str.__value
push esi
call fcn.0040b58e
pop ecx
pop ecx
push esi
push 0x1d2
push edi
mov ebx, str.Registry::deleteValue
mov edi, str.c:_ade_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u241_331_install_src_windows_common_Registry.cpp
mov esi, 0x47d500
call fcn.004078b6
lea eax, [ebp - 0x118]
call fcn.0040789c
mov edi, dword [ebp - 0x78]
jmp 0x42761e
Function at 0x428cf2
Capabilities:
Check mutex on windows

Disassembly:
push 0xa8
mov eax, 0x458f50
call fcn.00441eb1
push str.Global_MSIExecute
xor esi, esi
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 1
mov dword [ebp - 4], esi
cmp eax, esi
je 0x428dc4
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], esi
je 0x428da4
cmp dword [0x47d500], 1
jg 0x428da4
lea eax, [ebp - 0xb4]
push eax
call fcn.00409545
lea eax, [ebp - 0xb4]
push str.finish_waiting_for_mutex:
push eax
mov byte [ebp - 4], 1
call fcn.0040b58e
pop ecx
pop ecx
push dword [ebp - 0x14]
lea eax, [ebp - 0xb4]
push eax
call fcn.0040df0e
lea eax, [ebp - 0xb4]
push eax
push 0x1c8
push 1
mov ebx, str.msi::waitForInstallationCompletion
mov edi, str.c:_ade_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u241_331_install_src_windows_common_MsiUtils.cpp
mov esi, 0x47d500
call fcn.004078b6
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 0
call fcn.0040789c
cmp dword [ebp - 0x14], 0x102
jne 0x428dc4
xor bl, bl
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x1c]
call fcn.0042b043
pop ecx
mov al, bl
call fcn.00441f89
ret
mov bl, 1
jmp 0x428daf
Function at 0x4305cb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x458192
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x479630]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x479630]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
cmp byte [ecx + 0x38], bl
je 0x43062b
push esi
mov ebx, ecx
call fcn.004302d0
mov eax, esi
jmp 0x430814
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x14]
mov dword [esp + 0xc0], ebx
call fcn.00430407
test al, al
jne 0x4306f8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea ebx, [esp + 0x58]
mov byte [esp + 0xc0], 1
call fcn.004331f0
push 0xc8
lea edx, [esp + 0x28]
mov ecx, eax
mov byte [esp + 0xc4], 2
call fcn.00430407
movzx eax, al
push eax
call fcn.00430ae6
pop ecx
pop ecx
push 0
push 1
mov ecx, ebx
mov byte [esp + 0xc8], 1
call fcn.00405e43
push dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push esi
push ebx
push dword [esp + 0x34]
lea ecx, [esp + 0x34]
call fcn.0040f47b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], esi
lea esi, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc0], 0
call fcn.0040d6e4
xor ebx, ebx
mov edi, dword [esp + 0x14]
mov esi, edi
cmp edi, dword [esp + 0x18]
je 0x43075e
push 0x466898
call fcn.0040f07e
pop ecx
test al, al
jne 0x43071c
add esi, 0x1c
cmp esi, dword [esp + 0x18]
jne 0x430704
cmp dword [esp + 0x18], esi
je 0x43075a
cmp edi, esi
je 0x43073f
lea eax, [esi + 0x1c]
push eax
add esi, 0xffffffe4
push esi
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040d51c
jmp 0x4306f8
push 0x137
lea esi, [esp + 0x28]
call fcn.0040bf72
push 0x46d720
mov eax, esi
push eax
call fcn.00441a81
cmp edi, dword [esp + 0x18]
sete al
movzx eax, al
push eax
call fcn.00430abe
pop ecx
push dword [esp + 0x14]
lea esi, [esp + 0x40]
add edi, 0x1c
call fcn.00406ec6
mov byte [esp + 0xc0], 4
jmp 0x4307c3
lea eax, [esp + 0x58]
push 0x466a98
push eax
call fcn.00412a81
pop ecx
pop ecx
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x44]
mov byte [esp + 0xc8], 5
call fcn.004062ba
push ebx
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0xc8], 4
call fcn.00405e43
add edi, 0x1c
cmp edi, dword [esp + 0x18]
jne 0x430785
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00430287
push dword [esp + 0x38]
mov byte [esp + 0xc4], 6
lea ebx, [esp + 0x78]
mov byte [esp + 0xb0], 1
call fcn.004302d0
call fcn.0042cadf
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.00405e43
lea esi, [esp + 0x14]
call fcn.0040d6e4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0043a455
mov esp, ebp
pop ebp
ret
Function at 0x433d8a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x456fba
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x479630]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.00430892
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [esp + 0x10], cl
mov dword [esp + 0x1c], edi
mov byte [eax + 4], bl
mov dword [esp + 0x2c], edi
mov byte [esp + 0x30], cl
mov dword [esp + 0x50], ebx
cmp byte [esp + 0x18], bl
je 0x433df5
push dword [esp + 0x14]
mov byte [esp + 0x1c], bl
call fcn.004391c4
pop ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov esi, 0x100001
lea eax, [esp + 0x34]
mov byte [esp + 0x50], 1
call fcn.00415ddc
push edi
mov edi, dword [esp + 0x38]
dec esi
push esi
push 1
push edi
call fcn.00441786
add esp, 0x10
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x433e49
push 0xc8
lea esi, [esp + 0x20]
call fcn.0040bf72
push 0x46d720
mov eax, esi
push eax
call fcn.00441a81
push dword [esp + 0x1c]
call fcn.00441514
pop ecx
test eax, eax
je 0x433e6e
push 0x133
lea esi, [esp + 0x20]
call fcn.0040bf72
push 0x46d720
mov eax, esi
jmp 0x433e43
push dword [esp + 0x1c]
call fcn.004414ec
pop ecx
test eax, eax
jne 0x433e93
push 0x13b
lea esi, [esp + 0x20]
call fcn.0040bf72
push 0x46d720
mov eax, esi
jmp 0x433e43
mov esi, dword [esp + 0x14]
mov ecx, esi
mov eax, edi
call fcn.00433d56
lea eax, [edi + esi]
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp edi, eax
je 0x433ec1
sub eax, edi
push eax
push edi
mov ecx, esi
call fcn.00405ea6
cmp edi, ebx
je 0x433ecc
push edi
call fcn.0043a44a
pop ecx
cmp byte [esp + 0x10], bl
je 0x433edc
push dword [esp + 0x1c]
call fcn.004391c4
pop ecx
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x435416
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, eax
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
jl 0x435496
jg 0x435442
cmp esi, ecx
jbe 0x435496
cmp dword [ebp + 0x14], ecx
jg 0x435442
jl 0x43543e
cmp esi, 0x7fffffff
jae 0x435442
mov eax, esi
jmp 0x435447
mov eax, SysReAllocString
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 4], ecx
je 0x435487
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x435471
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x435491
jmp 0x435487
mov eax, dword [ebp - 4]
test eax, eax
jle 0x435482
add ebx, eax
cdq
sub esi, eax
sbb dword [ebp + 0x14], edx
jmp 0x435422
cmp eax, 0xffffffff
jne 0x435491
call fcn.004406b5
cmp dword [eax], 4
je 0x435422
or eax, 0xffffffff
jmp 0x435498
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x25593964
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3aab134d
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40275d
Capabilities:
Allocate or change rwx memory

Disassembly:
xor eax, eax
jmp 0x4026b2
test eax, eax
jne 0x408106
jmp 0x40278a
xor eax, eax
jmp 0x4026b2
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4099d5
jmp 0x4026ab
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0xc], 0
jne 0x406637
jmp 0x40267d
xor eax, eax
jmp 0x4026b2
push 0x1c
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
jmp 0x40269b
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
or edx, 0x40
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x40274f
mov edx, dword [ebp - 8]
and edx, 0xffffff80
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
and eax, 0x80
je 0x407a35
jmp 0x408199
mov eax, 1
jmp 0x4026b2
mov eax, 1
jmp 0x4026b2

Function at 0x408122
Capabilities:
Get system information on windows

Disassembly:
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx]
mov byte [ebp - 1], dl
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp - 1]
mov byte [eax], cl
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x44]
mov dword [ebp - 0x10], edx
jmp 0x402816
mov edx, dword [ebp - 8]
add edx, 0x28
mov dword [ebp - 8], edx
jmp 0x40497c
add esp, 8
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402912
jmp 0x4027fe
mov dword [0x402692], 0
jmp 0x407246
add esp, 8
and eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 8]
mov dword [ebp - 0x24], edx
jmp 0x402816
mov eax, dword [ebp - 8]
add eax, 0x28
mov dword [ebp - 8], eax
jmp 0x40497c
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x402834
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x24]
jae 0x4027e6
jmp 0x401a1a
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x1c]
jae 0x402774
jmp 0x4028fa
jmp 0x407246
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x10000000
je 0x40a095
jmp 0x402684
mov eax, dword [ebp - 0x44]
sub eax, 1
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040275d
jmp 0x4026fb
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x402834
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x404441
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0x48
mov byte [ebp - 1], 0
mov eax, fcn.00408122
sub eax, dword [fcn.00408122]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [0x402810]
mov dword [ebp - 0xc], ecx
cmp dword [0x402692], 0
jne 0x406eaf
jmp 0x402869
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0040275d
jmp 0x4027c0