joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413662
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 0x210]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
xor ebx, ebx
push eax
push ebx
lea eax, [ebp - 0x210]
push 0x427988
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x10c]
push eax
call fcn.0041c055
lea eax, [ebp - 0x10c]
push 0x2e
push eax
call fcn.0041bb00
add esp, 0xc
cmp eax, ebx
je 0x4136bf
mov byte [eax], bl
lea eax, [ebp - 0x10c]
push str..dat
push eax
call fcn.0041bb40
lea eax, [ebp - 0x10c]
push 0x427854
push eax
call fcn.0041c744
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x413783
push str.IDR_EXEDATA
push 0x2710
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp edi, ebx
mov dword [ebp - 8], eax
je 0x41376d
cmp eax, ebx
je 0x41376d
cmp esi, ebx
je 0x41376d
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 1
push dword [ebp - 8]
call fcn.0041cbeb
push dword [ebp - 4]
call fcn.0041c634
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 0x10c]
push eax
call fcn.0041445a
test eax, eax
pop ecx
je 0x413783
lea eax, [ebp - 0x10c]
push eax
call fcn.0041c055
pop ecx
push 1
pop eax
jmp 0x413785
push dword [ebp - 4]
call fcn.0041c634
lea eax, [ebp - 0x10c]
push eax
call fcn.0041c055
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41378a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call fcn.0041bb30
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.0041bb00
add esp, 0x10
test eax, eax
je 0x4137ba
and byte [eax], 0
push esi
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.00405d65
test eax, eax
pop ecx
je 0x41385c
push 0x427854
push dword [ebp + 8]
call fcn.0041c744
pop ecx
mov dword [ebp - 4], eax
test eax, eax
pop ecx
je 0x41385c
push str.IDR_CAB
push 0x2710
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test edi, edi
mov dword [ebp - 8], eax
je 0x41384a
test eax, eax
je 0x41384a
test esi, esi
je 0x41384a
push dword [ebp - 4]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 1
push dword [ebp - 8]
call fcn.0041cbeb
push dword [ebp - 4]
call fcn.0041c634
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 1
pop eax
jmp 0x41385e
push dword [ebp - 4]
call fcn.0041c634
push dword [ebp + 8]
call fcn.0041c055
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41459b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
jne 0x4145b9
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x414660
lea eax, [edi + 4]
push esi
push eax
mov dword [ebp - 8], eax
call fcn.0041b1a2
mov esi, eax
lea eax, [ebp + 0xc]
push eax
call fcn.0041cf3c
push 0xf
lea eax, [ebp - 0x18]
push 0x427b40
push eax
call fcn.0041bd20
lea eax, [ebp - 0x18]
add esp, 0x14
mov ecx, esi
sub eax, esi
mov dword [ebp - 4], 4
mov dl, byte [ebp + 0xc]
mov byte [eax + ecx], dl
mov byte [ecx], dl
sar dword [ebp + 0xc], 8
inc ecx
dec dword [ebp - 4]
jne 0x4145f2
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00414727
add esp, 0xc
xor ecx, ecx
test edi, edi
jle 0x41464a
mov eax, dword [ebp + 8]
movzx edx, bl
movzx eax, byte [eax]
add eax, edx
mov ebx, 0x100
cdq
idiv ebx
inc dword [ebp + 8]
inc ecx
cmp ecx, edi
mov bl, byte [ebp + edx - 0x118]
mov byte [esi + ecx + 3], bl
jl 0x414624
push dword [ebp + 0x10]
push dword [ebp - 8]
push esi
call fcn.004147cf
push esi
call fcn.0041b254
add esp, 0x10
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4147cf
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jbe 0x414854
push ebx
push esi
push 3
lea eax, [edi + 2]
xor edx, edx
pop esi
div esi
mov edx, dword [ebp + 8]
mov esi, eax
lea eax, [esi + esi*2]
mov dword [ebp - 4], eax
movzx eax, byte [edx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__b]
mov byte [ecx], al
mov al, byte [edx]
movzx ebx, byte [edx + 1]
and eax, 3
inc ecx
shl eax, 4
shr ebx, 4
or eax, ebx
add edx, 3
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__b]
mov byte [ecx], al
mov al, byte [edx - 2]
movzx ebx, byte [edx - 1]
and eax, 0xf
inc ecx
shl eax, 2
shr ebx, 6
or eax, ebx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__b]
mov byte [ecx], al
mov al, byte [edx - 1]
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__b]
mov byte [ecx], al
inc ecx
dec esi
jne 0x4147f9
pop esi
pop ebx
lea eax, [edi + 1]
cmp dword [ebp - 4], eax
jne 0x414862
mov byte [ecx - 1], 0x3d
jmp 0x414872
add edi, 2
cmp dword [ebp - 4], edi
jne 0x414872
mov byte [ecx - 1], 0x3d
mov byte [ecx - 2], 0x3d
and byte [ecx], 0
mov eax, ecx
sub eax, dword [ebp + 0x10]
pop edi
leave
ret
Function at 0x4149a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bl, bl
test esi, esi
jne 0x4149bf
mov eax, dword [ebp + 0x10]
and byte [eax], 0
jmp 0x414a83
mov eax, dword [0x427bb0]
push edi
add eax, esi
push eax
call fcn.0041b1a2
mov edi, eax
push 0xf
lea eax, [ebp - 0x14]
push 0x427ba0
push eax
mov dword [ebp - 4], edi
call fcn.0041bd20
xor edx, edx
add esp, 0x10
cmp dword [0x427bb0], edx
jle 0x414a14
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x14]
sub esi, eax
lea eax, [ebp - 0x14]
sub edi, eax
lea eax, [ebp + edx - 0x14]
inc edx
mov cl, byte [esi + eax]
mov byte [eax], cl
mov byte [edi + eax], cl
cmp edx, dword [0x427bb0]
jl 0x4149fc
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00414727
add esp, 0xc
xor ecx, ecx
test esi, esi
jle 0x414a61
mov edi, dword [ebp + 8]
movzx eax, byte [edi]
movzx edx, bl
add eax, edx
mov ebx, 0x100
cdq
idiv ebx
mov eax, dword [0x427bb0]
add eax, ecx
inc edi
inc ecx
cmp ecx, esi
mov bl, byte [ebp + edx - 0x114]
mov edx, dword [ebp - 4]
mov byte [eax + edx], bl
jl 0x414a37
push dword [ebp + 0x14]
mov eax, dword [0x427bb0]
add eax, esi
push dword [ebp + 0x10]
push eax
push dword [ebp - 4]
call fcn.00414a87
push dword [ebp - 4]
call fcn.0041b254
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41646c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x4164b3
cmp edx, 0x10
jl 0x41649f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x41648c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x4164b3
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x4164ab
and edx, 3
cmp edx, 3
jne 0x4164c7
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x4164cc
cmp edx, 2
jne 0x4164d8
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x4164dd
cmp edx, 1
jne 0x4164e3
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x420999
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42a4f8
cmp edx, dword [eax]
je 0x4209bb
add eax, 8
inc ecx
cmp eax, 0x42a588
jl 0x4209ac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42a4f8]
jne 0x420ae9
mov eax, dword [0x42c7f8]
cmp eax, 1
je 0x420ac3
test eax, eax
jne 0x4209ec
cmp dword [0x4280ec], 1
je 0x420ac3
cmp edx, 0xfc
je 0x420ae9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x420a23
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041bb30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c080
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x420a66
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c080
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x424970
push edi
call fcn.0041bc20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041bb30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041bb40
lea eax, [ebp - 0xa0]
push 0x424950
push eax
call fcn.0041bb40
push dword [esi + 0x42a4fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041bb40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00421d3a
add esp, 0x2c
pop edi
jmp 0x420ae9
lea eax, [ebp + 8]
lea esi, [esi + 0x42a4fc]
push 0
push eax
push dword [esi]
call fcn.0041c080
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403eff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov eax, dword [esp + 0x3c]
push 0
push 0x4000
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 1
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
jne 0x4024d5
mov esi, dword [esp + 0x38]
push 0x40733c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.0040385c
mov eax, esi
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x34], 3
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x4025e7
lea edx, [esp + 8]
lea ecx, [esp + 0x40]
push edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::TrimRight_1
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::MakeLower
push str.software_autodesk_autocad
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jle 0x402584
push str.profiles_
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
test esi, esi
jle 0x402584
mov edi, str.profiles_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
lea ecx, [esp + 0x40]
push esi
push 0x5c
call sub.MFC42.DLL_CString::Find
test eax, eax
jg 0x4025aa
push esi
push 0x5d
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::Find
test eax, eax
jg 0x4025aa
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 3
call fcn.00403646
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x402508
jmp 0x4025e7
sub eax, esi
lea ecx, [esp + 0x14]
push eax
push esi
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 5
call fcn.004037f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 4
call fcn.00403646
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 3
call fcn.00403646
mov esi, dword [esp + 0x3c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 1
mov byte [esp + 0x34], 2
call fcn.00403646
lea ecx, [esp + 8]
mov byte [esp + 0x34], 1
call fcn.00403646
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0040385c
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 8
Function at 0x100236e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x1002389
push 0x80004005
call fcn.01001de5
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x100238b
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1002cb1
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x100904c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.010022cc
mov edi, eax
cmp edi, esi
je 0x1002d23
lea ecx, [ebp - 0x214]
call fcn.01002259
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010075a8
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1002d41
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.01002cb1
cmp eax, esi
jne 0x1002d8c
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x1002d2b
lea ecx, [ebp - 0x214]
call fcn.01002259
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.010021d3
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01002259
mov eax, esi
jmp 0x1002d13
Function at 0x100484f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100904c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 2
push edi
push eax
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x408], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x40c], eax
cmp eax, edi
jne 0x10048aa
call fcn.01001f60
mov esi, eax
jmp 0x100498b
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x10048c3
call fcn.01001f60
jmp 0x100497d
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x10048b9
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1004928
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x1004905
lea ecx, [ebp - 0x408]
call fcn.01002b89
mov esi, 0x8007000e
lea ecx, [ebp - 0x410]
call fcn.01002a98
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010075a8
leave
ret 0x10
push eax
lea ecx, [ebp - 0x408]
call fcn.010038e7
cmp dword [ebp - 0x408], edi
jne 0x1004943
mov esi, 0x8007000e
jmp 0x100497f
push esi
push dword [ebp - 0x408]
push esi
push ebx
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x10048b9
mov edx, dword [ebp - 0x408]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x408]
lea ecx, [ebp - 0x418]
call fcn.010046b1
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x100490a
lea ecx, [ebp - 0x408]
call fcn.01002b89
jmp 0x100490a

Function at 0x10070d6
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100904c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100706b
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1007149
cmp dword [ebp - 0x94], 5
jb 0x100716a
jmp 0x1007166
cmp dword [ebp - 0x88], 1
jne 0x100716a
cmp dword [ebp - 0x94], 4
ja 0x1007166
jne 0x100716a
cmp dword [ebp - 0x90], 0
jbe 0x100716a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1001b4c
call fcn.01001ef7
test eax, eax
jge 0x100718b
mov byte [0x10090e8], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010075a8
leave
ret
Function at 0x10074c7
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1007d48
call fcn.01007520
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1009538
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1007282
cmp eax, esi
jne 0x1007275
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1007285
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100725c
xor esi, esi
inc esi
mov eax, dword [0x1009534]
cmp eax, esi
jne 0x1007298
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10072c7
mov eax, dword [0x1009534]
test eax, eax
jne 0x10072c1
mov dword [0x1009534], esi
push 0x1001218
push 0x100120c
call fcn.010071be
pop ecx
pop ecx
test eax, eax
je 0x10072c7
jmp 0x10073eb
mov dword [0x1009200], esi
mov eax, dword [0x1009534]
cmp eax, esi
jne 0x10072eb
push 0x1001208
push 0x10011f0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1009534], 2
cmp dword [ebp - 0x20], ebx
jne 0x10072f8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1009544], ebx
je 0x1007319
push 0x1009544
call fcn.010078a9
pop ecx
test eax, eax
je 0x1007319
push ebx
push 2
push ebx
call dword [0x1009544]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10073eb
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1007383
cmp cx, bx
je 0x100733e
cmp dword [ebp - 0x1c], ebx
jne 0x1007383
movzx ecx, word [eax]
cmp cx, bx
je 0x1007353
cmp cx, 0x20
ja 0x1007353
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100733e
test byte [ebp - 0x40], 1
je 0x100735f
movzx ecx, word [ebp - 0x3c]
jmp 0x1007362
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10091fc], eax
cmp dword [0x10091f0], ebx
jne 0x10073c8
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1007394
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1007328
cmp dword [0x1009200], ebx
jne 0x10073d6
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10091fc]
jmp 0x10073f7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01007565
ret
call fcn.010079ee
jmp 0x100721f
Function at 0x1006879
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
mov esi, 0x10014fc
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, eax
xor eax, eax
cmp dword [ebp + 8], eax
je 0x10068b2
cmp dword [ebp + 0xc], eax
je 0x10068b7
lea ecx, [edi - 1]
cmp ebx, ecx
je 0x10068be
cmp dword [ebp + 0xc], eax
jne 0x10068c3
add edi, 0xfffffffe
cmp ebx, edi
jne 0x10068c3
push 0xfffffffffffffffe
pop ebx
jmp 0x10068d4
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x10068d4
or ebx, 0xffffffff
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x14

Function at 0x1006b46
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101fb10]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
push ecx
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0x10014b3
xor esi, esi
push esi
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x108], 0
je 0x1006ba8
lea eax, [ebp - 0x108]
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
lea eax, [ebp + esi - 0x108]
cmp byte [eax], 0
jne 0x1006b90
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01010bbf
leave
ret 8

Function at 0x1007683
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x101fb10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x1023340
push edi
mov dword [ebp - 0x110], eax
call fcn.010068e2
mov esi, 0x1020b74
push esi
mov ebx, eax
call fcn.010068e2
cmp eax, ebx
jbe 0x10076cc
push esi
jmp 0x10076cd
push edi
call fcn.010068e2
mov ebx, eax
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x1007708
push eax
push 0x10
push eax
push eax
push 0x44c
push eax
call fcn.01007006
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01010bbf
leave
ret 8
push edi
push ebx
push esi
mov edi, 0x10014b3
push edi
push eax
push dword [ebp - 0x110]
mov dword [ebp - 0x114], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esi], 0
je 0x1007774
mov ebx, 0x104
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push ebx
push eax
push edi
push esi
push dword [ebp - 0x10c]
call fcn.01007436
cmp eax, 0xffffffff
je 0x1007779
push 0
push ebx
lea eax, [ebp - 0x108]
push eax
push esi
push dword [ebp - 0x10c]
call fcn.010074c9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x100772e
xor esi, esi
inc esi
jmp 0x100777b
xor esi, esi
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
jmp 0x10076f7