joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467631
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x492c78]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x467677
cmp word [ebx], dx
jne 0x467677
or byte [eax + edi + 0x28], 4
jmp 0x46767c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4677df
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4677bf
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4676bd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4676f3
cmp eax, edx
jae 0x467701
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x467698
jmp 0x4677df
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4677ba
cmp dword [ebp - 0x18], 0
je 0x4677ba
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x492c78]
test byte [eax + edi + 0x28], 0x48
je 0x467790
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x467754
mov word [esi], cx
jmp 0x46778b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x492c78]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x492c78]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x492c78]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4677df
pop eax
cmp word [ebp - 4], ax
jne 0x4677a0
cmp esi, ebx
jne 0x4677a0
mov word [esi], ax
jmp 0x4677dc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046e241
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4677df
push 0xd
pop eax
jmp 0x46779b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x492c78]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4677d9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4677df
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46b1be
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x46b25b
push ebx
push esi
call fcn.0046b187
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00469e60
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x46b208
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46b25a
push edi
push eax
call fcn.00466504
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x46b228
call fcn.00464c35
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46b259
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00469e60
add esp, 0x20
test eax, eax
jne 0x46b247
push edi
call fcn.00464c35
jmp 0x46b24f
push ebx
call fcn.00464c35
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x46d6a3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004641e5
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46d712
cmp esi, dword [ebp - 4]
je 0x46d70d
cmp dword [ebp + 0xc], 0
je 0x46d70d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x46d6ea
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0046d1f5
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x46d714
xor eax, eax
inc eax
jmp 0x46d714
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x46d779
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x490040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004641e5
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004641e5
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x46d7f0
cmp word [ecx], dx
je 0x46d7f0
mov eax, dword [0x47cdcc]
push edi
dec eax
push eax
push 0x47ccb8
call fcn.0046d718
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x46d863
cmp word [eax], dx
je 0x46d863
mov eax, dword [edi]
test eax, eax
je 0x46d814
cmp word [eax], dx
je 0x46d814
lea eax, [ebp - 0x10]
push eax
call fcn.0046d0fb
jmp 0x46d81d
lea eax, [ebp - 0x10]
push eax
call fcn.0046d196
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x46d88d
mov eax, dword [0x47ccb4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x47c9a8
call fcn.0046d718
add esp, 0xc
test al, al
je 0x46d88d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x46d858
cmp word [eax], di
je 0x46d858
lea eax, [ebp - 0x10]
push eax
call fcn.0046d0fb
pop ecx
jmp 0x46d88f
lea eax, [ebp - 0x10]
push eax
call fcn.0046d196
jmp 0x46d855
mov eax, dword [edi]
test eax, eax
je 0x46d87a
cmp word [eax], dx
je 0x46d87a
lea eax, [ebp - 0x10]
push eax
call fcn.0046d0b0
pop ecx
jmp 0x46d88d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x46d958
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0046d59d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x46d958
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x46d958
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x46d958
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x46d8e5
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0046636b
test ebx, ebx
je 0x46d953
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0046636b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46d958
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46d958
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00471a31
add esp, 0x10
xor eax, eax
inc eax
jmp 0x46d95a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457c53
leave
ret
Function at 0x471b85
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00471b01
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x471cf4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x471cf4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x471ca9
jg 0x471be1
test eax, eax
je 0x471c9f
push 1
push 0x1000
call fcn.004685f1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x471c04
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x471c96
push 0x8000
push ebx
call fcn.00461c69
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x471c2d
jg 0x471c28
cmp ecx, 0x1000
jb 0x471c2d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00465a4d
add esp, 0x10
cmp eax, 0xffffffff
je 0x471c72
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x471c28
jl 0x471c59
test ecx, ecx
jne 0x471c1a
push dword [ebp - 0xc]
push ebx
call fcn.00461c69
push esi
call fcn.00464c35
add esp, 0xc
xor ebx, ebx
jmp 0x471d02
cmp byte [edi + 0x24], 0
je 0x471c89
cmp dword [edi + 0x20], 5
jne 0x471c89
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x471c94
mov ebx, dword [edi + 0x18]
jmp 0x471c96
xor ebx, ebx
push esi
call fcn.00464c35
pop ecx
jmp 0x471d02
test ecx, ecx
jg 0x471c6b
jl 0x471ca9
test eax, eax
jae 0x471c6b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046e241
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x471cc9
cmp byte [edi + 0x1c], 0
je 0x471c6b
jmp 0x471cfa
push ebx
call fcn.0046b674
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x471c6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x471d02
cmp byte [edi + 0x1c], 0
je 0x471cff
mov ebx, dword [edi + 0x18]
jmp 0x471d02
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046e241
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4733c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4733ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4733ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3a367442
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..reloc
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6c5f4226
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x404a70
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cb76
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x557768]
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 0x404aac
xor eax, eax
jmp 0x404b15
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004e4230
add esp, 0xc
call fcn.00405600
push 0x517914
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x404b31
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x21c]
call fcn.004068c0
push edi
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
push str.ADBlockMasterTray
lea ecx, [ebp - 0x21c]
call fcn.00407e20
lea ecx, [ebp - 0x21c]
mov ebx, eax
call fcn.00407450
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.004a2820
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 0x404b13
mov dword [ebp - 4], 1
call fcn.004051e0
mov ecx, eax
test ecx, ecx
je 0x404c4e
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 0x404ba6
push edi
push eax
lea eax, [ebp - 0x21c]
push 0x5179c4
push eax
call fcn.004050f0
add esp, 0x10
jmp 0x404bbb
push eax
lea eax, [ebp - 0x21c]
push str.__s_
push eax
call fcn.004050f0
add esp, 0xc
mov esi, dword [ebp - 0x21c]
mov edi, dword [esi - 0xc]
add edi, edi
cmp dword [esi - 4], 1
jle 0x404be0
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00405060
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.004e77c8
add esp, 8
test eax, eax
js 0x404c44
cmp eax, dword [esi - 8]
jg 0x404c44
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 0x404b13
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x404b13
push 0x80070057
call fcn.00404d90
push 0x80004005
call fcn.00404d90
int3
Function at 0x404ef0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cba8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x557768]
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 0x404fa5
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push eax
call fcn.004052d0
add esp, 8
test eax, eax
jne 0x404f43
mov eax, 1
jmp 0x404fa5
xor esi, esi
call fcn.00405600
test al, al
je 0x404f74
lea ecx, [ebp - 0x14]
call fcn.004068c0
push 1
push str.ADBlockMasterTray
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.004087f0
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00407450
jmp 0x404fa3
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 0x404fa3
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.004a2820
mov esp, ebp
pop ebp
ret
Function at 0x405810
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 0x405869
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405869
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 0x40585a
cmp esi, edx
jae 0x405869
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405848
cmp esi, edx
jae 0x405869
cmp word [esi], 0
je 0x405869
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40d570
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d698
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x557768]
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.004051e0
mov ecx, eax
test ecx, ecx
je 0x40d625
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 0x518448
push eax
call fcn.004050f0
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 0x40d614
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.00404d90
int3
Function at 0x40ee60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004a28a0
mov eax, dword [0x557768]
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.004e4230
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x40ef56
test edi, edi
je 0x40ef56
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40ef56
cmp eax, 0x3fff
ja 0x40ef56
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40ef56
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x4010]
push eax
push 0x5179e0
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ef56
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.004e4230
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.0040ebf0
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2820
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004a2820
mov esp, ebp
pop ebp
ret

Function at 0x40f0e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x557768]
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 0x40f167
test ebx, ebx
je 0x40f167
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40f167
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40f167
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 0x40f161
push esi
push ebx
push edi
call fcn.004e3730
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 0x40f161
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2820
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.004a2820
mov esp, ebp
pop ebp
ret
Function at 0x40fc80
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x557768]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0x1c], 0
je 0x40fcb2
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2820
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e4230
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 0x40fd05
lea eax, [ebp - 0x20c]
push eax
call ebx
sub esi, 1
jne 0x40fcf7
push 0x51946c
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 0x40fdc2
mov dword [edi + 0x1c], 1
cmp dword [edi], 0
jne 0x40fd98
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x40fdc2
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 0x40fd98
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x40fdc2
cmp dword [edi + 4], 0
je 0x40fdc2
cmp dword [edi + 0xc], 0
je 0x40fdc2
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2820
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.004a2820
mov esp, ebp
pop ebp
ret 4