joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4197ba
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x49a188
cmp edx, dword [eax]
je 0x4197dc
add eax, 8
inc ecx
cmp eax, 0x49a218
jl 0x4197cd
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x49a188]
jne 0x41990a
mov eax, dword [0x49e480]
cmp eax, 1
je 0x4198e4
test eax, eax
jne 0x41980d
cmp dword [0x499a84], 1
je 0x4198e4
cmp edx, 0xfc
je 0x41990a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x419844
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00414c00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004146b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x419887
lea eax, [ebp - 0x1a4]
push eax
call fcn.004146b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x487fec
push edi
call fcn.0041e440
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00414c00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00414c10
lea eax, [ebp - 0xa0]
push 0x487fcc
push eax
call fcn.00414c10
push dword [esi + 0x49a18c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00414c10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041e3a8
add esp, 0x2c
pop edi
jmp 0x41990a
lea eax, [ebp + 8]
lea esi, [esi + 0x49a18c]
push 0
push eax
push dword [esi]
call fcn.004146b0
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]
pop esi
leave
ret
Function at 0x42a130
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00414340
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42a1fb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42a1fb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42a1ae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42a1b9
or bh, 8
and edi, 0x8000000
je 0x42a1d4
mov eax, dword [0x4a073c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42a1fb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a5d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42a5fb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42a61f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42a63a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x440ecf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x440f07
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00444871
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00444849
jmp 0x440f13
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x442cd1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x442d13
call fcn.00464d89
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x442d13
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x442d0a
xor eax, eax
jmp 0x442d1b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00442d21
pop edi
pop esi
pop ebx
ret 4

Function at 0x444c55
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x444c77
cmp dword [edi + 0x3c], 0
jne 0x444c77
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00464d89
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00444cb6
pop edi
pop esi
pop ebx
ret 8

Function at 0x444d1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00464d89
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x444d4b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00444d70
pop edi
pop esi
pop ebx
ret 8
Function at 0x401990
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0x425ea8
push 0x425eb8
call dword [sym.imp.mscoree.dll_CLRCreateInstance]
test eax, eax
je 0x4019d7
lea ecx, [ebp - 4]
push ecx
push 0x425e78
push 0x425e98
push 0
push 0
call dword [sym.imp.mscoree.dll_CorBindToRuntime]
nop
jmp 0x401a4e
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 0x14]
call eax
push 0
lea ecx, [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
push ecx
push 0x425ec8
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [eax]
call edx
nop
lea eax, [ebp - 4]
push eax
push 0x425e78
push 0x425e98
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 0x24]
call ecx
nop
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [eax + 0x28]
call edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4136ca
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x4136ff
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x4136fc
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x413708
add edx, 0x28
cmp edx, esi
jne 0x4136ea
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x413705

Function at 0x413b4d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x413b8c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413b8c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413b8c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x413b8c
cmp dword [ecx + 0x74], 0xe
jbe 0x413b8c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4197c4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x419861
push ebx
push esi
call fcn.0041978d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00419723
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41980e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419860
push edi
push eax
call fcn.00417950
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41982e
call fcn.00417900
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41985f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00419723
add esp, 0x20
test eax, eax
jne 0x41984d
push edi
call fcn.00417900
jmp 0x419855
push ebx
call fcn.00417900
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4206e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42070d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42070d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4f2970
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x4f2a02
mov eax, dword [0x53e0d0]
test eax, eax
je 0x4f29f6
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x4f2a71
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x4f2a17
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.004f25c0
cmp eax, 7
jne 0x4f2a8f
mov eax, dword [0x53e0d0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4f2a62
mov edx, dword [eax + 0x30]
test edx, edx
js 0x4f2a80
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x4f2a43
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.004f1dd0
mov eax, dword [0x53e0d0]
jmp 0x4f2992
mov dword [esp], edi
call fcn.004f2430
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x4f29a7
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4f29e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4f29e5
call fcn.004f1dd0
mov eax, dword [0x53e0d0]
jmp 0x4f29d0
call fcn.004f20a0
mov eax, dword [0x53e0d0]
jmp 0x4f299d
call fcn.004f20a0
mov eax, dword [0x53e0d0]
jmp 0x4f29db
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x10019e8c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x10019ea3
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8

Function at 0x10019ec5
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov edx, 0x10070de4
push edi
mov esi, edx
mov edi, 0x7fffffff
mov ecx, dword [esi + 0x9c4]
xor ecx, dword [esi + 0x9c0]
and ecx, edi
xor ecx, dword [esi + 0x9c0]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0xff4]
xor eax, ecx
mov dword [esi], eax
add esi, 4
cmp esi, 0x10071170
jl 0x10019ed3
mov esi, 0x9908b0df
mov ecx, dword [edx + 0xd50]
xor ecx, dword [edx + 0xd4c]
and ecx, edi
xor ecx, dword [edx + 0xd4c]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, esi
xor eax, ecx
xor eax, dword [edx]
mov dword [edx + 0x38c], eax
add edx, 4
cmp edx, 0x10071414
jl 0x10019f13
mov ecx, dword [0x10072160]
xor ecx, dword [0x10070de4]
and ecx, edi
xor ecx, dword [0x10072160]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [0x10070de0], 0
and eax, esi
shr ecx, 1
xor eax, ecx
xor eax, dword [0x10071414]
mov dword [0x100717a0], eax
pop esi
ret
Function at 0x1002d37c
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x100578a0
call fcn.100568f8
sub esp, 0x28
and dword [ebp - 0x24], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
push 0x1002af65
push fcn.10027f6e
xor ebx, ebx
lea eax, [ebp - 0x30]
inc ebx
push ebx
push 0xc
push eax
mov dword [ebp - 4], ebx
call fcn.1003ed59
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], 0x2ad8
cmp dword [ebp - 0x1c], 0x2c68
jle 0x1002d41d
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x18], edi
xor esi, esi
mov dword [ebp - 0x14], esi
mov eax, edi
cdq
idiv esi
mov esi, 0x7bc3
mov edi, edx
mov eax, edi
mov ecx, 0x1006f958
xor eax, ebx
cdq
push edx
push eax
call fcn.10001c9b
dec edi
dec esi
jne 0x1002d3de
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
inc esi
mov dword [ebp - 0x14], esi
cmp esi, 0x7c1e
jl 0x1002d3d2
inc edi
mov dword [ebp - 0x18], edi
cmp edi, 0x6437
jl 0x1002d3cd
inc ebx
cmp ebx, 0x3749
jl 0x1002d3c8
xor ebx, ebx
inc ebx
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.100150a4
lea ecx, [ebp - 0x30]
call fcn.1002d291
add esp, 0x18
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 0x2a2e
jge 0x1002d471
mov edx, str.xrtcwl_qfzbjsg_fspi_zbwhpab_szdxijo_rrr_hhlcqxy_ykvofig_rbgtb_rgd_ptmejbt
mov ecx, 0x1006f958
call fcn.1000366a
jmp 0x1002d471
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
push eax
call fcn.1002af1f
push 0x1002af65
push ebx
push 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], ebx
push eax
mov byte [ebp - 4], bl
call fcn.1003ea0b
push 0
push ebx
lea ecx, [ebp + 8]
call fcn.1001570a
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002e2a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10057930
call fcn.100568f8
sub esp, 0x10
mov byte [ebp - 0x14], dl
push ebx
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
push esi
push edi
mov dword [ebp - 0x10], esp
test dl, dl
je 0x1002e359
mov dword [ebp - 0x18], 0x42a8
cmp dword [ebp - 0x18], 0x4319
jle 0x1002e309
xor esi, esi
xor edi, edi
xor ebx, ebx
lea eax, [ebx + edi]
mov ecx, 0x1006f958
xor eax, esi
cdq
push edx
push eax
call fcn.10001c9b
inc ebx
cmp ebx, 0x53e9
jl 0x1002e2d9
inc edi
cmp edi, 0x6454
jl 0x1002e2d7
inc esi
cmp esi, 0x1c7a
jl 0x1002e2d5
mov ebx, dword [ebp - 0x1c]
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x40d0
jge 0x1002e344
mov edx, str.eyrbnm_oynlbexhs_ftyzdnb_yyfg_arsd
mov ecx, 0x1006f958
call fcn.1000366a
jmp 0x1002e344
mov eax, dword [ebp + 0x18]
or dword [ebp - 4], 0xffffffff
movzx eax, word [eax]
push eax
push ecx
mov ecx, ebx
call fcn.10016c5b
jmp 0x1002e369
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, dword [ebp + 0xc]
sar ecx, 2
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10031706
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10057ac7
call fcn.100568f8
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x20], 0x148e
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x20], 0x1864
mov dword [ebp - 0x28], ebx
jle 0x10031791
mov edi, esi
mov ebx, esi
mov dword [ebp - 0x14], esi
mov ecx, esi
mov dword [ebp - 0x18], 0x1bb4
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
lea eax, [ebx + edi]
xor eax, ecx
mov ecx, 0x1006f958
cdq
push edx
push eax
call fcn.10001c9b
mov ecx, dword [ebp - 0x1c]
add ecx, esi
dec dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
jne 0x1003174b
inc esi
push 0
mov dword [ebp - 0x14], esi
cmp esi, 0x5ce
pop esi
jl 0x1003173c
inc ebx
cmp ebx, 0x65eb
jl 0x10031739
inc edi
cmp edi, 0x7848
jl 0x10031737
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x20], 0x12c0
jge 0x100317ac
mov edx, str.fzeyjdk_slmt_aqr
mov ecx, 0x1006f958
call fcn.1000366a
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0x10], 0
je 0x10031884
mov dword [edi], esi
jmp 0x10031876
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], 0xfffffff7
mov dword [ebx], esi
jmp 0x1003186f
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 6
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x1c], 0xb8ce2295
sbb eax, eax
xor edx, edx
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov eax, dword [edi]
mov eax, dword [edi]
mov eax, dword [ebx]
mov eax, dword [edi]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x361cd5cd
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xd69b12db
mov eax, dword [ebp - 0x14]
cmp eax, 0xd69b12db
mov eax, dword [edi]
setl dl
inc eax
xor ecx, ecx
cmp eax, edx
mov eax, dword [ebp - 0x18]
setle cl
imul eax, ecx
cmp eax, 9
ja 0x10031867
cmp dword [ebp - 0x14], esi
jne 0x10031867
mov eax, esi
jmp 0x1003186a
xor eax, eax
inc eax
mov dword [ebp - 0x18], eax
inc dword [ebx]
cmp dword [ebx], 0x10
je 0x100317f7
dec dword [edi]
cmp dword [edi], 0xffffffe9
jg 0x100317e9
jmp 0x1003190b
mov dword [ebp - 0x20], 0x2701
cmp dword [ebp - 0x20], 0x28df
jle 0x100318ef
push esi
push 0x2146
push esi
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, esi
mov ebx, esi
lea eax, [ebx + edi]
cdq
lea ecx, [ebp - 0x40]
push edx
push eax
call fcn.10001a11
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100318bd
mov eax, dword [eax]
push eax
call fcn.1003e6f6
pop ecx
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.10002003
inc ebx
cmp ebx, 0x52f0
jl 0x100318a5
inc edi
cmp edi, 0x6303
jl 0x100318a3
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowInfo]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [ebp - 0x20], 0x2613
jge 0x1003190b
push str.itaxo_yfd_giw_nupkc_dyhcvdaj_ioymaymeo_gmlx_fdfgbzyi_ogjh_pvzyeuwis_foyiro_tdixkya
call fcn.1003e6f6
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10031a84
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov byte [ebp - 8], cl
push ebx
push esi
push edi
mov edi, edx
push 0
pop esi
test cl, cl
je 0x10031bbd
mov dword [ebp - 0xc], 0x4313
cmp dword [ebp - 0xc], 0x44db
jle 0x10031aee
mov edi, esi
mov ebx, esi
mov eax, ebx
lea ecx, [ebp - 0x34]
xor eax, edi
cdq
push edx
push eax
call fcn.10001a11
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10031aca
mov eax, dword [eax]
push eax
call fcn.1003e6f6
pop ecx
push esi
push 1
lea ecx, [ebp - 0x34]
call fcn.10002003
inc ebx
cmp ebx, 0x5e96
jl 0x10031ab1
inc edi
cmp edi, 0x2fec
jl 0x10031aaf
cmp dword [ebp - 0xc], 0x3f5b
jge 0x10031b02
push str.bgfpmbo_qeludw_kwzr_hznybfqyq_ysjflggj
call fcn.1003e6f6
pop ecx
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0
je 0x10031be9
mov dword [ebp - 0x18], 0x51f2
cmp dword [ebp - 0x18], 0x53c8
jle 0x10031b9a
mov edi, esi
mov dword [ebp - 0x14], esi
mov ebx, esi
mov dword [ebp - 0x10], esi
mov ecx, esi
mov dword [ebp - 0xc], esi
mov eax, ebx
cdq
idiv ecx
lea ebx, [edx + edi]
mov edi, esi
mov ecx, edi
mov eax, ebx
shl eax, cl
lea ecx, [ebp - 0x4c]
cdq
push edx
push eax
call fcn.10001a11
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10031b52
mov eax, dword [eax]
push eax
call fcn.1003e6f6
pop ecx
push esi
push 1
lea ecx, [ebp - 0x4c]
call fcn.10002003
inc edi
cmp edi, 0x6bbe
jl 0x10031b37
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
inc ecx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
cmp ecx, 0x794e
jl 0x10031b2d
inc ebx
mov dword [ebp - 0x10], ebx
cmp ebx, 0x5b11
jl 0x10031b28
inc edi
mov dword [ebp - 0x14], edi
cmp edi, 0x3d3a
jl 0x10031b23
push 0x180a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp - 0x18], 0x5082
jge 0x10031be9
push str.wtitu_riucskgje_bbwliqmyu_cxzxp_qohbqaxl_rxiykvjq_haekscqwr_ekxfdptf_ewuswk
call fcn.1003e6f6
pop ecx
jmp 0x10031be9
mov eax, dword [edi]
mov edx, dword [ebp + 0x14]
mov eax, dword [edi]
add eax, dword [edx]
jne 0x10031bcf
cmp dword [edx], esi
je 0x10031bcf
xor esi, esi
inc esi
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [edx]
mov eax, dword [edx]
mov eax, dword [edi]
mov eax, dword [edi]
mov ecx, dword [edi]
mov eax, dword [edx]
xor edx, edx
cmp ecx, eax
setne dl
mov dword [edi], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret