joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405708
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x409ff0
call fcn.00405e20
mov edi, 0x94
mov eax, edi
call fcn.004084e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40c3a8], ecx
mov eax, dword [esi + 4]
mov dword [0x40c3b4], eax
mov edx, dword [esi + 8]
mov dword [0x40c3b8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40c3ac], esi
cmp ecx, 2
je 0x405768
or esi, 0x8000
mov dword [0x40c3ac], esi
shl eax, 8
add eax, edx
mov dword [0x40c3b0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4057a3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4057a3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4057bb
cmp eax, 0x20b
je 0x4057a8
mov dword [ebp - 0x1c], esi
jmp 0x4057cf
cmp dword [ecx + 0x84], 0xe
jbe 0x4057a3
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4057c9
cmp dword [ecx + 0x74], 0xe
jbe 0x4057a3
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00406217
pop ecx
test eax, eax
jne 0x4057fb
cmp dword [0x40c348], 1
jne 0x4057e8
call fcn.00407be0
push 0x1c
call fcn.00407a68
push 0xff
call fcn.00406d8b
pop ecx
pop ecx
call fcn.0040844d
mov dword [ebp - 4], esi
call fcn.004082a2
test eax, eax
jge 0x405814
push 0x1b
call fcn.004056e3
pop ecx
call fcn.00408203
mov dword [0x40c794], eax
call fcn.00408099
mov dword [0x40c344], eax
call fcn.00408003
test eax, eax
jge 0x405839
push 8
call fcn.004056e3
pop ecx
call fcn.00407dd0
test eax, eax
jge 0x40584a
push 9
call fcn.004056e3
pop ecx
push 1
call fcn.00406dbb
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x405860
push eax
call fcn.004056e3
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00407d8a
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x405881
movzx eax, word [ebp - 0x40]
jmp 0x405884
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00404420
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4058a2
push edi
call fcn.00406ee6
call fcn.00406f08
jmp 0x4058d4
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00405e5b
ret
Function at 0x405fd4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x406002
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x406009
cmp ebx, dword [eax + 4]
jae 0x406009
xor eax, eax
jmp 0x4061f9
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40601a
xor eax, eax
inc eax
jmp 0x4061f8
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x406030
cmp ecx, edx
jae 0x406175
cmp dword [eax + 4], 0
je 0x406039
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x406021
cmp dword [ebp + 8], 0
je 0x40605b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x406175
cmp eax, esi
jae 0x406175
mov eax, dword [0x40c350]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x406080
cmp dword [esi*4 + 0x40c358], edi
je 0x406179
inc esi
cmp esi, eax
jl 0x40606e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4061f5
cmp dword [ebp - 8], 0x1000000
jne 0x4061f5
test byte [ebp - 0xc], 0xcc
je 0x4060fe
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4061f5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4061f5
cmp word [eax + 0x18], 0x10b
jne 0x4061f5
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4061f5
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4060fe
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4060fe
test byte [ecx + 0x27], 0x80
jne 0x406175
push 1
push 0x40c398
call dword [sym.imp.KERNEL32.dll_LR____zj1.G_1sW_x43h__fXWou___TnJ__]
test eax, eax
jne 0x406012
mov ecx, dword [0x40c350]
test ecx, ecx
mov edx, ecx
jle 0x406132
lea eax, [ecx*4 + 0x40c354]
cmp dword [eax], edi
je 0x406132
dec edx
sub eax, 4
test edx, edx
jg 0x406126
test edx, edx
jne 0x406163
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40613f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406157
lea eax, [edx*4 + 0x40c358]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x406145
cmp ecx, 0x10
jge 0x406163
inc ecx
mov dword [0x40c350], ecx
push 0
push 0x40c398
call dword [sym.imp.KERNEL32.dll_LR____zj1.G_1sW_x43h__fXWou___TnJ__]
jmp 0x406012
xor eax, eax
jmp 0x4061f8
test esi, esi
jle 0x406012
mov ebx, dword [sym.imp.KERNEL32.dll_LR____zj1.G_1sW_x43h__fXWou___TnJ__]
push 1
push 0x40c398
call ebx
test eax, eax
jne 0x406012
cmp dword [esi*4 + 0x40c358], edi
je 0x4061cf
mov eax, dword [0x40c350]
lea esi, [eax - 1]
test esi, esi
jl 0x4061bd
cmp dword [esi*4 + 0x40c358], edi
je 0x4061b9
dec esi
jns 0x4061ad
test esi, esi
jge 0x4061cd
cmp eax, 0x10
jge 0x4061c8
inc eax
mov dword [0x40c350], eax
lea esi, [eax - 1]
jmp 0x4061cf
je 0x4061e7
xor ecx, ecx
test esi, esi
jl 0x4061e7
lea eax, [ecx*4 + 0x40c358]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4061d5
push 0
push 0x40c398
call ebx
jmp 0x406012
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406fc8
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebx
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x406fd7
call 0x8566f70
jo 0x40701e
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
add byte [ebx + ecx*4 + 0x3d], ah
xor byte [eax], al
add byte [eax], al
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x46260c], eax
sub eax, eax
je 0x406ffc
jmp 0xa97b58e7
call 0x40193b
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
push 8
call fcn.00409abb
push 4
mov esi, eax
call fcn.00409abb
lea edi, [esi + 4]
push edi
push ebx
push eax
push 0x407952
push ebx
push ebx
mov dword [eax], 0x406d8b
call fcn.0040e511
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x407072
cmp dword [edi], ebx
jne 0x407044
push 1
jmp 0x407076
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
jne 0x407051
push 5
jmp 0x407076
push ebx
push dword [esi + 4]
push dword [esi]
call fcn.004095b1
add esp, 0xc
test eax, eax
je 0x407067
push 2
jmp 0x407076
pop edi
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 4], ebx
pop esi
pop ebx
ret
mov dword [edi], ebx
push 6
call fcn.00407abf
int3

Function at 0x408b4f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408b70
jl 0x408b67
test edi, edi
jne 0x408b70
xor eax, eax
xor edx, edx
jmp 0x408c31
cmp dword [ebx + 0x38], 0
je 0x408b85
push eax
push edi
push dword [ebp + 8]
call fcn.00408c37
jmp 0x408c31
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408bcc
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408bcc
cmp eax, edi
jb 0x408ba6
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a920
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408bd2
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408c26
mov ecx, ebx
call fcn.004083b7
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408c11
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041119d
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x408c26
jmp 0x408be4
test edx, edx
je 0x408c26
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041119d
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4010d7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010ec
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4010fe
xor eax, eax
jmp 0x401130
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401122
cmp esi, eax
jae 0x4010fa
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401114
cmp esi, eax
jae 0x4010fa
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x402e46
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x43b679
call fcn.0041d57c
sub esp, 0x74
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov esi, ecx
je 0x402ffc
mov ecx, dword [esi + 4]
cmp edi, dword [ecx + 0x20]
je 0x402ffc
push ebx
push edi
call fcn.004033a6
test al, al
je 0x402f17
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax]
mov dword [ebp + 8], ebx
jmp 0x402eac
push dword [ebx + 0x28]
mov ecx, esi
call fcn.00402e46
lea ecx, [ebp + 8]
call fcn.00401559
push ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x38]
call fcn.00402a5b
mov eax, dword [edi + 0x3c]
mov ebx, dword [ebp + 8]
cmp ebx, eax
jne 0x402e87
mov ecx, dword [esi + 4]
push edi
lea eax, [ebp - 0x64]
push eax
call fcn.00403d2f
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x48]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00401dc1
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004014f4
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x402eee
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esi + 4]
push edi
call fcn.00403315
mov ecx, edi
call fcn.00402e11
push edi
call fcn.0042edfa
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x48]
jmp 0x402ff2
mov ecx, dword [esi + 4]
push edi
lea eax, [ebp - 0x64]
push eax
call fcn.00403d2f
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], 3
call fcn.00401dc1
add esp, 0xc
xor ebx, ebx
push 0
inc ebx
push ebx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.004014f4
cmp dword [edi + 0x28], ebx
jne 0x402f96
cmp byte [edi + 0x30], 0
jne 0x402f9c
cmp dword [esi], 0
je 0x402f96
mov ecx, dword [esi + 4]
push edi
lea eax, [ebp - 0x80]
push eax
call fcn.00403d2f
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 6
jb 0x402f7a
mov eax, dword [eax + 4]
jmp 0x402f7d
add eax, 4
mov ecx, dword [esi]
push eax
call fcn.0040aee5
push 0
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.004014f4
jmp 0x402fd5
cmp byte [edi + 0x30], 0
je 0x402fb1
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x402fa8
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x402fd5
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x402fbd
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [edi + 0x1c]
mov ecx, dword [esi + 4]
neg eax
push eax
push dword [edi + 0x34]
call fcn.004033bc
mov ecx, dword [esi + 4]
push edi
call fcn.00403315
mov ecx, edi
call fcn.00402e11
push edi
call fcn.0042edfa
pop ecx
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004014f4
mov al, 1
pop ebx
jmp 0x402ffe
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x403139
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
or dword [eax], 0xffffffff
push esi
xor esi, esi
push esi
push 0x8000027
push 3
push esi
push 1
push closesocket
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40317d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x403269
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call fcn.004030e4
test al, al
pop ecx
pop ecx
jne 0x4031a7
mov dword [ebp - 0xc], 0x18
jmp 0x403264
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x14]
je 0x403264
push esi
push esi
push esi
push 2
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x4031d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x403264
cmp dword [ebp - 0x14], esi
jl 0x403264
jg 0x4031e7
cmp dword [ebp - 0x18], esi
jbe 0x403264
push ebx
push edi
jmp 0x4031ed
xor esi, esi
cmp dword [ebp - 0x14], esi
jg 0x403202
jl 0x4031fd
cmp dword [ebp - 0x18], 0xa00000
jae 0x403202
mov esi, dword [ebp - 0x18]
jmp 0x403207
mov esi, 0xa00000
mov eax, dword [ebp - 0x1c]
push esi
push dword [ebp - 0x20]
sar eax, 0x1f
push dword [ebp - 0x1c]
push 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test esi, esi
mov edi, eax
mov ebx, edi
jbe 0x40323f
mov dword [ebp - 0x10], esi
push dword [ebp + 0xc]
xor eax, eax
mov al, byte [ebx]
push eax
call fcn.004030c0
pop ecx
inc ebx
dec dword [ebp - 0x10]
pop ecx
jne 0x40322a
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
add dword [ebp - 0x20], esi
adc dword [ebp - 0x1c], eax
sub dword [ebp - 0x18], esi
sbb dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], eax
jg 0x4031eb
jl 0x403260
cmp dword [ebp - 0x18], eax
ja 0x4031eb
pop edi
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x403272
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
pop esi
je 0x403281
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
not dword [eax]
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x405df8
Capabilities:
Delete file
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
push edi
je 0x405f3a
cmp dword [ebp + 8], esi
je 0x405f3a
mov eax, dword [ebp + 0xc]
push 0x10
pop ebx
cmp dword [eax + 0x18], ebx
jb 0x405e28
mov eax, dword [eax + 4]
jmp 0x405e2b
add eax, 4
push esi
push closesocket
push esi
push esi
push str.HTTP_1.0
push eax
push 0x43e744
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x10], edi
je 0x405f3a
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x405f3a
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
push 5
push edi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x405ea5
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0x18], 0x10
lea eax, [ebx + 4]
mov dword [ebp - 4], eax
jb 0x405e91
mov eax, dword [eax]
push 0x43e740
push eax
call fcn.0041d874
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jne 0x405eab
push edi
jmp 0x405f34
lea eax, [ebp - 0x30]
push eax
call fcn.0041d78b
mov edi, 0x400
cmp eax, edi
pop ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], eax
jb 0x405efb
mov dword [ebp - 8], edi
jmp 0x405efb
cmp dword [ebp - 0xc], 0
jbe 0x405f16
push dword [ebp - 0x14]
lea eax, [ebp - 0x430]
push dword [ebp - 0xc]
push 1
push eax
call fcn.0041d73f
add esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
sub eax, esi
add esp, 0x10
cmp eax, edi
jae 0x405ef5
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x405f41
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x405ec9
push dword [ebp - 0x14]
call fcn.0041d5e7
cmp dword [ebx + 0x18], 0x10
mov eax, dword [ebp - 4]
pop ecx
jb 0x405f2a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x14]
call fcn.0041d5e7
cmp dword [ebx + 0x18], 0x10
mov esi, dword [ebp - 4]
pop ecx
jb 0x405f60
mov eax, dword [esi]
jmp 0x405f63
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00403139
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x14]
pop ecx
pop ecx
je 0x405f88
cmp dword [ebx + 0x18], 0x10
jb 0x405f7f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x405f3a
mov ecx, dword [ebp + 0x18]
push ebx
call fcn.0040517e
cmp dword [ebx + 0x18], 0x10
jb 0x405f99
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
jmp 0x405f3c
Function at 0x407533
Capabilities:
Delete file
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x10
pop ebx
cmp dword [eax + 0x18], ebx
jb 0x40754c
mov eax, dword [eax + 4]
jmp 0x40754f
add eax, 4
xor esi, esi
push esi
push closesocket
push esi
push esi
push str.HTTP_1.0
push eax
push 0x43e744
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, esi
mov dword [ebp - 4], edi
je 0x4076e6
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4076e0
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push 5
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4075d1
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], ebx
jb 0x4075b8
add eax, 4
mov dword [ebp + 0xc], eax
mov eax, dword [eax]
jmp 0x4075be
add eax, 4
mov dword [ebp + 0xc], eax
push 0x43e884
push eax
call fcn.0041d874
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
jne 0x4075dd
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4076e6
lea eax, [ebp - 0x1c]
push eax
call fcn.0041d78b
lea edi, [eax + 1]
push edi
call fcn.0042edff
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
push dword [ebp - 0xc]
push 1
push esi
call fcn.0041d73f
push ebx
call fcn.0041dfc2
push 0
push 0
push ebx
call fcn.0041e0aa
push 0xc
pop ecx
xor eax, eax
mov byte [ebp - 0x50], 0
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x50]
push eax
push 0x43e840
push ebx
call fcn.0041db1f
push dword [ebp + 0x14]
push 0x43e8e0
push ebx
call fcn.0041db1f
push ebx
call fcn.0041d5e7
mov ecx, dword [ebp + 0x18]
add esp, 0x3c
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 0x46], 0
call fcn.00401da4
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
mov eax, dword [ebp + 0xc]
jb 0x40767a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, byte [esi]
mov cl, 0x30
cmp al, cl
jl 0x4076e6
mov dl, 0x39
cmp al, dl
jg 0x4076e6
mov al, byte [esi + 1]
cmp al, cl
jl 0x4076e6
cmp al, dl
jg 0x4076e6
mov al, byte [esi + 3]
cmp al, cl
jl 0x4076e6
cmp al, dl
jg 0x4076e6
mov al, byte [esi + 4]
cmp al, cl
jl 0x4076e6
cmp al, dl
jg 0x4076e6
mov al, byte [esi + 6]
cmp al, cl
jl 0x4076e6
cmp al, dl
jg 0x4076e6
mov al, byte [esi + 7]
cmp al, cl
jl 0x4076e6
cmp al, dl
jg 0x4076e6
mov al, byte [esi + 8]
cmp al, cl
jl 0x4076e6
cmp al, dl
jg 0x4076e6
mov al, byte [esi + 9]
cmp al, cl
jl 0x4076e6
cmp al, dl
jg 0x4076e6
mov al, 1
jmp 0x4076e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408089
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x408113
mov ebx, dword [esi + 0x154]
test ebx, ebx
je 0x408113
push 1
push 0
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
mov edi, 0x43ee2c
push edi
call fcn.00401f52
push dword [esi + 0x1c]
call fcn.004072ad
add esp, 0x10
mov ecx, ebx
call fcn.004024f3
test al, al
push 1
push 1
push ecx
mov dword [ebp + 8], esp
mov ecx, esp
jne 0x40811a
push 0x43ede8
call fcn.00401f52
push dword [esi + 0x1c]
call fcn.004072ad
add esp, 0x10
xor edi, edi
push edi
push edi
push 0x43eda4
call fcn.0043634e
push 1
push edi
push edi
push str.http:__www.saga3d.com
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [esi + 0x70], 1
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push edi
call fcn.00401f52
push dword [esi + 0x1c]
call fcn.004072ad
mov eax, dword [ebx + 4]
add eax, 0x24
add esp, 0x10
cmp dword [eax + 0x18], 0x10
jb 0x40813c
mov eax, dword [eax + 4]
jmp 0x40813f
add eax, 4
push eax
lea eax, [ebp - 0xfc]
push 0x43ed78
push eax
call fcn.0041de0a
add esp, 0xc
lea eax, [ebp - 0xfc]
push eax
mov ecx, esi
call fcn.00432313
mov al, 1
jmp 0x408115
Function at 0x408166
Capabilities:
Connect to http server

Disassembly:
mov eax, 0x43bb79
call fcn.0041d57c
sub esp, 0x58
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 0x2c]
push str.http:__
push eax
call fcn.004024a1
add esp, 0xc
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push dword [ebp + 0x14]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.004019cc
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4081aa
lea eax, [ebp - 0x28]
push ebx
push 0x20000000
push ebx
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
je 0x40826e
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call edi
cmp dword [esi + 0x18], 0x10
jb 0x4081d8
mov esi, dword [esi + 4]
jmp 0x4081db
add esi, 4
push ebx
push ebx
push 3
mov eax, 0x43e790
push eax
push eax
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
je 0x40826e
mov esi, dword [ebp + 0x18]
push dword [ebp + 0x14]
lea ecx, [ebp - 0x64]
mov dword [esi], eax
call fcn.00401d61
push str._AutoUpdateGame.vs
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00401d87
mov eax, dword [ebp + 8]
add eax, 0x100
push eax
lea ecx, [ebp - 0x48]
call fcn.00401d61
push str.AutoUpdateGame.vs
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00401d87
push dword [ebp + 0x20]
lea eax, [ebp - 0x48]
push dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [esi]
call fcn.00407533
add esp, 0x14
test al, al
jne 0x40828e
push dword [esi]
call edi
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004014f4
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004014f4
mov byte [ebp - 0xd], bl
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004014f4
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004014f4
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004014f4
mov byte [ebp - 0xd], 1
jmp 0x408271

Function at 0x40b6e2
Capabilities:
Create raw socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
lea eax, [ebp - 0x2bc]
mov esi, ecx
push eax
xor ebx, ebx
push 0x202
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], 0x10
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40b729
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WSAStartup___failed:__d_n
call fcn.0041e777
pop ecx
pop ecx
jmp 0x40b773
push 1
push ebx
push ebx
push 1
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40b773
push edi
push 0x4a
mov byte [ebp - 0x12c], bl
xor eax, eax
pop ecx
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x12c]
push str.Error:_d.
push eax
call fcn.0041de0a
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret