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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2e1b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00433ca0
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
call sym.Install_adv.exe_void___cdecl_GetCurPath_wchar_t__
add esp, 4
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call fcn.004096a0
mov dword [ebp - 4], 0
push str.hfEncode.dll
lea ecx, [ebp - 0x21c]
call fcn.004156b0
lea ecx, [ebp - 0x21c]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.exe_public:_static_bool___cdecl_CNsCertManage::CheckHfSign_wchar_t_const__
add esp, 4
movzx eax, al
test eax, eax
jne 0x4aa5b8
mov byte [ebp - 0x21d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00409680
mov al, byte [ebp - 0x21d]
jmp 0x4aa69d
lea ecx, [ebp - 0x21c]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x4aa5fd
mov byte [ebp - 0x21e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00409680
mov al, byte [ebp - 0x21e]
jmp 0x4aa69d
push str.doshell
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x4aa63f
mov byte [ebp - 0x21f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00409680
mov al, byte [ebp - 0x21f]
jmp 0x4aa69d
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x22c]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4aa67e
mov byte [ebp - 0x220], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00409680
mov al, byte [ebp - 0x220]
jmp 0x4aa69d
mov byte [ebp - 0x221], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00409680
mov al, byte [ebp - 0x221]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret

Function at 0x4aa7b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 5
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
pop ebp
ret

Function at 0x4aa810
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 3
push 0
push 0
push str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
push str.explore
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
pop ebp
ret
Function at 0x4aa990
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.00433ca0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x4aa9ef
cmp dword [ebp - 0x114], 6
jne 0x4aa9ef
cmp dword [ebp - 0x110], 1
ja 0x4aa9ef
mov al, 1
jmp 0x4aa9f1
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret

Function at 0x4aaa00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.00433ca0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x4aaa56
cmp dword [ebp - 0x114], 6
jae 0x4aaa56
mov al, 1
jmp 0x4aaa58
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret

Function at 0x4ab6a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x69], 0
mov dword [ebp - 0x70], 0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.WINTRUST.dll_CryptCATAdminAcquireContext]
test eax, eax
jne 0x4ab6d4
xor al, al
jmp 0x4ab7a1
push str.IsMsSign
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0
push 3
push 0
push 1
push bind
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0xffffffff
jne 0x4ab714
push 0
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
xor al, al
jmp 0x4ab7a1
mov dword [ebp - 0x78], 0x64
push 0x64
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.00433ca0
add esp, 0xc
push 0
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle]
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
mov edx, dword [ebp - 0x78]
push edx
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.WINTRUST.dll_CryptCATAdminEnumCatalogFromHash]
mov dword [ebp - 0x7c], eax
push 0x4d15e0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x7c], 0
je 0x4ab787
mov byte [ebp - 0x69], 1
push 0
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseCatalogContext]
push 0
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
push str.IsMsSign_done
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov al, byte [ebp - 0x69]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret
Function at 0x40105f
Capabilities:
Accept command line arguments

Disassembly:
push 0x18
push 0x4050c8
call fcn.0040112c
and dword [ebp - 4], 0
mov dword [ebp - 0x24], 9
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x20]
mov cl, byte [ecx]
mov byte [ebp - 0x19], cl
inc dword [ebp - 0x20]
test cl, cl
jne 0x4010ed
cmp eax, 0x4a697b3c
je 0x4010e1
cmp eax, 0x72cc259b
je 0x4010e1
cmp eax, 0x2b346bad
je 0x4010e1
cmp eax, 0xe2c4e32
je 0x4010e1
cmp eax, 0x63d51447
je 0x4010e1
test eax, eax
je 0x4010e1
cmp eax, 0x4ee4c60a
je 0x4010e1
cmp eax, 0xdc9da5fc
je 0x4010e1
cmp eax, 0x834e0e8c
je 0x4010e1
cmp eax, 0x5cd9eafc
je 0x4010e1
cmp eax, 0x9092168e
je 0x4010e1
sub dword [ebp - 0x24], 3
mov eax, dword [ebp - 0x24]
call dword [eax*4 + 0x437b50]
jmp 0x401113
mov edx, eax
shr edx, 0x17
shl eax, 9
or eax, edx
mov dword [ebp - 0x28], eax
movzx ecx, cl
add eax, ecx
mov dword [ebp - 0x28], eax
xor eax, 0xafbc1
jmp 0x401081
or dword [ebp - 4], 0xffffffff
call fcn.00401167
ret
Function at 0x4012a6
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x4050d8
call fcn.0040112c
mov edi, 0x94
mov eax, edi
call fcn.00402350
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x437e68], ecx
mov eax, dword [esi + 4]
mov dword [0x437e74], eax
mov edx, dword [esi + 8]
mov dword [0x437e78], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x437e6c], esi
cmp ecx, 2
je 0x401306
or esi, 0x8000
mov dword [0x437e6c], esi
shl eax, 8
add eax, edx
mov dword [0x437e70], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401341
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401341
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401359
cmp eax, 0x20b
je 0x401346
mov dword [ebp - 0x1c], esi
jmp 0x40136d
cmp dword [ecx + 0x84], 0xe
jbe 0x401341
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401367
cmp dword [ecx + 0x74], 0xe
jbe 0x401341
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004022f9
pop ecx
test eax, eax
jne 0x401399
cmp dword [0x437e08], 1
jne 0x401386
call fcn.00401aae
push 0x1c
call fcn.00401936
push 0xff
call fcn.0040179b
pop ecx
pop ecx
call fcn.00402257
mov dword [ebp - 4], esi
call fcn.004020ac
test eax, eax
jge 0x4013b2
push 0x1b
call fcn.00401281
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x438394], eax
call fcn.00401f8a
mov dword [0x437e00], eax
call fcn.00401ee8
test eax, eax
jge 0x4013d8
push 8
call fcn.00401281
pop ecx
call fcn.00401cb5
test eax, eax
jge 0x4013e9
push 9
call fcn.00401281
pop ecx
push 1
call fcn.004017cb
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4013ff
push eax
call fcn.00401281
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.00401c58
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x401420
movzx eax, word [ebp - 0x40]
jmp 0x401423
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040111d
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401441
push edi
call fcn.004018f6
call fcn.00401918
jmp 0x401473
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401167
ret
Function at 0x401572
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4015a0
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4015a7
cmp ebx, dword [eax + 4]
jae 0x4015a7
xor eax, eax
jmp 0x401797
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4015b8
xor eax, eax
inc eax
jmp 0x401796
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4015ce
cmp ecx, edx
jae 0x401713
cmp dword [eax + 4], 0
je 0x4015d7
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4015bf
cmp dword [ebp + 8], 0
je 0x4015f9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x401713
cmp eax, esi
jae 0x401713
mov eax, dword [0x437e10]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40161e
cmp dword [esi*4 + 0x437e18], edi
je 0x401717
inc esi
cmp esi, eax
jl 0x40160c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x401793
cmp dword [ebp - 8], 0x1000000
jne 0x401793
test byte [ebp - 0xc], 0xcc
je 0x40169c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x401793
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401793
cmp word [eax + 0x18], 0x10b
jne 0x401793
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x401793
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40169c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40169c
test byte [ecx + 0x27], 0x80
jne 0x401713
push 1
push 0x437e58
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x4015b0
mov ecx, dword [0x437e10]
test ecx, ecx
mov edx, ecx
jle 0x4016d0
lea eax, [ecx*4 + 0x437e14]
cmp dword [eax], edi
je 0x4016d0
dec edx
sub eax, 4
test edx, edx
jg 0x4016c4
test edx, edx
jne 0x401701
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4016dd
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4016f5
lea eax, [edx*4 + 0x437e18]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4016e3
cmp ecx, 0x10
jge 0x401701
inc ecx
mov dword [0x437e10], ecx
push 0
push 0x437e58
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x4015b0
xor eax, eax
jmp 0x401796
test esi, esi
jle 0x4015b0
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x437e58
call ebx
test eax, eax
jne 0x4015b0
cmp dword [esi*4 + 0x437e18], edi
je 0x40176d
mov eax, dword [0x437e10]
lea esi, [eax - 1]
test esi, esi
jl 0x40175b
cmp dword [esi*4 + 0x437e18], edi
je 0x401757
dec esi
jns 0x40174b
test esi, esi
jge 0x40176b
cmp eax, 0x10
jge 0x401766
inc eax
mov dword [0x437e10], eax
lea esi, [eax - 1]
jmp 0x40176d
je 0x401785
xor ecx, ecx
test esi, esi
jl 0x401785
lea eax, [ecx*4 + 0x437e18]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x401773
push 0
push 0x437e58
call ebx
jmp 0x4015b0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401835
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x437ea8], esi
push edi
jne 0x401855
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x437ea4], esi
mov byte [0x437ea0], al
jne 0x4018bb
mov ecx, dword [0x438388]
test ecx, ecx
je 0x40189c
mov eax, dword [0x438384]
sub eax, 4
cmp eax, ecx
jmp 0x401895
mov eax, dword [eax]
test eax, eax
je 0x401887
call eax
mov eax, dword [0x438384]
sub eax, 4
cmp eax, dword [0x438388]
mov dword [0x438384], eax
jae 0x40187f
mov eax, 0x40701c
mov esi, 0x407020
cmp eax, esi
mov edi, eax
jae 0x4018bb
mov eax, dword [edi]
test eax, eax
je 0x4018b4
call eax
add edi, 4
cmp edi, esi
jb 0x4018ac
mov eax, 0x407024
mov esi, 0x407028
cmp eax, esi
mov edi, eax
jae 0x4018da
mov eax, dword [edi]
test eax, eax
je 0x4018d3
call eax
add edi, 4
cmp edi, esi
jb 0x4018cb
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4018f4
push dword [ebp + 8]
mov dword [0x437ea8], 1
call fcn.0040179b
pop ebp
ret

Function at 0x401936
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x437ce0]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x437ba8]
je 0x40196d
inc eax
cmp eax, 0x13
jb 0x40195e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x437ba8]
jne 0x401a90
mov eax, dword [0x437e08]
cmp eax, 1
je 0x401a6b
cmp eax, edx
jne 0x40199d
cmp dword [0x437b94], 1
je 0x401a6b
cmp ecx, 0xfc
je 0x401a90
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4019d3
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00402550
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00402780
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401a07
mov eax, edi
push eax
call fcn.00402780
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4054f0
push edi
call fcn.00402650
add esp, 0x10
push edi
call fcn.00402780
push dword [esi + 0x437bac]
mov ebx, eax
call fcn.00402780
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402350
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402550
push edi
push ebx
call fcn.00402560
push 0x4054d0
push ebx
call fcn.00402560
push dword [esi + 0x437bac]
push ebx
call fcn.00402560
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00402449
add esp, 0x2c
jmp 0x401a90
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x437bac]
push dword [esi]
call fcn.00402780
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0040283c
add ebp, 0x90
leave
ret
Function at 0x402449
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x437fc4], ebx
push esi
push edi
jne 0x4024c9
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402504
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x437fc4], eax
je 0x402504
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x437fc8], eax
call esi
cmp dword [0x437e68], 2
mov dword [0x437fcc], eax
jne 0x4024c9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x437fd4], eax
je 0x4024c9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x437fd0], eax
mov eax, dword [0x437fd0]
test eax, eax
je 0x40250e
call eax
test eax, eax
je 0x4024f5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x437fd4]
test eax, eax
je 0x4024f5
test byte [ebp - 8], 1
jne 0x40250e
cmp dword [0x437e74], 4
jb 0x402508
or byte [ebp + 0x12], 0x20
jmp 0x40252d
xor eax, eax
jmp 0x40253d
or byte [ebp + 0x12], 4
jmp 0x40252d
mov eax, dword [0x437fc8]
test eax, eax
je 0x40252d
call eax
mov ebx, eax
test ebx, ebx
je 0x40252d
mov eax, dword [0x437fcc]
test eax, eax
je 0x40252d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x437fc4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404a71
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402350
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x404b0c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x437e68]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x404b0c
cmp eax, 1
je 0x404b2d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x404b0c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404ad9
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404b08
xor eax, eax
inc eax
jmp 0x404b4c
cmp edi, eax
jae 0x404b10
xor eax, eax
jmp 0x404b4c
cmp eax, esi
jae 0x404b17
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x437e68]
jmp 0x404b30
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405db0
Capabilities:
Delete file

Disassembly:
mov eax, 0x4145df
call fcn.0041444c
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x4c]
test eax, eax
mov dword [ebp - 4], 2
je 0x4056c0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4056ce
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esi + 0x8c]
cmp dword [eax], 0
je 0x4056e1
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4056fa
push dword [eax + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [esi + 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x405708
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esi + 0x78]
test eax, eax
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x405718
push eax
call ebx
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x405722
push eax
call ebx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x40572f
push eax
call ebx
mov eax, dword [esi + 0x84]
test eax, eax
je 0x40573c
push eax
call ebx
lea edi, [esi + 0x88]
mov eax, dword [edi]
test eax, eax
je 0x405753
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
call ebx
mov ecx, esi
call fcn.004055c5
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 1
call fcn.00405564
lea ecx, [esi + 0x54]
call fcn.004053c2
lea ecx, [esi + 0x24]
call fcn.00403f52
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push esi
mov esi, ecx
push 0x4189a4
mov dword [esi], 0x40164c
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, esi
pop esi
jmp 0x405698
Function at 0x406f77
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x407059
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x406ff4
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x407044
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x407063
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x407044
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00406f5f
test eax, eax
je 0x407063
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x407063
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x406fa4
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x40705c

Function at 0x4075b9
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x4188f4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x4075fd
call ebx
test eax, eax
jns 0x4075f3
push 0x401858
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x40184c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4188f0], eax
mov dword [0x4188f4], 1
mov eax, dword [0x4188f0]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x407619
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x407649
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x40763f
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x407633
push dword [eax + 8]
call dword [eax]
jmp 0x407639
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x407648
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x407af6
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
push 0x40
call fcn.00406f5f
test eax, eax
je 0x407d80
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0x5a4d
je fcn.00407b2e
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]