joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b3f0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x4233a8
call fcn.0041dad4
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x41b5a7
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x41b44d
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41b5a7
mov eax, dword [esi + 0x10]
mov dword [0x447044], eax
mov eax, dword [esi + 4]
mov dword [0x447050], eax
mov eax, dword [esi + 8]
mov dword [0x447054], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x447048], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x447044], 2
je 0x41b48b
or byte [0x447049], 0x80
mov eax, dword [0x447050]
shl eax, 8
add eax, dword [0x447054]
mov dword [0x44704c], eax
call fcn.0041b394
mov dword [ebp - 0x1c], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.0041da83
pop ecx
test eax, eax
jne 0x41b4bc
push 0x1c
call fcn.0041b370
pop ecx
call fcn.0041d961
test eax, eax
jne 0x41b4cd
push 0x10
call fcn.0041b370
pop ecx
mov dword [ebp - 4], ebx
call fcn.0041d562
test eax, eax
jge 0x41b4e1
push 0x1b
call fcn.0041b34b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x44b214], eax
call fcn.0041d43c
mov dword [0x447030], eax
call fcn.0041d39b
test eax, eax
jge 0x41b507
push 8
call fcn.0041b34b
pop ecx
call fcn.0041d151
test eax, eax
jge 0x41b518
push 9
call fcn.0041b34b
pop ecx
call fcn.0041be97
mov dword [ebp - 0x28], eax
test eax, eax
je 0x41b52b
push eax
call fcn.0041b34b
pop ecx
call fcn.0041d0e8
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], bl
je 0x41b53e
movzx eax, word [ebp - 0x40]
jmp 0x41b541
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x400000
call fcn.0040115e
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x41b562
push esi
call fcn.0041bfac
call fcn.0041bfce
jmp 0x41b594
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x41b5ac
mov eax, 0xff
call fcn.0041db0f
ret
Function at 0x41cdd3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x438b08]
je 0x41cdeb
inc eax
cmp eax, 0x12
jb 0x41cddc
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x438b08]
mov dword [ebp + 8], esi
jne 0x41cf31
mov eax, dword [0x447038]
cmp eax, 1
push ebx
je 0x41cf01
test eax, eax
jne 0x41ce20
cmp dword [0x438af4], 1
je 0x41cf01
cmp ecx, 0xfc
je 0x41cf30
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x447088
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x4470a2
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x4471a6], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41ce6e
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x4470a2
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41ce73
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x41cea6
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41ce87
sub eax, edx
push 3
lea eax, [eax + 0x447067]
push 0x423814
push eax
call fcn.0041baf0
add esp, 0xc
mov edx, 0x447088
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41ceae
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x438b0c]
mov esi, 0x423810
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41cec9
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41ced5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0041f725
add esp, 0xc
pop edi
jmp 0x41cf30
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x41cf30
mov esi, dword [esi + 0x438b0c]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x41cf18
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x41f2d9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x41f2f7
xor eax, eax
jmp 0x41f465
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x44b100]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41f32a
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00421000
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41f3fc
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x41f434
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x41f385
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41f376
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x41f359
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f3c5
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x41f3ce
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x41f34a
jmp 0x41f3d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x41f460
cmp dword [ebp - 4], edi
je 0x41f434
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x41f429
call fcn.0041df1d
mov dword [eax], 9
call fcn.0041df30
mov dword [eax], esi
jmp 0x41f45b
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f41e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x41f3d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x41f3d0
push dword [ebp - 4]
call fcn.0041df43
pop ecx
jmp 0x41f45b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41f449
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x41f449
xor eax, eax
jmp 0x41f463
call fcn.0041df1d
mov dword [eax], 0x1c
call fcn.0041df30
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41f463
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x41f725
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x44762c], ebx
push esi
push edi
jne 0x41f7a5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41f7e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x44762c], eax
je 0x41f7e0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x447630], eax
call esi
cmp dword [0x447044], 2
mov dword [0x447634], eax
jne 0x41f7a5
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x44763c], eax
je 0x41f7a5
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x447638], eax
mov eax, dword [0x447638]
test eax, eax
je 0x41f7ea
call eax
test eax, eax
je 0x41f7d1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x44763c]
test eax, eax
je 0x41f7d1
test byte [ebp - 8], 1
jne 0x41f7ea
cmp dword [0x447050], 4
jb 0x41f7e4
or byte [ebp + 0x12], 0x20
jmp 0x41f809
xor eax, eax
jmp 0x41f819
or byte [ebp + 0x12], 4
jmp 0x41f809
mov eax, dword [0x447630]
test eax, eax
je 0x41f809
call eax
mov ebx, eax
test ebx, ebx
je 0x41f809
mov eax, dword [0x447634]
test eax, eax
je 0x41f809
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x44762c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41fdbc
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 0x41fdea
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 0x41fdf1
cmp ebx, dword [eax + 4]
jae 0x41fdf1
xor eax, eax
jmp 0x41ffe1
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41fe02
xor eax, eax
inc eax
jmp 0x41ffe0
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41fe18
cmp ecx, edx
jae 0x41ff5d
cmp dword [eax + 4], 0
je 0x41fe21
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41fe09
cmp dword [ebp + 8], 0
je 0x41fe43
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41ff5d
cmp eax, esi
jae 0x41ff5d
mov eax, dword [0x447648]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41fe68
cmp dword [esi*4 + 0x447650], edi
je 0x41ff61
inc esi
cmp esi, eax
jl 0x41fe56
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41ffdd
cmp dword [ebp - 8], 0x1000000
jne 0x41ffdd
test byte [ebp - 0xc], 0xcc
je 0x41fee6
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41ffdd
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41ffdd
cmp word [eax + 0x18], 0x10b
jne 0x41ffdd
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41ffdd
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41fee6
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41fee6
test byte [ecx + 0x27], 0x80
jne 0x41ff5d
push 1
push 0x447690
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41fdfa
mov ecx, dword [0x447648]
test ecx, ecx
mov edx, ecx
jle 0x41ff1a
lea eax, [ecx*4 + 0x44764c]
cmp dword [eax], edi
je 0x41ff1a
dec edx
sub eax, 4
test edx, edx
jg 0x41ff0e
test edx, edx
jne 0x41ff4b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41ff27
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41ff3f
lea eax, [edx*4 + 0x447650]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41ff2d
cmp ecx, 0x10
jge 0x41ff4b
inc ecx
mov dword [0x447648], ecx
push 0
push 0x447690
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41fdfa
xor eax, eax
jmp 0x41ffe0
test esi, esi
jle 0x41fdfa
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x447690
call ebx
test eax, eax
jne 0x41fdfa
cmp dword [esi*4 + 0x447650], edi
je 0x41ffb7
mov eax, dword [0x447648]
lea esi, [eax - 1]
test esi, esi
jl 0x41ffa5
cmp dword [esi*4 + 0x447650], edi
je 0x41ffa1
dec esi
jns 0x41ff95
test esi, esi
jge 0x41ffb5
cmp eax, 0x10
jge 0x41ffb0
inc eax
mov dword [0x447648], eax
lea esi, [eax - 1]
jmp 0x41ffb7
je 0x41ffcf
xor ecx, ecx
test esi, esi
jl 0x41ffcf
lea eax, [ecx*4 + 0x447650]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41ffbd
push 0
push 0x447690
call ebx
jmp 0x41fdfa
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421516
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.0041e263
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x42165b
push 2
push esi
push dword [ebp + 8]
call fcn.0041e263
add esp, 0xc
cmp eax, ebx
je 0x42165b
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4215fe
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x42158f
call fcn.0041df1d
mov dword [eax], 0xc
or esi, 0xffffffff
jmp 0x421646
push 0x8000
push dword [ebp + 8]
call fcn.00421bff
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ebx
mov eax, ebx
jge 0x4215a9
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0041f2d9
add esp, 0xc
cmp eax, 0xffffffff
je 0x4215c5
sub edi, eax
test edi, edi
jg 0x4215a1
jmp 0x4215dd
call fcn.0041df30
cmp dword [eax], 5
jne 0x4215da
call fcn.0041df1d
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00421bff
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x421646
jge 0x421646
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041e263
push dword [ebp + 8]
call fcn.0042017b
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x421646
call fcn.0041df1d
mov dword [eax], 0xd
call fcn.0041df30
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0041e263
add esp, 0xc
mov eax, esi
pop edi
jmp 0x42165d
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x421661
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x421835
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x44b100]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x421835
test cl, 0x48
je 0x4216cc
cmp byte [eax + 5], 0xa
je 0x4216cc
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42171e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x421706
call fcn.0041df1d
mov dword [eax], 9
call fcn.0041df30
mov dword [eax], esi
jmp 0x421716
cmp eax, 0x6d
je 0x421835
push eax
call fcn.0041df43
pop ecx
or eax, 0xffffffff
jmp 0x421837
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x421830
test eax, eax
je 0x421745
cmp byte [ebx], 0xa
jne 0x421745
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x42174e
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x42182a
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x42181a
cmp al, 0xd
je 0x421780
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x42180c
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x42179a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x421795
add dword [ebp + 0x10], 2
jmp 0x4217ee
mov dword [ebp + 0x10], eax
jmp 0x421808
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4217c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x421808
cmp dword [ebp - 0xc], 0
je 0x421808
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4217e3
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4217ee
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42180b
cmp ebx, dword [ebp + 0xc]
jne 0x4217f3
cmp byte [ebp - 1], 0xa
jne 0x4217f3
mov byte [ebx], 0xa
jmp 0x42180b
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041e263
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42180c
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x421764
jmp 0x42182a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x42182a
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x421837
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42188e
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.0041c0f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x421929
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 [0x447044]
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 0x421929
cmp eax, 1
je 0x42194a
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 0x421929
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4218f6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x421925
xor eax, eax
inc eax
jmp 0x421969
cmp edi, eax
jae 0x42192d
xor eax, eax
jmp 0x421969
cmp eax, esi
jae 0x421934
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 [0x447044]
jmp 0x42194d
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 0x404370
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x404450
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x404450
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4043ba
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x4043c1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4043a0
jmp 0x4043c3
mov esi, 0x1505
jmp 0x4043c3
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
lea edi, [ebx - 1]
mov edx, ebx
sub edx, 1
mov dword [esp + 8], edx
jb 0x404450
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x4043f4
inc edi
dec ebx
je 0x40444e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40444e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x4043f0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040cc70
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4043f0
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040cc90
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4043f0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x404450
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404460
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x404561
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404561
push ebx
call fcn.0040cc70
add esp, 4
test eax, eax
je 0x4044ba
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x4044c1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4044a0
jmp 0x4044c3
mov esi, 0x1505
jmp 0x4044c3
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x404561
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4044f4
inc ebp
dec ebx
je 0x40455f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40455f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4044f0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cc70
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4044f0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cc90
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4044f0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40455f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x404561
mov edi, dword [eax + 8]
jmp 0x404561
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret