joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac7d
Capabilities:
Delete file

Disassembly:
push 0x40
mov eax, 0x5e1778
call fcn.0059bbd7
mov esi, ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40acb1
push 0xf1
push str.Libcurl::DownloadFile
push str.__s__d___pRequest_is_empty
call fcn.0040a649
add esp, 0xc
or eax, 0xffffffff
jmp 0x40ae5f
and dword [ebp - 0x48], 0
lea edi, [esi + 4]
push ebx
mov ecx, edi
call fcn.00404698
cmp dword [edi + 0x14], 0x10
jb 0x40acc8
mov edi, dword [edi]
push edi
push 0x2712
push dword [esi]
call fcn.004ee720
add esp, 0xc
push 1
push 0x29
push dword [esi]
call fcn.004ee720
add esp, 0xc
push 0
push 0x2b
push dword [esi]
call fcn.004ee720
add esp, 0xc
push 0x40aef5
push 0x4e2b
push dword [esi]
call fcn.004ee720
add esp, 0xc
push 0x40ae67
push 0x4e58
push dword [esi]
call fcn.004ee720
add esp, 0xc
lea edi, [ebx + 0xa8]
push edi
push 0x2749
push dword [esi]
call fcn.004ee720
add esp, 0xc
push dword [esi + 0x20]
push 0xd
push dword [esi]
call fcn.004ee720
add esp, 0xc
push 1
push 0x63
push dword [esi]
call fcn.004ee720
add esp, 0xc
push 0x63331c
sub esp, 0x18
mov ecx, esp
push edi
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.00404267
lea ecx, [ebp - 0x2c]
call fcn.00435b82
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x40ad7a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.005c2ba1
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.0040b67e
cmp dword [ebp - 0x48], 0
jne 0x40adec
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x18
xor ebx, ebx
mov ecx, esp
mov esi, eax
push edi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404267
lea ecx, [ebp - 0x2c]
call fcn.00435b82
add esp, 0x18
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x40adc6
mov eax, dword [eax]
push eax
push esi
push 0x106
push str.Libcurl::DownloadFile
push str.__s__d___fp_is_empty__code_d__strFileName_s
call fcn.0040a649
add esp, 0x14
lea ecx, [ebp - 0x2c]
call fcn.0040b67e
jmp 0x40aca9
push dword [ebp - 0x48]
push 0x2711
push dword [esi]
call fcn.004ee720
add esp, 0xc
push dword [esi]
call fcn.004eae20
cmp dword [ebp - 0x48], 0
mov esi, eax
pop ecx
je 0x40ae1b
push dword [ebp - 0x48]
call fcn.005c2c80
and dword [ebp - 0x48], 0
pop ecx
test esi, esi
jne 0x40ae28
mov byte [ebx + 0x118], 1
jmp 0x40ae5d
sub esp, 0x18
mov ecx, esp
push edi
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.00404267
lea ecx, [ebp - 0x44]
call fcn.00435b82
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x40ae4e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x44]
call fcn.0040b67e
mov eax, esi
call fcn.0059bb81
ret 4
Function at 0x40bac0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0xc], 0
jne 0x40bada
push 3
call fcn.004eaf60
pop ecx
mov byte [esi + 0xc], 1
push 0x99
push 0x633388
push str.__s__d___Init__:
call fcn.0040a649
lea eax, [esi + 8]
xor edi, edi
push eax
push edi
push esi
push 0x40bb2b
push edi
push edi
call fcn.005c30ff
mov dword [esi], eax
mov edx, str.Software360
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push str.use_fiddler
mov ecx, reloc.WS2_32.dll_accept
call fcn.004261bf
add esp, 0x2c
call sym.360huabao.exe_public:_void___thiscall_ShellResourceRequestDetails::destructor_void_
pop edi
pop esi
leave
ret

Function at 0x40bd1b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push 0x40bd41
push ecx
push ecx
call fcn.005c30ff
add esp, 0x18
xor eax, eax
leave
ret 4

Function at 0x40cf93
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6d35ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d01e
push ebx
push 0x1c
pop ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x40d012
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x40d004
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x40d004
push dword [ebp - 0x18]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40d004
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.0040dde9
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x40cfcc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0059a7a2
leave
ret

Function at 0x40d02c
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x686668
call fcn.0059c060
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x40d0a2
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x40d0a2
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x40d0a2
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x40d0a2
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x40d0ab
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d397
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x6f0e08]
jmp 0x40d3bd
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40d3c6
mov esi, dword [esi + 4]
test esi, esi
jne 0x40d3a4
xor eax, eax
pop esi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d3c3

Function at 0x40d4b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edx - 0x10000]
call fcn.0040d40f
mov esi, eax
cmp esi, edi
jbe 0x40d544
mov ebx, 0x10000
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x40d4ee
sub esi, 0x8000000
jmp 0x40d540
push 0x1c
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.005b24a0
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d544
cmp dword [ebp - 0xc], ebx
jne 0x40d530
cmp dword [ebp - 0x10], ebx
jb 0x40d530
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40d546
sub esi, ebx
jmp 0x40d540
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10000]
call fcn.0040d40f
mov esi, eax
cmp esi, edi
ja 0x40d4d9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d54b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, edx
mov esi, ecx
mov edx, esi
mov ecx, eax
call fcn.0040d4b8
test eax, eax
jne 0x40d56c
mov edx, dword [ebp + 8]
mov ecx, esi
pop esi
pop ebp
jmp fcn.0040d42f
pop esi
pop ebp
ret

Function at 0x40d56f
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
mov esi, ecx
push eax
lea edx, [ebp - 4]
call fcn.0040d0e4
mov edx, dword [0x6f0e00]
mov eax, dword [0x6f0e08]
pop ecx
test edx, edx
jne 0x40d59f
test eax, eax
je 0x40d5b0
mov edx, eax
mov dword [0x6f0e00], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x40d5b0
cmp ecx, dword [ebp - 4]
jb 0x40d5b0
cmp ecx, dword [ebp - 8]
jbe 0x40d62c
mov edx, eax
test eax, eax
jmp 0x40d5d0
test edx, edx
je 0x40d5cb
mov eax, dword [edx + 8]
test eax, eax
je 0x40d5cb
cmp eax, dword [ebp - 4]
jb 0x40d5cb
cmp eax, dword [ebp - 8]
jbe 0x40d62c
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x6f0e00], edx
jne 0x40d5b6
push dword [ebp - 8]
mov edx, dword [ebp - 4]
and esi, 0xffff0000
mov ecx, esi
call fcn.0040d54b
mov edx, eax
pop ecx
test edx, edx
je 0x40d653
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x6f0e08]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x6f0e00], edx
mov dword [0x6f0e08], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x40d61c
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, dword [ebp - 4]
jb 0x40d653
cmp esi, dword [ebp - 8]
ja 0x40d653
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.005b24a0
add esp, 0xc
mov eax, esi
jmp 0x40d655
xor eax, eax
pop esi
leave
ret
Function at 0x40d67d
Capabilities:
Hook routines via microsoft detours

Disassembly:
cmp dword [ecx], 0x52727464
push esi
jne 0x40d6b1
lea esi, [ecx + 0x10000]
xor eax, eax
lea edx, [ecx + 0x88]
cmp dword [edx], 0
je 0x40d6a1
cmp dword [edx], ecx
jb 0x40d6b1
cmp dword [edx], esi
jae 0x40d6b1
inc eax
add edx, 0x48
cmp eax, 0x38d
jb 0x40d694
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x40d7a1
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x6f0dfc], eax
je 0x40d7ba
mov eax, 0x10dd
leave
ret
push ebx
push esi
push edi
mov edi, dword [0x6f0e10]
xor ebx, ebx
test edi, edi
je 0x40d807
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x40d7f5
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x40d7f5
call fcn.0040d658
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push 0x18
push edi
call fcn.0059a7b3
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x40d7c9
mov dword [0x6f0e10], ebx
call fcn.0040d3ce
mov edi, dword [0x6f0e0c]
test edi, edi
je 0x40d840
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [edi]
push 8
push edi
call fcn.0059a7b3
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x40d81c
pop edi
pop esi
mov dword [0x6f0e0c], ebx
xor eax, eax
mov dword [0x6f0dfc], ebx
pop ebx
leave
ret
Function at 0x40dac3
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6e92ec]
sub esp, 0xc
test eax, eax
jne 0x40db44
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call fcn.0040cf93
mov edi, dword [ebp - 0xc]
mov esi, edi
jmp 0x40db23
push 0x6dacd4
push 8
call fcn.0059b0cb
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x40db5a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x40db46
mov ecx, dword [esi]
add esi, 4
mov eax, dword [0x6f0e0c]
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov dword [0x6f0e0c], ebx
cmp esi, dword [ebp - 8]
jne 0x40daed
xor esi, esi
test edi, edi
je 0x40db3f
mov ecx, dword [ebp - 4]
sub ecx, edi
and ecx, 0xfffffffc
push ecx
push edi
call fcn.004047e6
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push ebx
call fcn.0059a7b3
pop ecx
pop ecx
jmp 0x40db5d
push 8
pop esi
and dword [0x6f0e04], 0
mov dword [0x6e92ec], esi
jmp 0x40db2a
Function at 0x410415
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 4], 0
and dword [ecx], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
ret

Function at 0x4109ba
Capabilities:
Check if file exists

Disassembly:
push 0x224
mov eax, 0x5e1b57
call fcn.0059bbd7
mov ebx, 0x627e98
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x4109f6
push 0x12
push str.base_util_helper::LoadBaseUtil
push str.__s__d___Load_kBaseUtilDll_is_exist
call fcn.0040a649
add esp, 0xc
mov eax, esi
jmp 0x410ac5
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.005b24a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push 0x633870
push eax
call esi
lea ecx, [ebp - 0x230]
call fcn.004d4eb0
mov dword [ebp - 4], edi
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push ebx
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0x218]
push eax
jne 0x410a98
push 0x1c
push str.base_util_helper::LoadBaseUtil
push str.__s__d___Load_kBaseUtilDll_file_is_not_exist__path_:__s
call fcn.0040a649
add esp, 0x10
jmp 0x410ab8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x410ab8
push 0x22
push str.base_util_helper::LoadBaseUtil
push str.__s__d___Load_kBaseUtilDll_fail
call fcn.0040a649
add esp, 0xc
lea ecx, [ebp - 0x230]
call fcn.0040b67e
mov eax, edi
call fcn.0059bb81
ret

Function at 0x411344
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
mov dword [ebp - 8], edx
cmp dword [ecx + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x41135a
mov ecx, dword [ecx]
push 0x633b20
push ecx
lea eax, [ebp - 4]
push eax
call fcn.005c2ba1
add esp, 0xc
cmp dword [ebp - 4], ebx
je 0x4113e9
push esi
push 2
push ebx
push dword [ebp - 4]
call fcn.005c3a4b
push dword [ebp - 4]
call fcn.005c4044
push ebx
push ebx
push dword [ebp - 4]
mov esi, eax
call fcn.005c3a4b
add esp, 0x1c
test esi, esi
je 0x4113df
push edi
lea ebx, [esi + 1]
push ebx
call fcn.0059af42
mov edi, eax
pop ecx
test edi, edi
je 0x4113de
push ebx
push 0
push edi
call fcn.005b24a0
push dword [ebp - 4]
push 1
push esi
push edi
call fcn.005c421b
add esp, 0x1c
test eax, eax
je 0x4113d7
cmp esi, dword [ebp + 8]
jg 0x4113d7
push esi
push edi
push dword [ebp - 8]
call fcn.005b2600
add esp, 0xc
push edi
call fcn.0059aa0f
pop ecx
pop edi
push dword [ebp - 4]
call fcn.005c2c80
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x4113ec
Capabilities:
Get file size

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x4113f4
mov ecx, dword [ecx]
push esi
push edi
xor esi, esi
mov eax, accept
push esi
push eax
push 3
push esi
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x411425
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
ret

Function at 0x411428
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x6d35ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x34], edx
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], esi
jb 0x41144f
mov ecx, dword [ecx]
push 0x633b20
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.005c2ba1
add esp, 0xc
cmp dword [ebp - 0x2c], esi
je 0x4114ee
push ebx
push 2
push esi
push dword [ebp - 0x2c]
call fcn.005c3a4b
push dword [ebp - 0x2c]
call fcn.005c4044
push esi
push esi
push dword [ebp - 0x2c]
mov ebx, eax
call fcn.005c3a4b
add esp, 0x1c
test ebx, ebx
je 0x4114e4
push edi
lea esi, [ebx + 1]
push esi
call fcn.0059af42
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x30], edi
call fcn.005b24a0
push dword [ebp - 0x2c]
push 1
push ebx
push edi
call fcn.005c421b
add esp, 0x20
lea edi, [ebp - 0x28]
mov esi, str.9cc194ba4e37c0d1484040e4f611c617
lea eax, [ebp - 0x28]
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
push ebx
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x30]
push esi
push ecx
push eax
call fcn.0042f05c
mov eax, dword [ebp - 0x34]
pop edi
test eax, eax
je 0x4114df
mov dword [eax], esi
mov eax, dword [ebp - 0x38]
mov dword [eax], ebx
push dword [ebp - 0x2c]
call fcn.005c2c80
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0059a7a2
leave
ret
Function at 0x41177c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x6d35ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x633b70
push 0x28
pop edx
mov esi, ecx
call fcn.004116b8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esi + 0xb4]
mov edx, 0x500
call fcn.004116b8
pop ecx
mov ecx, esi
call fcn.00411a6b
mov ecx, esi
call fcn.00411aae
mov ecx, esi
call fcn.004119fb
mov ecx, esi
call fcn.00411981
mov ecx, esi
call fcn.00411b20
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 0
je 0x411832
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x10c]
lea eax, [esi + 0xab4]
push dword [ebp - 0x110]
push dword [ebp - 0x114]
push str._d._d._d__s
push 0x103
push eax
call fcn.00412a13
add esp, 0x1c
lea edi, [esi + 0x5d88]
mov edx, 0x104
mov ecx, edi
mov byte [edi], 0
call fcn.00422b14
cmp byte [edi], 0
lea eax, [esi + 0xd84]
jne 0x411863
push str.empty_na
push 0x23
pop edx
mov ecx, eax
call fcn.004116b8
jmp 0x41186e
push 0x23
mov edx, eax
mov ecx, edi
call fcn.004116eb
pop ecx
push ebx
mov ecx, esi
call fcn.00411ba0
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00411cd1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059a7a2
leave
ret 8

Function at 0x4118f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor eax, eax
lea esi, [ecx + 0x1b80]
mov word [esi], ax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x41197a
cmp eax, 0x3fff
ja 0x41197a
push esi
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41197a
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x633b6c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41197a
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push edi
push esi
call fcn.00412a13
add esp, 0x1c
xor eax, eax
mov word [esi + edi*2 - 2], ax
inc eax
pop edi
jmp 0x41197c
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x4119fb
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
push eax
push 0x26
lea esi, [edi + 0x5b80]
push esi
push eax
mov word [esi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x633bd4
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x32
pop eax
push eax
lea ebx, [edi + 0xcbc]
mov dword [ebp - 4], eax
push ebx
push esi
mov ecx, edi
call fcn.004118f0
test eax, eax
jne 0x411a66
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push ebx
lea eax, [ebp - 8]
push eax
push str.Version
push str.SoftwareMicrosoftInternet_Explorer
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411cd1
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push 0x34
mov eax, 0x5e1c35
call fcn.0059bbd7
mov ebx, ecx
push 0x633d40
lea ecx, [ebp - 0x40]
call fcn.0040b0d5
and dword [ebp - 4], 0
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004c9bd2
lea ecx, [ebp - 0x40]
call fcn.0040b67e
cmp dword [ebp - 0x18], 0
je 0x411e06
xor eax, eax
lea esi, [ebx + 0xe7c]
cmp dword [ebp - 0x14], 8
mov word [esi], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x103
push esi
call fcn.005c4440
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str...User_Data
push esi
call edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411d6e
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.User_Data
push esi
call edi
push str.tcdump
push esi
call edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411d89
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call fcn.00411667
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._scrashinfo__d__d.dat
mov edi, 0x104
lea eax, [ebx + 0x128c]
push edi
push eax
call fcn.0040ce80
push esi
push str._sStandaloneCrashInfo
lea eax, [ebx + 0x1494]
push edi
push eax
call fcn.0040ce80
add esp, 0x28
lea eax, [ebx + 0xe10]
cmp byte [ebp + 8], 0
lea edi, [ebx + 0x1084]
push eax
push esi
je 0x411de1
push str._s_secrash__s.dmp
push 0xffffffffffffffff
jmp 0x411deb
push str._sMinorError__s.dmp
push 0x104
push edi
call fcn.0040ce80
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411e06
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.0040b67e
call fcn.0059bb81
ret 4
Function at 0x4127df
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x498
mov eax, 0x5e1ca3
call fcn.0059bbd7
mov edi, ecx
test edi, edi
je 0x4127d7
push 0x63424c
lea ecx, [ebp - 0x450]
call fcn.0040b0d5
and dword [ebp - 4], 0
lea edx, [ebp - 0x450]
lea ecx, [ebp - 0x438]
call fcn.004cb96f
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 2
call fcn.0040b67e
push 8
pop ebx
cmp dword [ebp - 0x424], ebx
lea eax, [ebp - 0x438]
mov esi, str.se_breakpad::ReportThreadFunc
cmovae eax, dword [ebp - 0x438]
push eax
push 0x30b
push esi
push str.__s__d___seVerPath:_s
call fcn.0040a649
add esp, 0x10
cmp dword [ebp - 0x428], 0
je 0x4127cc
cmp dword [ebp - 0x424], ebx
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4127b9
cmp dword [ebp - 0x424], ebx
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.004352fd
pop ecx
test eax, eax
je 0x4127b9
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005b24a0
add esp, 0xc
lea esi, [ebp - 0x438]
cmp dword [ebp - 0x424], ebx
cmovae esi, dword [ebp - 0x438]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push str.__s___crash:_d__crashcfg:__s_
lea eax, [ebp - 0x420]
push 0x207
push eax
call fcn.00412872
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x4a4]
push ebx
push eax
call fcn.005b24a0
xor eax, eax
mov dword [ebp - 0x4a4], esi
add esp, 0x24
mov dword [ebp - 0x478], 0x80
lea edi, [ebp - 0x460]
stosd dword es:[edi], eax
push 5
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov word [ebp - 0x474], ax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x4a4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4127cc
push dword [ebp - 0x45c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x460]
call esi
jmp 0x4127cc
push 0x325
push esi
push str.__s__d___PathFileExists_error
call fcn.0040a649
add esp, 0xc
lea ecx, [ebp - 0x438]
call fcn.0040b67e
xor eax, eax
call fcn.0059bb81
ret
push ebx
push esi
push edi
mov edi, ecx
push edi
call fcn.005c2f90
mov ebx, eax
xor ecx, ecx
push 2
pop edx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0059af42
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x412833
lea ecx, [ebx*2 + 2]
push ecx
push 0
push esi
call fcn.005b24a0
push edi
lea eax, [ebx + 1]
push eax
push esi
call fcn.0040b616
add esp, 0x18
mov ecx, esi
pop edi
pop esi
pop ebx
jmp 0x41262a
pop edi
pop esi
pop ebx
ret