joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469770
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
push ebx
mov ebx, dword [edi]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x4697a4
push str.Couldnt_set_desired_mode
push ebx
call fcn.00450e60
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x4697bb
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.00450de0
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x4697d2
push edi
call fcn.00469700
add esp, 4
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x4697e6
push edi
call fcn.00466b90
add esp, 4
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x4697f8
mov eax, edi
call fcn.00469750
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x469806
mov eax, edi
call fcn.00469760
mov esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x470c80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4a14b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004401cf
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x470ce4
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x470ce4
lea edx, [ebp - 0x108]
push edx
call dword [0x4a28f0]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004296eb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004296eb
mov esp, ebp
pop ebp
ret

Function at 0x470d00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00470c80

Function at 0x475bb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
push ebx
mov ebx, dword [ecx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebx + 0x1ec]
push esi
push edi
mov esi, ecx
test ecx, ecx
jne 0x475bd1
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.00450860
push edx
push eax
call fcn.00450890
mov ecx, eax
mov eax, esi
mov dword [ebp + 8], edx
cdq
add esp, 0x10
mov edi, eax
sub edi, ecx
mov esi, edx
sbb esi, dword [ebp + 8]
cmp dword [ebx + 0x1e0], 0
je 0x475c3d
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x184]
mov eax, dword [eax + 0x180]
push edx
push eax
call fcn.00450860
push edx
push eax
call fcn.00450890
mov ecx, eax
mov eax, dword [ebx + 0x1e0]
mov dword [ebp + 8], edx
cdq
add esp, 0x10
sub eax, ecx
sbb edx, dword [ebp + 8]
cmp esi, edx
jl 0x475c3d
jg 0x475c41
cmp edi, eax
jae 0x475c41
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x476eb0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x476ee3
push 0x2e
push esi
call fcn.00438860
add esp, 8
test eax, eax
je 0x476ee1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x476fc0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a14b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x1c]
mov esi, 8
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x477051
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
lea esi, [ebp - 0xc]
mov eax, ebx
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
call fcn.00476f30
mov ecx, esi
push 8
push ecx
call fcn.0047bf30
mov ecx, dword [ebp - 0x1c]
add esp, 8
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x477062
mov edx, dword [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004296eb
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x24]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004296eb
mov esp, ebp
pop ebp
ret
Function at 0x4771d0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4771e1
sub eax, edx
mov esi, eax
lea eax, [esi + esi]
push eax
mov dword [ebp - 0xc], eax
call dword [0x4a28e4]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47720c
pop edi
pop esi
lea eax, [ebx + 0x1b]
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.004771a0
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x47728b
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x8002
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x47727f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push 0
push eax
push ebx
push ecx
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp - 4]
push 0
lea edx, [ebp - 0x10]
push edx
push esi
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [esi + 0x10], eax
push ebx
mov byte [esi + 0x14], al
call dword [0x4a28e8]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4799a0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x4799c2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4799b6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x4799f2
cmp dword [esi + 8], 0
jne 0x4799e5
mov ecx, dword [eax + 8]
push 0x495428
push ecx
call fcn.00429cbb
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4799e5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.0042b053
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x479a14
mov eax, dword [esi + 8]
test eax, eax
je 0x479a0e
push eax
call fcn.00429b7b
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x47cbb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x4a28e4]
mov edi, eax
add esp, 4
test edi, edi
jne 0x47cbdb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
add edx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], edx
cmp ebx, dword [esi + 0x10]
jbe 0x47cc22
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebx
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x47cc25
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [esi]
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
call ecx
mov eax, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 4], 0
test eax, eax
je 0x47cc86
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea esp, [esp]
mov dl, byte [ebx]
xor dl, 0x36
mov byte [ebp + 0xb], dl
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
lea eax, [ebp + 0xb]
push eax
push ecx
call edx
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
mov edx, dword [edi + 8]
mov eax, dword [esi + 4]
push 1
lea ecx, [ebp + 0xb]
push ecx
push edx
inc ebx
call eax
add esp, 0x18
dec dword [ebp - 8]
jne 0x47cc50
mov ecx, dword [ebp - 4]
pop ebx
cmp ecx, dword [esi + 0x10]
jae 0x47ccbf
nop
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push 1
push 0x494a85
push edx
call eax
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
push 0x494a86
push ecx
call edx
mov eax, dword [ebp - 4]
inc eax
add esp, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x10]
jb 0x47cc90
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47e2e5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x47e316
call fcn.0042c291
mov dword [eax], esi
call fcn.0042c27e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00429ace
add esp, 0x14
push 0x16
pop eax
jmp 0x47e36b
test dword [ebp + 0xc], 0xfffffff9
jne 0x47e2f2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47e343
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c2a4
pop ecx
call fcn.0042c27e
mov eax, dword [eax]
jmp 0x47e36b
test al, 0x10
jne 0x47e369
test al, 1
je 0x47e369
test byte [ebp + 0xc], 2
je 0x47e369
call fcn.0042c291
mov dword [eax], 5
call fcn.0042c27e
mov dword [eax], 0xd
jmp 0x47e33a
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401237
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b2f8]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b2fc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
call fcn.00401230
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x41b300]
add ebx, 0x23f
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b304]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov ecx, dword [0xec656c]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4012c4
push 0x418028
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xec656c]
add eax, dword [ebp - 0x28]
mov edx, 0xedeb2e40
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
mov eax, dword [0xec6568]
cmove eax, edx
xor edx, edx
mov dword [0xec6568], eax
cmp ecx, 0x3eb
mov eax, dword [0xec64c0]
cmove eax, edx
mov dword [0xec64c0], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], edx
mov dword [0xec6564], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp - 0x18], esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
add ebx, 0x61c88647
shr edx, cl
add edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
xor edx, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x10], ebx
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
jne 0x401292
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d464
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41af20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409cee
mov dword [ebp - 0x14], eax
cmp dword [0x821d5c], esi
jne 0x40d557
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d4e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d637
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d637
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d637
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x821d5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x821d60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x821d64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x821d6c], eax
test eax, eax
je 0x40d554
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x821d68], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d57c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d56f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d591
push 4
pop eax
jmp 0x40d639
cmp dword [ebp - 0x14], esi
je 0x40d591
push dword [0x821d5c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d576
mov eax, dword [0x821d68]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d5ef
cmp dword [0x821d6c], edi
je 0x40d5ef
push eax
call ebx
push dword [0x821d6c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d5ef
test eax, eax
je 0x40d5ef
call ecx
test eax, eax
je 0x40d5e4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d5e4
test byte [ebp - 8], 1
jne 0x40d5ef
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d61f
mov eax, dword [0x821d60]
cmp eax, edi
je 0x40d61c
push eax
call ebx
test eax, eax
je 0x40d61c
call eax
mov esi, eax
test esi, esi
je 0x40d61c
mov eax, dword [0x821d64]
cmp eax, edi
je 0x40d61c
push eax
call ebx
test eax, eax
je 0x40d61c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x821d5c]
call ebx
test eax, eax
je 0x40d637
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d639
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004042a7
mov esp, ebp
pop ebp
ret
Function at 0x401644
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401656
mov eax, dword [0x67f08b]
shl eax, 2
mov dword [0x67f08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0066c39c
pop edx
call fcn.0066c300
call fcn.0066c3dc
push 0
call fcn.0066daa4
pop ecx
push 0x67f034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x67f093], eax
push 0
jmp fcn.0067851c
Function at 0x403974
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
test eax, eax
je 0x403aef
mov esi, 0x6e8794
lea edi, [ebp - 0x248]
mov ecx, 0xf
rep movsd dword es:[edi], dword [esi]
push 0x3c
push 0
lea eax, [ebp - 0x248]
push eax
call fcn.0066c86c
add esp, 0xc
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x244], 0x8000
mov dword [ebp - 0x23c], str.runas
lea edx, [ebp - 0x108]
mov dword [ebp - 0x238], edx
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x4039ff
mov dword [ebp - 0x234], str._makediskimage
jmp 0x403aa8
mov eax, dword [ebp + 8]
dec eax
jne 0x403a2c
push 0x82554e
push str._infile___s___writeusb
lea edx, [ebp - 0x20c]
push edx
call fcn.00670e94
add esp, 0xc
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x234], ecx
jmp 0x403aa8
mov eax, dword [ebp + 8]
cmp eax, 2
jne 0x403a56
push str._ghostdisk
lea edx, [ebp - 0x20c]
push edx
call fcn.00670e94
add esp, 8
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x234], ecx
jmp 0x403aa8
mov eax, dword [ebp + 8]
cmp eax, 3
jne 0x403a80
push str._configuration
lea edx, [ebp - 0x20c]
push edx
call fcn.00670e94
add esp, 8
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x234], ecx
jmp 0x403aa8
mov eax, dword [ebp + 8]
cmp eax, 4
jne 0x403aef
push str._register
lea edx, [ebp - 0x20c]
push edx
call fcn.00670e94
add esp, 8
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x234], ecx
xor eax, eax
mov dword [ebp - 0x230], eax
mov edx, dword [0x6e716c]
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x22c], 1
push 6
push 0
call sub.OLE32.DLL_CoInitializeEx
lea ecx, [ebp - 0x248]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
jne 0x403aef
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0x4c7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403b1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff5e0
mov eax, dword [0x6e70cc]
test eax, eax
je 0x403b47
push dword [ebp + 8]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSavePidlMRU_s
lea edx, [ebp - 0x120]
push edx
call fcn.00670e94
add esp, 0xc
jmp 0x403b5e
push dword [ebp + 8]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRU_s
lea ecx, [ebp - 0x120]
push ecx
call fcn.00670e94
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea edx, [ebp - 0x120]
push edx
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x403b8b
xor eax, eax
jmp 0x403cca
mov dword [ebp - 0x10], 0x100
mov edx, dword [0x6e70cc]
test edx, edx
je 0x403bc6
mov dword [ebp - 0xc], 3
lea ecx, [ebp - 0x10]
push ecx
lea eax, [ebp - 0x220]
push eax
lea edx, [ebp - 0xc]
push edx
push 0
push str.MRUListEx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
jmp 0x403bee
mov dword [ebp - 0xc], 1
lea ecx, [ebp - 0x10]
push ecx
lea eax, [ebp - 0x220]
push eax
lea edx, [ebp - 0xc]
push edx
push 0
push str.MRUList
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x403bfc
xor eax, eax
jmp 0x403cca
mov edx, dword [0x6e70cc]
test edx, edx
je 0x403c65
lea ecx, [ebp - 0x220]
push dword [ecx]
push 0x6e9273
lea eax, [ebp - 0x1c]
push eax
call fcn.00670e94
add esp, 0xc
mov dword [ebp - 0x10], 0x800
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0xa20]
push ecx
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x403c51
xor eax, eax
jmp 0x403cca
push dword [ebp + 0xc]
lea edx, [ebp - 0xa20]
push edx
call fcn.00462698
add esp, 8
jmp 0x403ca0
mov cl, byte [ebp - 0x220]
mov byte [ebp - 0x1c], cl
mov byte [ebp - 0x1b], 0
mov dword [ebp - 0x10], 0x100
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea edx, [ebp - 0xc]
push edx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x403ca0
xor eax, eax
jmp 0x403cca
push 0x5c
push dword [ebp + 0xc]
call fcn.0066cb35
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
test edx, edx
je 0x403cbd
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x403cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x403ce4
xor eax, eax
jmp 0x403d64
push 0x6e9276
push dword [ebp + 8]
mov edx, dword [0x821804]
push dword [edx]
call sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x403d07
xor eax, eax
jmp 0x403d64
push dword [ebp - 4]
mov edx, dword [0x821804]
push dword [edx]
call sub.KERNEL32.DLL_SizeofResource
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x403d25
xor eax, eax
jmp 0x403d64
push dword [ebp - 4]
mov edx, dword [0x821804]
push dword [edx]
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x403d43
xor eax, eax
jmp 0x403d64
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x403d62
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
jmp 0x403d64
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403f1c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0x6e9298
push 0x6e9295
mov eax, dword [0x821804]
push dword [eax]
call sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 4], eax
push dword [ebp - 4]
mov edx, dword [0x821804]
push dword [edx]
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 8], eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x403f60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [0x6e70d0]
test eax, eax
je 0x403fe7
mov edx, dword [ebp - 8]
test edx, edx
jne 0x403f9b
push 0x6e92b4
push 0x6e92b1
mov ecx, dword [0x821804]
push dword [ecx]
call sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 0x10], eax
jmp 0x403fb4
push 0x6e92bb
push 0x6e92b8
mov eax, dword [0x821804]
push dword [eax]
call sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
mov edx, dword [0x821804]
push dword [edx]
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0xc], eax
mov ecx, dword [0x6e87e8]
test ecx, ecx
je 0x403fe7
push 5
push dword [ebp - 0xc]
call dword [0x6e87e8]
mov esp, ebp
pop ebp
ret