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

Disassembly:
push 0x60
push 0x433470
call fcn.004228f0
mov edi, 0x94
mov eax, edi
call fcn.0041ffb0
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 [0x4386cc], ecx
mov eax, dword [esi + 4]
mov dword [0x4386d8], eax
mov edx, dword [esi + 8]
mov dword [0x4386dc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4386d0], esi
cmp ecx, 2
je 0x4220f4
or esi, 0x8000
mov dword [0x4386d0], esi
shl eax, 8
add eax, edx
mov dword [0x4386d4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42212f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42212f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x422147
cmp eax, 0x20b
je 0x422134
mov dword [ebp - 0x1c], esi
jmp 0x42215b
cmp dword [ecx + 0x84], 0xe
jbe 0x42212f
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x422155
cmp dword [ecx + 0x74], 0xe
jbe 0x42212f
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00422ab8
pop ecx
test eax, eax
jne 0x422187
cmp dword [0x4386b0], 1
jne 0x422174
call fcn.00428085
push 0x1c
call fcn.00427f0e
push 0xff
call fcn.00423647
pop ecx
pop ecx
call fcn.0042882e
mov dword [ebp - 4], esi
call fcn.00428683
test eax, eax
jge 0x4221a0
push 0x1b
call fcn.0042206f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x439df8], eax
call fcn.00428561
mov dword [0x4386a8], eax
call fcn.004284bf
test eax, eax
jge 0x4221c6
push 8
call fcn.0042206f
pop ecx
call fcn.0042828c
test eax, eax
jge 0x4221d7
push 9
call fcn.0042206f
pop ecx
push 1
call fcn.00423677
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4221ed
push eax
call fcn.0042206f
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042822f
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42220e
movzx eax, word [ebp - 0x40]
jmp 0x422211
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040a310
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42222f
push edi
call fcn.004237a2
call fcn.004237c4
jmp 0x422261
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042292b
ret
Function at 0x4236e1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x43870c], esi
push edi
jne 0x423701
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 [0x438708], esi
mov byte [0x438704], al
jne 0x423767
mov ecx, dword [0x439dcc]
test ecx, ecx
je 0x423748
mov eax, dword [0x439dc8]
sub eax, 4
cmp eax, ecx
jmp 0x423741
mov eax, dword [eax]
test eax, eax
je 0x423733
call eax
mov eax, dword [0x439dc8]
sub eax, 4
cmp eax, dword [0x439dcc]
mov dword [0x439dc8], eax
jae 0x42372b
mov eax, 0x437034
mov esi, 0x43703c
cmp eax, esi
mov edi, eax
jae 0x423767
mov eax, dword [edi]
test eax, eax
je 0x423760
call eax
add edi, 4
cmp edi, esi
jb 0x423758
mov eax, 0x437040
mov esi, 0x437048
cmp eax, esi
mov edi, eax
jae 0x423786
mov eax, dword [edi]
test eax, eax
je 0x42377f
call eax
add edi, 4
cmp edi, esi
jb 0x423777
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4237a0
push dword [ebp + 8]
mov dword [0x43870c], 1
call fcn.00423647
pop ebp
ret
Function at 0x4237e2
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 0x423810
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 0x423817
cmp ebx, dword [eax + 4]
jae 0x423817
xor eax, eax
jmp 0x423a07
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x423828
xor eax, eax
inc eax
jmp 0x423a06
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42383e
cmp ecx, edx
jae 0x423983
cmp dword [eax + 4], 0
je 0x423847
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42382f
cmp dword [ebp + 8], 0
je 0x423869
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x423983
cmp eax, esi
jae 0x423983
mov eax, dword [0x438710]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42388e
cmp dword [esi*4 + 0x438718], edi
je 0x423987
inc esi
cmp esi, eax
jl 0x42387c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x423a03
cmp dword [ebp - 8], 0x1000000
jne 0x423a03
test byte [ebp - 0xc], 0xcc
je 0x42390c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x423a03
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x423a03
cmp word [eax + 0x18], 0x10b
jne 0x423a03
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x423a03
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42390c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42390c
test byte [ecx + 0x27], 0x80
jne 0x423983
push 1
push 0x438758
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x423820
mov ecx, dword [0x438710]
test ecx, ecx
mov edx, ecx
jle 0x423940
lea eax, [ecx*4 + 0x438714]
cmp dword [eax], edi
je 0x423940
dec edx
sub eax, 4
test edx, edx
jg 0x423934
test edx, edx
jne 0x423971
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42394d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x423965
lea eax, [edx*4 + 0x438718]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x423953
cmp ecx, 0x10
jge 0x423971
inc ecx
mov dword [0x438710], ecx
push 0
push 0x438758
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x423820
xor eax, eax
jmp 0x423a06
test esi, esi
jle 0x423820
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x438758
call ebx
test eax, eax
jne 0x423820
cmp dword [esi*4 + 0x438718], edi
je 0x4239dd
mov eax, dword [0x438710]
lea esi, [eax - 1]
test esi, esi
jl 0x4239cb
cmp dword [esi*4 + 0x438718], edi
je 0x4239c7
dec esi
jns 0x4239bb
test esi, esi
jge 0x4239db
cmp eax, 0x10
jge 0x4239d6
inc eax
mov dword [0x438710], eax
lea esi, [eax - 1]
jmp 0x4239dd
je 0x4239f5
xor ecx, ecx
test esi, esi
jl 0x4239f5
lea eax, [ecx*4 + 0x438718]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4239e3
push 0
push 0x438758
call ebx
jmp 0x423820
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424604
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x438a54]
mov eax, dword [0x437250]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4247ca
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x438a60]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4247ca
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x42466e
xor eax, eax
jmp 0x4247de
test al, 0x20
je 0x42467f
push 2
push edi
push edi
push ecx
call fcn.00428f3d
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x424754
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x42479b
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4246e1
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4246d2
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4246b4
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424721
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x42472d
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4246a8
jmp 0x42472f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4247c5
cmp dword [ebp + 0x3a4], edi
je 0x42479b
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x42478d
mov dword [0x4386c4], eax
jmp 0x4247d1
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42477f
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x42472f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x42472f
push dword [ebp + 0x3a4]
call fcn.00427e55
pop ecx
jmp 0x4247db
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4247b3
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x424667
mov dword [0x4386c0], 0x1c
mov dword [0x4386c4], edi
jmp 0x4247db
sub eax, dword [ebp - 0x7c]
jmp 0x4247de
and dword [0x4386c4], 0
mov dword [0x4386c0], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0042001e
add ebp, 0x39c
leave
ret
Function at 0x427f0e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x437250]
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 + 0x4379d0]
je 0x427f43
inc eax
cmp eax, 0x13
jb 0x427f34
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4379d0]
jne 0x428069
mov eax, dword [0x4386b0]
cmp eax, 1
je 0x428041
cmp eax, edx
jne 0x427f73
cmp dword [0x437354], 1
je 0x428041
cmp ecx, 0xfc
je 0x428069
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 0x427fa9
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00426a90
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004249d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x427fdd
mov eax, edi
push eax
call fcn.004249d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4334d0
push edi
call fcn.00422760
add esp, 0x10
push edi
call fcn.004249d0
push dword [esi + 0x4379d4]
mov ebx, eax
call fcn.004249d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041ffb0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00426a90
push edi
push ebx
call fcn.00426aa0
push 0x4334cc
push ebx
call fcn.00426aa0
push dword [esi + 0x4379d4]
push ebx
call fcn.00426aa0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00428ddc
add esp, 0x2c
jmp 0x428069
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4379d4]
push dword [esi]
call fcn.004249d0
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.0042001e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x428ddc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4389f0], ebx
push esi
push edi
jne 0x428e5c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x428e97
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43417c
push edi
call esi
test eax, eax
mov dword [0x4389f0], eax
je 0x428e97
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4389f4], eax
call esi
cmp dword [0x4386cc], 2
mov dword [0x4389f8], eax
jne 0x428e5c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x438a00], eax
je 0x428e5c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4389fc], eax
mov eax, dword [0x4389fc]
test eax, eax
je 0x428ea1
call eax
test eax, eax
je 0x428e88
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x438a00]
test eax, eax
je 0x428e88
test byte [ebp - 8], 1
jne 0x428ea1
cmp dword [0x4386d8], 4
jb 0x428e9b
or byte [ebp + 0x12], 0x20
jmp 0x428ec0
xor eax, eax
jmp 0x428ed0
or byte [ebp + 0x12], 4
jmp 0x428ec0
mov eax, dword [0x4389f4]
test eax, eax
je 0x428ec0
call eax
mov ebx, eax
test ebx, ebx
je 0x428ec0
mov eax, dword [0x4389f8]
test eax, eax
je 0x428ec0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4389f0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42a5a3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x438a54]
push edi
jae 0x42a778
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x438a60]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x42a778
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x42a64e
test dl, 2
jne 0x42a64e
test dl, 0x48
je 0x42a618
cmp byte [eax + 5], 0xa
je 0x42a618
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42a661
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x42a649
mov dword [0x4386c4], ecx
jmp 0x42a77f
cmp eax, 0x6d
jne 0x42a655
xor eax, eax
jmp 0x42a78c
push eax
call fcn.00427e55
pop ecx
jmp 0x42a789
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x42a773
test eax, eax
je 0x42a688
cmp byte [ebx], 0xa
jne 0x42a688
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x42a691
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x42a76d
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x42a75d
cmp al, 0xd
je 0x42a6c3
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x42a74f
dec ecx
cmp dword [ebp - 8], ecx
jae 0x42a6dd
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x42a6d8
add dword [ebp - 8], 2
jmp 0x42a731
mov dword [ebp - 8], eax
jmp 0x42a74b
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
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 0x42a705
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42a74b
cmp dword [ebp - 0x10], 0
je 0x42a74b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42a726
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42a731
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42a74e
cmp ebx, dword [ebp + 0xc]
jne 0x42a736
cmp byte [ebp - 1], 0xa
jne 0x42a736
mov byte [ebx], 0xa
jmp 0x42a74e
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00428994
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42a74f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x42a6a7
jmp 0x42a76d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x42a76d
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x42a78c
and dword [0x4386c4], 0
mov dword [0x4386c0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42aaff
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041ffb0
mov eax, dword [0x437250]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x438a54]
mov dword [ebp - 4], eax
jae 0x42ac42
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x438a60]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x42ac42
push 1
push esi
push ebx
call fcn.00428994
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x42ac4c
push 2
push esi
push ebx
call fcn.00428994
add esp, 0xc
cmp eax, 0xffffffff
je 0x42ac4c
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x42abec
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00422890
push 0x8000
push ebx
call fcn.0042b428
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x42abab
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00424604
add esp, 0xc
cmp eax, 0xffffffff
je 0x42abc9
sub edi, eax
test edi, edi
jg 0x42aba0
jmp 0x42abdf
cmp dword [0x4386c4], 5
jne 0x42abdc
mov dword [0x4386c0], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0042b428
pop ecx
pop ecx
jmp 0x42ac2c
jge 0x42ac2c
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00428994
push ebx
call fcn.0042916a
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, 0xffffffff
jne 0x42ac2c
mov dword [0x4386c0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4386c4], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00428994
add esp, 0xc
mov eax, esi
pop edi
jmp 0x42ac4f
mov dword [0x4386c0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0042001e
leave
ret
Function at 0x42b8f8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x42b911
or eax, 0xffffffff
jmp 0x42b972
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x42b96e
push 0x3d
push esi
call fcn.0042baf8
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x42b96e
cmp esi, eax
je 0x42b96e
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4386ec]
sete cl
cmp eax, dword [0x4386f0]
mov dword [ebp - 8], ecx
jne 0x42b954
mov edi, eax
call fcn.0042b897
mov dword [0x4386ec], eax
cmp eax, ebx
jne 0x42b9ad
cmp dword [ebp + 0xc], ebx
je 0x42b976
cmp dword [0x4386f4], ebx
je 0x42b976
call fcn.0042ac9a
test eax, eax
je 0x42b9ad
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x42b97f
xor eax, eax
jmp 0x42b971
push 4
call fcn.0041fc7a
cmp eax, ebx
pop ecx
mov dword [0x4386ec], eax
je 0x42b96e
mov dword [eax], ebx
cmp dword [0x4386f4], ebx
jne 0x42b9ad
push 4
call fcn.0041fc7a
cmp eax, ebx
pop ecx
mov dword [0x4386f4], eax
je 0x42b96e
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4386ec]
call fcn.0042b84a
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x42ba0e
cmp dword [esi], ebx
je 0x42ba0e
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0041fc8c
cmp dword [ebp - 8], ebx
pop ecx
jne 0x42b9f1
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x42ba4f
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x42b9e8
mov eax, edi
shl eax, 2
push eax
push dword [0x4386ec]
call fcn.0042293c
cmp eax, ebx
pop ecx
pop ecx
je 0x42ba4f
jmp 0x42ba4a
cmp dword [ebp - 8], ebx
jne 0x42baba
cmp edi, ebx
jge 0x42ba1d
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4386ec]
call fcn.0042293c
cmp eax, ebx
pop ecx
pop ecx
je 0x42b96e
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4386ec], eax
cmp dword [ebp + 0xc], ebx
je 0x42baa4
push dword [ebp - 4]
call fcn.004249d0
inc eax
inc eax
push eax
call fcn.0041fc7a
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x42baa4
push dword [ebp - 4]
push esi
call fcn.00426a90
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x42ba9d
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0041fc8c
pop ecx
cmp dword [ebp - 8], ebx
je 0x42bab2
push dword [ebp - 4]
call fcn.0041fc8c
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x42b971
push dword [ebp - 4]
call fcn.0041fc8c
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x42b97b
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x1f11728
push eax
push dword fs:[0]
pop ss
int1
add dword [eax + 0x64], edx
push dword [0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xeb
jp 0x40109d
mov byte [eax - 0x47], dh
jg 0x401033
mov ecx, 0xd4e4027f
in al, 0xd4
jmp 0x4010af
test eax, 0xcf33638c
adc ch, bl
js 0x400fd0
sbb ch, ah
daa
stosd dword es:[edi], eax
mov dword [0x540fb128], eax
xchg edi, eax
inc ecx
and dword [esi + esi*8 - 0x78], ebp
rcr byte [eax - 0x2e], 0xa4
sti
push ss
scasd eax, dword es:[edi]
jne 0x40108b
jl 0x40102c
salc
pushal
jbe 0x401085
daa
xchg esp, eax
lcall 0xa4e8, 0x1020bb2d
mov ebx, 0xa4e81020
push eax
in eax, dx
xor bl, ah
sti
bnd jg 0x401002
popal
lea ebp, [edx - 0x70bb56c6]
push ds
pop ss
cmp dword [eax + ebx*8 + 0x46], eax
and byte [eax - 0x702274c0], al
pop eax
test al, 0xc5
fisttp qword [edi + 0x3dc5a858]
lahf
mov ah, 0xc2
sub ecx, dword [0x6e1df55c]
cmp eax, 0x2bc2b49f
or eax, 0x6e1df55c
pop esp
cmc
sbb eax, 0x97530b6e
or edx, dword [ebx - 0x69]
in al, 0x34
sub dword [edi], edx
stosd dword es:[edi], eax
loop 0x4010a6
shr byte [edx - 0x45d61c4d], 1
arpl word [edi - 0x278de9a], dx
sub dword [edx + 0x21669763], edi
xchg ebp, edi
jo 0x4010b7
adc byte [ebx - 0x7b], dh
jae 0x40102e
xlatb
in al, dx
scasd eax, dword es:[edi]
rol dword [0xffffd0cf], 1
fisub dword [edx + 0x3d]
xchg edi, eax
xchg ebp, eax
push 0xa7e35ce0
iretd
loopne 0x401115
jecxz 0x401062
jmp 0x4010fb
inc edi
inc ebp
invalid
mov eax, dword [edi]
jmp 0x4010de
sub edx, esp
rol dword [edi + ebp*8], 0xc5
or cl, byte [eax - 0x67]
xchg edi, eax
inc esp
aas
leave
mov ah, 0xb5
retf