joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db29c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x4db2b5
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4db2ae
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x4db2c9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004dac60
test bl, bl
jne 0x4db39c
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x4e4e48
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4db300
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4db314
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004db174
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x4db346
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x4db2f5
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x4db369
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x4db37a
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x4db38e
jmp 0x4db457
cmp bl, 1
jne 0x4db457
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x4e4ea2
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4db3bc
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4db3d0
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004db174
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x4db402
sub ebx, 6
inc dword [ebp - 8]
jne 0x4db3b1
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x4db429
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x4db43a
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x4db44e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004dace4
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x4a6610
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4ac4cc]
cmp dword [eax + 0x28], 0
jne 0x4a6628
xor eax, eax
jmp 0x4a6757
mov ecx, dword [0x4ac43c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x4ac430], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x4ac42c], eax
push 0
call dword [0x4aa138]
mov dword [ebp - 0x10], eax
push 1
call dword [0x4aa138]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x4ac430]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x4ac42c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x4ac4b8]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x4aa680
push 0x4aa6d0
push 0x88
call dword [0x4aa134]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x4ac428], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x4aa10c]
push eax
call fcn.004a6550
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4aa148]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x4aa12c]
push 0x4a65e0
mov edx, dword [0x4ac4cc]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [0x4aa13c]
mov dword [0x4ac434], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [0x4aa130]
test eax, eax
je 0x4a6757
cmp dword [ebp - 0x38], 0x12
jne 0x4a674b
mov dword [0x4ac444], 0
call fcn.004a6760
xor eax, eax
jmp 0x4a6757
lea edx, [ebp - 0x3c]
push edx
call dword [0x4aa140]
jmp 0x4a671c
mov esp, ebp
pop ebp
ret 4

Function at 0x4a7b30
Capabilities:
Read .ini file
Read and send data from client to server
Send data
Send data on socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [fcn.004aa0dc]
call dword [fcn.004aa124]
call dword [fcn.004aa128]
call dword [fcn.004aa094]
call dword [fcn.004aa0fc]
call dword [fcn.004aa0f4]
call dword [fcn.004aa150]
call dword [fcn.004aa00c]
call dword [fcn.004aa000]
call dword [fcn.004aa160]
call fcn.004a9674
mov eax, 1
pop ebp
ret 4
Function at 0x4a86cc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x4aa168
sub eax, eax
test esi, esi
je 0x4a87a4
sub eax, 1
test ecx, ecx
je 0x4a87a2
test esi, 3
je 0x4a870a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4a86ef
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x4a8789
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4a8714
mov ecx, edx
test ecx, ecx
je 0x4a87a2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4a878f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x4a87ac
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.004a882f
jae 0x4a87ba
xor ecx, ecx
call fcn.004a882f
jae 0x4a87e9
xor eax, eax
call fcn.004a882f
jae 0x4a87f9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.004a882f
adc al, al
jae 0x4a87db
jne 0x4a8825
stosb byte es:[edi], al
jmp 0x4a87bd
call fcn.004a883b
sub ecx, ebx
jne 0x4a8802
call fcn.004a8839
jmp 0x4a8821
lodsb al, byte [esi]
shr eax, 1
je 0x4a884b
adc ecx, ecx
jmp 0x4a881e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.004a8839
cmp eax, 0x7d00
jae 0x4a881e
cmp ah, 5
jae 0x4a881f
cmp eax, 0x7f
ja 0x4a8820
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4a87bd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x4a917c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ac000]
jne 0x4a9186
repz ret
jmp fcn.004a942d
Function at 0x10055280
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x140
push ebx
push ebp
mov ebp, dword [esp + 0x14c]
push esi
xor ebx, ebx
push 0x3e
lea eax, [esp + 0x1a]
push ebx
push eax
xor esi, esi
mov byte [esp + 0x1b], bl
mov word [esp + 0x20], bx
call fcn.10060200
push 0xf4
lea ecx, [esp + 0x68]
push ebx
push ecx
mov dword [esp + 0x6c], ebx
call fcn.10060200
mov eax, dword [esp + 0x16c]
add esp, 0x18
cmp eax, 0x360
mov dword [edi + 0x15f0], ebx
mov dword [edi + 0x15f4], ebp
mov dword [edi + 0x15f8], eax
jb 0x1005539f
push ebx
lea edx, [esp + 0x13]
push edx
push ebp
push edi
call fcn.10050c80
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x1005539f
cmp byte [esp + 0xf], 0x4d
jne 0x1005539f
push ebx
lea eax, [esp + 0x13]
push eax
lea ecx, [ebp + 1]
push ecx
push edi
call fcn.10050c80
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x1005539f
cmp byte [esp + 0xf], 0x5a
jne 0x1005539f
push ebx
push 0x40
lea edx, [esp + 0x1c]
push edx
push ebp
push edi
call fcn.100535b0
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0x1005539f
mov ecx, dword [esp + 0x154]
mov eax, dword [esp + 0x50]
add ecx, 0xffffff08
cmp eax, ecx
mov dword [esp + 0x10], eax
ja 0x1005539f
push ebx
push 0xf8
lea edx, [esp + 0x5c]
push edx
add eax, ebp
push eax
push edi
call fcn.100535b0
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0x1005539f
cmp dword [esp + 0x54], 0x4550
jne 0x1005539f
cmp word [esp + 0x6c], 0x10b
jne 0x1005539f
mov eax, dword [esp + 0x10]
mov dword [edi + 0x15f0], 1
mov dword [edi + 0x15fc], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
Function at 0x10064fe9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008f0c0]
jne 0x10064ff3
repz ret
jmp fcn.10067bd9

Function at 0x1006509d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1008f0d0]
je 0x100650b8
inc edi
cmp edi, 0x17
jb 0x100650a9
cmp edi, 0x17
jae 0x10065238
push ebp
push 3
call fcn.100680ee
cmp eax, 1
pop ecx
je 0x10065204
push 3
call fcn.100680ee
test eax, eax
pop ecx
jne 0x100650ec
cmp dword [0x1008f510], 1
je 0x10065204
cmp ebx, 0xfc
je 0x10065237
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1008f6d0
push ebp
call fcn.100669e2
add esp, 0xc
test eax, eax
je 0x10065122
push esi
push esi
push esi
push esi
push esi
call fcn.10061dc8
add esp, 0x14
push 0x104
mov esi, 0x1008f6e9
push esi
push 0
mov byte [0x1008f7ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10065166
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.100669e2
add esp, 0xc
test eax, eax
je 0x10065166
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10061dc8
add esp, 0x14
push esi
call fcn.10064da0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100651ab
push esi
call fcn.10064da0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1008f9e4
push 0x1006a394
sub ecx, eax
push ecx
push eax
call fcn.10067ad6
add esp, 0x14
test eax, eax
je 0x100651ab
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10061dc8
add esp, 0x14
jmp 0x100651ad
xor esi, esi
push 0x1006a390
push ebx
push ebp
call fcn.10067a16
add esp, 0xc
test eax, eax
je 0x100651cd
push esi
push esi
push esi
push esi
push esi
call fcn.10061dc8
add esp, 0x14
push dword [edi*8 + 0x1008f0d4]
push ebx
push ebp
call fcn.10067a16
add esp, 0xc
test eax, eax
je 0x100651ef
push esi
push esi
push esi
push esi
push esi
call fcn.10061dc8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10067f31
add esp, 0xc
jmp 0x10065237
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10065237
cmp ebp, 0xffffffff
je 0x10065237
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1008f0d4]
push dword [esi]
call fcn.10064da0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10067f31
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100624a7
xor ebx, ebx
cmp dword [0x1008fea4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10068007
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100680e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100680e7
push eax
call fcn.10062439
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1008fea4], eax
call esi
push eax
call fcn.10062439
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1008fea8], eax
call esi
push eax
call fcn.10062439
mov dword [0x1008feac], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1006217a
test eax, eax
pop ecx
pop ecx
je 0x10067fd5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10061dc8
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10068007
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10062439
cmp eax, ebx
pop ecx
mov dword [0x1008feb4], eax
je 0x10068007
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10062439
pop ecx
mov dword [0x1008feb0], eax
mov eax, dword [0x1008feb0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1006808c
cmp dword [0x1008feb4], ecx
je 0x1006808c
push eax
call fcn.100624b0
push dword [0x1008feb4]
mov esi, eax
call fcn.100624b0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1006808c
cmp edi, ebx
je 0x1006808c
call esi
cmp eax, ebx
je 0x10068059
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10068059
test byte [ebp - 0x18], 1
jne 0x1006808c
lea eax, [ebp - 0x10]
push eax
call fcn.100621b1
test eax, eax
pop ecx
je 0x10068074
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10061dc8
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10068083
or dword [ebp + 0x10], 0x200000
jmp 0x100680c7
or dword [ebp + 0x10], 0x40000
jmp 0x100680c7
mov eax, dword [0x1008fea8]
cmp eax, dword [ebp - 8]
je 0x100680c7
push eax
call fcn.100624b0
cmp eax, ebx
pop ecx
je 0x100680c7
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100680c7
mov eax, dword [0x1008feac]
cmp eax, dword [ebp - 8]
je 0x100680c7
push eax
call fcn.100624b0
cmp eax, ebx
pop ecx
je 0x100680c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1008fea4]
call fcn.100624b0
cmp eax, ebx
pop ecx
je 0x100680e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100680e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x110c
call fcn.00462bf0
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x1108], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
lea ecx, [esp + 0x914]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.00461950
add esp, 0xc
push 0x800
lea edx, [esp + 0x114]
push 0
push edx
call fcn.00461950
add esp, 0xc
lea eax, [esp + 0x910]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00461950
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
xor esi, esi
jmp 0x401180
lea edx, [esp + 0x10]
push 0x80
push edx
call fcn.00401000
add esp, 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x914]
push ecx
lea edx, [esp + 0x118]
push edx
call ebx
lea eax, [esp + 0x110]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4011b3
mov ecx, dword [str..tmp]
mov edx, dword [0x49422c]
mov dword [eax], ecx
mov cx, word [0x494230]
mov dword [eax + 4], edx
lea edx, [esp + 0x110]
push edx
mov word [eax + 8], cx
call edi
test eax, eax
je 0x401206
inc esi
cmp esi, 0xa
jl 0x401180
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1108]
xor ecx, esp
call fcn.00461932
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x110]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401210
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x110]
mov ebx, eax
mov eax, dword [esp + 0xc]
push ecx
call fcn.00402250
mov ecx, dword [esp + 0x1114]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00461932
mov esp, ebp
pop ebp
ret

Function at 0x401250
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 0x10], 0
mov edx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
mov dword [esi + 0xc], edi
mov edi, dword [esp + 0x1c]
mov dword [esi + 0x10], edi
mov edi, dword [esp + 0x20]
lea eax, [esi + 8]
mov dword [esi], vtable.CSimpleThread.0
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 4], 0
mov dword [eax], 0xffffffff
mov dword [esi + 0x14], edi
je 0x4012ac
test ecx, ecx
je 0x4012ac
push eax
push 0
push edx
push ecx
push 0
push 0
call fcn.0046385d
add esp, 0x18
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
ret 0x18
Function at 0x401820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push esi
push 0x1418
call fcn.0044d7a0
mov esi, eax
add esp, 4
test esi, esi
je 0x40184d
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.004017d0
mov ecx, eax
jmp 0x40184f
xor ecx, ecx
xor eax, eax
mov edx, 0x4018e0
mov esi, vtable.CSimpleThread.0
mov dword [esp + 8], esi
mov dword [esp + 0x20], 0x4018e0
mov dword [esp + 0x24], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
test edx, edx
je 0x4018a4
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push 0x4018e0
push 0
push 0
call fcn.0046385d
add esp, 0x18
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4018bb
test eax, eax
je 0x4018bb
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0xc]
mov dword [esp + 8], esi
test eax, eax
je 0x4018ca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401950
Capabilities:
Delete file
Download url
Receive data

Disassembly:
sub esp, 0x414
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x410], eax
cmp word [esi], 0
mov eax, dword [esp + 0x418]
je 0x401a06
test eax, eax
je 0x4019ac
cmp word [eax], 0
je 0x4019ac
push 0
push 0
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x401a06
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00461932
add esp, 0x414
ret 4
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00461950
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [esp + 0xc]
push edx
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x401a06
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00461932
add esp, 0x414
ret 4
mov ecx, dword [esp + 0x410]
xor ecx, esp
xor eax, eax
call fcn.00461932
add esp, 0x414
ret 4

Function at 0x402050
Capabilities:
Check if file exists

Disassembly:
call fcn.00401f00
test eax, eax
je 0x40205f
mov eax, 1
ret
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x402091
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402095
push esi
call fcn.00401f80
add esp, 4
test eax, eax
jne 0x402095
push 1
call fcn.00461300
push eax
push esi
call fcn.00461580
add esp, 0xc
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x402b30
Capabilities:
Check if file exists

Disassembly:
push esi
call fcn.00401f00
mov esi, dword [esp + 8]
test eax, eax
jne 0x402b71
test esi, esi
je 0x402b6b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402b71
push esi
call fcn.00401f80
add esp, 4
test eax, eax
jne 0x402b71
push 1
call fcn.00461300
push eax
push esi
call fcn.00461580
add esp, 0xc
xor eax, eax
pop esi
ret 4
push esi
call sub.KERNEL32.dll_LoadLibraryW
pop esi
ret 4
Function at 0x402b80
Capabilities:
Check if file exists

Disassembly:
cmp dword [0x4a9464], 0
jne 0x402b8e
jmp fcn.00402b30
push esi
call fcn.00401f00
mov esi, dword [esp + 8]
test eax, eax
jne 0x402bb4
test esi, esi
je 0x402bbf
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402bb4
push esi
call fcn.00401f80
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x405be0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x48684b
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.00462bf0
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a60f8]
xor eax, esp
push eax
lea eax, [esp + 0x1028]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x13c]
push 0x494900
xor ebx, ebx
mov dword [esp + 0x20], eax
call fcn.00402250
lea eax, [esi + 0x138]
push 0x494900
mov dword [esp + 0x24], eax
call fcn.00402250
mov eax, dword [0x4a7e58]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a7e58
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x800
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x103c], ebx
call fcn.00461950
add esp, 0xc
lea ebx, [esp + 0x24]
mov ecx, esi
call fcn.00406880
test eax, eax
jne 0x405c92
lea eax, [edi - 0x10]
jmp 0x405d83
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405ca0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x24]
mov ebx, eax
push ecx
lea eax, [esp + 0x1c]
call fcn.00402250
push 0x800
lea edx, [esp + 0x828]
push 0
push edx
call fcn.00461950
mov esi, dword [esi + 0x11c]
mov ebp, dword [esp + 0x24]
add esp, 0xc
push esi
push ebp
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405d80
mov ecx, 0x400
lea edi, [esp + 0x824]
lea esi, [esp + 0x24]
call fcn.0040feb0
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x18]
call fcn.00401e30
lea eax, [esp + 0x824]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405d30
sub eax, edx
sar eax, 1
lea edx, [esp + 0x824]
mov ebx, eax
mov eax, dword [esp + 0x1c]
push edx
call fcn.00402250
lea eax, [ebp - 0x10]
mov dword [esp + 0x1030], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x405da5
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x1030], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405da3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1028]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.00461932
add esp, 0x1020
ret