joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418672
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x429e50], esi
push edi
jne 0x418692
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 [0x429e4c], esi
mov byte [0x429e48], al
jne 0x4186f8
mov ecx, dword [0x42b3ec]
test ecx, ecx
je 0x4186d9
mov eax, dword [0x42b3e8]
sub eax, 4
cmp eax, ecx
jmp 0x4186d2
mov eax, dword [eax]
test eax, eax
je 0x4186c4
call eax
mov eax, dword [0x42b3e8]
sub eax, 4
cmp eax, dword [0x42b3ec]
mov dword [0x42b3e8], eax
jae 0x4186bc
mov eax, 0x425020
mov esi, 0x425028
cmp eax, esi
mov edi, eax
jae 0x4186f8
mov eax, dword [edi]
test eax, eax
je 0x4186f1
call eax
add edi, 4
cmp edi, esi
jb 0x4186e9
mov eax, 0x42502c
mov esi, 0x425030
cmp eax, esi
mov edi, eax
jae 0x418717
mov eax, dword [edi]
test eax, eax
je 0x418710
call eax
add edi, 4
cmp edi, esi
jb 0x418708
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x418731
push dword [ebp + 8]
mov dword [0x429e50], 1
call fcn.004185d8
pop ebp
ret

Function at 0x419d27
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x427810]
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 + 0x427ac8]
je 0x419d5c
inc eax
cmp eax, 0x13
jb 0x419d4d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x427ac8]
jne 0x419e82
mov eax, dword [0x429e00]
cmp eax, 1
je 0x419e5a
cmp eax, edx
jne 0x419d8c
cmp dword [0x42780c], 1
je 0x419e5a
cmp ecx, 0xfc
je 0x419e82
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 0x419dc2
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041e220
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041d010
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x419df6
mov eax, edi
push eax
call fcn.0041d010
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x423f38
push edi
call fcn.004180a0
add esp, 0x10
push edi
call fcn.0041d010
push dword [esi + 0x427acc]
mov ebx, eax
call fcn.0041d010
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00417fc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041e220
push edi
push ebx
call fcn.0041e230
push 0x423f18
push ebx
call fcn.0041e230
push dword [esi + 0x427acc]
push ebx
call fcn.0041e230
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041e62e
add esp, 0x2c
jmp 0x419e82
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x427acc]
push dword [esi]
call fcn.0041d010
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.004185ca
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41d376
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.00417fc0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d411
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 [0x429e10]
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 0x41d411
cmp eax, 1
je 0x41d432
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 0x41d411
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41d3de
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41d40d
xor eax, eax
inc eax
jmp 0x41d451
cmp edi, eax
jae 0x41d415
xor eax, eax
jmp 0x41d451
cmp eax, esi
jae 0x41d41c
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 [0x429e10]
jmp 0x41d435
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 0x41d69f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x42a2a4]
mov eax, dword [0x427810]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x41d865
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x42a2c0]
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 0x41d865
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x41d709
xor eax, eax
jmp 0x41d879
test al, 0x20
je 0x41d71a
push 2
push edi
push edi
push ecx
call fcn.0041fda4
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41d7ef
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x41d836
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x41d77c
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41d76d
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 0x41d74f
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 0x41d7bc
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41d7c8
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x41d743
jmp 0x41d7ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x41d860
cmp dword [ebp + 0x3a4], edi
je 0x41d836
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x41d828
mov dword [0x429e08], eax
jmp 0x41d86c
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 0x41d81a
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x41d7ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x41d7ca
push dword [ebp + 0x3a4]
call fcn.0041fc8f
pop ecx
jmp 0x41d876
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41d84e
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x41d702
mov dword [0x429e04], 0x1c
mov dword [0x429e08], edi
jmp 0x41d876
sub eax, dword [ebp - 0x7c]
jmp 0x41d879
and dword [0x429e08], 0
mov dword [0x429e04], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.004185ca
add ebp, 0x39c
leave
ret
Function at 0x41e62e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x429fe8], ebx
push esi
push edi
jne 0x41e6ae
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41e6e9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x429fe8], eax
je 0x41e6e9
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x429fec], eax
call esi
cmp dword [0x429e10], 2
mov dword [0x429ff0], eax
jne 0x41e6ae
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x429ff8], eax
je 0x41e6ae
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x429ff4], eax
mov eax, dword [0x429ff4]
test eax, eax
je 0x41e6f3
call eax
test eax, eax
je 0x41e6da
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x429ff8]
test eax, eax
je 0x41e6da
test byte [ebp - 8], 1
jne 0x41e6f3
cmp dword [0x429e1c], 4
jb 0x41e6ed
or byte [ebp + 0x12], 0x20
jmp 0x41e712
xor eax, eax
jmp 0x41e722
or byte [ebp + 0x12], 4
jmp 0x41e712
mov eax, dword [0x429fec]
test eax, eax
je 0x41e712
call eax
mov ebx, eax
test ebx, ebx
je 0x41e712
mov eax, dword [0x429ff0]
test eax, eax
je 0x41e712
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x429fe8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ef8e
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 0x41efbc
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 0x41efc3
cmp ebx, dword [eax + 4]
jae 0x41efc3
xor eax, eax
jmp 0x41f1b3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41efd4
xor eax, eax
inc eax
jmp 0x41f1b2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41efea
cmp ecx, edx
jae 0x41f12f
cmp dword [eax + 4], 0
je 0x41eff3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41efdb
cmp dword [ebp + 8], 0
je 0x41f015
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41f12f
cmp eax, esi
jae 0x41f12f
mov eax, dword [0x42a000]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41f03a
cmp dword [esi*4 + 0x42a008], edi
je 0x41f133
inc esi
cmp esi, eax
jl 0x41f028
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41f1af
cmp dword [ebp - 8], 0x1000000
jne 0x41f1af
test byte [ebp - 0xc], 0xcc
je 0x41f0b8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41f1af
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41f1af
cmp word [eax + 0x18], 0x10b
jne 0x41f1af
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41f1af
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41f0b8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41f0b8
test byte [ecx + 0x27], 0x80
jne 0x41f12f
push 1
push 0x42a048
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41efcc
mov ecx, dword [0x42a000]
test ecx, ecx
mov edx, ecx
jle 0x41f0ec
lea eax, [ecx*4 + 0x42a004]
cmp dword [eax], edi
je 0x41f0ec
dec edx
sub eax, 4
test edx, edx
jg 0x41f0e0
test edx, edx
jne 0x41f11d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41f0f9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41f111
lea eax, [edx*4 + 0x42a008]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41f0ff
cmp ecx, 0x10
jge 0x41f11d
inc ecx
mov dword [0x42a000], ecx
push 0
push 0x42a048
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41efcc
xor eax, eax
jmp 0x41f1b2
test esi, esi
jle 0x41efcc
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42a048
call ebx
test eax, eax
jne 0x41efcc
cmp dword [esi*4 + 0x42a008], edi
je 0x41f189
mov eax, dword [0x42a000]
lea esi, [eax - 1]
test esi, esi
jl 0x41f177
cmp dword [esi*4 + 0x42a008], edi
je 0x41f173
dec esi
jns 0x41f167
test esi, esi
jge 0x41f187
cmp eax, 0x10
jge 0x41f182
inc eax
mov dword [0x42a000], eax
lea esi, [eax - 1]
jmp 0x41f189
je 0x41f1a1
xor ecx, ecx
test esi, esi
jl 0x41f1a1
lea eax, [ecx*4 + 0x42a008]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41f18f
push 0
push 0x42a048
call ebx
jmp 0x41efcc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41fa62
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 0x41fa7b
or eax, 0xffffffff
jmp 0x41fadc
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41fad8
push 0x3d
push esi
call fcn.00420b2c
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41fad8
cmp esi, eax
je 0x41fad8
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x429e30]
sete cl
cmp eax, dword [0x429e34]
mov dword [ebp - 8], ecx
jne 0x41fabe
mov edi, eax
call fcn.0041fa01
mov dword [0x429e30], eax
cmp eax, ebx
jne 0x41fb17
cmp dword [ebp + 0xc], ebx
je 0x41fae0
cmp dword [0x429e38], ebx
je 0x41fae0
call fcn.0041d0da
test eax, eax
je 0x41fb17
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41fae9
xor eax, eax
jmp 0x41fadb
push 4
call fcn.004189de
cmp eax, ebx
pop ecx
mov dword [0x429e30], eax
je 0x41fad8
mov dword [eax], ebx
cmp dword [0x429e38], ebx
jne 0x41fb17
push 4
call fcn.004189de
cmp eax, ebx
pop ecx
mov dword [0x429e38], eax
je 0x41fad8
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x429e30]
call fcn.0041f9b4
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x41fb78
cmp dword [esi], ebx
je 0x41fb78
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00418561
cmp dword [ebp - 8], ebx
pop ecx
jne 0x41fb5b
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41fbb9
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x41fb52
mov eax, edi
shl eax, 2
push eax
push dword [0x429e30]
call fcn.0041f1b7
cmp eax, ebx
pop ecx
pop ecx
je 0x41fbb9
jmp 0x41fbb4
cmp dword [ebp - 8], ebx
jne 0x41fc24
cmp edi, ebx
jge 0x41fb87
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x429e30]
call fcn.0041f1b7
cmp eax, ebx
pop ecx
pop ecx
je 0x41fad8
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 [0x429e30], eax
cmp dword [ebp + 0xc], ebx
je 0x41fc0e
push dword [ebp - 4]
call fcn.0041d010
inc eax
inc eax
push eax
call fcn.004189de
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41fc0e
push dword [ebp - 4]
push esi
call fcn.0041e220
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 0x41fc07
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00418561
pop ecx
cmp dword [ebp - 8], ebx
je 0x41fc1c
push dword [ebp - 4]
call fcn.00418561
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41fadb
push dword [ebp - 4]
call fcn.00418561
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x41fae5
Function at 0x420913
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 [0x42a2a4]
push edi
jae 0x420ae8
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x42a2c0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x420ae8
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4209be
test dl, 2
jne 0x4209be
test dl, 0x48
je 0x420988
cmp byte [eax + 5], 0xa
je 0x420988
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 0x4209d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4209b9
mov dword [0x429e08], ecx
jmp 0x420aef
cmp eax, 0x6d
jne 0x4209c5
xor eax, eax
jmp 0x420afc
push eax
call fcn.0041fc8f
pop ecx
jmp 0x420af9
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x420ae3
test eax, eax
je 0x4209f8
cmp byte [ebx], 0xa
jne 0x4209f8
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x420a01
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 0x420add
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x420acd
cmp al, 0xd
je 0x420a33
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x420abf
dec ecx
cmp dword [ebp - 8], ecx
jae 0x420a4d
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x420a48
add dword [ebp - 8], 2
jmp 0x420aa1
mov dword [ebp - 8], eax
jmp 0x420abb
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 0x420a75
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x420abb
cmp dword [ebp - 0x10], 0
je 0x420abb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x420a96
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x420aa1
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x420abe
cmp ebx, dword [ebp + 0xc]
jne 0x420aa6
cmp byte [ebp - 1], 0xa
jne 0x420aa6
mov byte [ebx], 0xa
jmp 0x420abe
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d613
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x420abf
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x420a17
jmp 0x420add
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x420add
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 0x420afc
and dword [0x429e08], 0
mov dword [0x429e04], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xe3102ca
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7f853c0a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40cdc9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40cdd3
repz ret
jmp fcn.004135f9

Function at 0x413b3e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104a0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413bef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ca0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ca0
push eax
call fcn.0041042e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041042e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041042e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041042e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413bef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041042e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c47
cmp dword [0x423e2c], ebx
je 0x413c47
push eax
call fcn.004104a9
push dword [0x423e2c]
mov esi, eax
call fcn.004104a9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c47
test edi, edi
je 0x413c47
call esi
test eax, eax
je 0x413c3e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c3e
test byte [ebp - 0xc], 1
jne 0x413c47
or dword [ebp + 0x10], 0x200000
jmp 0x413c80
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413c80
push eax
call fcn.004104a9
pop ecx
test eax, eax
je 0x413c80
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413c80
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413c80
push eax
call fcn.004104a9
pop ecx
test eax, eax
je 0x413c80
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104a9
pop ecx
test eax, eax
je 0x413ca0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ca2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0xab2bc0
Capabilities:
Encode data using xor

Disassembly:
xor al, al
cmp dword [esp + 8], 0
push ebp
mov ebp, dword [esp + 8]
je 0xab2c57
test ebp, ebp
je 0xab2c57
mov eax, ebp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0xab2be0
sub eax, edx
push ebx
sar eax, 1
shr eax, 1
push esi
mov ebx, eax
push edi
lea edi, [ebx + 2]
push edi
call fcn.00ab374f
mov esi, eax
add esp, 4
test esi, esi
je 0xab2c52
push edi
push 0
push esi
call fcn.00ab6370
push esi
push ebp
mov eax, ebx
call fcn.00ab20d0
add esp, 0x14
xor eax, eax
test ebx, ebx
jbe 0xab2c2b
xor byte [eax + esi], bl
inc eax
cmp eax, ebx
jb 0xab2c23
mov ecx, dword [esp + 0x18]
lea eax, [ebx + ebx]
push eax
push ecx
push ebx
push esi
push 0
push 0
call dword [0xabf018]
push esi
mov bl, 1
call fcn.00ab574e
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
Function at 0x1000bd15
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
movzx ebx, word [edx]
push esi
mov esi, dword [0x1002aba4]
push edi
sub esi, 0x1007dc0a
or esi, 0x5bea9fd1
mov ecx, dword [0x1002ad78]
mov edi, str.cryptox509_v3_addr.c
push 0x63
and ecx, 0x5661bc57
mov dword [ebp - 4], 9
pop eax
add eax, 0xffffffd0
cmp ax, word [ebp - 4]
ja 0x1000bd69
movzx ebx, word [edx]
add edi, 2
movzx eax, word [edi]
mov dword [ebp - 8], eax
test ax, ax
jne 0x1000bd4d
jmp 0x1000bd6f
imul ecx, esi, 0xe7589276
xor ecx, 0x2a648a6
test bx, bx
je 0x1000bd9d
movzx esi, bx
mov ebx, dword [ebp - 4]
lea eax, [esi - 0x30]
cmp ax, bx
ja 0x1000bd97
add edx, 2
movzx eax, word [edx]
mov esi, eax
test ax, ax
jne 0x1000bd80
jmp 0x1000bd9d
add ecx, 0x42e516b
or ecx, 0xa51b5943
lea eax, [ecx - 0x145a0604]
and eax, 0xbe056786
and eax, 0x54c596b7
mov dword [0x1002ab20], eax
add eax, 0x34267cc3
pop edi
mov dword [0x1002ad78], eax
add eax, 0x3bf97b25
pop esi
mov dword [0x1002aba4], eax
pop ebx
leave
ret