joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426920
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00426910
push ebp
push 0x410b00
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x426990
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.00409820
cmp ebx, 1
jle 0x426980
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.00409390
jmp 0x42699b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004078c0
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00426910
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426da0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00426d90
push ebp
push 0x410b00
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x4399dc]
xor edx, edx
call fcn.004078c0
mov dword [ebx*4 + 0x4399fc], 0xffffffff
cmp ebx, 7
jl 0x426dc8
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x426e54
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.004082b0
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.0041fb80
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x426e54
push 4
push ebx
push esi
mov eax, 0x426c70
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x426d00
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00426d90
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x427480
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x439a40], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x4398a0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x4398b0], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x4398c0], eax
mov eax, dword [ebp - 0x88]
mov dword [0x4398d0], eax
mov edx, 0x4398e1
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00403c40
lea eax, [ebp - 0x80]
call fcn.004049e0
mov byte [0x4398e0], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x439a50], eax
test eax, eax
je 0x427520
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x439a50]
call sub.kernel32.dll_GetProcAddress
mov dword [0x439a40], eax
nop
cmp dword [0x4398b0], 6
jae 0x427534
mov dword [0x42bc60], 0
nop
cmp dword [0x4398b0], 6
jb 0x427550
cmp dword [0x4398c0], 1
jb 0x427550
mov dword [0x42bc70], 2
mov esp, ebp
pop ebp
ret
Function at 0x410bcc
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp + 8]
lea ecx, [ebp + 8]
add eax, ecx
lea ecx, [ebp + 8]
cmp eax, ecx
jne 0x410d81
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
pop edi
and dword [ebp - 4], 0
push 1
pop ecx
cmp edi, ecx
jle 0x410c17
lea esi, [ebp + ebx*4 - 0x1c]
mov eax, edi
cdq
idiv ecx
test edx, edx
jne 0x410c12
add dword [ebp - 4], ecx
mov dword [esi], ecx
inc ebx
add esi, 4
inc ecx
cmp ecx, edi
jl 0x410c00
xor ebx, ebx
inc edi
cmp edi, 0x3e8
jle 0x410bf1
mov cl, byte [ebp + 8]
test cl, cl
je 0x410c43
lea eax, [ebp + 8]
cmp cl, 0x61
jl 0x410c36
cmp byte [eax], 0x7a
jle 0x410c3b
mov cl, byte [eax]
mov byte [ebp - 9], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410c2c
or dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 1
lea edx, [ebp - 0x44]
mov eax, dword [edx]
inc eax
cmp eax, 9
mov dword [edx], eax
jge 0x410cc8
xor esi, esi
cmp dword [ebp - 4], 1
jle 0x410c76
lea ecx, [ebp - 0x44]
cmp dword [ecx], eax
je 0x410c76
inc esi
add ecx, 4
cmp esi, dword [ebp - 8]
jl 0x410c69
cmp esi, dword [ebp - 8]
jne 0x410cbf
cmp dword [ebp - 4], 9
jge 0x410c8f
inc dword [ebp - 8]
inc dword [ebp - 4]
add edx, 4
or dword [edx], 0xffffffff
jmp 0x410cc8
lea eax, [ebp - 0x44]
xor esi, esi
sub eax, 4
mov ecx, dword [esi]
mov edi, eax
mov dword [ebp - 0x10], 3
add eax, 0xc
mov ebx, dword [edi + 4]
add edi, 4
mov dword [ecx], ebx
add ecx, 4
dec dword [ebp - 0x10]
jne 0x410ca5
add esi, 4
cmp esi, 0xc
jl 0x410c97
jmp 0x410cc8
dec dword [ebp - 8]
dec dword [ebp - 4]
sub edx, 4
cmp dword [ebp - 0x44], 9
jl 0x410c54
push 1
pop ebx
mov ecx, ebx
mov eax, ebx
cmp eax, 5
jg 0x410cf5
test eax, eax
je 0x410cee
mov dl, byte [ebp + ecx + 7]
cmp dl, byte [ebp + eax + 9]
je 0x410cee
mov eax, dword [ebp + eax*4 - 0x20]
jmp 0x410cf0
inc ecx
inc eax
cmp ecx, 3
jle 0x410cd5
push 0x64
pop esi
push 0x64
lea eax, [ebp + 0x84]
pop edx
mov edi, dword [eax - 4]
lea ecx, [eax - 4]
mov dword [eax], edi
dec edx
mov eax, ecx
jne 0x410d01
mov eax, dword [ebp + 0x84]
dec esi
mov dword [ebp - 0x10c], eax
jne 0x410cf8
push 0xa
lea edi, [ebp - 0x1c]
pop edx
push 3
mov ecx, edx
pop eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
cmp ebx, edx
jge 0x410d48
lea ecx, [eax + 4]
sub edx, ebx
mov esi, dword [eax]
mov edi, dword [ecx]
cmp esi, edi
jle 0x410d42
mov dword [ecx], esi
mov dword [eax], edi
add ecx, 4
dec edx
jne 0x410d36
inc ebx
push 0xa
pop edx
add eax, 4
lea ecx, [ebx - 1]
cmp ecx, edx
jl 0x410d2d
push 0x64
pop esi
push 0x64
lea eax, [ebp + 0x84]
pop edx
mov edi, dword [eax - 4]
lea ecx, [eax - 4]
mov dword [eax], edi
dec edx
mov eax, ecx
jne 0x410d62
mov eax, dword [ebp + 0x84]
dec esi
mov dword [ebp - 0x10c], eax
jne 0x410d59
pop edi
pop esi
pop ebx
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
leave
ret 4
Function at 0x41a715
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x42e843
call fcn.0042d7f0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0041b871
xor edi, edi
mov dword [esi + 0x1c], 0xa
mov dword [ebp - 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x18], edi
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi], 0x4300e4
mov dword [esi + 0x30], ebx
call fcn.004239bb
push edi
mov dword [esi + 4], eax
push dword [ebp + 0xc]
push ebx
push eax
call fcn.004239e2
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 0x24], eax
mov ecx, dword [0x4361dc]
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov dword [eax + 4], esi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4230a9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
lea eax, [ebp - 8]
lea ecx, [ebp - 8]
imul eax, ecx
lea ecx, [ebp - 8]
lea edx, [ebp - 8]
push ebx
sub ecx, edx
xor ebx, ebx
push esi
cmp ecx, eax
push edi
mov byte [ebp - 0x7c], 0x57
mov byte [ebp - 0x7b], 0x69
mov byte [ebp - 0x7a], 0x6e
mov byte [ebp - 0x79], 0x56
mov byte [ebp - 0x78], 0x4e
mov byte [ebp - 0x77], 0x43
mov byte [ebp - 0x76], 0x20
mov byte [ebp - 0x75], 0x54
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x61
jne 0x42311a
xor esi, esi
xor eax, eax
xor edi, edi
mov cl, byte [eax]
cmp cl, bl
je 0x42311a
mov dl, byte [esi]
cmp dl, cl
jne 0x423111
cmp dl, bl
je 0x423111
mov dl, byte [esi + 1]
inc esi
inc eax
inc edi
cmp dl, byte [eax]
je 0x423103
sub esi, edi
sub eax, edi
xor edi, edi
inc eax
jmp 0x4230f7
lea eax, [ebp - 8]
lea ecx, [ebp - 8]
sub eax, ecx
lea ecx, [ebp - 8]
lea edx, [ebp - 8]
mov byte [ebp - 0x72], 0x79
add ecx, edx
mov byte [ebp - 0x71], 0x20
cmp ecx, eax
mov byte [ebp - 0x70], 0x49
mov byte [ebp - 0x6f], 0x63
mov byte [ebp - 0x6e], 0x6f
mov byte [ebp - 0x6d], 0x6e
mov byte [ebp - 0x6c], bl
jne 0x4231a1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 3
mov dword [ebp - 4], 3
xor edx, edx
xor eax, eax
lea ecx, [eax + eax*2]
add edx, dword [ebp + ecx*4 - 0x18]
inc eax
cmp eax, 3
jl 0x423167
push 2
xor esi, esi
pop eax
lea ecx, [esi + eax*2]
mov edi, eax
lea ecx, [ebp + ecx*4 - 0x18]
cmp edi, esi
je 0x423188
add edx, dword [ecx]
inc edi
add ecx, 8
cmp edi, eax
jle 0x423182
inc esi
dec eax
cmp eax, 0xffffffff
jg 0x423179
dec dword [ebp - 4]
jne 0x423163
dec dword [ebp - 8]
jne 0x42315c
lea eax, [ebp - 0x7c]
push ebx
push eax
mov eax, dword [0x436190]
call dword [eax + 0x1c0]
cmp eax, ebx
je 0x4231d1
push ebx
push ebx
push 0x10
push eax
mov eax, dword [0x436190]
call dword [eax + 0x1bc]
mov eax, dword [0x436190]
push 1
call dword [eax + 0x3c]
jmp 0x4231a1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42d3c3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ec
lea eax, [ebp + 8]
lea ecx, [ebp + 8]
imul eax, ecx
lea ecx, [ebp + 8]
lea edx, [ebp + 8]
push ebx
sub ecx, edx
xor ebx, ebx
push esi
cmp ecx, eax
push edi
mov word [ebp - 0xdc], 0x69
mov word [ebp - 0xda], 0x6d
mov word [ebp - 0xd8], 0x61
mov word [ebp - 0xd6], 0x67
mov word [ebp - 0xd4], 0x65
mov word [ebp - 0xd2], 0x2f
mov word [ebp - 0xd0], 0x6a
mov word [ebp - 0xce], 0x70
mov word [ebp - 0xcc], 0x65
mov word [ebp - 0xca], 0x67
jne 0x42d469
xor esi, esi
xor eax, eax
xor edi, edi
mov cl, byte [eax]
cmp cl, bl
je 0x42d469
mov dl, byte [esi]
cmp dl, cl
jne 0x42d460
cmp dl, bl
je 0x42d460
mov dl, byte [esi + 1]
inc esi
inc eax
inc edi
cmp dl, byte [eax]
je 0x42d452
sub esi, edi
sub eax, edi
xor edi, edi
inc eax
jmp 0x42d446
lea eax, [ebp - 0x14]
mov word [ebp - 0xc8], bx
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0042d332
mov eax, dword [0x436190]
pop ecx
pop ecx
mov esi, 0x104
lea ecx, [ebp - 0x2e4]
push esi
push ecx
lea edi, [eax + 0x98]
push dword [ebp + 8]
call dword [eax + 0x1f0]
pop ecx
inc eax
push eax
push dword [ebp + 8]
push ebx
push ebx
call dword [edi]
mov eax, dword [0x436190]
lea ecx, [ebp - 0x4ec]
push esi
push ecx
push dword [ebp + 0xc]
lea edi, [eax + 0x98]
call dword [eax + 0x1f0]
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
push ebx
push ebx
call dword [edi]
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x2e4]
push eax
mov eax, dword [0x436190]
call dword [eax + 0x198]
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x4ec]
push eax
mov eax, dword [0x436190]
push dword [ebp - 4]
call dword [eax + 0x194]
push dword [ebp - 4]
mov eax, dword [0x436190]
call dword [eax + 0x190]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, str.BigDog301
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x34]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, ebx
push 0x40df10
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401fa0
push ebx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401067
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x10
mov esi, dword [esp + 0x2c]
push esi
call fcn.004011a0
mov ecx, dword [esp + 0x38]
push ecx
push esi
call fcn.00401200
test eax, eax
jne 0x401089
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea edx, [esp + 0x14]
push 0
push edx
mov esi, eax
call edi
test eax, eax
je 0x4010f1
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push esi
push ecx
call ebx
test eax, eax
jne 0x4010db
lea edx, [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call edi
test eax, eax
jne 0x4010b8
mov ebx, dword [esp + 0x38]
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [esp + 0xc]
pop ebx
add esp, 0x1c
ret 0x10

Function at 0x401240
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
test eax, eax
push edi
mov dword [esp + 8], 1
je 0x4012a7
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4012a7
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4012a7
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4012a7
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xc]
push edi
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0x10
pop edi
xor eax, eax
pop esi
pop ecx
ret 0x10
Function at 0x4012b0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x454
push ebx
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
or ecx, 0xffffffff
mov dword [esp + 0x10], eax
mov edi, 0x40b110
mov dword [esp + 0x14], eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x1c], 0x44
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x464]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b10c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x468]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x7c]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
neg eax
add esp, 0x454
ret 8
Function at 0x402990
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [str.OEM2]
mov cl, byte [0x40b220]
push ebx
push esi
push edi
push 0xa
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], cl
call fcn.00403290
mov ebx, eax
mov edi, str.SOFTWAREZSMCUSBCAMERAZC0303TWAIN
or ecx, 0xffffffff
xor eax, eax
add esp, 4
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x1c], 0xa
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402a69
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x1c]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402a69
cmp byte [ebx], 0x56
jne 0x402a69
cmp byte [ebx + 1], 0x4d
jne 0x402a69
mov al, byte [ebx + 2]
mov cl, 0x30
cmp al, cl
jne 0x402a69
mov dl, byte [ebx + 3]
mov al, 0x33
cmp dl, al
jne 0x402a69
cmp byte [ebx + 4], cl
jne 0x402a69
cmp byte [ebx + 5], al
jne 0x402a69
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x114
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x114
ret
Function at 0x403f80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a2c0
push 0x4066a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40fdf0], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40fdec], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40fde8], ecx
shr eax, 0x10
mov dword [0x40fde4], eax
call fcn.00406660
test eax, eax
jne 0x403fea
push 0x1c
call fcn.00404150
add esp, 4
mov dword [ebp - 4], 0
call fcn.00406460
call fcn.004054e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x411370], eax
call fcn.00406300
mov dword [0x40fdcc], eax
test eax, eax
je 0x40401d
mov eax, dword [0x411370]
test eax, eax
jne 0x404027
push 0xffffffffffffffff
call fcn.00404200
add esp, 4
call fcn.00406050
call fcn.00405f60
call fcn.004041d0
mov esi, dword [0x411370]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x404106
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40406e
test al, al
je 0x40406e
and eax, 0xff
push eax
call fcn.00405f00
add esp, 4
test eax, eax
je 0x404048
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404048
cmp byte [esi], 0x22
jne 0x404077
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x404087
cmp al, 0x20
ja 0x404087
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404077
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4040a8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4040ad
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00404200
jmp 0x4040eb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x404077
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404106

Function at 0x404150
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40fdd4], 1
jne 0x40415e
call fcn.00406780
mov eax, dword [esp + 4]
push eax
call fcn.004067c0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404240
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40fe20]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40425f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40fe1c], 1
mov byte [0x40fe18], bl
jne 0x4042b9
mov ecx, dword [0x41136c]
test ecx, ecx
je 0x4042a7
mov esi, dword [0x411368]
sub esi, 4
cmp esi, ecx
jb 0x4042a7
mov eax, dword [esi]
test eax, eax
je 0x4042a0
call eax
mov ecx, dword [0x41136c]
sub esi, 4
cmp esi, ecx
jae 0x404292
push 0x40b020
push 0x40b018
call fcn.004042f0
add esp, 8
push 0x40b02c
push 0x40b024
call fcn.004042f0
add esp, 8
test ebx, ebx
jne 0x4042e0
push ebp
mov dword [0x40fe20], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x406300
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4101a0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x406342
call edi
mov esi, eax
test esi, esi
je 0x40632c
mov eax, 1
jmp 0x40633d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40644f
mov eax, 2
mov dword [0x4101a0], eax
cmp eax, 1
jne 0x4063e2
test esi, esi
jne 0x40635b
call edi
mov esi, eax
test esi, esi
je 0x40644f
cmp word [esi], 0
mov eax, esi
je 0x406375
add eax, 2
cmp word [eax], 0
jne 0x406363
add eax, 2
cmp word [eax], 0
jne 0x406363
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4063d4
push edi
call fcn.00404310
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4063d4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4063c6
push ebx
call fcn.00404180
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40644f
test ebx, ebx
jne 0x4063f3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40644f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40640b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4063fb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4063fb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00404310
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40642d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret