joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e828
Capabilities:
Get graphical window text

Disassembly:
inc esi
add al, ch
mov dword [ebp - 6], ebx
inc dword [eax + 0x4670c93d]
add byte [eax], al
jne 0x45e852
mov eax, dword [0x467054]
push eax
mov ecx, 0x45e9f4
mov edx, 0x45ea04
mov eax, 0x80000002
call fcn.00408f70
mov eax, edi
mov edx, 0x45ea4c
call fcn.004045b8
cmp byte [0x4670c9], 0
je 0x45e871
call fcn.0045ef98
jmp 0x45e9c1
xor ebx, ebx
push 0
push 0x45eb14
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
jne 0x45e891
push 0x3e8
call sub.kernel32.dll_Sleep
jmp 0x45e873
push 0xea60
call sub.kernel32.dll_Sleep
push 0
push 0x45eb24
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
mov eax, edi
mov edx, 0x45eb34
call fcn.004045b8
push 0x45eba4
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
mov eax, edi
mov edx, 0x45ebb8
call fcn.004045b8
test esi, esi
jne 0x45e8e0
push 0x45ec64
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x45e97b
mov eax, edi
mov edx, 0x45ec78
call fcn.004045b8
push 0x45ecbc
push esi
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
mov eax, edi
mov edx, 0x45ecd4
call fcn.004045b8
test esi, esi
je 0x45e97b
mov eax, edi
mov edx, 0x45ed24
call fcn.004045b8
call esi
push 0xbb8
call sub.kernel32.dll_Sleep
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
push 0x1f4
call sub.kernel32.dll_Sleep
push 0
push 0xd
push 0x101
push ebx
call sub.user32.dll_SendMessageA
push 0xc8
call sub.kernel32.dll_Sleep
mov eax, 0x45ed94
call fcn.00409514
push 0x3e8
call sub.kernel32.dll_Sleep
mov eax, edi
mov edx, 0x45eda4
call fcn.004045b8
mov eax, edi
mov edx, 0x45ee44
call fcn.004045b8
mov edx, 0x45ee98
mov eax, 0x4670dc
mov ecx, 0xbb8
call fcn.00408ce4
test al, al
je 0x45e9c1
mov eax, edi
mov edx, 0x45ea4c
call fcn.004045b8
call fcn.0045ef98
mov eax, edi
mov edx, 0x45eec8
call fcn.004045b8
call fcn.00461d7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e9e3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret
Function at 0x462344
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a14
xor eax, eax
push ebp
push 0x46244a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x467080
mov edx, 0x462460
call fcn.004045b8
cmp dword [0x4670d0], 0
jne 0x462385
call fcn.004620bc
push 2
push 0
push 0
mov eax, dword [0x4670d0]
push eax
call sub.kernel32.dll_SetFilePointer_1
cmp eax, 0xffffffff
jne 0x4623a0
call fcn.004620bc
lea edx, [ebp - 0xc]
mov al, byte [0x4670ca]
call fcn.00407a64
push dword [ebp - 0xc]
push 0x4624cc
push dword [ebp - 4]
push 0x4624d8
lea eax, [ebp - 4]
mov edx, 4
call fcn.004048e4
mov eax, 0x467080
mov edx, 0x4624e4
call fcn.004045b8
mov byte [0x4670ca], 0
mov eax, 0x467080
mov edx, 0x46259c
call fcn.004045b8
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404824
push eax
lea eax, [ebp - 4]
call fcn.00404a7c
push eax
mov eax, dword [0x4670d0]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x46241d
mov dword [ebp - 8], 0xffffffff
mov eax, 0x467080
mov edx, 0x462610
call fcn.004045b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462451
lea eax, [ebp - 0xc]
call fcn.00404564
lea eax, [ebp - 4]
call fcn.00404564
ret
Function at 0x40689a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068be
xor eax, eax
test eax, eax
je 0x4068d1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068d1
xor ecx, ecx
jmp 0x4068d4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069f7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x406a2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a08
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x406a41
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40c7d0
nop
mov ecx, 0x6dee02d2
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x42f314
mov ecx, 0x68c0265b
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x69a4b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1ac000]
push edi
or ebp, 0xffffffff
jmp 0x69a4d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x69a4d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69a4c8
mov eax, 1
add ebx, ebx
jne 0x69a4eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x69a4fc
jne 0x69a51b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69a51b
dec eax
add ebx, ebx
jne 0x69a508
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x69a4e0
add ebx, ebx
jne 0x69a517
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x69a56d
xor ecx, ecx
sub eax, 3
jb 0x69a533
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x69a5a2
sar eax, 1
mov ebp, eax
jmp 0x69a53e
add ebx, ebx
jne 0x69a53e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69a50c
inc ecx
add ebx, ebx
jne 0x69a54c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69a50c
add ebx, ebx
jne 0x69a559
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x69a54e
jne 0x69a56a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x69a54e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x69a58c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x69a57e
jmp 0x69a4ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x69a58c
add edi, ecx
jmp 0x69a4ce
pop esi
mov edi, esi
mov ecx, 0xa23c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x69a5aa
cmp byte [edi], 0x1e
jne 0x69a5aa
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 0x69a5af
lea edi, [esi + 0x289000]
mov eax, dword [edi]
or eax, eax
je 0x69a61e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2b5538]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2b5648]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x69a5dc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2b5650]
or eax, eax
je 0x69a618
mov dword [ebx], eax
add ebx, 4
jmp 0x69a5f9
call dword [esi + 0x2b564c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x69a64f
cmp al, 0xef
ja 0x69a642
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x69a624
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x69a631
mov ebp, dword [esi + 0x2b5654]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x69a683
sub esp, 0xffffff80
jmp 0x574c9c
Function at 0x403570
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6bec
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x525258]
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 eax, ecx
mov dword [ebp - 0x220], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x40375f
cmp word [edi], 0
je 0x40375f
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x4035cb
or eax, 0xffffffff
jmp 0x403761
call fcn.00403050
mov ecx, eax
test ecx, ecx
je 0x40377f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
push edi
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0
call fcn.00402730
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00403100
mov edx, dword [ebp - 0x228]
add esp, 8
test al, al
mov byte [ebp - 4], 0
sete byte [ebp - 0x219]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403642
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x219], 0
mov esi, dword [ebp - 0x22c]
je 0x403659
or edi, 0xffffffff
jmp 0x40373f
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00491120
mov eax, dword [ebp - 0x220]
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
cmp ax, word [ebp - 0x218]
jne 0x4036a6
xor edi, edi
jmp 0x40373f
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00402de0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x224], eax
push dword [esi - 0xc]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
push esi
call fcn.00402ce0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00402730
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004477c0
add esp, 0xc
lea ecx, [ebp - 0x220]
call fcn.00402b30
push 0xa
push 0
push dword [ebp - 0x230]
call fcn.0049df6d
add esp, 0xc
lea ecx, [ebp - 0x230]
mov edi, eax
call fcn.00402b30
lea ecx, [ebp - 0x224]
call fcn.00402b30
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40375b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x403761
xor eax, eax
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.004564ea
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402d90
int3
Function at 0x4040b0
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 0x404109
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404109
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 0x4040fa
cmp esi, edx
jae 0x404109
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4040e8
cmp esi, edx
jae 0x404109
cmp word [esi], 0
je 0x404109
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40b480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7456
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x525258]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40b52c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40b52c
call fcn.0040a670
mov edi, eax
jmp 0x40b64b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40b54f
call fcn.0040a670
jmp 0x40b63e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40b56d
call fcn.0040a670
jmp 0x40b63e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40b58e
mov edi, 0x8007000e
jmp 0x40b640
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x40b684
jb 0x40b5ac
cmp eax, 0xffffffff
ja 0x40b684
cmp eax, 0x400
jbe 0x40b5c1
push eax
lea ecx, [ebp - 0x418]
call fcn.0040a590
jmp 0x40b5e7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40b5e7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40b5fe
mov edi, 0x8007000e
jmp 0x40b640
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40b61e
call fcn.0040a670
jmp 0x40b63e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040b2e0
mov edi, eax
test esi, esi
je 0x40b64b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40b664
lea ecx, [ebp - 0x418]
call fcn.0040a990
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004564ea
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00402d90
int3
Function at 0x40dcb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e76b7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x525258]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x4f6960
mov dword [ebp - 0x14], edi
mov dword [edi + 0x50], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
push 0
push 0
lea esi, [edi + 4]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x10], 1
call fcn.0040d4d0
mov eax, dword [edi]
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0045652a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40dd5a
push 1
mov byte [ebp - 4], 2
call fcn.0042c673
add esp, 4
mov dword [ebx + 4], eax
jmp 0x40dd5c
xor ebx, ebx
lea eax, [esi + 4]
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ef70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00456880
mov eax, dword [0x525258]
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.00491120
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x40f062
test edi, edi
je 0x40f062
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40f062
cmp eax, 0x3fff
ja 0x40f062
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f062
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x4f65ac
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f062
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push 0
push edi
call fcn.00491120
mov ecx, dword [ebp - 0x400c]
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
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004564ea
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004564ea
mov esp, ebp
pop ebp
ret
Function at 0x417e90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8521
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x525258]
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 edi, ecx
push 0
lea eax, [ebp - 0x344]
push eax
call fcn.00417bd0
push 0x208
lea eax, [ebp - 0x318]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00491120
add esp, 0xc
lea eax, [ebp - 0x318]
push dword [ebp - 0x344]
push 0x104
push eax
push 0x4f6718
push str.restart_time
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
call fcn.004b160f
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x348], edx
push eax
call fcn.004b145d
add esp, 0xc
test eax, eax
jne 0x418090
lea eax, [ebp - 0x33c]
push eax
push 0x4f7b28
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.004c1a29
add esp, 0x10
test eax, eax
jne 0x417f6c
mov word [ebp - 0x110], ax
call fcn.00417b20
mov ecx, eax
test ecx, ecx
je 0x41809a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x340], eax
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x417fab
movzx eax, ax
lea ecx, [ebp - 0x340]
push eax
call fcn.00403c80
jmp 0x417fd6
lea ecx, [ebp - 0x110]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417fb4
sub ecx, edx
lea eax, [ebp - 0x110]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x340]
call fcn.00403f70
lea eax, [ebp - 0x340]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x104]
call fcn.00405be0
mov edx, dword [ebp - 0x340]
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418010
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x104]
lea ecx, [ebp - 0x318]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418046
test dx, dx
je 0x418042
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418046
add eax, 4
add ecx, 4
test dx, dx
jne 0x418020
xor eax, eax
jmp 0x41804b
sbb eax, eax
or eax, 1
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x344]
sete bl
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x418072
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.004564ea
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402d90
push 0x80004005
call fcn.00402d90
int3
Function at 0x4183c0
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e85e6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x525258]
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]
lea eax, [ebp - 0x21c]
push 0x20a
push 0
push eax
call fcn.00491120
push esi
push 0x4f728c
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x21c]
push str.curlnet.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00417b20
mov ecx, eax
test ecx, ecx
je 0x41858c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x418473
movzx eax, ax
lea ecx, [ebp - 0x220]
push eax
call fcn.00403c80
jmp 0x4184a2
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418480
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00403f70
mov dword [ebp - 4], 1
call fcn.00417a90
mov esi, dword [ebp - 0x220]
mov ebx, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418547
push esi
call fcn.00426140
add esp, 4
test eax, eax
je 0x418547
cmp dword [ebx], 0
jne 0x418531
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x418547
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CurlInit
push eax
call edi
push str.CurlUninit
push dword [ebx]
mov dword [ebx + 4], eax
call edi
push str.zlib_uncompress
push dword [ebx]
mov dword [ebx + 8], eax
call edi
push str.zlib_compress
push dword [ebx]
mov dword [ebx + 0x10], eax
call edi
push str.zlib_compressBound
push dword [ebx]
mov dword [ebx + 0x14], eax
call edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x418531
call eax
mov dword [ebx + 0xc], eax
cmp dword [ebx + 8], 0
je 0x418547
cmp dword [ebx + 4], 0
je 0x418547
cmp dword [ebx + 0xc], 0
je 0x418547
xor ebx, ebx
jmp 0x41854c
mov ebx, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41856b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
sete al
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.004564ea
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402d90
int3