joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436510
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
push edi
jmp 0x43652a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x436531
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x436520
mov eax, 1
add ebx, ebx
jne 0x436543
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x436538
jne 0x436554
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x436538
xor ecx, ecx
sub eax, 3
jb 0x436568
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4365da
mov ebp, eax
add ebx, ebx
jne 0x436573
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x436580
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4365a4
inc ecx
add ebx, ebx
jne 0x436590
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x436585
jne 0x4365a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x436585
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4365c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4365b5
jmp 0x436526
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4365c4
add edi, ecx
jmp 0x436526
pop esi
mov edi, esi
mov ecx, 0xdcd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4365e2
cmp byte [edi], 0x13
jne 0x4365e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4365e7
lea edi, [esi + 0x33000]
mov eax, dword [edi]
or eax, eax
je 0x436656
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x36524]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3654c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x436614
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x36550]
or eax, eax
je 0x436650
mov dword [ebx], eax
add ebx, 4
jmp 0x436631
call dword [esi + 0x36560]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x436687
cmp al, 0xef
ja 0x43667a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x43665c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x436669
mov ebp, dword [esi + 0x36554]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4366bb
sub esp, 0xffffff80
jmp 0x4152d2
Function at 0x435f40
Capabilities:
Copy file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
cmp dword [0x4e0bc4], 0x516
jne 0x435f65
push 0
lea eax, [ebp - 0x530]
push eax
push 0
call sub.KERNEL32.dll_VerLanguageNameA
mov eax, dword [ebp + 0xc]
shr eax, 3
test eax, eax
je 0x43600b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov dword [ebp + 0xc], eax
jmp 0x435f90
cmp dword [0x4e0bc4], 0x29
jne 0x435fb1
push 0
push 0
push 0
push 0
push 0x401380
push 0x4013b0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
cmp dword [0x4e0bc4], 0x1c
jne 0x435ff6
push 0
push 0
call edi
call ebx
push 0
push 0
push 0
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp + 0x10]
push eax
push esi
call fcn.00435df0
add esi, 8
dec dword [ebp + 0xc]
jne 0x435f90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x436020
Capabilities:
Copy file
Get disk information
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x99c
cmp dword [0x4e0bc4], 0x37
jne 0x436154
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 0x4013f4
mov dword [ebp - 0x38], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x14]
mov word [ebp - 0x24], dx
push ecx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
mov word [ebp - 0x14], ax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
push edx
lea eax, [ebp - 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
push 0
call dword [sym.imp.KERNEL32.dll_LocalHandle]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push 0
push 0
push 0
lea ecx, [ebp - 0xf0]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
lea edx, [ebp - 0x99c]
push edx
push 0x401400
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0x401444
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
push 0x401460
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 4], 0
mov eax, dword [0x4e0bc8]
add dword [ebp - 4], eax
mov eax, 0x12336
add dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dl, byte [ecx + eax]
mov ecx, dword [0x4dd1c4]
mov byte [ecx + eax], dl
mov esp, ebp
pop ebp
ret 4
Function at 0x436280
Capabilities:
Create pipe
Get common file path
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1694
call fcn.00436f50
mov dword [ebp - 4], 0
jmp 0x43629f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x332beaf6
jge 0x436336
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4e0bc4], 0x16
jne 0x4362de
lea ecx, [ebp - 0x58]
push ecx
push 0
lea edx, [ebp - 0x458]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4e0bc4], 0x9e
jne 0x436326
push 0
lea eax, [ebp - 0xa78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
push 0
lea ecx, [ebp - 0xe78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp dword [ebp - 4], 0x3775ee
jle 0x436331
jmp 0x436336
jmp 0x436296
push section..data
mov edx, dword [0x4e0bc4]
push edx
mov eax, dword [0x4dd1c4]
push eax
call fcn.00435f40
mov dword [ebp - 0xe7c], 0
jmp 0x436368
mov ecx, dword [ebp - 0xe7c]
add ecx, 1
mov dword [ebp - 0xe7c], ecx
cmp dword [ebp - 0xe7c], 0x3e79e
jge 0x4363a6
cmp dword [0x4e0bc4], 0x10
jne 0x436393
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp dword [ebp - 0xe7c], 0x1e673
jne 0x4363a4
call fcn.004361a0
jmp 0x436359
mov dword [ebp - 0xe80], 0
jmp 0x4363c1
mov edx, dword [ebp - 0xe80]
add edx, 1
mov dword [ebp - 0xe80], edx
cmp dword [ebp - 0xe80], 0xdd9a7
jge 0x436411
cmp dword [0x4e0bc4], 0xc01
jne 0x43640f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapSize]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x4363b2
jmp dword [0x4dd1c4]
Function at 0x437330
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x437353
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x43735a
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x437371
mov edx, dword [ebp - 4]
push edx
call fcn.0043d770
add esp, 4
or eax, 0xffffffff
jmp 0x437373
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x441d60
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x463510]
jne 0x441d6a
repz ret
jmp fcn.0044bf00
Function at 0x1003ec10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003fbe1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10070020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
cmp byte [0x100713d2], 0
je 0x1003ed4d
call fcn.1003ef30
test ax, ax
je 0x1003ec68
mov eax, dword [0x100713d4]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1003ec68
call eax
mov byte [0x100713d1], 1
call fcn.1003ef30
test ax, ax
je 0x1003ed4d
mov eax, dword [0x100713d4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1003ed4d
call eax
cmp byte [0x100713d1], 0
je 0x1003ed4d
push 0x48
push dword [0x100713d4]
call fcn.10002a03
xor eax, eax
mov dword [0x100713d4], esi
mov ecx, 0x2710
mov edi, 0x100713e0
rep stosd dword es:[edi], eax
mov ecx, dword [0x1007b048]
add esp, 8
test ecx, ecx
je 0x1003ecf7
mov edx, dword [0x1007b044]
test edx, edx
je 0x1003eceb
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x50]
mov eax, dword [0x1007b044]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [0x1007b048]
mov dword [0x1007b044], esi
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x1007b048], esi
cmp dword [0x10070880], esi
je 0x1003ed2a
cmp dword [0x10070884], 8
mov eax, 0x10070870
cmovae eax, dword [0x10070870]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x1004631c
mov ecx, 0x10070870
call fcn.10001a20
cmp byte [0x100713d0], 0
mov byte [0x100713d2], 0
je 0x1003ed4d
push dword [0x100713d8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [0x100713d0], 0
call fcn.1003ef30
test ax, ax
je 0x1003edc3
mov eax, dword [0x100713d4]
mov eax, dword [eax + 8]
test eax, eax
je 0x1003edc3
call eax
cmp byte [0x100713d0], 0
movzx esi, ax
jne 0x1003edb5
lea ecx, [ebp - 0x28]
call fcn.100158f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10013b20
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x100713d8], eax
mov byte [0x100713d0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10001800
mov byte [0x100713d1], 0
mov byte [0x100713d2], 1
mov ax, si
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100029f5
mov esp, ebp
pop ebp
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x404a40
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509af6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x553768]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x404a7c
xor eax, eax
jmp 0x404ae5
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004e11c0
add esp, 0xc
call fcn.004055d0
push 0x514904
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x404b01
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x21c]
call fcn.004066f0
push edi
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
push str.ADBlockMasterTray
lea ecx, [ebp - 0x21c]
call fcn.00407c10
lea ecx, [ebp - 0x21c]
mov ebx, eax
call fcn.00407130
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f7b0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x220]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404ae3
mov dword [ebp - 4], 1
call fcn.004051b0
mov ecx, eax
test ecx, ecx
je 0x404c1e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x218]
test edi, edi
je 0x404b76
push edi
push eax
lea eax, [ebp - 0x21c]
push 0x5149b4
push eax
call fcn.004050c0
add esp, 0x10
jmp 0x404b8b
push eax
lea eax, [ebp - 0x21c]
push str.__s_
push eax
call fcn.004050c0
add esp, 0xc
mov esi, dword [ebp - 0x21c]
mov edi, dword [esi - 0xc]
add edi, edi
cmp dword [esi - 4], 1
jle 0x404bb0
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00405030
mov esi, dword [ebp - 0x21c]
push edi
push esi
push 1
push 0
push str.ADBlockMasterTray
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esi - 8]
mov ebx, eax
push esi
call fcn.004e4758
add esp, 8
test eax, eax
js 0x404c14
cmp eax, dword [esi - 8]
jg 0x404c14
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x404ae3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x404ae3
push 0x80070057
call fcn.00404d60
push 0x80004005
call fcn.00404d60
int3
Function at 0x404ec0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509b28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x553768]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x404f75
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push eax
call fcn.004052a0
add esp, 8
test eax, eax
jne 0x404f13
mov eax, 1
jmp 0x404f75
xor esi, esi
call fcn.004055d0
test al, al
je 0x404f44
lea ecx, [ebp - 0x14]
call fcn.004066f0
push 1
push str.ADBlockMasterTray
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.004085e0
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00407130
jmp 0x404f73
lea eax, [ebp - 0x1c]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404f73
push str.ADBlockMasterTray
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f7b0
mov esp, ebp
pop ebp
ret
Function at 0x4057e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405839
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405839
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40582a
cmp esi, edx
jae 0x405839
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405818
cmp esi, edx
jae 0x405839
cmp word [esi], 0
je 0x405839
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40d150
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a5d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x553768]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi]
push 1
push str.protect_days
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov dword [ebp - 4], 0
call fcn.004051b0
mov ecx, eax
test ecx, ecx
je 0x40d205
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [edi + 1]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push 0x5153e8
push eax
call fcn.004050c0
add esp, 0xc
push dword [esi]
mov esi, dword [ebp - 0x10]
push esi
push str.protect_days
push str.general
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d1f4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404d60
int3
Function at 0x40e310
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.0049f830
mov eax, dword [0x553768]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.004e11c0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x40e406
test edi, edi
je 0x40e406
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40e406
cmp eax, 0x3fff
ja 0x40e406
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40e406
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x4010]
push eax
push 0x5149d0
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e406
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.004e11c0
mov ecx, dword [ebp - 0x4010]
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
lea eax, [esi - 1]
push eax
push edi
call fcn.0040e0a0
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f7b0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0049f7b0
mov esp, ebp
pop ebp
ret

Function at 0x40e590
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x553768]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40e617
test ebx, ebx
je 0x40e617
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40e617
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40e617
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e611
push esi
push ebx
push edi
call fcn.004e06c0
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e611
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f7b0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f7b0
mov esp, ebp
pop ebp
ret
Function at 0x40f130
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x553768]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0x1c], 0
je 0x40f162
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f7b0
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e11c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x40f1b5
lea eax, [ebp - 0x20c]
push eax
call ebx
sub esi, 1
jne 0x40f1a7
push 0x51599c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f272
mov dword [edi + 0x1c], 1
cmp dword [edi], 0
jne 0x40f248
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x40f272
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CurlInit
push eax
call esi
push str.CurlUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x40f248
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x40f272
cmp dword [edi + 4], 0
je 0x40f272
cmp dword [edi + 0xc], 0
je 0x40f272
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f7b0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.0049f7b0
mov esp, ebp
pop ebp
ret 4