joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x456ffd
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x46c5a0]
xor eax, esp
mov dword [esp + 0x268], eax
push esi
mov eax, dword [0x46c5a0]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov esi, ecx
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.00406020
mov ecx, esi
call fcn.0041732d
push esi
call fcn.00405a00
cmp dword [esi + 0x11c], 0
je 0x40582f
cmp dword [esi + 0x138], 0
jne 0x405844
lea edx, [esi + 0x108]
lea ecx, [esi + 0x124]
push edx
call fcn.004096d0
add esp, 4
call fcn.00405dc0
cmp dword [esi + 0x104], 0
jne 0x40585c
mov eax, 1
jmp 0x4058f7
push str.Transmitor
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405852
push 0
call fcn.00417a87
test eax, eax
jne 0x40588f
push 0xffffffffffffffff
push eax
push 0x67
call fcn.00417e67
jmp 0x4058f5
push 0
call fcn.0041892e
add esp, 4
push str.CATransmitor
mov ecx, esi
call fcn.00418e01
lea eax, [esp + 0x14]
push eax
call fcn.004061e0
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x284], 0
push 0x66
mov dword [esi + 0x20], ecx
call fcn.004103b3
push 1
lea ecx, [esp + 0x18]
call fcn.0041636e
push 0
lea ecx, [esp + 0x18]
call fcn.0041280e
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x284], 0xffffffff
call fcn.00405920
xor eax, eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0042d034
mov esp, ebp
pop ebp
ret
Function at 0x405f10
Capabilities:
Resume thread
Terminate thread

Disassembly:
cmp dword [esi], 0
je 0x405f76
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x405f76
cmp byte [esi + 8], 0
je 0x405f3b
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x405f3b
mov byte [esi + 8], 0
mov edx, dword [esp + 4]
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x405f58
mov ecx, dword [esi]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi]
test eax, eax
je 0x405f76
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x405f76
mov dword [esi], 0
mov dword [esi + 4], 0
ret 4

Function at 0x4061e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x456df0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46c5a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
xor ebx, ebx
push ebx
push 0x66
mov ecx, edi
call fcn.0040fab7
lea eax, [edi + 0x78]
mov dword [esp + 0x24], ebx
push eax
mov dword [edi], vtable.TransmitorDlg.0
call fcn.0040d130
fldz
lea esi, [edi + 0xd4]
fstp dword [edi + 0xd0]
mov dword [esi], ebx
mov dword [esi + 0x130], 0xf
mov dword [esi + 0x12c], ebx
mov byte [esi + 0x11c], bl
xor eax, eax
mov dword [esi + 0x134], ebx
mov dword [esi + 0x138], ebx
mov dword [esi + 0x13c], 2
mov dword [esi + 0x140], ebx
mov dword [esi + 4], eax
push 0x104
mov dword [esi + 8], eax
lea ecx, [esi + 0x14]
push ebx
mov dword [esi + 0xc], eax
push ecx
mov dword [esi + 0x10], eax
call fcn.004323a0
add esp, 0xc
push ebx
push ebx
lea ebp, [edi + 0x218]
push 1
push ebx
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov byte [ebp + 8], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp + 0xc], eax
mov byte [ebp + 0x10], bl
mov byte [ebp + 0x11], 1
mov dword [ebp + 0x28], ebx
mov byte [esp + 0x24], 3
mov byte [edi + 0x248], 1
mov byte [edi + 0x250], bl
call fcn.0040f965
call fcn.0040f965
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
sub esp, 0x18
mov dword [edi + 0x74], eax
mov ecx, 0x401240
mov dword [esp + 0x30], esp
mov eax, esp
je 0x406303
mov dword [eax], vtable.std::tr1::_Impl_base0_unsigned_long_int_.0
mov dword [eax], 0x460954
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov ecx, ebp
mov dword [eax + 0x10], eax
call fcn.00406bf0
push 0x10
mov ebp, 0x406660
call fcn.0040ef85
add esp, 4
cmp eax, ebx
je 0x406331
mov dword [eax + 4], ebx
mov dword [eax], vtable.._AV__DelegateImpl_U__pair_PAVTransmitorDlg__P81_AEXPAU_DOWNLOADEVENT___Z_std_____Delegate___A6AXPAU_DOWNLOADEVENT___Z_Acf__.0
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebp
jmp 0x406333
xor eax, eax
mov edx, dword [esi]
mov dword [eax + 4], edx
mov dword [esi], eax
call fcn.0040f965
mov eax, dword [eax + 4]
mov dword [edi + 0x24c], eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x406390
Capabilities:
Create thread
Inspect load icon resource
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0040fe7c
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 1
push 0x80
push ecx
call edi
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x20]
push edx
push 0
push 0x80
push eax
call edi
push 0
push 0x80
push 0x40000
mov ecx, esi
call fcn.004162a0
push 0
push 0
push 0
push 0
push 0
push 0x470c40
mov ecx, esi
call fcn.004165d0
call fcn.0040f965
mov eax, dword [eax + 8]
mov ebx, dword [esi + 0x78]
push 1
push 0x68
lea edi, [esi + 0x78]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [ebx + 0xc]
push eax
mov ecx, edi
call edx
sub esp, 0x18
mov dword [esp + 0x2c], esp
mov ebx, esp
push 0x18
mov ebp, 0x4067f0
call fcn.0040ef85
add esp, 4
test eax, eax
je 0x40644c
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax], 0x460980
mov dword [eax + 4], ebp
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov ecx, edi
mov dword [ebx + 0x10], eax
call fcn.00406130
mov eax, dword [edi]
mov edx, dword [eax + 8]
push 1
mov ecx, edi
call edx
mov eax, dword [esi + 0x24c]
mov eax, dword [eax + 0x104]
cmp eax, 2
jne 0x4064bb
mov ecx, dword [esi + 0x224]
add esi, 0x218
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x4064da
lea edx, [esi + 4]
push edx
push 4
push esi
push 0x406ca0
push 0
push 0
call fcn.0042fe9e
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4064da
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4064da
push esi
mov byte [esi + 0x250], al
call fcn.00406aa0
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 0
mov ecx, esi
call edx
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406b80
Capabilities:
Create process on windows

Disassembly:
push ecx
push esi
push 0x44
push 0x460998
push 0x460770
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x406bc3
mov esi, dword [esp + 0xc]
push 1
push 0
push 0
add esi, 0xe8
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x406bc3
call fcn.00406e90
pop esi
pop ecx
ret 4
Function at 0x406e90
Capabilities:
Access peb ldr_data
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45691b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x46c5a0]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
mov eax, dword [0x46c5a0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
push 2
xor ebx, ebx
push 0x4609a8
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
call fcn.00404d70
push str.SystemDrive
lea eax, [esp + 0xc]
mov dword [esp + 0x13c], ebx
call fcn.00404390
add esp, 4
push 0x103
lea eax, [esp + 0x29]
push ebx
push eax
mov byte [esp + 0x30], bl
call fcn.004323a0
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp dword [esp + 0x20], 0x10
jae 0x406f28
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x28]
push str._sProgram_FilesInternet_Exploreriexplore.exe
push ecx
call fcn.0042d2e0
add esp, 0xc
push 1
push ebx
push esi
lea edx, [esp + 0x30]
push edx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [esp + 0x20], 0x10
jb 0x406f64
mov eax, dword [esp + 0xc]
push eax
call fcn.0040efb4
add esp, 4
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0042d034
add esp, 0x134
ret

Function at 0x406f90
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [0x46c5a0]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
push 0
push 2
or edi, 0xffffffff
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, edi
je 0x407005
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x407005
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x407005
lea edx, [esp + 0x2c]
push edx
push ebx
call fcn.0042f7f0
add esp, 8
test eax, eax
je 0x40701b
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x406fe4
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0042d034
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0042d034
mov esp, ebp
pop ebp
ret
Function at 0x407060
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x407080
xor eax, eax
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40707a
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret

Function at 0x407170
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
xor ebp, ebp
push edi
cmp dword [esi + 4], ebp
jne 0x407189
push 0x100000
call fcn.0040ef85
add esp, 4
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push eax
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4071d7
pop edi
mov eax, 0x45fe88
pop ebp
ret 4
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, ebp
jle 0x40721a
mov edx, dword [esi + 4]
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0x100000
push edx
push edi
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40722e
mov eax, dword [esi + 4]
push eax
mov eax, dword [esp + 0x14]
push esi
call fcn.00407240
sub ebx, dword [esp + 0x10]
cmp ebx, ebp
jg 0x4071e6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00407310
pop ebx
pop edi
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 0x45fe88
pop ebp
ret 4
Function at 0x408e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408e39
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408e74
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x408e70
lea ebx, [ebx]
cmp esi, eax
jae 0x408e74
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408e60
cmp esi, eax
jb 0x408e7a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x409640
Capabilities:
Get common file path

Disassembly:
sub esp, 8
mov eax, dword [0x46c5a0]
xor eax, esp
mov dword [esp + 4], eax
push esi
push 0
push 0x23
mov esi, ecx
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp eax, 1
jne 0x4096b4
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x409666
mov ecx, dword [str.GDCA_]
mov dword [eax], ecx
mov dx, word [0x460bb0]
mov word [eax + 4], dx
mov cl, byte [0x460bb2]
dec esi
mov byte [eax + 6], cl
mov eax, esi
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x409690
mov edx, dword [str.OFile.dat]
mov dword [eax], edx
mov ecx, dword [0x460bb8]
mov dword [eax + 4], ecx
mov dx, word [0x460bbc]
mov word [eax + 8], dx
mov ecx, dword [esp + 8]
pop esi
xor ecx, esp
call fcn.0042d034
add esp, 8
ret

Function at 0x409b90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4561bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x46c5a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044996e
push 4
mov dword [esp + 0x20], 0
call fcn.0040ef85
mov edi, eax
add esp, 4
test edi, edi
je 0x409c0e
call fcn.00449cb9
mov dword [edi], eax
call fcn.00449ae7
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00449a0b
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x409c03
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00449a33
jmp 0x409c10
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x409da0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x456ef2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46c5a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x460e00
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.00409af0
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.00409b90
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x472728]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x24], 2
call fcn.00409cc0
test eax, eax
jne 0x409ea1
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x409e90
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x409ea1
push ebx
call fcn.0040c450
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x40cd70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov edx, dword [esi]
lea eax, [esp + 8]
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push str.NoDriveTypeAutoRun
push edx
mov dword [esp + 0x20], 0
call edi
test eax, eax
je 0x40cdcb
mov esi, 0x1eb
push eax
push str.NoDriveTypeAutoRun
push 3
push str.RegQueryValueEx_cszValueName_s__code:_d_n
mov edi, str.e:_svngsmw_branchesgdca_client_sm2_20120618_application_exedowntoolcodeinc_saturnwin32_util.h
call fcn.0040ecf0
add esp, 0x10
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret 4
mov eax, dword [esp + 0xc]
cmp eax, 4
je 0x40cdf9
push eax
push 3
push str.RegQueryValueEx_Wrong_type:_u_n
mov esi, 0x1f1
mov edi, str.e:_svngsmw_branchesgdca_client_sm2_20120618_application_exedowntoolcodeinc_saturnwin32_util.h
call fcn.0040ecf0
add esp, 0xc
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret 4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.NoDriveTypeAutoRun
push eax
call edi
test eax, eax
je 0x40ce1f
mov esi, 0x1f8
jmp 0x40cda6
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4

Function at 0x40e810
Capabilities:
Initialize winhttp library

Disassembly:
sub esp, 0x60
push edi
push 0
push 0
push 0
push 0
push str.Application
mov edi, eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
test eax, eax
jne 0x40e86c
push 0x46101c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 0x24
push str...commonWinHTTPWrap.cpp
push 0x60000
push 0x45fe88
mov ecx, str.win_http
lea edi, [esp + 0x24]
call fcn.00404820
add esp, 0x1c
push 0x46780c
mov eax, edi
push eax
call fcn.004326bc
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e871
lea ecx, [esi + 8]
push ecx
sub eax, edx
push 0
sar eax, 1
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x40e8cf
push 0x461044
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 0x27
push str...commonWinHTTPWrap.cpp
push 0x60000
push 0x45fe88
mov ecx, str.win_http
lea edi, [esp + 0x24]
call fcn.00404820
add esp, 0x1c
push 0x46780c
mov edx, edi
push edx
call fcn.004326bc
movzx eax, word [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 4], eax
test eax, eax
jne 0x40e927
push 0x461054
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 0x2b
push str...commonWinHTTPWrap.cpp
push 0x60000
push 0x45fe88
mov ecx, str.win_http
lea edi, [esp + 0x24]
call fcn.00404820
add esp, 0x1c
push 0x46780c
mov eax, edi
push eax
call fcn.004326bc
pop edi
add esp, 0x60
ret
Function at 0x40eb90
Capabilities:
Read http header

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
push edi
xor ebx, ebx
push ebx
mov edi, eax
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push 0x13
push edi
mov dword [esp + 0x2c], ebx
call ebp
cmp eax, ebx
jne 0x40ebff
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
je 0x40ebff
push 0x4610d4
call esi
push eax
push 3
push 0xa9
push str...commonWinHTTPWrap.cpp
push 0x60000
push 0x45fe88
mov ecx, str.win_http
lea edi, [esp + 0x34]
call fcn.00404820
add esp, 0x1c
push 0x46780c
mov ecx, edi
push ecx
call fcn.004326bc
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040efbf
mov esi, eax
add esp, 4
test esi, esi
je 0x40ec5c
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.004323a0
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push esi
push 0
push 0x13
push edi
call ebp
test eax, eax
je 0x40ec5c
push esi
call fcn.00430c97
add esp, 4
push esi
mov ebx, eax
call fcn.0040efb4
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x64
ret

Function at 0x4103b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4103d7
cmp dword [edi + 0x54], 0
jne 0x4103d7
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040f965
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00410374
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x415a79
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x415ac0
call fcn.0040f965
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x415ac0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x415adc
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004155f3
mov esi, eax
test edi, edi
je 0x415ada
test ebx, ebx
je 0x415ada
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4