joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c950
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42c970
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042a4ee
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42c993
test byte [esp + 8], 2
je 0x42c993
call fcn.0042a4dc
mov dword [eax], 0xd
call fcn.0042a4e5
mov dword [eax], 5
jmp 0x42c96c
xor eax, eax
ret

Function at 0x42f178
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4427ac]
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 + 0x442c88]
je 0x42f1ad
inc eax
cmp eax, 0x13
jb 0x42f19e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x442c88]
jne 0x42f2d3
mov eax, dword [0x476d38]
cmp eax, 1
je 0x42f2ab
cmp eax, edx
jne 0x42f1dd
cmp dword [0x4424d0], 1
je 0x42f2ab
cmp ecx, 0xfc
je 0x42f2d3
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 0x42f213
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0042a570
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042b980
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42f247
mov eax, edi
push eax
call fcn.0042b980
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x43ae80
push edi
call fcn.00425280
add esp, 0x10
push edi
call fcn.0042b980
push dword [esi + 0x442c8c]
mov ebx, eax
call fcn.0042b980
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00425970
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0042a570
push edi
push ebx
call fcn.0042a580
push 0x43ae60
push ebx
call fcn.0042a580
push dword [esi + 0x442c8c]
push ebx
call fcn.0042a580
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00432b8c
add esp, 0x2c
jmp 0x42f2d3
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x442c8c]
push dword [esi]
call fcn.0042b980
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.0042a699
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x42f7ba
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 0x42f7e8
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 0x42f7ef
cmp ebx, dword [eax + 4]
jae 0x42f7ef
xor eax, eax
jmp 0x42f9df
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42f800
xor eax, eax
inc eax
jmp 0x42f9de
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42f816
cmp ecx, edx
jae 0x42f95b
cmp dword [eax + 4], 0
je 0x42f81f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42f807
cmp dword [ebp + 8], 0
je 0x42f841
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42f95b
cmp eax, esi
jae 0x42f95b
mov eax, dword [0x4770b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42f866
cmp dword [esi*4 + 0x4770c0], edi
je 0x42f95f
inc esi
cmp esi, eax
jl 0x42f854
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42f9db
cmp dword [ebp - 8], 0x1000000
jne 0x42f9db
test byte [ebp - 0xc], 0xcc
je 0x42f8e4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42f9db
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42f9db
cmp word [eax + 0x18], 0x10b
jne 0x42f9db
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42f9db
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42f8e4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42f8e4
test byte [ecx + 0x27], 0x80
jne 0x42f95b
push 1
push 0x477100
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42f7f8
mov ecx, dword [0x4770b8]
test ecx, ecx
mov edx, ecx
jle 0x42f918
lea eax, [ecx*4 + 0x4770bc]
cmp dword [eax], edi
je 0x42f918
dec edx
sub eax, 4
test edx, edx
jg 0x42f90c
test edx, edx
jne 0x42f949
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42f925
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42f93d
lea eax, [edx*4 + 0x4770c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42f92b
cmp ecx, 0x10
jge 0x42f949
inc ecx
mov dword [0x4770b8], ecx
push 0
push 0x477100
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42f7f8
xor eax, eax
jmp 0x42f9de
test esi, esi
jle 0x42f7f8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x477100
call ebx
test eax, eax
jne 0x42f7f8
cmp dword [esi*4 + 0x4770c0], edi
je 0x42f9b5
mov eax, dword [0x4770b8]
lea esi, [eax - 1]
test esi, esi
jl 0x42f9a3
cmp dword [esi*4 + 0x4770c0], edi
je 0x42f99f
dec esi
jns 0x42f993
test esi, esi
jge 0x42f9b3
cmp eax, 0x10
jge 0x42f9ae
inc eax
mov dword [0x4770b8], eax
lea esi, [eax - 1]
jmp 0x42f9b5
je 0x42f9cd
xor ecx, ecx
test esi, esi
jl 0x42f9cd
lea eax, [ecx*4 + 0x4770c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42f9bb
push 0
push 0x477100
call ebx
jmp 0x42f7f8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431c23
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00425970
mov eax, dword [0x4427ac]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0042b04f
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x431d56
push 2
push esi
push dword [ebp + 8]
call fcn.0042b04f
add esp, 0xc
cmp eax, ebx
je 0x431d56
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x431cf6
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0042bc90
push 0x8000
push dword [ebp + 8]
call fcn.00433819
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x431cac
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0042b16e
add esp, 0xc
cmp eax, 0xffffffff
je 0x431ccc
sub edi, eax
test edi, edi
jg 0x431ca4
jmp 0x431ce4
call fcn.0042a4e5
cmp dword [eax], 5
jne 0x431ce1
call fcn.0042a4dc
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00433819
pop ecx
pop ecx
jmp 0x431d3e
jge 0x431d3e
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042b04f
push dword [ebp + 8]
call fcn.00430c8b
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x431d3e
call fcn.0042a4dc
mov dword [eax], 0xd
call fcn.0042a4e5
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0042b04f
add esp, 0xc
mov eax, esi
pop edi
jmp 0x431d58
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0042a699
leave
ret
Function at 0x432b8c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x47718c], ebx
push esi
push edi
jne 0x432c0c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x432c47
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x47718c], eax
je 0x432c47
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x477190], eax
call esi
cmp dword [0x476cc8], 2
mov dword [0x477194], eax
jne 0x432c0c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x47719c], eax
je 0x432c0c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x477198], eax
mov eax, dword [0x477198]
test eax, eax
je 0x432c51
call eax
test eax, eax
je 0x432c38
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x47719c]
test eax, eax
je 0x432c38
test byte [ebp - 8], 1
jne 0x432c51
cmp dword [0x476cd4], 4
jb 0x432c4b
or byte [ebp + 0x12], 0x20
jmp 0x432c70
xor eax, eax
jmp 0x432c80
or byte [ebp + 0x12], 4
jmp 0x432c70
mov eax, dword [0x477190]
test eax, eax
je 0x432c70
call eax
mov ebx, eax
test ebx, ebx
je 0x432c70
mov eax, dword [0x477194]
test eax, eax
je 0x432c70
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x47718c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432e91
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.00425970
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x432f2c
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 [0x476cc8]
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 0x432f2c
cmp eax, 1
je 0x432f4d
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 0x432f2c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x432ef9
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x432f28
xor eax, eax
inc eax
jmp 0x432f6c
cmp edi, eax
jae 0x432f30
xor eax, eax
jmp 0x432f6c
cmp eax, esi
jae 0x432f37
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 [0x476cc8]
jmp 0x432f50
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 0x433db1
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 0x433dca
or eax, 0xffffffff
jmp 0x433e2b
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x433e27
push 0x3d
push esi
call fcn.00433f86
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x433e27
cmp esi, eax
je 0x433e27
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x476ce8]
sete cl
cmp eax, dword [0x476cec]
mov dword [ebp - 8], ecx
jne 0x433e0d
mov edi, eax
call fcn.00433d50
mov dword [0x476ce8], eax
cmp eax, ebx
jne 0x433e66
cmp dword [ebp + 0xc], ebx
je 0x433e2f
cmp dword [0x476cf0], ebx
je 0x433e2f
call fcn.004338d3
test eax, eax
je 0x433e66
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x433e38
xor eax, eax
jmp 0x433e2a
push 4
call fcn.0042457b
cmp eax, ebx
pop ecx
mov dword [0x476ce8], eax
je 0x433e27
mov dword [eax], ebx
cmp dword [0x476cf0], ebx
jne 0x433e66
push 4
call fcn.0042457b
cmp eax, ebx
pop ecx
mov dword [0x476cf0], eax
je 0x433e27
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x476ce8]
call fcn.00433d03
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x433ec7
cmp dword [esi], ebx
je 0x433ec7
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0042458d
cmp dword [ebp - 8], ebx
pop ecx
jne 0x433eaa
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x433f08
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x433ea1
mov eax, edi
shl eax, 2
push eax
push dword [0x476ce8]
call fcn.004245fe
cmp eax, ebx
pop ecx
pop ecx
je 0x433f08
jmp 0x433f03
cmp dword [ebp - 8], ebx
jne 0x433f73
cmp edi, ebx
jge 0x433ed6
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x476ce8]
call fcn.004245fe
cmp eax, ebx
pop ecx
pop ecx
je 0x433e27
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 [0x476ce8], eax
cmp dword [ebp + 0xc], ebx
je 0x433f5d
push dword [ebp - 4]
call fcn.0042b980
inc eax
inc eax
push eax
call fcn.0042457b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x433f5d
push dword [ebp - 4]
push esi
call fcn.0042a570
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 0x433f56
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0042458d
pop ecx
cmp dword [ebp - 8], ebx
je 0x433f6b
push dword [ebp - 4]
call fcn.0042458d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x433e2a
push dword [ebp - 4]
call fcn.0042458d
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x433e34
Function at 0x40124c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x414460
call fcn.00401460
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x401287
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401287
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40129f
cmp eax, 0x20b
je 0x40128c
mov dword [ebp - 0x1c], edi
jmp 0x4012b3
cmp dword [ecx + 0x84], 0xe
jbe 0x401287
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4012ad
cmp dword [ecx + 0x74], 0xe
jbe 0x401287
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x419bc4], 0xffffffff
or dword [0x419bc8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41834c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x418348]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x419bc0], eax
call fcn.0040145a
cmp dword [section..data], edi
jne 0x401310
push fcn.0040145a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00401448
push 0x414434
push 0x414430
call sub.msvcrt.dll__initterm
mov eax, dword [0x418344]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x418340]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x41442c
push 0x4143fc
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x401376
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x401430
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x4013c4
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x401392
cmp ax, 0x22
jne 0x40137f
cmp word [esi], 0x22
jne 0x40139d
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x4013ab
cmp ax, 0x20
jbe 0x401398
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x4013d1
movzx eax, word [ebp - 0x48]
jmp 0x4013d4
cmp word [esi], 0x20
jbe 0x40139d
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x4013c4
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x4013f5
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40142a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00401499
ret

Function at 0x401e77
Capabilities:
Encode data using xor

Disassembly:
push edi
mov eax, esi
mov edi, esi
imul eax, esi
xor edx, edx
shr edi, 2
je 0x401ea5
push ebx
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + edx*4]
mov ebx, ecx
imul ebx, edx
imul ebx, esi
imul ebx, ebx, 0x11
add ecx, eax
xor ebx, ecx
inc edx
cmp edx, edi
mov eax, ebx
jb 0x401e87
pop ebx
pop edi
ret
Function at 0x401f59
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [esi], 0
jne 0x401fd7
push str.ntdll.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ecx, eax
xor eax, eax
test ecx, ecx
mov dword [esi], ecx
je 0x401fda
push edi
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 0x14], 0x4e
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x61
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0x12], 0x43
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 7], 0x64
mov byte [ebp - 0x11], 0x72
mov byte [ebp - 6], 0x45
mov byte [ebp - 5], 0x78
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0xc], 0x54
mov byte [ebp - 0xb], 0x68
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esi + 4], eax
pop edi
xor eax, eax
inc eax
leave
ret

Function at 0x401fdc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [ebp - 0x110], 6
sbb eax, eax
inc eax
leave
ret

Function at 0x402015
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, eax
call fcn.00401fdc
test eax, eax
je 0x4020a6
call fcn.00401f59
mov ebx, dword [esi + 4]
xor edx, edx
xor eax, eax
cmp ebx, edx
je 0x4020be
push edi
push 8
pop esi
mov ecx, esi
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], edx
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push edx
push edx
push edx
push 1
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push dword [ebp + 0xc]
mov dword [ebp - 0x30], 0x24
push dword [ebp + 8]
mov dword [ebp - 0x2c], 0x10003
push edx
push 0x1fffff
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], 0x10004
mov dword [ebp - 0x18], 4
mov dword [ebp + 0x14], edx
call ebx
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x14]
pop edi
jmp 0x4020be
push dword [ebp + 0x14]
xor edx, edx
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
push edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
pop esi
pop ebx
leave
ret 0x10
Function at 0x4023ee
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
call fcn.00402113
push dword [esp + 0x10]
call fcn.0040cc19
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x402444
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
mov dword [esi + 4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push dword [esi + 4]
mov dword [esi], eax
push eax
push edi
call fcn.0040c080
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x40243d
mov eax, dword [esi]
cmp dword [eax], 0x66676572
je 0x40243d
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4

Function at 0x4027d5
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4027dc
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret

Function at 0x402824
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40285d
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x402859
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret

Function at 0x402be2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x402c00
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004028a1
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret

Function at 0x402c13
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.004131b0
cmp dword [ebp + 8], 0
je 0x402c78
test esi, esi
je 0x402c66
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x402c66
and word [ebp - 0x20000], 0
push esi
push str.__s_
lea eax, [ebp - 0x20000]
push 0xfffe
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20000]
push eax
jmp 0x402c6a
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
leave
ret
Function at 0x402dc3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.004131b0
push esi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
je 0x402e1f
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.0040bf64
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
mov esi, eax
jmp 0x402e62
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x4144b8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
lea eax, [ebp - 0x4004]
sbb esi, esi
push edi
push eax
neg esi
call fcn.0040cf54
add esp, 0xc
mov eax, esi
pop esi
leave
ret