joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f12
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x407f18
call fcn.00403c9c
mov edi, 0x94
mov eax, edi
call fcn.00402eb0
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 [0x40abc0], ecx
mov eax, dword [esi + 4]
mov dword [0x40abcc], eax
mov edx, dword [esi + 8]
mov dword [0x40abd0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40abc4], esi
cmp ecx, 2
je 0x402f72
or esi, 0x8000
mov dword [0x40abc4], esi
shl eax, 8
add eax, edx
mov dword [0x40abc8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402fad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402fad
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402fc5
cmp eax, 0x20b
je 0x402fb2
mov dword [ebp - 0x1c], esi
jmp 0x402fd9
cmp dword [ecx + 0x84], 0xe
jbe 0x402fad
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402fd3
cmp dword [ecx + 0x74], 0xe
jbe 0x402fad
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00403c4b
pop ecx
test eax, eax
jne 0x403005
cmp dword [0x40abb0], 1
jne 0x402ff2
call fcn.00403400
push 0x1c
call fcn.00403289
push 0xff
call fcn.004030ee
pop ecx
pop ecx
call fcn.00403ba9
mov dword [ebp - 4], esi
call fcn.004039fe
test eax, eax
jge 0x40301e
push 0x1b
call fcn.00402eed
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40b134], eax
call fcn.004038dc
mov dword [0x40aba8], eax
call fcn.0040383a
test eax, eax
jge 0x403044
push 8
call fcn.00402eed
pop ecx
call fcn.00403607
test eax, eax
jge 0x403055
push 9
call fcn.00402eed
pop ecx
push 1
call fcn.0040311e
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40306b
push eax
call fcn.00402eed
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004035aa
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40308c
movzx eax, word [ebp - 0x40]
jmp 0x40308f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402c10
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4030ad
push edi
call fcn.00403249
call fcn.0040326b
jmp 0x4030df
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00403cd7
ret
Function at 0x403188
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40ac00], esi
push edi
jne 0x4031a8
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 [0x40abfc], esi
mov byte [0x40abf8], al
jne 0x40320e
mov ecx, dword [0x40b128]
test ecx, ecx
je 0x4031ef
mov eax, dword [0x40b124]
sub eax, 4
cmp eax, ecx
jmp 0x4031e8
mov eax, dword [eax]
test eax, eax
je 0x4031da
call eax
mov eax, dword [0x40b124]
sub eax, 4
cmp eax, dword [0x40b128]
mov dword [0x40b124], eax
jae 0x4031d2
mov eax, 0x40a01c
mov esi, 0x40a020
cmp eax, esi
mov edi, eax
jae 0x40320e
mov eax, dword [edi]
test eax, eax
je 0x403207
call eax
add edi, 4
cmp edi, esi
jb 0x4031ff
mov eax, 0x40a024
mov esi, 0x40a028
cmp eax, esi
mov edi, eax
jae 0x40322d
mov eax, dword [edi]
test eax, eax
je 0x403226
call eax
add edi, 4
cmp edi, esi
jb 0x40321e
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x403247
push dword [ebp + 8]
mov dword [0x40ac00], 1
call fcn.004030ee
pop ebp
ret

Function at 0x403289
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40a190]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40a058]
je 0x4032be
inc eax
cmp eax, 0x13
jb 0x4032af
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40a058]
jne 0x4033e4
mov eax, dword [0x40abb0]
cmp eax, 1
je 0x4033bc
cmp eax, edx
jne 0x4032ee
cmp dword [0x40a054], 1
je 0x4033bc
cmp ecx, 0xfc
je 0x4033e4
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403324
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00403fb0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004041e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403358
mov eax, edi
push eax
call fcn.004041e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x408330
push edi
call fcn.004040b0
add esp, 0x10
push edi
call fcn.004041e0
push dword [esi + 0x40a05c]
mov ebx, eax
call fcn.004041e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402eb0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403fb0
push edi
push ebx
call fcn.00403fc0
push 0x408310
push ebx
call fcn.00403fc0
push dword [esi + 0x40a05c]
push ebx
call fcn.00403fc0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00403ead
add esp, 0x2c
jmp 0x4033e4
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40a05c]
push dword [esi]
call fcn.004041e0
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]
mov ecx, dword [ebp + 0x88]
call fcn.0040429c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x403ead
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40ad1c], ebx
push esi
push edi
jne 0x403f2d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403f68
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4083c4
push edi
call esi
test eax, eax
mov dword [0x40ad1c], eax
je 0x403f68
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40ad20], eax
call esi
cmp dword [0x40abc0], 2
mov dword [0x40ad24], eax
jne 0x403f2d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40ad2c], eax
je 0x403f2d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40ad28], eax
mov eax, dword [0x40ad28]
test eax, eax
je 0x403f72
call eax
test eax, eax
je 0x403f59
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40ad2c]
test eax, eax
je 0x403f59
test byte [ebp - 8], 1
jne 0x403f72
cmp dword [0x40abcc], 4
jb 0x403f6c
or byte [ebp + 0x12], 0x20
jmp 0x403f91
xor eax, eax
jmp 0x403fa1
or byte [ebp + 0x12], 4
jmp 0x403f91
mov eax, dword [0x40ad20]
test eax, eax
je 0x403f91
call eax
mov ebx, eax
test ebx, ebx
je 0x403f91
mov eax, dword [0x40ad24]
test eax, eax
je 0x403f91
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40ad1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4056ee
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 0x40571c
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 0x405723
cmp ebx, dword [eax + 4]
jae 0x405723
xor eax, eax
jmp 0x405913
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405734
xor eax, eax
inc eax
jmp 0x405912
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40574a
cmp ecx, edx
jae 0x40588f
cmp dword [eax + 4], 0
je 0x405753
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40573b
cmp dword [ebp + 8], 0
je 0x405775
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40588f
cmp eax, esi
jae 0x40588f
mov eax, dword [0x40ad38]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40579a
cmp dword [esi*4 + 0x40ad40], edi
je 0x405893
inc esi
cmp esi, eax
jl 0x405788
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40590f
cmp dword [ebp - 8], 0x1000000
jne 0x40590f
test byte [ebp - 0xc], 0xcc
je 0x405818
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40590f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40590f
cmp word [eax + 0x18], 0x10b
jne 0x40590f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40590f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x405818
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x405818
test byte [ecx + 0x27], 0x80
jne 0x40588f
push 1
push 0x40ad80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40572c
mov ecx, dword [0x40ad38]
test ecx, ecx
mov edx, ecx
jle 0x40584c
lea eax, [ecx*4 + 0x40ad3c]
cmp dword [eax], edi
je 0x40584c
dec edx
sub eax, 4
test edx, edx
jg 0x405840
test edx, edx
jne 0x40587d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405859
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x405871
lea eax, [edx*4 + 0x40ad40]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40585f
cmp ecx, 0x10
jge 0x40587d
inc ecx
mov dword [0x40ad38], ecx
push 0
push 0x40ad80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40572c
xor eax, eax
jmp 0x405912
test esi, esi
jle 0x40572c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40ad80
call ebx
test eax, eax
jne 0x40572c
cmp dword [esi*4 + 0x40ad40], edi
je 0x4058e9
mov eax, dword [0x40ad38]
lea esi, [eax - 1]
test esi, esi
jl 0x4058d7
cmp dword [esi*4 + 0x40ad40], edi
je 0x4058d3
dec esi
jns 0x4058c7
test esi, esi
jge 0x4058e7
cmp eax, 0x10
jge 0x4058e2
inc eax
mov dword [0x40ad38], eax
lea esi, [eax - 1]
jmp 0x4058e9
je 0x405901
xor ecx, ecx
test esi, esi
jl 0x405901
lea eax, [ecx*4 + 0x40ad40]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4058ef
push 0
push 0x40ad80
call ebx
jmp 0x40572c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40679c
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.00402eb0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406837
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 [0x40abc0]
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 0x406837
cmp eax, 1
je 0x406858
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 0x406837
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406804
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406833
xor eax, eax
inc eax
jmp 0x406877
cmp edi, eax
jae 0x40683b
xor eax, eax
jmp 0x406877
cmp eax, esi
jae 0x406842
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 [0x40abc0]
jmp 0x40685b
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 0x409350
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4093aa
inc esi
xor edi, edi
cmp edi, 1
jne 0x409376
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x409384
cmp edi, 1
jle 0x409384
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408e20
test eax, eax
jne 0x4093aa
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x4093aa
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x4093aa
inc edi
dec esi
jne 0x409366
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40963c
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
push ebp
cmp dword [0x40cca0], 0
je 0x409685
mov edi, dword [0x40cde0]
dec edi
test edi, edi
jl 0x409685
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cddc]
mov edx, dword [edx + eax]
mov eax, dword [0x40cca0]
call fcn.00404b2c
test eax, eax
jne 0x409681
mov eax, esi
call fcn.004095f0
jmp 0x40974a
inc esi
dec edi
jne 0x409657
mov al, byte [0x40cdc4]
sub al, 1
jb 0x409692
je 0x40969b
jmp 0x4096a4
call fcn.00406f20
mov ebp, eax
jmp 0x4096a6
call sub.kernel32.dll_GetUserDefaultLangID
mov ebp, eax
jmp 0x4096a6
xor ebp, ebp
test bp, bp
je 0x409743
mov edi, dword [0x40cde0]
dec edi
test edi, edi
jl 0x4096f2
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cddc]
lea ebx, [edx + eax]
movzx eax, bp
cmp eax, dword [ebx + 0x28]
jne 0x4096ee
cmp dword [ebx + 0x2c], 0
je 0x4096e5
call sub.kernel32.dll_GetACP
cmp eax, dword [ebx + 0x2c]
jne 0x4096ee
mov eax, esi
call fcn.004095f0
jmp 0x40974a
inc esi
dec edi
jne 0x4096bd
mov edi, dword [0x40cde0]
dec edi
test edi, edi
jl 0x409743
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cddc]
lea ebx, [edx + eax]
mov eax, dword [ebx + 0x28]
and eax, 0x3ff
mov edx, ebp
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40973f
cmp dword [ebx + 0x2c], 0
je 0x409736
call sub.kernel32.dll_GetACP
cmp eax, dword [ebx + 0x2c]
jne 0x40973f
mov eax, esi
call fcn.004095f0
jmp 0x40974a
inc esi
dec edi
jne 0x409700
xor eax, eax
call fcn.004095f0
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x410f70
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f045b
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x540320]
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 dword [ebp - 0xdc], ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xd8]
push 0x84
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xd8]
call fcn.004a24c0
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xd8]
push edi
push 0x50efc0
push eax
mov dword [ebp - 4], 0
call fcn.004a2c70
add esp, 0xc
mov dword [ebp - 0x50], 0x40
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
shrd ecx, eax, 0x14
shr eax, 0x14
test eax, eax
jne 0x411051
cmp ecx, 0x2200
ja 0x411051
test eax, eax
jne 0x41104a
cmp ecx, 0x1c00
ja 0x41104a
test eax, eax
jne 0x411043
cmp ecx, 0xe00
ja 0x411043
test eax, eax
jne 0x41103c
cmp ecx, 0xa00
ja 0x41103c
mov eax, 0x300
jmp 0x411056
mov eax, 0x400
jmp 0x411056
mov eax, 0x800
jmp 0x411056
mov eax, 0xc00
jmp 0x411056
mov eax, 0x1000
cmp edi, eax
jne 0x411070
mov ecx, str.recommend_postfix
call fcn.0040d7e0
push eax
lea ecx, [ebp - 0xd8]
call fcn.004a2780
mov esi, dword [ebx]
lea ecx, [ebp - 0xd8]
call fcn.0041b490
push eax
mov ecx, ebx
call dword [esi + 0x3c]
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0xd8]
mov eax, dword [ebp - 0xdc]
lea ecx, [ebx + 0x760]
mov edx, dword [ecx]
push 0
mov eax, dword [eax]
cmp dword [eax + 0x62c], edi
sete al
movzx eax, al
push eax
call dword [edx + 0x1c]
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], 0xffffffff
call fcn.004a2580
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.004edbca
mov esp, ebp
pop ebp
ret 8
Function at 0x41c9f0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x540320]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
cmp esi, ebx
je 0x41ca3b
jmp 0x41ca10
mov edi, dword [esi]
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
shrd ecx, eax, 0x14
shr eax, 0x14
cmp ecx, edi
jle 0x41ca3b
add esi, 4
cmp esi, ebx
jne 0x41ca10
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004edbca
mov esp, ebp
pop ebp
ret

Function at 0x41d5e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f188e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x540320]
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 [ebp - 0x10], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.0041d910
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.0041d910
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
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 0x41d6f4
test dl, 0x10
jne 0x41d6f4
mov eax, 1
jmp 0x41d6f6
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.0041d790
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 0x423b80
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x426ef0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x540320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
cmp eax, 2
je 0x426f57
cmp eax, 1
je 0x426f57
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
shrd ecx, eax, 0x14
shr eax, 0x14
test eax, eax
jne 0x426ff1
cmp ecx, 0x2200
ja 0x426ff1
push eax
push ecx
call fcn.0046d6c0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edbca
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
shrd ecx, eax, 0x14
shr eax, 0x14
test eax, eax
jne 0x426ff1
cmp ecx, 0x2200
ja 0x426ff1
test eax, eax
jne 0x426fde
cmp ecx, 0x1c00
ja 0x426fde
test eax, eax
jne 0x426fcb
cmp ecx, 0xe00
ja 0x426fcb
test eax, eax
jne 0x426fb8
cmp ecx, 0xa00
ja 0x426fb8
mov eax, 0x300
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edbca
mov esp, ebp
pop ebp
ret
mov eax, 0x400
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edbca
mov esp, ebp
pop ebp
ret
mov eax, 0x800
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edbca
mov esp, ebp
pop ebp
ret
mov eax, 0xc00
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edbca
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x1000
xor ecx, ebp
call fcn.004edbca
mov esp, ebp
pop ebp
ret
Function at 0x427570
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f215b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x540320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0041b430
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x230]
push eax
push 0
mov dword [ebp - 0x230], 0
call esi
test eax, eax
je 0x4275c9
cmp eax, 0x6f
jne 0x4275f8
push dword [ebp - 0x230]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x234], edi
test edi, edi
je 0x4275f8
lea eax, [ebp - 0x230]
push eax
push edi
call esi
test eax, eax
je 0x427616
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004edbca
mov esp, ebp
pop ebp
ret
xor eax, eax
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x1b], eax
mov esi, edi
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
jmp 0x427630
mov eax, dword [esi + 0x194]
lea ecx, [ebp - 0x1c]
cmp eax, dword [ecx]
jne 0x42764c
mov eax, dword [esi + 0x198]
cmp eax, dword [ecx + 4]
je 0x42775b
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x22a]
push eax
call sub.MSVCR120.dll_memset
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push str._02X_02X_02X_02X_02X_02X
push 0xffffffffffffffff
lea eax, [ebp - 0x22c]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf_s]
xor eax, eax
mov dword [ebp - 0x238], 7
add esp, 0x34
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
cmp word [ebp - 0x22c], ax
je 0x4276f1
lea eax, [ebp - 0x22c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4276e2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00409fb0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24c]
mov edi, dword [ebx]
push eax
push dword [edi + 4]
push edi
call fcn.00427790
mov edx, eax
mov ecx, 0x7fffffe
mov eax, dword [ebx + 4]
sub ecx, eax
cmp ecx, 1
jb 0x42777e
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov eax, dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [eax], edx
cmp dword [ebp - 0x238], 8
jb 0x42775b
push dword [ebp - 0x24c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [esi]
test esi, esi
jne 0x427630
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
cmp dword [ebx + 4], eax
setne al
jmp 0x4275fa
push str.list_T__too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
int3