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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], 0
xor edi, edi
call fcn.00402b00
mov ecx, dword [esi + 0x100008]
mov edx, ecx
mov eax, dword [esi + 0x100004]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
cmp eax, ecx
jge 0x402dc0
cmp byte [eax + esi + 4], 0x2d
jne 0x402d76
inc eax
mov byte [ebp - 1], 1
mov dword [esi + 0x100004], eax
cmp eax, ecx
jl 0x402dc0
push dword [esi]
lea eax, [esi + 4]
mov dword [esi + 0x100004], edi
push 0x100000
push eax
call ebx
mov edx, eax
add esp, 0xc
test edx, edx
je 0x402db8
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x402d65
sub edx, ecx
mov dword [esi + 0x100008], edx
jmp 0x402dc0
cmp byte [eax + esi + 4], 0x2b
jne 0x402dc0
inc eax
mov dword [esi + 0x100004], eax
cmp eax, ecx
jl 0x402dc0
push dword [esi]
lea eax, [esi + 4]
mov dword [esi + 0x100004], edi
push 0x100000
push eax
call ebx
mov edx, eax
add esp, 0xc
test edx, edx
je 0x402db8
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x402da7
sub edx, ecx
mov dword [esi + 0x100008], edx
jmp 0x402dc0
xor edx, edx
mov dword [esi + 0x100008], edi
mov eax, dword [esi + 0x100004]
cmp eax, edx
jge 0x402e7b
mov al, byte [eax + esi + 4]
cmp al, 0x30
jb 0x402e7b
cmp al, 0x39
ja 0x402e7b
mov ecx, esi
call fcn.00401520
cmp eax, 0x30
jl 0x402e69
nop
mov ecx, esi
call fcn.00401520
cmp eax, 0x39
jg 0x402e69
call fcn.00401520
inc dword [esi + 0x100004]
lea edi, [edi + edi*4]
lea edi, [edi - 0x18]
lea edi, [eax + edi*2]
cmp dword [esi + 0x100004], edx
jl 0x402e5d
push dword [esi]
lea eax, [esi + 4]
mov dword [esi + 0x100004], 0
push 0x100000
push eax
call ebx
mov edx, eax
add esp, 0xc
test edx, edx
je 0x402e51
lea ecx, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x402e40
sub edx, ecx
mov dword [esi + 0x100008], edx
jmp 0x402e5d
mov dword [esi + 0x100008], 0
xor edx, edx
mov ecx, esi
call fcn.00401520
cmp eax, 0x30
jge 0x402df0
mov eax, edi
neg eax
cmp byte [ebp - 1], 0
cmove eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00401520
push eax
push str.PARSE_ERROR__Unexpected_char:__c_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004014d0
add esp, 0xc
push 3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x402f40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x40c00c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
mov dl, 0x2d
cmp byte [ecx + eax], dl
jne 0x403075
mov dl, byte [eax + 0x4091a5]
inc eax
test dl, dl
jne 0x402f60
lea esi, [ecx + eax]
xor edx, edx
mov eax, dword [edi + 4]
mov cl, byte [eax]
test cl, cl
je 0x402f98
mov ebx, esi
sub ebx, eax
cmp byte [ebx + eax], cl
jne 0x403075
mov cl, byte [eax + 1]
inc eax
inc edx
test cl, cl
jne 0x402f86
add esi, edx
mov cl, 0x3d
xor eax, eax
nop
cmp byte [esi + eax], cl
jne 0x403075
mov cl, byte [eax + 0x4091a9]
inc eax
test cl, cl
jne 0x402fa0
add esi, eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
add esp, 8
cmp dword [esp + 0x18], 0
fstp qword [esp + 0x10]
je 0x403075
movsd xmm1, qword [edi + 0x20]
movsd xmm0, qword [esp + 0x10]
comisd xmm0, xmm1
jb 0x40301a
cmp byte [edi + 0x29], 0
je 0x402ff5
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40301a
push dword [edi + 4]
push esi
push str.ERROR__value___s__is_too_large_for_option___s_._n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004014d0
add esp, 0x10
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
movsd xmm1, qword [edi + 0x18]
comisd xmm1, xmm0
jb 0x40305a
cmp byte [edi + 0x28], 0
je 0x403035
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40305a
push dword [edi + 4]
push esi
push str.ERROR__value___s__is_too_small_for_option___s_._n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004014d0
add esp, 0x10
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
movsd qword [edi + 0x30], xmm0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00407238
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x1c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407238
mov esp, ebp
pop ebp
ret 4
Function at 0x406e50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call fcn.00406be0
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov eax, dword [eax]
test eax, eax
je 0x406e7d
push dword [edx]
push eax
push 2
call edi
add esp, 4
push eax
call fcn.004014d0
add esp, 0xc
push dword [ebp - 8]
call fcn.00401570
mov ecx, eax
call fcn.00406ff0
add esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
xor esi, esi
call fcn.00401570
mov ecx, eax
call fcn.00406fe0
test eax, eax
jle 0x406f64
push esi
call fcn.00401570
mov ecx, eax
call fcn.00406fd0
push esi
mov eax, dword [eax]
mov ebx, dword [eax + 0xc]
call fcn.00401570
mov ecx, eax
call fcn.00406fd0
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
cmp ebx, dword [ebp - 4]
je 0x406ef4
push ebx
push str._n_s_OPTIONS:_n_n
push 2
call edi
add esp, 4
push eax
call fcn.004014d0
add esp, 0xc
jmp 0x406f0e
cmp eax, dword [ebp - 8]
je 0x406f0e
push 0x409224
push 2
call edi
add esp, 4
push eax
call fcn.004014d0
add esp, 8
push esi
call fcn.00401570
mov ecx, eax
call fcn.00406fd0
push dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
push esi
call fcn.00401570
mov ecx, eax
call fcn.00406fd0
push esi
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
call fcn.00401570
mov ecx, eax
call fcn.00406fd0
inc esi
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 8], eax
call fcn.00401570
mov ecx, eax
call fcn.00406fe0
cmp esi, eax
jl 0x406eb3
push str._nHELP_OPTIONS:_n_n
push 2
call edi
add esp, 4
push eax
call fcn.004014d0
add esp, 8
call fcn.00406bf0
mov esi, eax
push dword [esi]
push str._____shelp________Print_help_message._n
push 2
call edi
add esp, 4
push eax
call fcn.004014d0
add esp, 0xc
push dword [esi]
push str._____shelp_verb___Print_verbose_help_message._n
push 2
call edi
add esp, 4
push eax
call fcn.004014d0
add esp, 0xc
push 0x409224
push 2
call edi
add esp, 4
push eax
call fcn.004014d0
add esp, 8
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x407bf7
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x4010c6
mov eax, dword [0x40a08b]
shl eax, 2
mov dword [0x40a08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00402eac
pop edx
call fcn.00402248
call fcn.00402eb0
push 0
call fcn.004040f0
pop ecx
push 0x40a034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40a093], eax
push 0
jmp fcn.00407c04

Function at 0x40165c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edi, eax
mov dword [0x40a114], edi
test edi, edi
jne 0x401689
mov dword [0x40a118], 2
jmp 0x40176f
mov eax, dword [ebp + 0xc]
push eax
movzx edx, word [ebp + 8]
push edx
push edi
call dword [0x40a0e4]
mov esi, eax
test esi, esi
jne 0x4016ae
mov dword [0x40a118], 3
jmp 0x40176f
push esi
push edi
call dword [0x40a0e8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4016ce
mov dword [0x40a118], 4
jmp 0x40176f
mov eax, dword [ebp - 4]
push eax
call dword [0x40a0ec]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4016ed
mov dword [0x40a118], 5
jmp 0x401766
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
push esi
push edi
call dword [0x40a0f0]
sub eax, ebx
sub eax, dword [ebp - 0xc]
mov esi, eax
mov edi, esi
mov eax, edi
shl eax, 2
push eax
call fcn.00401ec0
pop ecx
mov dword [ebp - 0x10], eax
push edi
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.004031ac
add esp, 0xc
push edi
add ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040313c
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dl, 0x69
xor ecx, ecx
cmp esi, ecx
jle 0x40174a
xor byte [eax], dl
inc eax
add dl, 0x11
inc ecx
cmp esi, ecx
jg 0x40173f
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401778
add esp, 8
mov ebx, eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00401cf8
pop ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_FreeResource
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401bc8
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
add esp, 0xfffffefc
mov dword [esp], 0x100
push esp
lea eax, [esp + 8]
push eax
call sub.ADVAPI32.DLL_GetUserNameA
test eax, eax
je 0x401c9b
lea edx, [esp + 4]
push edx
call fcn.00404ebc
pop ecx
lea eax, [esp + 4]
mov edx, str.SNDBX
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x401c1c
test cl, cl
je 0x401c93
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x401c1c
add eax, 2
add edx, 2
test cl, cl
jne 0x401bfc
je 0x401c93
lea eax, [esp + 4]
mov edx, str.TESTER
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x401c43
test cl, cl
je 0x401c93
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x401c43
add eax, 2
add edx, 2
test cl, cl
jne 0x401c27
je 0x401c93
lea eax, [esp + 4]
mov edx, str.CURRENTUSER
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x401c6a
test cl, cl
je 0x401c93
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x401c6a
add eax, 2
add edx, 2
test cl, cl
jne 0x401c4e
je 0x401c93
lea eax, [esp + 4]
mov edx, str.SCHMIDTI
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x401c97
test cl, cl
je 0x401c91
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x401c97
add eax, 2
add edx, 2
test cl, cl
jne 0x401c75
jne 0x401c97
mov al, 1
jmp 0x401c9d
xor eax, eax
jmp 0x401c9d
mov al, 1
add esp, 0x104
ret

Function at 0x402ba0
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x406c88
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x406cea
call fcn.00406c38
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0040328c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0040328c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x406d48
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x40bdd0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x406e22
cmp dword [0x40bdcc], 0
jne 0x406e22
cmp dword [0x40bfc0], 0
je 0x406ddc
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00406b38
add esp, 8
mov ebx, eax
test eax, eax
jne 0x406dc2
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00406b38
add esp, 8
mov ebx, eax
test eax, eax
jne 0x406dc2
lea ebx, [ebp - 0x84]
jmp 0x406dc3
inc ebx
call fcn.00406d04
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x406e5d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40bdd4
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0040328c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40bdd7
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x406e5d
cmp dword [0x40bdcc], 0
je 0x406e3c
cmp dword [0x40bdcc], 0xffffffff
je 0x406e5d
push esi
call dword [0x40bdcc]
pop ecx
mov eax, dword [0x40bdd0]
test eax, eax
je 0x406e5d
cmp dword [0x40bdd0], 0xffffffff
je 0x406e5d
cmp byte [eax], 0
je 0x406e5d
push esi
push eax
call fcn.00406c88
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407648
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x40d064], 0
jne 0x4076c9
cmp dword [0x40d084], 0
jne 0x407678
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x40d084], eax
test eax, eax
jne 0x407678
push str.GetEnvironmentStrings_failed
call fcn.00406e74
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x40d084]
jmp 0x40768c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0040328c
pop ecx
mov edi, eax
test eax, eax
jne 0x407684
lea edi, [ebp + 1]
push edi
call fcn.00402158
pop ecx
mov ebx, eax
mov dword [0x40d068], ebx
test ebx, ebx
jne 0x4076b6
xor eax, eax
jmp 0x40778c
push edi
mov edx, dword [0x40d084]
push edx
push ebx
call fcn.0040313c
add esp, 0xc
jmp 0x4076e9
xor esi, esi
mov ebx, dword [0x40d064]
jmp 0x4076e3
push eax
call fcn.0040328c
pop ecx
test eax, eax
jne 0x4076df
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4076d3
lea ebx, [esi + 4]
push 4
mov dword [0x40d06c], ebx
inc ebx
push ebx
call fcn.00401cbc
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40770c
xor eax, eax
jmp 0x40778c
cmp dword [0x40d064], 0
jne 0x40773d
xor esi, esi
mov ebx, dword [0x40d068]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40772e
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0040328c
pop ecx
mov edi, eax
test eax, eax
jne 0x407724
jmp 0x40776e
xor esi, esi
mov ebx, dword [0x40d064]
mov eax, dword [esp]
mov edi, eax
jmp 0x407768
push eax
call fcn.0040328c
pop ecx
test eax, eax
je 0x40775d
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x407761
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40774c
mov eax, dword [0x40d064]
test eax, eax
je 0x40777e
push eax
call fcn.00402168
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x40d064], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10224d2
Capabilities:
Set registry value

Disassembly:
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x10224fe
call fcn.01020c04
test eax, eax
je 0x10224fe
call fcn.010211b2
test al, al
jne 0x10224fe
push 1
push 1
call fcn.01021f44
jmp fcn.01021303
ret

Function at 0x1023085
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push 2
push edi
push edi
push edi
push 0x1002698
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x102310c
push dword [ebp + 0xc]
push 0x1002670
push edi
push dword [ebp - 4]
call fcn.01024cf0
mov esi, eax
cmp esi, edi
jl 0x1023101
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push edi
push 0x1002688
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
jne 0x10230f3
xor esi, esi
jmp 0x1023101
jle 0x10230ff
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x102311a
jle 0x1023118
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x1023d06
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10260f0
call fcn.010241f4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1028708
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1023ac1
cmp eax, esi
jne 0x1023ab4
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1023ac4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1023a9b
xor esi, esi
inc esi
mov eax, dword [0x1028704]
cmp eax, esi
jne 0x1023ad7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1023b06
mov eax, dword [0x1028704]
test eax, eax
jne 0x1023b00
mov dword [0x1028704], esi
push 0x10012d4
push 0x10012c8
call fcn.010239fd
pop ecx
pop ecx
test eax, eax
je 0x1023b06
jmp 0x1023c2a
mov dword [0x10283b0], esi
mov eax, dword [0x1028704]
cmp eax, esi
jne 0x1023b2a
push 0x10012c4
push 0x10012bc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1028704], 2
cmp dword [ebp - 0x20], ebx
jne 0x1023b37
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1028710], ebx
je 0x1023b58
push 0x1028710
call fcn.01024169
pop ecx
test eax, eax
je 0x1023b58
push ebx
push 2
push ebx
call dword [0x1028710]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1023c2a
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1023bc2
cmp cx, bx
je 0x1023b7d
cmp dword [ebp - 0x1c], ebx
jne 0x1023bc2
movzx ecx, word [eax]
cmp cx, bx
je 0x1023b92
cmp cx, 0x20
ja 0x1023b92
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1023b7d
test byte [ebp - 0x40], 1
je 0x1023b9e
movzx ecx, word [ebp - 0x3c]
jmp 0x1023ba1
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10283ac], eax
cmp dword [0x10283a0], ebx
jne 0x1023c07
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1023bd3
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1023b67
cmp dword [0x10283b0], ebx
jne 0x1023c15
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10283ac]
jmp 0x1023c36
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01024239
ret
call fcn.01024341
jmp 0x1023a5e
Function at 0x10245d9
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
and dword [edi], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x102468a
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x102468a
push eax
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1024681
xor ebx, ebx
lea eax, [ebp + 0x10]
push eax
cmp dword [ebp + 0x14], ebx
je 0x1024659
lea eax, [ebp - 8]
push eax
push 0x10024e0
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1024681
cmp dword [ebp + 0x10], ebx
je 0x1024681
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
jmp 0x102467f
lea eax, [ebp - 0xc]
push eax
push 0x10027cc
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1024681
cmp dword [ebp + 0x10], ebx
je 0x1024681
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
mov dword [edi], ecx
movzx eax, word [eax + 2]
mov dword [esi], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1024731
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1028058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x218]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002840
push 0x80000002
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102486b
push edi
push 4
pop edi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
mov esi, 0x1002800
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102485e
push esi
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp dword [ebp - 0x21c], edi
jne 0x102485e
lea eax, [ebp - 0x20c]
push eax
call fcn.010246d0
xor ecx, ecx
cmp dword [ebp - 0x214], eax
sete cl
mov dword [ebp - 0x210], ecx
test ecx, ecx
je 0x102485e
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
mov esi, 0x1002818
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102485e
push esi
push dword [ebp - 0x224]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp dword [ebp - 0x21c], edi
jne 0x102485e
lea eax, [ebp - 0x20c]
push eax
call fcn.010246d0
xor ecx, ecx
cmp dword [ebp - 0x214], eax
sete cl
mov dword [ebp - 0x210], ecx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop esi
xor ecx, ebp
pop ebx
call fcn.01023d2d
leave
ret 4