joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404030
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x42263b
lea ecx, [ebp - 0x28]
call fcn.00406280
mov dword [ebp - 4], 0
push 0x42263f
lea ecx, [ebp - 0x40]
call fcn.00406280
mov byte [ebp - 4], 1
push str.compatibility.ini
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00405140
add esp, 0xc
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
push edx
lea ecx, [ebp - 0x40]
call fcn.00404700
lea ecx, [ebp - 0x58]
call fcn.00406430
push 0
lea ecx, [ebp - 0x40]
call fcn.004062e0
push eax
call fcn.0040ce05
add esp, 8
test eax, eax
je 0x4040e7
mov byte [ebp - 0x5a], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406430
mov al, byte [ebp - 0x5a]
jmp 0x404260
lea eax, [ebp - 0x28]
push eax
push str.LastAppDir
push str.Compatibility
lea ecx, [ebp - 0x40]
call fcn.004062e0
push eax
call fcn.00403c00
add esp, 0x10
test eax, eax
je 0x404221
lea ecx, [ebp - 0x28]
push ecx
call fcn.00403770
add esp, 4
push str.plugins_
lea ecx, [ebp - 0x28]
call fcn.004047d0
push 0
lea ecx, [ebp - 0x28]
call fcn.004062e0
push eax
call fcn.0040ce05
add esp, 8
test eax, eax
je 0x4041b4
push 0x4264e8
lea ecx, [ebp - 0x28]
call fcn.004062e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40418b
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004063b0
mov byte [ebp - 0x5c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406430
mov al, byte [ebp - 0x5c]
jmp 0x404260
mov byte [ebp - 0x5e], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406430
mov al, byte [ebp - 0x5e]
jmp 0x404260
lea ecx, [ebp - 0x28]
call fcn.004062e0
push eax
call fcn.00408390
add esp, 4
test eax, eax
je 0x4041fb
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004063b0
mov byte [ebp - 0x5b], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406430
mov al, byte [ebp - 0x5b]
jmp 0x404260
mov byte [ebp - 0x59], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406430
mov al, byte [ebp - 0x59]
jmp 0x404260
mov byte [ebp - 0x5d], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406430
mov al, byte [ebp - 0x5d]
jmp 0x404260
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409e94
mov esp, ebp
pop ebp
ret
Function at 0x404280
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c4f0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x4042b4
cmp dword [ebp + 0xc], 0
jne 0x4042bb
xor al, al
jmp 0x4043d9
mov eax, dword [ebp + 8]
push eax
push 0
push str.IsRelative
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x64], eax
push 0x422643
lea ecx, [ebp - 0x40]
call fcn.00406280
mov dword [ebp - 4], 0
push 0x422647
lea ecx, [ebp - 0x28]
call fcn.00406280
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
push edx
push 0x422794
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403c00
add esp, 0x10
cmp dword [ebp - 0x64], 0
je 0x404344
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00405200
add esp, 0xc
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp - 0x28]
call fcn.00404700
lea ecx, [ebp - 0x58]
call fcn.00406430
jmp 0x404350
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004063b0
lea ecx, [ebp - 0x28]
push ecx
call fcn.00403770
add esp, 4
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00404030
add esp, 8
movzx ecx, al
cmp ecx, 1
jne 0x40439a
mov byte [ebp - 0x59], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00406430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00406430
mov al, byte [ebp - 0x59]
jmp 0x4043d9
mov byte [ebp - 0x5a], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00406430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00406430
mov al, byte [ebp - 0x5a]
jmp 0x4043d9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409e94
mov esp, ebp
pop ebp
ret
Function at 0x406dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00406e10
test eax, eax
jne 0x406de8
or eax, 0xffffffff
jmp 0x406e03
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a30a
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408390
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.0040ae60
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0
push str.Test
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4083e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10c], eax
xor eax, eax
jmp 0x4083f7
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e94
mov esp, ebp
pop ebp
ret
Function at 0x408d60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c738
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x408d97
cmp dword [ebp + 0xc], 0
jne 0x408d9c
jmp 0x408f3f
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
call fcn.00406280
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00406280
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00404820
sub eax, 1
push eax
lea ecx, [ebp - 0x58]
call fcn.004062c0
movsx edx, byte [eax]
cmp edx, 0x5c
je 0x408dfc
push 0x422a68
lea ecx, [ebp - 0x58]
call fcn.004047d0
mov eax, 1
test eax, eax
je 0x408f24
lea ecx, [ebp - 0x28]
call fcn.00404820
test eax, eax
ja 0x408e1a
jmp 0x408f24
mov ecx, dword [ebp - 0x90]
push ecx
push 0x422a6c
lea ecx, [ebp - 0x28]
call fcn.004096b0
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x408e7c
lea ecx, [ebp - 0x28]
call fcn.00404820
sub eax, 1
push eax
push 1
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x28]
call fcn.00409700
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404700
lea ecx, [ebp - 0x88]
call fcn.00406430
jmp 0x408dfc
cmp dword [ebp - 0x8c], 0
jge 0x408e8f
jmp 0x408f24
mov ecx, dword [ebp - 0x8c]
push ecx
push 0
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x28]
call fcn.00409700
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x70]
push edx
call fcn.00405200
add esp, 0xc
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x40]
call fcn.00404700
lea ecx, [ebp - 0x70]
call fcn.00406430
push 0
lea ecx, [ebp - 0x40]
call fcn.004062e0
push eax
call fcn.0040ce05
add esp, 8
test eax, eax
je 0x408f04
push 0x4264e8
lea ecx, [ebp - 0x40]
call fcn.004062e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00406430
mov ecx, dword [ebp - 0x8c]
add ecx, 1
mov dword [ebp - 0x90], ecx
jmp 0x408dfc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00406430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00406430
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409e94
mov esp, ebp
pop ebp
ret
Function at 0x416f81
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x425008]
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.00411dd9
mov dword [ebp - 0x14], eax
cmp dword [0x42749c], esi
jne 0x417074
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x417001
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x417154
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x417154
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417154
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42749c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4274a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4274a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4274ac], eax
test eax, eax
je 0x417071
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4274a8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x417099
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41708c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4170ae
push 4
pop eax
jmp 0x417156
cmp dword [ebp - 0x14], esi
je 0x4170ae
push dword [0x42749c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x417093
mov eax, dword [0x4274a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41710c
cmp dword [0x4274ac], edi
je 0x41710c
push eax
call ebx
push dword [0x4274ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41710c
test eax, eax
je 0x41710c
call ecx
test eax, eax
je 0x417101
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 0x417101
test byte [ebp - 8], 1
jne 0x41710c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41713c
mov eax, dword [0x4274a0]
cmp eax, edi
je 0x417139
push eax
call ebx
test eax, eax
je 0x417139
call eax
mov esi, eax
test esi, esi
je 0x417139
mov eax, dword [0x4274a4]
cmp eax, edi
je 0x417139
push eax
call ebx
test eax, eax
je 0x417139
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42749c]
call ebx
test eax, eax
je 0x417154
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x417156
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e94
mov esp, ebp
pop ebp
ret
Function at 0x40109e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x10], 1
pushal
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x10]
push 0
push 0x44
push esi
call fcn.00401034
push 0
push 0x10
push edi
call fcn.00401034
mov dword [ebp - 0x54], 0x44
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x40111d
push dword [ebp + 8]
lea edx, [ebp - 0x25c]
push edx
call fcn.00401088
lea edx, [ebp - 0x25c]
push edx
call fcn.00401049
lea ecx, [ebp - 0x25c]
mov dword [eax + ecx], 0x20
push dword [ebp + 0xc]
lea edx, [ebp - 0x25c]
push edx
call fcn.00401069
lea eax, [ebp - 0x25c]
push edi
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
popal
leave
ret 8
Function at 0x408d7e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x126]
sub esp, 0x134
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408dbb
xor edx, edx
cmp byte [ebp + eax - 0x127], 0x5c
sete dl
jmp 0x408dc2
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, 0x40c4a0
add eax, ebx
mov dword [esp + 4], str._s_s.dll
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x408f1c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x42e0e4], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x408f59
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x408f44
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408f36
mov dword [ecx*4 + 0x42e0e0], eax
inc ecx
cmp ecx, 0x100
jne 0x408f2f
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x408f7b
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42e0e0]
jmp 0x408f63
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0xb97d24
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00b97d24
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
lea esi, [ebp - 0xc]
push 0x400000
push esi
call fcn.004029f2
add esp, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401092
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ecx]
mov edi, dword [ebp + 8]
mov esi, ecx
test eax, eax
je 0x4010af
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], 0
xor eax, eax
mov dword [esi + 4], str.8A69D345_D564_463c_AFF1_A69D9E530F96
mov ecx, esi
mov dword [esi + 0x18], eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x13], eax
mov dword [esi + 0xf], eax
push edi
call fcn.004010e4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, esi
push eax
call fcn.0040114a
pop esi
pop edi
pop ebp
ret 4

Function at 0x4010e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
push 0xa
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40113f
mov edi, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40113f
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x40113f
mov edi, eax
and eax, 1
jne 0x40113f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40113f
and edi, 0xfffffffe
cmp word [edi + eax - 2], 0
jne 0x40113f
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x40114a
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [ebp + 8]
mov esi, ecx
lea edi, [ecx + 0xc]
mov dword [ecx + 8], eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
mov dword [esi], eax
je 0x401268
cmp dword [edi], 2
mov dword [ebp - 0x10], edi
jl 0x401228
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, 2
push str.__system_level
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
je 0x4011f1
mov eax, dword [esi]
push str.__chrome_beta
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
je 0x4011f7
mov eax, dword [esi]
push str.__chrome_dev
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
je 0x401200
mov eax, dword [esi]
push str.__chrome_sxs
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
je 0x401209
mov eax, dword [esi]
push str.__cleanup
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
je 0x401212
mov eax, dword [esi]
push str.__chrome_frame
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
jne 0x401219
mov byte [esi + 0x16], 1
jmp 0x401219
mov byte [esi + 0x14], 1
jmp 0x401219
mov dword [esi + 4], str.8237E44A_0054_442C_B6B6_EA0509993955
jmp 0x401219
mov dword [esi + 4], str.401C381F_E0DE_4B85_8BD8_3F3F14FBDA57
jmp 0x401219
mov dword [esi + 4], str.4ea16ac7_fd5a_47c3_875b_dbf4a2008c20
jmp 0x401219
mov dword [esi + 0x10], 1
mov eax, dword [ebp - 0x10]
cmp ebx, dword [eax]
jge 0x401228
mov eax, dword [esi]
inc ebx
jmp 0x401187
cmp byte [esi + 0x14], 0
jne 0x40125a
xor eax, eax
lea edi, [ebp - 0x18]
mov word [edi + 4], ax
mov word [edi], ax
push 2
push edi
push str.GoogleUpdateIsMachine
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, 1
sete al
cmp word [edi], 0x31
sete cl
and cl, al
mov byte [esi + 0x14], cl
mov ecx, esi
call fcn.00401274
mov byte [esi + 0x15], al
mov al, 1
jmp 0x40126a
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x401354
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x406048]
test eax, eax
jne 0x4013ca
lea esi, [esp + 0x10]
push 0x208
push 0
push esi
call fcn.00401020
add esp, 0xc
xor edi, edi
mov ebx, 0x104
mov word [esp + 0x10], 0
push ebx
push esi
push dword [edi*4 + 0x404274]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, ebx
jae 0x4013b4
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x406048], eax
jmp 0x4013b9
mov eax, dword [0x406048]
test eax, eax
jne 0x4013ca
inc edi
cmp edi, 3
jb 0x401387
mov eax, dword [0x406040]
jmp 0x401401
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
call esi
mov dword [0x40603c], eax
push str.FDIDestroy
push dword [0x406048]
call esi
mov dword [0x406044], eax
push str.FDICopy
push dword [0x406048]
call esi
mov dword [0x406040], eax
xor ebx, ebx
cmp dword [0x40603c], 0
je 0x40151c
mov ecx, dword [0x406044]
test ecx, ecx
je 0x40151c
test eax, eax
je 0x40151c
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [esi + eax*2]
test eax, eax
jle 0x401444
cmp word [ebx], 0x5c
je 0x401444
add ebx, 0xfffffffe
cmp ebx, esi
ja 0x401437
cmp ebx, esi
je 0x40151a
add ebx, 2
xor edx, edx
dec edx
mov ecx, ebx
call fcn.00401526
sub ebx, esi
mov ecx, esi
mov edi, eax
mov dword [esp + 0xc], eax
sar ebx, 1
mov edx, ebx
call fcn.00401526
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov esi, eax
mov dword [esp + 8], eax
dec edx
call fcn.00401526
xor ebx, ebx
test esi, esi
mov dword [esp + 4], eax
je 0x4014fd
test edi, edi
je 0x4014fd
test eax, eax
je 0x4014fd
xor ebx, ebx
lea eax, [esp + 0x10]
mov dword [esp], edi
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
push eax
push 0xffffffffffffffff
push 0x4015a0
push 0x4015c0
push 0x4015e0
push 0x401620
push 0x401660
push 0x401730
push 0x401750
call dword [0x40603c]
add esp, 0x24
test eax, eax
je 0x4014fd
mov edi, eax
push dword [ebp + 0xc]
push ebx
push 0x401770
push ebx
push esi
push dword [esp + 0x14]
push eax
call dword [0x406040]
add esp, 0x1c
test eax, eax
setne bl
push edi
call dword [0x406044]
add esp, 4
lea ecx, [esp + 4]
call fcn.00401818
lea ecx, [esp + 8]
call fcn.00401818
lea ecx, [esp + 0xc]
call fcn.00401818
jmp 0x40151c
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret