joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e8ed
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x100527f6
call fcn.10037f36
xor ebx, ebx
cmp dword [0x1006a458], ebx
je 0x1001e9bd
cmp byte [0x10069c48], bl
je 0x1001e919
mov al, byte [0x10069c47]
jmp 0x1001ea30
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push 0x10056838
push 4
push ebx
push 0x10056858
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jne 0x1001e9ab
cmp dword [ebp - 0x10], ebx
je 0x1001e9ab
push str.IEXPLORE
lea ecx, [ebp - 0x14]
call fcn.10001f24
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
jne 0x1001e99e
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x18], ebx
setne bl
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1001e586
mov al, bl
jmp 0x1001ea30
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call dword [sym.imp.ole32.dll_CoUninitialize]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1001e586
cmp dword [0x10069bc4], ebx
jne 0x1001e9d2
call fcn.1001ded4
test al, al
jne 0x1001e9d2
xor al, al
jmp 0x1001ea30
cmp dword [0x10069bc8], ebx
jne 0x1001ea04
push 0x10069bc8
push 1
push ebx
push str.SoftwareDownloadManagerIDMBIIEXPLORE
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001e9fc
mov dword [0x10069bc8], ebx
cmp dword [0x10069bc8], ebx
je 0x1001e9ce
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 0x100578ac
push dword [0x10069bc8]
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001e9ce
cmp dword [ebp - 0x20], ebx
setne al
call fcn.1003800e
ret
Function at 0x100203f1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x10052b67
call fcn.10037f36
xor edi, edi
xor esi, esi
inc edi
cmp dword [0x1006a458], esi
je 0x10020480
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x10]
push eax
push 0x10056838
push 4
push esi
push 0x10056858
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jne 0x1002046e
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x1002046e
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp eax, esi
jne 0x1002046e
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
cmp dword [ebp - 0x14], 2
setne al
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1001e586
mov eax, esi
jmp 0x100204ef
call dword [sym.imp.ole32.dll_CoUninitialize]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1001e586
cmp dword [0x10069bd0], esi
jne 0x100204c2
cmp dword [0x10069bc8], esi
jne 0x10020495
call fcn.1001e8ed
push 0x10069bd0
push edi
push esi
push str.SoftwareDownloadManagerIDMBIIEXPLOREDwnlPanel
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100204b6
mov dword [0x10069bd0], esi
cmp dword [0x10069bd0], esi
jne 0x100204c2
mov eax, edi
jmp 0x100204ef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push str.PanelView
push dword [0x10069bd0]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100204be
cmp dword [ebp - 0x1c], 2
setne al
call fcn.1003800e
ret
Function at 0x10026c13
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0xa08
lea ebp, [esp - 4]
mov eax, dword [0x10068510]
xor eax, ebp
mov dword [ebp + 0xa08], eax
push 8
mov eax, 0x100535da
call fcn.10037f69
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [esi + 0x10], bl
jne 0x10026d0f
mov byte [esi + 0x10], 1
mov eax, dword [0x10069bc4]
cmp eax, ebx
je 0x10026d0f
mov dword [ebp - 0x14], 0x104
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0x904]
push ecx
push ebx
push ebx
push str.AppDataIDMFolder
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10026d0f
lea eax, [ebp + 0x904]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10026d0f
lea eax, [ebp + 0x904]
push eax
call fcn.100381a0
pop ecx
mov dword [ebp - 0x14], eax
cmp byte [ebp + eax + 0x903], 0x5c
mov eax, 0x10055be4
jne 0x10026cb6
mov eax, 0x10055e52
push str.sts_list2.dat
push eax
lea eax, [ebp + 0x904]
push eax
push str._s_s_s
lea eax, [ebp + 0x800]
push eax
call fcn.1003b332
push 0x10055ca4
lea eax, [ebp + 0x800]
push eax
call fcn.1003b31b
add esp, 0x1c
mov edi, eax
cmp edi, ebx
je 0x10026d0f
push edi
push 0x800
lea eax, [ebp]
push eax
call fcn.1003b10f
add esp, 0xc
test eax, eax
jne 0x10026d32
push edi
call fcn.1003b093
pop ecx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa08]
xor ecx, ebp
call fcn.10037f27
add ebp, 0xa0c
leave
ret
push 0xd
lea eax, [ebp]
push eax
call fcn.100379b0
pop ecx
pop ecx
cmp eax, ebx
je 0x10026d45
mov byte [eax], bl
push 0xa
lea eax, [ebp]
push eax
call fcn.100379b0
pop ecx
pop ecx
cmp eax, ebx
je 0x10026d58
mov byte [eax], bl
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.10026af3
jmp 0x10026cee

Function at 0x10027afa
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.100381a0
pop ecx
xor ecx, ecx
test eax, eax
jle 0x10027b15
xor byte [ecx + esi], 0xf
inc ecx
cmp ecx, eax
jl 0x10027b0c
pop esi
ret
Function at 0x10027c5d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x42c]
sub esp, 0x4ac
mov eax, dword [0x10068510]
xor eax, ebp
mov dword [ebp + 0x428], eax
push ebx
xor ebx, ebx
cmp dword [0x1006a468], ebx
jne 0x10027dbb
cmp dword [0x1006a464], ebx
jne 0x10027da5
cmp dword [0x10069bc4], ebx
jne 0x10027ca8
call fcn.1001ded4
test al, al
je 0x10027dbb
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10027cc3
cmp dword [ebp - 0x6c], 2
jb 0x10027d31
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x220]
push eax
push ebx
push ebx
push str.ExePath
push dword [0x10069bc4]
mov dword [ebp - 0x80], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10027d9d
lea eax, [ebp + 0x220]
push 0x5c
push eax
call fcn.10039560
pop ecx
pop ecx
cmp eax, ebx
je 0x10027d9d
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x220]
push eax
lea eax, [ebp + 0x18]
push str._sidmftype.dll
push eax
call fcn.100047e3
add esp, 0xc
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x10027d98
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x11c]
push eax
push ebx
push ebx
push 0x10055cd4
push dword [0x10069bc4]
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10027d9d
lea eax, [ebp + 0x11c]
push 0x5c
push eax
call fcn.100394f0
pop ecx
pop ecx
cmp eax, ebx
je 0x10027d9d
mov byte [eax], bl
lea eax, [ebp + 0x11c]
push eax
lea eax, [ebp + 0x324]
push 0x10058764
push eax
call fcn.1003b332
add esp, 0xc
lea eax, [ebp + 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1006a464], eax
cmp dword [0x1006a464], ebx
je 0x10027dbb
push str.IDMFileType
push dword [0x1006a464]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1006a468], eax
mov ecx, dword [ebp + 0x428]
xor ecx, ebp
pop ebx
call fcn.10037f27
add ebp, 0x42c
leave
ret
Function at 0x10028910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x10053993
call fcn.10037f69
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 8]
mov edi, dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoA]
call edi
test eax, eax
jne 0x10028977
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10028977
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.10037b36
pop ecx
mov esi, eax
cmp esi, ebx
je 0x10028977
mov eax, dword [ebp - 0x14]
mov byte [esi + eax], bl
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1002897f
push esi
call fcn.10037990
pop ecx
xor eax, eax
call fcn.1003800e
ret
mov dword [ebp - 0x18], ebx
cmp dword [esi + 8], ebx
je 0x10028a1d
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10028a1d
push dword [esi + 8]
mov ecx, dword [ebp + 0xc]
call fcn.10002ef0
mov dword [ebp - 0x18], 1
cmp dword [esi + 0x48], ebx
je 0x100289bf
push dword [esi + 0x48]
mov ecx, dword [ebp + 0x10]
call fcn.10002ef0
cmp dword [esi + 0x40], ebx
je 0x100289fe
mov eax, dword [esi + 0x44]
cmp eax, ebx
jbe 0x100289fe
inc eax
push eax
call fcn.10037b36
pop ecx
mov edi, eax
cmp edi, ebx
je 0x100289fe
push dword [esi + 0x44]
push dword [esi + 0x40]
push edi
call fcn.10038550
add esp, 0xc
mov eax, dword [esi + 0x44]
mov byte [edi + eax], bl
push edi
mov ecx, dword [ebp + 0x14]
call fcn.10002ef0
push edi
call fcn.10038091
pop ecx
push 1
push ebx
push ebx
push dword [esi + 0x1c]
call fcn.1003bdc0
mov ecx, eax
mov eax, dword [esi + 0x18]
xor edi, edi
add ecx, eax
adc edx, edi
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov byte [ebp - 4], 1
push esi
call fcn.10037990
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
jmp 0x10028979
Function at 0x10028f0a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x10068510]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x10
mov eax, 0x100539d9
call fcn.10037f36
mov edi, dword [ebp + 0x80c]
push str.____
push edi
mov dword [ebp - 0x1c], edi
call fcn.10037a70
pop ecx
pop ecx
test eax, eax
jne 0x100290a8
xor ebx, ebx
mov byte [ebp - 0xd], bl
mov esi, 0x800
cmp dword [0x1006a458], ebx
je 0x10029004
cmp byte [0x10069c49], bl
je 0x10028f7f
lea eax, [ebp]
push 0x10069c4a
push eax
call fcn.100380a0
pop ecx
pop ecx
jmp 0x1002903b
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push 0x10056838
push 4
push ebx
push 0x10056858
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jne 0x10028fed
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x10028fed
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp eax, ebx
jne 0x10028fed
cmp dword [ebp - 0x18], ebx
je 0x10028fed
push ebx
push ebx
push esi
lea eax, [ebp]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x10028fe4
mov byte [ebp - 0xd], 1
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call dword [sym.imp.ole32.dll_CoUninitialize]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1001e586
cmp byte [ebp - 0xd], bl
jne 0x1002903b
cmp dword [0x10069bc4], ebx
jne 0x10029019
call fcn.1001ded4
test al, al
je 0x100290a8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push str.Extensions
push dword [0x10069bc4]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100290a8
push edi
lea esi, [ebp]
call fcn.100381a0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x100290a8
push edi
push dword [ebp - 0x1c]
push esi
call fcn.1003c2a6
add esp, 0xc
test eax, eax
jne 0x10029067
mov al, byte [edi + esi]
cmp al, 0x20
je 0x100290cd
cmp al, bl
je 0x100290cd
push 0x10058870
push esi
call fcn.10037ab0
pop ecx
pop ecx
cmp eax, ebx
je 0x10029092
lea ecx, [edi + esi]
cmp ecx, eax
jbe 0x10029092
sub eax, esi
push eax
push dword [ebp - 0x1c]
push esi
call fcn.1003c2a6
add esp, 0xc
test eax, eax
je 0x100290cd
push 0x10055e50
push esi
call fcn.10037ab0
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x100290a8
inc esi
jne 0x1002904b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.10037f27
add ebp, 0x804
leave
ret
mov al, 1
jmp 0x100290aa
Function at 0x1002986c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x81c
mov eax, 0x10053a09
call fcn.10037fd5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x828], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x81d], bl
cmp dword [0x1006a458], ebx
je 0x10029964
cmp byte [0x10069c49], bl
je 0x100298c2
mov byte [ebp - 0x81d], 1
push 0x10069c4a
lea eax, [ebp - 0x81c]
push eax
call fcn.100380a0
pop ecx
pop ecx
jmp 0x10029999
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x18]
call fcn.10005ad2
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
push 0x10056838
push 4
push ebx
push 0x10056858
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jne 0x1002994b
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x1002994b
mov dword [ebp - 0x824], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x824]
push edx
push eax
call dword [ecx + 0x20]
cmp eax, ebx
jne 0x1002994b
cmp dword [ebp - 0x824], ebx
je 0x1002994b
push ebx
push ebx
push 0x800
lea eax, [ebp - 0x81c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x824]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x1002993f
mov byte [ebp - 0x81d], 1
push dword [ebp - 0x824]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.1001e586
cmp byte [ebp - 0x81d], bl
jne 0x10029999
mov eax, dword [0x10069bc4]
cmp eax, ebx
je 0x10029a1c
mov dword [ebp - 0x18], 0x800
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x81c]
push ecx
push ebx
push ebx
push str.Extensions
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10029a1c
lea edi, [ebp - 0x81c]
push 0x20
push edi
call fcn.100379b0
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
je 0x100299b1
mov byte [esi], bl
push edi
call fcn.100381a0
pop ecx
cmp eax, 7
jae 0x10029a0f
push edi
push 0x10058ccc
lea eax, [ebp - 0x1c]
push eax
call fcn.1003b332
lea eax, [ebp - 0x1c]
push eax
call fcn.1003ba04
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x828]
call fcn.10037ab0
add esp, 0x18
test eax, eax
je 0x100299f0
xor eax, eax
inc eax
jmp 0x10029a1e
lea eax, [ebp - 0x1c]
push eax
call fcn.1003d09b
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x828]
call fcn.10037ab0
add esp, 0xc
test eax, eax
jne 0x100299eb
cmp esi, ebx
je 0x10029a18
lea edi, [esi + 1]
jmp 0x1002999f
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.10038031
ret
Function at 0x10037f27
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10068510]
jne 0x10037f31
repz ret
jmp fcn.1003e8ac

Function at 0x10049650
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1003e22a
and dword [ebp - 4], 0
cmp dword [0x1006b144], 0
mov ebx, eax
jne 0x10049701
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100497b2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1005b354
push edi
call esi
test eax, eax
je 0x100497b2
push eax
call fcn.1003e1b8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1006b144], eax
call esi
push eax
call fcn.1003e1b8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1006b148], eax
call esi
push eax
call fcn.1003e1b8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1006b14c], eax
call esi
push eax
call fcn.1003e1b8
pop ecx
mov dword [0x1006b154], eax
test eax, eax
je 0x10049701
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1003e1b8
pop ecx
mov dword [0x1006b150], eax
mov eax, dword [0x1006b150]
cmp eax, ebx
je 0x10049759
cmp dword [0x1006b154], ebx
je 0x10049759
push eax
call fcn.1003e233
push dword [0x1006b154]
mov esi, eax
call fcn.1003e233
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10049759
test edi, edi
je 0x10049759
call esi
test eax, eax
je 0x10049750
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10049750
test byte [ebp - 0xc], 1
jne 0x10049759
or dword [ebp + 0x10], 0x200000
jmp 0x10049792
mov eax, dword [0x1006b148]
cmp eax, ebx
je 0x10049792
push eax
call fcn.1003e233
pop ecx
test eax, eax
je 0x10049792
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10049792
mov eax, dword [0x1006b14c]
cmp eax, ebx
je 0x10049792
push eax
call fcn.1003e233
pop ecx
test eax, eax
je 0x10049792
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1006b144]
call fcn.1003e233
pop ecx
test eax, eax
je 0x100497b2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100497b4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012a0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [esp + 4], eax
jne 0x4012dd
cmp ecx, 0x7fffffff
jne 0x4012dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4012d9
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x401300
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebx, ecx
mov ebp, dword [ebx + 8]
push edi
xor edi, edi
cmp ebp, edi
jne 0x40131c
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0xc
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
push esi
mov esi, dword [ebx + 0x7c]
push edi
push esi
push eax
push ecx
mov dword [esp + 0x20], edi
call fcn.00414160
push edi
push esi
push edx
push eax
call fcn.00414120
push 0
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40136e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40136e
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0xc
mov edi, dword [ebx + 0x10]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x24]
sub edi, ecx
test ebp, ebp
je 0x401362
nop
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x80]
push 0
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebx + 8]
push ecx
push edx
push eax
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401362
mov eax, dword [esp + 0x24]
cmp eax, edi
jb 0x401362
mov esi, dword [esp + 0x14]
sub eax, edi
xor ecx, ecx
mov edx, eax
add edx, esi
adc ecx, dword [esp + 0x18]
mov esi, dword [ebx + 0x44]
cmp esi, ecx
mov dword [esp + 0x24], eax
jl 0x40142d
jg 0x4013d4
mov ecx, dword [ebx + 0x40]
cmp ecx, edx
jb 0x40142d
cmp ebp, eax
jae 0x4013da
mov eax, ebp
mov esi, dword [ebx + 0x80]
mov edx, dword [esp + 0x10]
add esi, edi
mov edi, dword [esp + 0x20]
add edi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add esi, eax
sub ebp, eax
mov eax, dword [ebx + 0x7c]
xor edi, edi
add edx, eax
adc ecx, edi
cmp ebp, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
jne 0x401380
mov edx, esi
jmp 0x40145e
mov eax, dword [ebx + 0x40]
sub eax, dword [esp + 0x14]
cmp ebp, eax
jae 0x40143a
mov eax, ebp
mov esi, dword [ebx + 0x80]
mov edx, dword [esp + 0x10]
add esi, edi
mov edi, dword [esp + 0x20]
mov ecx, eax
mov ebp, ecx
shr ecx, 2
add edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, eax
test edx, edx
je 0x401362
mov eax, dword [esp + 0x28]
test eax, eax
je 0x401470
mov dword [eax], edx
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
pop esi
add ecx, edx
pop edi
adc eax, 0
mov dword [ebx + 0x14], eax
pop ebp
mov dword [ebx + 0x10], ecx
mov eax, 1
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4017b0
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x80]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x4017e8
mov ecx, dword [esi + 0x7c]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x4000
push ecx
push eax
call edi
mov edx, dword [esi + 0x80]
push 0x8000
push ebx
push edx
call edi
mov dword [esi + 0x80], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x401823
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x64], ebx
mov dword [esi + 8], ebx
je 0x401823
cmp dword [esi + 0x88], ebx
jne 0x40180e
cmp dword [esi + 0x8c], ebx
je 0x401823
cmp dword [esi + 0x68], 0x10
jb 0x401819
mov eax, dword [esi + 0x54]
jmp 0x40181c
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x34]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov edi, dword [eax]
cmp edi, eax
je 0x401858
mov edi, edi
mov eax, dword [edi + 8]
push eax
call sub.MFC71.DLL_operator_delete
mov dword [edi + 8], ebx
mov edi, dword [edi]
mov eax, dword [esi + 0x34]
add esp, 4
cmp edi, eax
jne 0x401840
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 0x34]
mov dword [ecx + 4], ecx
cmp eax, dword [esi + 0x34]
mov dword [esi + 0x38], ebx
je 0x401884
lea ecx, [ecx]
mov edi, dword [eax]
push eax
call sub.MFC71.DLL_operator_delete_1
mov ecx, dword [esi + 0x34]
add esp, 4
cmp edi, ecx
mov eax, edi
jne 0x401870
pop edi
pop esi
pop ebx
ret

Function at 0x4018b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4149db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x416954
mov dword [esp + 0x10], 0
call fcn.004017b0
lea ecx, [esi + 0x50]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
add esi, 0x30
mov ecx, esi
call fcn.004015a0
mov eax, dword [esi + 4]
push eax
call sub.MFC71.DLL_operator_delete_1
mov ecx, dword [esp + 0xc]
add esp, 4
mov dword [esi + 4], 0
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414a07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
mov ecx, edi
mov dword [esp + 8], esi
mov dword [esi], 0x416954
call fcn.004015e0
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 8], eax
lea ecx, [esi + 0x50]
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ecx, esi
mov byte [esp + 0x14], 1
call fcn.00401750
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x7c], 0x1000
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret