joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414c9c
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x414cc5
call fcn.0041c663
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x414ce8
push eax
push dword [esi + 4]
call fcn.00414c27
push esi
push eax
mov ecx, 0x45e918
call fcn.004148dd
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x41551d
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x444e40
call fcn.00431374
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004154df
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00403fd0
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x415583
push eax
push dword [esi + 8]
call fcn.00414c27
push dword [esi + 0xc]
mov ecx, 0x45e918
push eax
call fcn.004148dd
mov eax, esi
call fcn.0043144c
ret 0x18
Function at 0x416a7e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jne 0x416ab1
push dword [ebp + 8]
call edi
push eax
call fcn.00422b26
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x416adc
test byte [ebp - 4], 1
je 0x416adc
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x416adc
push dword [ebp + 8]
call edi
push eax
call fcn.00422b26
lea eax, [esi + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x416b8c
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.004169e3
pop ecx
lea eax, [esi + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x416b12
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.004169e3
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x416b2b
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.004169e3
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x416b56
push dword [ebp + 8]
call edi
push eax
call fcn.00422b26
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x416b76
push dword [ebp + 8]
call edi
push eax
call fcn.00422b26
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x416b8c
push dword [ebp + 8]
call edi
push eax
call fcn.00422b26
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x416bb4
test byte [ebp - 4], 1
jne 0x416bb4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x416bb4
push dword [ebp + 8]
call edi
push eax
call fcn.00422b26
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4187fa
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x418803
xor eax, eax
jmp 0x41886c
cmp dword [esp + 8], 0
jne 0x41880f
call fcn.004167f1
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0042f8f9
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41884a
push dword [esi + 0x10]
call fcn.00433d8b
test eax, eax
pop ecx
jne 0x41884a
mov esi, dword [esi + 0xc]
call fcn.0042f359
push esi
push dword [eax]
push 1
call fcn.00422ae0
push dword [esi + 0x10]
call fcn.00433dba
test eax, eax
pop ecx
je 0x418869
push dword [esi + 0x10]
call fcn.00433cdf
push eax
call fcn.004037a0
pop ecx
pop ecx
jmp 0x418838
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x418875
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x41887f
call fcn.004167f1
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0042fb1d
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4188ac
mov esi, dword [esi + 0xc]
call fcn.0042f359
push esi
push dword [eax]
push 1
call fcn.00422ae0
pop esi
ret 8

Function at 0x41e8e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41e92e
call fcn.0041c663
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41e92e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41e971
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41e95a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41e95a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41e96e
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42e419
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b8b4]
jne 0x42e423
repz ret
jmp fcn.00435078
Function at 0x440b74
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043610d
xor ebx, ebx
cmp dword [0x45f764], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x440c49
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x440bb4
xor eax, eax
jmp 0x440d0d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44dbf4
push edi
call esi
cmp eax, ebx
je 0x440bad
push eax
call fcn.004360aa
mov dword [esp], 0x44dbe4
push edi
mov dword [0x45f764], eax
call esi
push eax
call fcn.004360aa
mov dword [esp], 0x44dbd0
push edi
mov dword [0x45f768], eax
call esi
push eax
call fcn.004360aa
mov dword [0x45f76c], eax
lea eax, [ebp - 8]
push eax
call fcn.00434335
test eax, eax
pop ecx
pop ecx
je 0x440c17
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00435282
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x440c49
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004360aa
cmp eax, ebx
pop ecx
mov dword [0x45f774], eax
je 0x440c49
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004360aa
pop ecx
mov dword [0x45f770], eax
mov eax, dword [0x45f770]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x440cc2
cmp dword [0x45f774], esi
je 0x440cc2
push eax
call fcn.00436116
pop ecx
call eax
cmp eax, ebx
je 0x440c8f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x45f774]
call fcn.00436116
pop ecx
call eax
test eax, eax
je 0x440c8f
test byte [ebp - 0x18], 1
jne 0x440cc2
lea eax, [ebp - 0xc]
push eax
call fcn.0043436c
test eax, eax
pop ecx
je 0x440caa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00435282
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x440cb9
or dword [ebp + 0x10], 0x200000
jmp 0x440cf3
or dword [ebp + 0x10], 0x40000
jmp 0x440cf3
mov eax, dword [0x45f768]
cmp eax, esi
je 0x440cf3
push eax
call fcn.00436116
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x440cf3
mov eax, dword [0x45f76c]
cmp eax, esi
je 0x440cf3
push dword [ebp - 4]
push eax
call fcn.00436116
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x45f764]
call fcn.00436116
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4446e4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45b8b4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00444679
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00430e80
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x444733
cmp dword [ebp - 0x1c], 5
jb 0x44474b
jmp 0x444747
cmp dword [ebp - 0x10], 1
jne 0x44474b
cmp dword [ebp - 0x1c], 4
ja 0x444747
jne 0x44474b
cmp dword [ebp - 0x18], 0
jbe 0x44474b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44e498
call fcn.0044454d
test eax, eax
jge 0x44476c
mov byte [0x45f8b8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042e419
add ebp, 0x78
leave
ret
Function at 0x404760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cfd99
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4fa36c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x30]
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], esi
mov ecx, dword [eax]
cmp ecx, 7
mov dword [esp + 0xc], 1
jne 0x404804
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x34]
push 1
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00405a20
add esp, 0x14
push eax
mov eax, edi
mov dword [esp + 0x2c], 1
call fcn.00414db0
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40497d
push eax
call fcn.004a93cc
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
cmp ecx, 4
jne 0x404857
mov edx, dword [esp + 0x34]
add eax, 0x5c
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00405040
add esp, 8
push eax
mov eax, edi
mov dword [esp + 0x2c], 2
call fcn.00414db0
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40497d
push eax
call fcn.004a93cc
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
cmp ecx, 6
jne 0x4048ad
push 1
add eax, 0x20
push eax
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405ca0
add esp, 0x10
push eax
mov eax, edi
mov dword [esp + 0x2c], 3
call fcn.00414db0
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40497d
push eax
call fcn.004a93cc
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
cmp ecx, 5
jne 0x4048d5
mov edx, dword [esp + 0x34]
add eax, 0x4c
push eax
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00404b90
add esp, 0xc
mov dword [esp + 0x28], 4
jmp 0x40496c
cmp ecx, 3
jne 0x4048fa
mov ecx, dword [esp + 0x34]
add eax, 0x3c
push eax
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004049a0
add esp, 0xc
mov dword [esp + 0x28], 5
jmp 0x40496c
cmp ecx, 1
jne 0x404924
fld qword [eax + 8]
mov eax, dword [esp + 0x34]
sub esp, 8
fstp qword [esp]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405610
add esp, 0x10
mov dword [esp + 0x28], 6
jmp 0x40496c
cmp ecx, 2
jne 0x404949
mov edx, dword [esp + 0x34]
add eax, 0x18
push eax
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00405910
add esp, 0xc
mov dword [esp + 0x28], 7
jmp 0x40496c
cmp ecx, esi
jne 0x40497d
movzx ecx, byte [eax + 4]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00405850
add esp, 0xc
mov dword [esp + 0x28], 8
push eax
mov eax, edi
call fcn.00414db0
lea esi, [esp + 0x10]
call fcn.00414b20
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x405850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ce699
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fa36c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esp + 0x20], eax
cmp byte [esp + 0x30], al
mov dword [esp + 0x14], 1
mov esi, edi
je 0x4058a8
lea eax, [esp + 0x30]
mov byte [esp + 0x30], 9
push eax
jmp 0x4058b2
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], 8
push ecx
call fcn.00414fe0
mov eax, dword [edi + 8]
cmp dword [edi + 4], eax
mov dword [esp + 0x30], eax
jbe 0x4058c8
call fcn.004ab591
mov ebp, dword [edi + 4]
cmp ebp, dword [edi + 8]
jbe 0x4058d5
call fcn.004ab591
mov esi, dword [esp + 0x2c]
mov ebx, dword [esi + 0x14]
add esi, 0x10
cmp ebx, dword [esi + 8]
jbe 0x4058e9
call fcn.004ab591
mov edx, dword [esp + 0x30]
push edx
push edi
push ebp
push edi
push ebx
push esi
call fcn.00419a60
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x405910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ce661
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fa36c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x40]
fild qword [eax]
push ebx
sub esp, 8
lea ecx, [esp + 0x24]
fsub qword [0x4e6320]
mov esi, 1
mov dword [esp + 0x20], esi
fstp qword [esp]
push ecx
call fcn.00408620
add esp, 0x10
push eax
mov eax, edi
mov dword [esp + 0x34], esi
call fcn.00414db0
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x405998
push eax
call fcn.004a93cc
add esp, 4
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
mov byte [esp + 0x40], 0x33
jbe 0x4059aa
call fcn.004ab591
lea edx, [esp + 0x40]
push edx
push esi
push edi
lea eax, [esp + 0x24]
push eax
mov eax, edi
call fcn.00415050
mov ebp, dword [edi + 8]
cmp dword [edi + 4], ebp
jbe 0x4059ca
call fcn.004ab591
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x40], eax
jbe 0x4059db
call fcn.004ab591
mov esi, dword [esp + 0x3c]
mov ebx, dword [esi + 0x14]
add esi, 0x10
cmp ebx, dword [esi + 8]
jbe 0x4059ef
call fcn.004ab591
mov ecx, dword [esp + 0x40]
push ebp
push edi
push ecx
push edi
push ebx
push esi
call fcn.00419a60
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x407230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ce4a0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fa36c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x88]
xor edi, edi
push edi
push 1
push edi
push 6
lea eax, [esp + 0x78]
push ebx
push eax
call fcn.004087c0
push 4
push eax
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0xa4], edi
call fcn.00407440
add esp, 0x24
mov esi, eax
mov byte [esp + 0x80], 1
call fcn.0041a270
xor ecx, ecx
mov edx, 3
movzx esi, byte [edx + eax]
shl ecx, 8
add ecx, esi
sub edx, 1
jns 0x4072a5
mov eax, dword [esp + 0x2c]
cmp eax, edi
mov dword [ebp + 0x20], ecx
je 0x4072c7
push eax
call fcn.004a93cc
add esp, 4
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x6c]
cmp eax, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
je 0x4072ef
push eax
call fcn.004a93cc
add esp, 4
push edi
push 1
push edi
push 7
lea edx, [esp + 0x58]
push ebx
push edx
call fcn.004087c0
push 4
push eax
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0xa4], 2
call fcn.00407440
add esp, 0x24
mov esi, eax
mov byte [esp + 0x80], 3
call fcn.0041a270
xor ecx, ecx
mov edx, 3
movzx esi, byte [edx + eax]
shl ecx, 8
add ecx, esi
sub edx, 1
jns 0x407331
mov eax, dword [esp + 0x3c]
cmp eax, edi
mov dword [ebp + 0x30], ecx
je 0x407353
push eax
call fcn.004a93cc
add esp, 4
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x4c]
cmp eax, edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
je 0x40737b
push eax
call fcn.004a93cc
add esp, 4
push edi
push 4
push edi
push 0xc
lea ecx, [esp + 0x68]
push ebx
push ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
call fcn.004087c0
add esp, 0x18
lea esi, [esp + 0x58]
mov dword [esp + 0x80], 4
call fcn.00419b10
xor edx, edx
xor ecx, ecx
movzx esi, byte [ecx + eax]
shl edx, 8
add ecx, 1
add edx, esi
cmp ecx, 4
jb 0x4073b3
push edi
push 8
push edi
push 0x18
mov dword [ebp + 0x34], edx
lea edx, [esp + 0x28]
push ebx
push edx
call fcn.004087c0
add esp, 0x18
push edi
lea esi, [esp + 0x1c]
mov byte [esp + 0x84], 5
call fcn.00419b10
mov esi, eax
call fcn.0041a310
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, edi
mov dword [ebp + 0x2c], edx
je 0x40740e
push eax
call fcn.004a93cc
add esp, 4
mov eax, dword [esp + 0x5c]
cmp eax, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
je 0x40742b
push eax
call fcn.004a93cc
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
Function at 0x409080
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
mov dword [esp + 0x1c], ebx
call fcn.004017b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x6c], eax
je 0x4090ed
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esp + 8], eax
call fcn.004a9d71
mov ecx, dword [esp + 8]
push ecx
push ebx
push eax
mov dword [esi + 0x70], eax
call fcn.004aef60
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
add esp, 0x10
push ebx
lea edx, [esp + 8]
push edx
push eax
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x70]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov al, 1
jne 0x4090ef
mov al, bl
pop ebx
pop ecx
ret
Function at 0x41a6d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4cb858
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push edi
mov eax, dword [0x4fa36c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.004017c0
mov eax, ebx
mov dword [esp + 0x34], edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41a730
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00416f90
push 0xffffffffffffffff
push edi
push eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov eax, esi
mov word [esi + 4], di
call fcn.004017c0
cmp dword [esp + 0x28], 8
jb 0x41a777
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004a93cc
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x2c
ret
Function at 0x421ac0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4cc746
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4fa36c]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fa36c]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
xor edi, edi
push 0x206
lea eax, [esp + 0x62]
push edi
push eax
mov esi, ecx
mov word [esp + 0x68], di
call fcn.004aef60
mov ebx, 8
add esp, 0xc
cmp dword [esi + 0x228], ebx
jb 0x421b2c
mov esi, dword [esi + 0x214]
jmp 0x421b32
add esi, 0x214
push esi
push 0x104
lea ecx, [esp + 0x64]
push ecx
push 0x4d8004
push 0x4daa18
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebp, 7
lea eax, [esp + 0x5c]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], edi
mov word [esp + 0x44], di
lea edx, [eax + 2]
jmp 0x421b70
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x421b70
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x60]
push edx
lea esi, [esp + 0x48]
call fcn.004018b0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x274], edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edi
mov word [esp + 0x28], di
mov byte [esp + 0x270], 1
movzx ecx, word [esp + 0x1a]
movzx edx, word [esp + 0x16]
movzx eax, word [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str._4d__2d__2d
push ecx
call fcn.0042c840
mov ecx, dword [esp + 0x58]
add esp, 0x14
cmp dword [esp + 0x58], ebx
jae 0x421be7
lea ecx, [esp + 0x44]
mov esi, dword [esp + 0x3c]
cmp esi, ebx
mov ebx, dword [esp + 0x28]
mov eax, ebx
jae 0x421c00
lea eax, [esp + 0x28]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421c26
cmp dx, di
je 0x421c22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421c26
add eax, 4
add ecx, 4
cmp dx, di
jne 0x421c00
xor eax, eax
jmp 0x421c2b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x421c62
cmp esi, 8
jb 0x421c3d
push ebx
call fcn.004a93cc
add esp, 4
cmp dword [esp + 0x58], 8
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edi
mov word [esp + 0x28], di
jb 0x421c5e
mov edx, dword [esp + 0x44]
push edx
call fcn.004a93cc
add esp, 4
mov al, 1
jmp 0x421c93
cmp esi, 8
jb 0x421c70
push ebx
call fcn.004a93cc
add esp, 4
cmp dword [esp + 0x58], 8
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edi
mov word [esp + 0x28], di
jb 0x421c91
mov eax, dword [esp + 0x44]
push eax
call fcn.004a93cc
add esp, 4
xor al, al
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.004a9ce9
add esp, 0x260
ret