joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411df3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x411e3d
call fcn.0041b3cb
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x411e3a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x411e76
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x411e5f
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x411e5f
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x411e74
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x415ea4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x468cb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x46bfd4]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x415ef0
push 0x44f948
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x415f0d
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x46bfd4], eax
jmp 0x415ef9
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x415f0d
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x415f7a
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x415f28
xor eax, eax
jmp 0x415f7a
lea eax, [ebp - 0x210]
push eax
call fcn.00432564
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x415f59
push 0x45b654
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00432144
add esp, 0xc
test eax, eax
jne 0x415f24
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00432144
add esp, 0xc
test eax, eax
jne 0x415f24
lea eax, [ebp - 0x210]
push eax
call fcn.0041a48e
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042f518
leave
ret
Function at 0x4166dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x416722
call fcn.0041b3cb
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x416722
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41673e
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040dfac
mov ebx, eax
test edi, edi
je 0x41673c
test esi, esi
je 0x41673c
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41abeb
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44b8bf
call fcn.004326c8
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x41ac11
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41ac65
call fcn.0040e738
push eax
lea ecx, [ebp - 0x10]
call fcn.004016d0
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0043257d
push eax
call fcn.004017a0
add esp, 0x14
test edi, edi
je 0x41ac58
push edi
call fcn.00432564
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004019a0
mov eax, esi
call fcn.00432696
ret 8
Function at 0x41ec46
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x468cb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x46c2f0]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x41ec9f
push 0x44f948
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41ecbc
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x46c2f0], eax
jmp 0x41eca8
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x41ecbc
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x41edf9
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0044975a
lea eax, [ebp - 0x14]
push eax
call fcn.00432564
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.00432508
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.0044975a
lea eax, [ebp - 0x14]
push eax
call fcn.00432564
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00432508
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0044975a
lea eax, [ebp - 0x14]
push eax
call fcn.00432564
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00432508
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.0044975a
lea eax, [ebp - 0x14]
push eax
call fcn.00432564
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.00432508
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.0044975a
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.00432564
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.00432508
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f518
leave
ret
Function at 0x427a04
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x427a3f
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x427a26
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x427a37
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x427a41
inc edi
add eax, 0x28
cmp edi, esi
jb 0x427a1c
xor eax, eax
pop edi
pop esi
ret

Function at 0x427d42
Capabilities:
Contain obfuscated stackstrings

Disassembly:
in eax, dx
salc
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.004279d4
push eax
push esi
push dword [ebp + 8]
call fcn.00427989
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004279d4
push eax
push esi
push dword [ebp + 8]
call fcn.00427989
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004279d4
stosb byte es:[edi], al
sti
invalid
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.00427989
invalid
invalid
Function at 0x441706
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x468cb0]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00436875
mov dword [ebp - 0x14], eax
cmp dword [0x46d4bc], edi
jne 0x4417f7
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x441784
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4418d7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4418d7
push 0x454810
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4418d7
push eax
call ebx
push 0x45481c
push esi
mov dword [0x46d4bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x45482c
push esi
mov dword [0x46d4c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46d4c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46d4cc], eax
test eax, eax
je 0x4417f4
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46d4c8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44181c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44180f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x441831
push 4
pop eax
jmp 0x4418d9
cmp dword [ebp - 0x14], edi
je 0x441831
push dword [0x46d4bc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x441816
mov eax, dword [0x46d4c8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x44188f
cmp dword [0x46d4cc], esi
je 0x44188f
push eax
call ebx
push dword [0x46d4cc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x44188f
test eax, eax
je 0x44188f
call ecx
test eax, eax
je 0x441884
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 0x441884
test byte [ebp - 8], 1
jne 0x44188f
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4418bf
mov eax, dword [0x46d4c0]
cmp eax, esi
je 0x4418bc
push eax
call ebx
test eax, eax
je 0x4418bc
call eax
mov edi, eax
test edi, edi
je 0x4418bc
mov eax, dword [0x46d4c4]
cmp eax, esi
je 0x4418bc
push eax
call ebx
test eax, eax
je 0x4418bc
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x46d4bc]
call ebx
test eax, eax
je 0x4418d7
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4418d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f518
leave
ret
Function at 0x444391
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00435c63
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4443c9
xor eax, eax
jmp 0x4443f5
cmp esi, dword [ebp - 4]
je 0x4443f2
cmp dword [ebp + 0xc], 0
je 0x4443f2
push dword [edi + 0x9c]
call fcn.00443f9f
push dword [edi + 0x9c]
mov esi, eax
call fcn.00432564
pop ecx
pop ecx
cmp esi, eax
je 0x4443c5
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x10001bd0
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0
je 0x10001be2
xor al, al
pop esi
pop ebp
ret
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
push dword [0x1000d584]
push 0x10001b80
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 4], eax
test eax, eax
je 0x10001c2a
push 0
push 0x3e8
push 0x22
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x10001c2a
mov eax, 1
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10002640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10002659
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10002694
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10002690
lea ebx, [ebx]
cmp esi, edx
jae 0x10002694
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x10002680
cmp esi, edx
jb 0x1000269b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10002920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100029ab
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x1000296d
cmp eax, 2
jne 0x10002989
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x100029a5
test ecx, ecx
je 0x100029a0
test cl, 1
jne 0x10002989
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x100029a5
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008b44
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10008b44
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100072a7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.1000727d
mov ebx, eax
test ebx, ebx
je 0x10007307
sub ebx, esi
cmp ebx, 0xf0
jbe 0x100072db
xor eax, eax
jmp 0x10007417
push ebx
lea eax, [ebp - 0x108]
push esi
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
lea edi, [ebp - 0x108]
add edi, ebx
mov esi, 0x1000ad3c
lea ebx, [ebp + ebx - 0x107]
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
jmp 0x1000731f
mov esi, str.dependentlibs.list
lea edi, [ebp - 0x108]
lea ebx, [ebp - 0x108]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push str.MOZ_RUN_GTEST
call dword [sym.imp.MSVCR120.dll_getenv]
pop ecx
test eax, eax
je 0x10007347
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10007336
mov esi, str..gtest
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x108]
call fcn.100071f2
mov esi, eax
test esi, esi
je 0x100072d4
mov edi, dword [sym.imp.MSVCR120.dll_fgets]
mov byte [ebx], 0
jmp 0x100073db
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10007370
sub ecx, edx
je 0x100073db
cmp byte [ebp - 0x20c], 0x23
je 0x100073db
cmp byte [ebp + ecx - 0x20d], 0xa
jne 0x100073a4
lea eax, [ecx - 1]
cmp eax, 0x104
jae 0x10007438
mov byte [ebp + eax - 0x20c], 0
lea eax, [ebp - 0x108]
sub ecx, eax
add ecx, ebx
cmp ecx, 0x104
ja 0x1000742d
lea ecx, [ebp - 0x20c]
mov edx, ebx
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x100073c2
lea ecx, [ebp - 0x108]
call fcn.100071a0
test al, al
je 0x10007428
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x10007367
mov eax, dword [0x1000d590]
push str.NS_GetFrozenFunctions
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10007428
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
mov eax, edi
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008b44
mov esp, ebp
pop ebp
ret
call fcn.10007253
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
xor eax, eax
jmp 0x10007416
call fcn.100091e0
int3
Function at 0x10008633
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.100098a0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 1
lea eax, [ebp - 0x10010]
mov edi, ecx
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x100086b5
push esi
xor esi, esi
mov ecx, 0x10000
push 0
lea eax, [ebp - 0x10008]
push eax
push ecx
lea eax, [ebp - 0x10004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000869d
mov ecx, 0x10000
cmp dword [ebp - 0x10008], ecx
jne 0x1000869d
add esi, ecx
cmp esi, 0xffffffff
jb 0x1000866d
push 0
push 0
push dword [ebp - 0x1000c]
push dword [ebp - 0x10010]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10008b44
mov esp, ebp
pop ebp
ret

Function at 0x4016ee
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, esp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4050b2], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4051a0], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x405134], eax
mov dword [0x4050aa], eax
mov dword [0x405120], 0x30
mov dword [0x405124], 2
jmp 0x401733
mov dword [0x405128], 0x4030e0
mov dword [0x40512c], 0
mov dword [0x405130], 0
mov dword [0x405148], 0x404182
mov dword [0x405140], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x405138], eax
mov dword [0x40514c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40513c], eax
push 0x405120
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4050aa]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push str.5_minutes
push str.return
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405198], eax
push 5
push dword [0x405198]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405198]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x405150]
jmp 0x401807
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x4017f9
mov eax, dword [0x405158]
jmp 0x401822
call 0x402c71
ret
Function at 0x551000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor eax, eax
cmp ecx, edi
jne 0x55101e
cmp ecx, esi
jle 0x55101e
jmp 0x551082
mov ecx, dword [ebp + 0xc]
lea ecx, [edi + ecx + 0x29]
movsx edi, cl
mov ecx, dword [ebp + 0xc]
imul edi, ecx
mov ebx, edi
imul ebx, esi
cmp edi, ecx
je 0x55107f
mov edx, ebx
or edx, ecx
mov dword [ebp - 0x10], edx
cmp edx, esi
je 0x55107f
mov eax, dword [ebp - 0x10]
add eax, ebx
mov dword [ebp - 0x14], eax
push esi
mov eax, dword [ebp + 8]
push eax
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
add ebx, edi
add ebx, eax
and edi, ebx
mov ecx, dword [ebp + 8]
sub edi, ecx
imul edi, eax
shl edi, 0x10
add edi, 0x22f0000
sar edi, 0x10
mov eax, edi
mov edi, ecx
jmp 0x551082
mov edi, dword [ebp + 8]
and eax, ebx
push eax
push edi
call dword [sym.imp.GDI32.dll_CopyMetaFileA]
imul esi, ebx
xor esi, dword [ebp + 0xc]
and esi, edi
movsx eax, si
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5510a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 8]
mov ebx, edi
xor ebx, 0x32
mov eax, ebx
and eax, dword [ebp + 0xc]
add ebx, eax
and ebx, eax
and ebx, 0x10
mov eax, ebx
xor eax, 0x53
imul ebx, eax
lea esi, [ebx - 0x116]
push edi
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_InsertMenuItemW]
imul esi, ebx
lea ecx, [esi + edi]
mov eax, ecx
mov ebx, dword [ebp + 0xc]
xor eax, ebx
cmp edi, ebx
jne 0x5510e5
jmp 0x551128
mov edx, edi
or eax, esi
lea edi, [ecx + eax + 0x304]
mov ebx, edi
mov esi, edx
imul ebx, edx
mov eax, dword [ebp + 0xc]
push eax
push eax
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ecx, ebx
and ecx, esi
mov edx, esi
mov esi, ecx
sub esi, edi
mov eax, esi
sub eax, ebx
cmp edx, 0xab0dd892
jne 0x551128
cmp esi, dword [ebp + 0xc]
jne 0x551128
xor edi, eax
imul edi, ecx
and edi, ecx
jmp 0x551128
mov ebx, edi
xor ebx, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add ebx, edi
lea ecx, [ebx + esi]
lea eax, [esi + ebx + 0x75]
xor eax, ebx
movsx eax, al
or eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret