joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4967e7
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 0x496815
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 0x49681c
cmp ebx, dword [eax + 4]
jae 0x49681c
xor eax, eax
jmp 0x496a0c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x49682d
xor eax, eax
inc eax
jmp 0x496a0b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x496843
cmp ecx, edx
jae 0x496988
cmp dword [eax + 4], 0
je 0x49684c
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x496834
cmp dword [ebp + 8], 0
je 0x49686e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x496988
cmp eax, esi
jae 0x496988
mov eax, dword [0x4beef8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x496893
cmp dword [esi*4 + 0x4bef00], edi
je 0x49698c
inc esi
cmp esi, eax
jl 0x496881
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x496a08
cmp dword [ebp - 8], 0x1000000
jne 0x496a08
test byte [ebp - 0xc], 0xcc
je 0x496911
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x496a08
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x496a08
cmp word [eax + 0x18], 0x10b
jne 0x496a08
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x496a08
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x496911
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x496911
test byte [ecx + 0x27], 0x80
jne 0x496988
push 1
push 0x4bef40
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x496825
mov ecx, dword [0x4beef8]
test ecx, ecx
mov edx, ecx
jle 0x496945
lea eax, [ecx*4 + 0x4beefc]
cmp dword [eax], edi
je 0x496945
dec edx
sub eax, 4
test edx, edx
jg 0x496939
test edx, edx
jne 0x496976
push 0xf
pop ebx
cmp ecx, ebx
jg 0x496952
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x49696a
lea eax, [edx*4 + 0x4bef00]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x496958
cmp ecx, 0x10
jge 0x496976
inc ecx
mov dword [0x4beef8], ecx
push 0
push 0x4bef40
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x496825
xor eax, eax
jmp 0x496a0b
test esi, esi
jle 0x496825
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x4bef40
call ebx
test eax, eax
jne 0x496825
cmp dword [esi*4 + 0x4bef00], edi
je 0x4969e2
mov eax, dword [0x4beef8]
lea esi, [eax - 1]
test esi, esi
jl 0x4969d0
cmp dword [esi*4 + 0x4bef00], edi
je 0x4969cc
dec esi
jns 0x4969c0
test esi, esi
jge 0x4969e0
cmp eax, 0x10
jge 0x4969db
inc eax
mov dword [0x4beef8], eax
lea esi, [eax - 1]
jmp 0x4969e2
je 0x4969fa
xor ecx, ecx
test esi, esi
jl 0x4969fa
lea eax, [ecx*4 + 0x4bef00]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4969e8
push 0
push 0x4bef40
call ebx
jmp 0x496825
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x496a71
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.0048fb80
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x496b0c
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 [0x4bed3c]
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 0x496b0c
cmp eax, 1
je 0x496b2d
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 0x496b0c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x496ad9
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x496b08
xor eax, eax
inc eax
jmp 0x496b4c
cmp edi, eax
jae 0x496b10
xor eax, eax
jmp 0x496b4c
cmp eax, esi
jae 0x496b17
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 [0x4bed3c]
jmp 0x496b30
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 0x49c768
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4bd33c]
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 + 0x4bd350]
je 0x49c79f
inc eax
cmp eax, 0x13
jb 0x49c790
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4bd350]
jne 0x49c8c2
mov eax, dword [0x4bed34]
cmp eax, 1
je 0x49c89d
cmp eax, edx
jne 0x49c7cf
cmp dword [0x4bcb8c], 1
je 0x49c89d
cmp ecx, 0xfc
je 0x49c8c2
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 0x49c805
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.0048f8f0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00494bf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x49c839
mov eax, edi
push eax
call fcn.00494bf0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4b68f8
push edi
call fcn.0049eda0
add esp, 0x10
push edi
call fcn.00494bf0
push dword [esi + 0x4bd354]
mov ebx, eax
call fcn.00494bf0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0048fb80
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0048f8f0
push edi
push ebx
call fcn.0048f900
push 0x4b68d8
push ebx
call fcn.0048f900
push dword [esi + 0x4bd354]
push ebx
call fcn.0048f900
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004a06a8
add esp, 0x2c
jmp 0x49c8c2
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4bd354]
push dword [esi]
call fcn.00494bf0
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.0049d3a0
add ebp, 0x90
leave
ret
Function at 0x49cd8c
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4bf23c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x49cdd5
call ebp
mov esi, eax
cmp esi, ebx
je 0x49cdbb
mov dword [0x4bf23c], 1
jmp 0x49cdda
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x49cdd0
push 2
pop eax
mov dword [0x4bf23c], eax
jmp 0x49cdd5
mov eax, dword [0x4bf23c]
cmp eax, 1
jne 0x49ce32
cmp esi, ebx
jne 0x49cded
call ebp
mov esi, eax
cmp esi, ebx
jne 0x49cded
xor eax, eax
jmp 0x49ced9
cmp word [esi], bx
mov eax, esi
je 0x49ce02
inc eax
inc eax
cmp word [eax], bx
jne 0x49cdf4
inc eax
inc eax
cmp word [eax], bx
jne 0x49cdf4
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00490f44
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x49ce25
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x49ced9
push ebp
push esi
push edi
call fcn.00490080
add esp, 0xc
jmp 0x49ce17
cmp eax, 2
je 0x49ce3b
cmp eax, ebx
jne 0x49cde6
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x49cde6
cmp byte [ebp], bl
mov esi, ebp
je 0x49ce71
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp eax, ebx
je 0x49cde6
push esi
add edi, eax
call fcn.00494bf0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x49ce4e
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00490f44
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x49ceea
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x49cecb
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x49cee0
push edi
call fcn.00494bf0
push esi
lea edi, [edi + eax + 1]
call fcn.00490acd
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x49ce91
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00490ae3
pop ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
jmp 0x49cde6
Function at 0x49cef6
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4bf240]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
jne 0x49cf36
call esi
test eax, eax
je 0x49cf1b
mov dword [0x4bf240], 1
jmp 0x49cf3b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x49cf32
mov dword [0x4bf240], 2
jmp 0x49cf44
xor eax, eax
jmp 0x49cf92
cmp eax, 1
jne 0x49cf3f
call esi
jmp 0x49cf92
cmp eax, 2
jne 0x49cf32
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x49cf8a
lea eax, [esi + esi]
push eax
call fcn.00490f44
mov ebp, eax
test ebp, ebp
pop ecx
je 0x49cf8a
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x49cf8e
push ebp
call fcn.00490ae3
pop ecx
xor eax, eax
jmp 0x49cf90
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4a06a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4bf2cc], ebx
push esi
push edi
jne 0x4a0728
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a0763
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4b83a4
push edi
call esi
test eax, eax
mov dword [0x4bf2cc], eax
je 0x4a0763
push 0x4b8394
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4bf2d0], eax
call esi
cmp dword [0x4bed3c], 2
mov dword [0x4bf2d4], eax
jne 0x4a0728
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4bf2dc], eax
je 0x4a0728
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4bf2d8], eax
mov eax, dword [0x4bf2d8]
test eax, eax
je 0x4a076d
call eax
test eax, eax
je 0x4a0754
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4bf2dc]
test eax, eax
je 0x4a0754
test byte [ebp - 8], 1
jne 0x4a076d
cmp dword [0x4bed48], 4
jb 0x4a0767
or byte [ebp + 0x12], 0x20
jmp 0x4a078c
xor eax, eax
jmp 0x4a079c
or byte [ebp + 0x12], 4
jmp 0x4a078c
mov eax, dword [0x4bf2d0]
test eax, eax
je 0x4a078c
call eax
mov ebx, eax
test ebx, ebx
je 0x4a078c
mov eax, dword [0x4bf2d4]
test eax, eax
je 0x4a078c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4bf2cc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a1c7c
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 0x4a1e52
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4bf5e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4a1e52
test cl, 0x48
je 0x4a1ce7
cmp byte [eax + 5], 0xa
je 0x4a1ce7
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 0x4a1d39
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4a1d21
call fcn.00494900
mov dword [eax], 9
call fcn.00494909
mov dword [eax], esi
jmp 0x4a1d31
cmp eax, 0x6d
je 0x4a1e52
push eax
call fcn.00494912
pop ecx
or eax, 0xffffffff
jmp 0x4a1e54
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4a1e4d
test eax, eax
je 0x4a1d60
cmp byte [ebx], 0xa
jne 0x4a1d60
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4a1d69
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 0x4a1e47
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4a1e37
cmp al, 0xd
je 0x4a1d9b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4a1e29
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4a1db5
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4a1db0
add dword [ebp + 0x10], 2
jmp 0x4a1e09
mov dword [ebp + 0x10], eax
jmp 0x4a1e25
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 0x4a1ddd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4a1e25
cmp dword [ebp - 0xc], 0
je 0x4a1e25
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4a1dfe
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4a1e09
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4a1e28
cmp ebx, dword [ebp + 0xc]
jne 0x4a1e0e
cmp byte [ebp - 1], 0xa
jne 0x4a1e0e
mov byte [ebx], 0xa
jmp 0x4a1e28
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0049d629
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a1e29
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4a1d7f
jmp 0x4a1e47
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4a1e47
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 0x4a1e54
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a2685
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 0x4a269e
or eax, 0xffffffff
jmp 0x4a26ff
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4a26fb
push 0x3d
push esi
call fcn.004a2886
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4a26fb
cmp esi, eax
je 0x4a26fb
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4bed5c]
sete cl
cmp eax, dword [0x4bed60]
mov dword [ebp - 4], ecx
jne 0x4a26e1
mov edi, eax
call fcn.004a2624
mov dword [0x4bed5c], eax
cmp eax, ebx
jne 0x4a273a
cmp dword [ebp + 0xc], ebx
je 0x4a2703
cmp dword [0x4bed64], ebx
je 0x4a2703
call fcn.004a1bec
test eax, eax
je 0x4a273a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4a270c
xor eax, eax
jmp 0x4a26fe
push 4
call fcn.00490f44
cmp eax, ebx
pop ecx
mov dword [0x4bed5c], eax
je 0x4a26fb
mov dword [eax], ebx
cmp dword [0x4bed64], ebx
jne 0x4a273a
push 4
call fcn.00490f44
cmp eax, ebx
pop ecx
mov dword [0x4bed64], eax
je 0x4a26fb
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4bed5c]
sub edi, esi
push esi
call fcn.004a25d7
mov edi, eax
test edi, edi
pop ecx
jl 0x4a27a1
cmp dword [ebx], 0
je 0x4a27a1
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00490ae3
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4a2781
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4a27e2
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x4a2778
mov eax, edi
shl eax, 2
push eax
push dword [0x4bed5c]
call fcn.00492aaa
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4a27e2
jmp 0x4a27dd
cmp dword [ebp - 4], 0
jne 0x4a2849
test edi, edi
jge 0x4a27b1
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4bed5c]
call fcn.00492aaa
test eax, eax
pop ecx
pop ecx
je 0x4a26fb
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4bed5c], eax
cmp dword [ebp + 0xc], 0
je 0x4a2834
push esi
call fcn.00494bf0
inc eax
inc eax
push eax
call fcn.00490f44
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4a2834
push esi
push edi
call fcn.0048f8f0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x4a282d
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00490ae3
pop ecx
cmp dword [ebp - 4], 0
je 0x4a2841
push esi
call fcn.00490ae3
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4a26fe
push esi
call fcn.00490ae3
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4a2708
Function at 0x10001000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov al, 0x65
push ebx
mov byte [ebp - 0x2b], al
mov byte [ebp - 0x28], al
mov al, 0x6c
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ecx], 0x1001b2c0
mov byte [ebp - 0x2c], 0x6b
mov byte [ebp - 0x2a], 0x72
mov byte [ebp - 0x29], 0x6e
mov byte [ebp - 0x27], al
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], al
mov byte [ebp - 0x20], 0
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov al, 0x65
mov cl, 0x74
mov byte [ebp - 0x1c], 0x43
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x19], 0x61
mov byte [ebp - 0x18], cl
mov byte [ebp - 0x17], al
mov byte [ebp - 0x16], 0x45
mov byte [ebp - 0x15], 0x76
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], 0x6e
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x11], 0x41
mov byte [ebp - 0x10], 0
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push eax
push ecx
call dword [0x1001b0c4]
push eax
call dword [0x1001b0cc]
mov dword [ebp - 8], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0x1001e020
call dword [0x1001b0c4]
mov dword [0x10020cf0], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0
push 0
push 0
push 0
call dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
call dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], 2
mov dword [ecx + 0x28], eax
lea eax, [ecx + 0x30]
mov dword [ecx + 0x2c], ebx
mov dword [ecx + 0x1c], ebx
mov dword [ecx + 0x20], ebx
mov dword [ecx + 4], 0x3e8
mov byte [ecx + 0x44], bl
mov byte [ecx + 0x45], bl
mov dword [ebp - 8], eax
mov ecx, dword [ecx + 4]
push ecx
call fcn.10019860
mov edx, dword [ebp - 8]
add esp, 4
mov dword [edx - 0x28], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0x20
call fcn.10019860
mov esi, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call fcn.10019860
push 0x20
mov dword [esi - 0x20], eax
call fcn.10019860
mov ecx, dword [ebp - 4]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
add esi, 4
dec eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
jne 0x10001115
lea eax, [ecx + 0x46]
xor edx, edx
mov esi, eax
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
mov word [eax], 0x31
mov word [ecx + 0x48], 1
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov eax, dword [ebp - 4]
mov dword [eax + 0x4a], 0x1f40
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [eax + 0x4e], 0x659
mov word [eax + 0x52], 0x41
mov word [eax + 0x54], 0
mov word [eax + 0x56], 2
mov word [eax + 0x58], 0x140
mov esp, ebp
pop ebp
ret
Function at 0x10001ac0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019adb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push 0x1001e020
call dword [0x1001b0c4]
mov dword [ebp - 0x10], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov eax, dword [ebp - 0x10]
push 0x1001e158
push eax
call dword [0x1001b0cc]
call eax
test eax, eax
jne 0x10001b21
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [0x10020cf4]
test al, al
je 0x10001b3d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
call fcn.10019860
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov dword [ebp - 4], 0
je 0x10001b5e
mov ecx, eax
call fcn.10001000
jmp 0x10001b60
xor eax, eax
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 0xc]
mov al, 1
mov dword fs:[0], ecx
mov byte [0x10020cf4], al
mov esp, ebp
pop ebp
ret
Function at 0x10002220
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019b1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1bc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x34], esi
lea ecx, [esi + 4]
call fcn.10001c80
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], ebx
call fcn.10001c80
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.10001c80
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 2
call fcn.10001c80
mov al, 0x65
mov byte [ebp - 4], 3
mov byte [ebp - 0x2b], al
mov byte [ebp - 0x28], al
mov al, 0x6c
mov dword [esi], 0x1001b2d8
mov byte [ebp - 0x2c], 0x6b
mov byte [ebp - 0x2a], 0x72
mov byte [ebp - 0x29], 0x6e
mov byte [ebp - 0x27], al
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], al
mov byte [ebp - 0x20], bl
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov al, 0x65
mov cl, 0x74
mov byte [ebp - 0x1c], 0x43
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x19], 0x61
mov byte [ebp - 0x18], cl
mov byte [ebp - 0x17], al
mov byte [ebp - 0x16], 0x45
mov byte [ebp - 0x15], 0x76
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], 0x6e
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x11], 0x41
mov byte [ebp - 0x10], 0
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push eax
push ecx
call dword [0x1001b0c4]
push eax
call dword [0x1001b0cc]
mov dword [ebp - 0x38], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
lea edx, [ebp - 0x1c8]
push edx
push 0x202
call dword [0x1001b29c]
mov edi, dword [0x1001b16c]
push 0x30
call edi
add esp, 4
push 0
push 0
push 1
push 0
call dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
push 0x30
mov dword [esi + 0xac], eax
call edi
mov byte [ebp - 0x34], 0x47
mov byte [ebp - 0x33], 0x68
mov byte [ebp - 0x32], 0x30
mov byte [ebp - 0x31], 0x73
mov edx, dword [ebp - 0x34]
lea ecx, [esi + 0xb0]
add esp, 4
mov al, 0x74
mov dword [ecx], edx
mov byte [esi + 0xb5], 0
mov dword [esi + 0xa8], 0xffffffff
pop edi
mov byte [ecx + 4], al
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret