joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50a7b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56e0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5bda40]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.00402900
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 0
call fcn.004458b0
push eax
mov ecx, esi
call fcn.00402900
lea ecx, [esp + 8]
call fcn.004020e0
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
add esp, 0x2c
ret

Function at 0x50aab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56e0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5bda40]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.00402900
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 0
call fcn.00410de0
push eax
mov ecx, esi
call fcn.00402900
lea ecx, [esp + 8]
call fcn.004020e0
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
add esp, 0x2c
ret

Function at 0x50ab80
Capabilities:
Encode data using base64

Disassembly:
push esi
mov esi, edx
push edi
mov edi, eax
test esi, esi
je 0x50ac8b
test edi, edi
jle 0x50ac8b
cmp edi, 3
jl 0x50ac25
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx*4]
sub eax, edx
neg eax
add edi, eax
push ebx
jmp 0x50abc0
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
or eax, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
inc ecx
and eax, 0xf
add eax, eax
add eax, eax
shr ebx, 6
or eax, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
sub edx, 1
jne 0x50abc0
pop ebx
test edi, edi
jle 0x50ac83
movzx edx, byte [esi]
shr edx, 2
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov al, byte [esi]
and al, 3
inc ecx
shl al, 4
cmp edi, 1
jle 0x50ac4d
mov dl, byte [esi + 1]
shr dl, 4
or al, dl
movzx eax, al
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
cmp edi, 2
jge 0x50ac6e
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], al
inc ecx
pop edi
mov byte [ecx], 0
mov al, 1
pop esi
ret
movzx eax, byte [esi + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
pop edi
mov byte [ecx], 0
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret
Function at 0x50b470
Capabilities:
Initialize winsock library
Resolve dns
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56d5d6
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5bda40]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x5bda40]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
push 0x5a1ff6
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edi
mov esi, edx
mov dword [esp + 0x14], ebx
call fcn.00401fb0
lea eax, [esp + 0x5c]
push eax
push 0x202
mov dword [esp + 0x260], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x50b503
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.00401ff0
lea ecx, [esp + 0x24]
call fcn.00402030
mov eax, edi
jmp 0x50b68c
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x50b535
push esi
call sub.WS2_32.dll_gethostbyname
cmp eax, ebx
jne 0x50b52a
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea edx, [esp + 0x24]
push edx
jmp 0x50b4ec
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
call sub.IPHLPAPI.DLL_IcmpCreateFile
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x50b550
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [esp + 0x24]
push eax
jmp 0x50b4ec
xor eax, eax
push 0x3b
lea ecx, [esp + 0x211]
push ebx
mov dword [esp + 0x20], eax
push ecx
mov dword [esp + 0x28], eax
mov byte [esp + 0x24], 1
mov byte [esp + 0x1f8], bl
mov dword [esp + 0x1f9], eax
mov dword [esp + 0x1fd], eax
mov dword [esp + 0x201], eax
mov dword [esp + 0x205], eax
mov dword [esp + 0x209], eax
mov dword [esp + 0x20d], eax
mov dword [esp + 0x211], eax
mov word [esp + 0x215], ax
mov byte [esp + 0x217], al
mov byte [esp + 0x218], bl
call fcn.0053f680
mov edi, dword [ebp + 8]
add esp, 0xc
mov esi, 1
mov edx, edi
dec edi
test edx, edx
je 0x50b661
push 0xbb8
push 0x3c
lea eax, [esp + 0x214]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push 0x20
lea edx, [esp + 0x200]
push edx
push eax
push ecx
call sub.IPHLPAPI.DLL_IcmpSendEcho
test eax, eax
je 0x50b655
cmp edi, ebx
jne 0x50b646
mov edx, dword [esp + 0x20c]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x44]
call fcn.00401fb0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x25c], 1
call fcn.00445680
lea ecx, [esp + 0x40]
mov byte [esp + 0x258], bl
call fcn.00402030
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x20c], ecx
jne 0x50b655
xor esi, esi
inc byte [esp + 0x18]
cmp esi, ebx
jne 0x50b5c8
mov edx, dword [esp + 0x10]
push edx
call sub.IPHLPAPI.DLL_IcmpCloseHandle
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00401ff0
lea ecx, [esp + 0x24]
call fcn.00402030
mov eax, esi
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00538a54
mov esp, ebp
pop ebp
ret
Function at 0x50b710
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x56f858
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
mov eax, dword [0x5bda40]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x20], ebx
cmp esi, ebx
je 0x50b90f
cmp dword [esp + 0x34], ebx
je 0x50b90f
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x14]
push eax
push 0x57f754
push 1
push ebx
push 0x57f864
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x50b8d2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
cmp eax, ebx
jl 0x50b8d2
push esi
lea ecx, [esp + 0x14]
call fcn.00406900
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
call fcn.00406b60
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.00406cd0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.00406980
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.004072c0
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx]
lea ecx, [esp + 0x10]
call fcn.004072e0
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x24]
push edx
call eax
cmp eax, ebx
jge 0x50b803
mov dword [esp + 0x2c], 0xffffffff
jmp 0x50b8c9
or ebp, 0xffffffff
cmp edi, ebx
je 0x50b874
lea ecx, [esp + 0x18]
call fcn.00410610
push 0x104
push 0x104
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 2
call fcn.004070d0
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
push ebp
lea ecx, [esp + 0x1c]
call fcn.00407110
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
mov esi, dword [ecx]
push edx
lea ecx, [esp + 0x1c]
call fcn.004072e0
mov ecx, dword [esi + 0x44]
push eax
mov eax, dword [esp + 0x1c]
push eax
call ecx
cmp eax, ebx
lea ecx, [esp + 0x18]
jge 0x50b86b
call fcn.004072c0
jmp 0x50b8c5
mov byte [esp + 0x2c], bl
call fcn.004072c0
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
je 0x50b88d
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x2c]
call eax
cmp eax, ebx
jl 0x50b8c5
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x57f894
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jl 0x50b8c5
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, ebx
jl 0x50b8c5
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], ebp
lea ecx, [esp + 0x10]
call fcn.004072c0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x50b8e2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x50b8f2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x50b950
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x56d599
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5bda40]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0xc], 0
call fcn.00410610
lea eax, [esp + 8]
push eax
push 0
mov dword [esp + 0x20], 0
push 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x50b9de
push 0x104
mov ecx, esi
call fcn.004070d0
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00407110
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x56d558
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5bda40]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0
call fcn.0041cbb0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push 0xffffffffffffffff
mov esi, ecx
lea ecx, [esp + 0x1c]
call fcn.00407110
lea ecx, [esp + 0x18]
call fcn.004072c0
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret

Function at 0x50bbb0
Capabilities:
Create thread
Resume thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [edi]
test eax, eax
jne 0x50bbbd
xor al, al
pop edi
ret
cmp dword [eax + 4], 0
je 0x50bbb9
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x50ba70
push 0
push 0
call fcn.0053b9cc
mov edx, dword [edi]
mov dword [edx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], 0
jne 0x50bc12
or esi, 0xffffffff
mov dword [eax + 0x10], esi
mov edi, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x50bc02
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi + 0x10], esi
pop esi
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
xor al, al
pop edi
ret
mov byte [eax + 8], 1
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
cmp eax, 0xffffffff
jne 0x50bc34
mov esi, dword [edi]
call fcn.0050bb00
mov edx, dword [edi]
mov byte [edx + 8], 0
pop esi
mov al, 1
pop edi
ret
Function at 0x50bc40
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x56f818
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5bda40]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
push edi
mov eax, dword [0x5bda40]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8c]
push eax
lea ecx, [esp + 0x40]
call fcn.004020a0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x84], 0
call fcn.0042bf40
dec eax
push eax
lea ecx, [esp + 0x40]
call fcn.004f7c70
cmp word [eax], 0x5c
je 0x50bcb3
push 0x5c
push 1
lea ecx, [esp + 0x44]
call fcn.004f7bf0
lea ecx, [esp + 0x1c]
call fcn.00411210
lea ecx, [esp + 0x58]
call fcn.00402070
lea ecx, [esp + 0x3c]
mov byte [esp + 0x84], 2
xor esi, esi
xor edi, edi
call fcn.0042bf40
test eax, eax
jle 0x50bd29
mov edi, edi
push edi
lea ecx, [esp + 0x40]
call fcn.004f7c70
cmp word [eax], 0x5c
je 0x50bd00
push edi
lea ecx, [esp + 0x40]
call fcn.004f7c70
movzx eax, word [eax]
push eax
jmp 0x50bd10
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x20]
call fcn.004113f0
push 0x5c
push 1
lea ecx, [esp + 0x60]
call fcn.004f7bf0
lea ecx, [esp + 0x3c]
inc edi
call fcn.0042bf40
cmp edi, eax
jl 0x50bce0
lea ecx, [esp + 0xc]
call fcn.004316d0
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
call fcn.0041d680
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
mov edx, dword [eax + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], edx
call fcn.00445a90
push eax
lea ecx, [esp + 0x10]
call fcn.00420000
test al, al
je 0x50bdb9
mov edi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
nop
push 0
lea ecx, [esp + 0x10]
call fcn.004f7ca0
mov ecx, eax
call fcn.00402100
push eax
call edi
mov esi, eax
neg esi
push 0
lea ecx, [esp + 0x38]
sbb esi, esi
push ecx
lea ecx, [esp + 0x14]
neg esi
call fcn.004f7cc0
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
call fcn.00445a90
push eax
lea ecx, [esp + 0x10]
call fcn.00420000
test al, al
jne 0x50bd70
lea ecx, [esp + 0x58]
call fcn.004020e0
lea ecx, [esp + 0x1c]
call fcn.00411380
lea ecx, [esp + 0x3c]
call fcn.004020e0
mov eax, esi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00538a54
add esp, 0x7c
ret
Function at 0x50be00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5742a6
mov eax, dword fs:[0]
push eax
mov eax, 0x40d8
call fcn.0053fde0
mov eax, dword [0x5bda40]
xor eax, esp
mov dword [esp + 0x40d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bda40]
xor eax, esp
push eax
lea eax, [esp + 0x40ec]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40fc]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x90]
call fcn.004020a0
xor ebx, ebx
lea ecx, [esp + 0x8c]
lea esi, [esp + 0xa8]
mov dword [esp + 0x40f4], ebx
call fcn.00503950
lea ecx, [esp + 0x8c]
mov byte [esp + 0x40f4], 2
call fcn.004020e0
lea ecx, [esp + 0xa8]
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x18], 0x50d4a0
mov dword [esp + 0x1c], 0x50d4c0
mov dword [esp + 0x34], 0x50d4a0
mov dword [esp + 0x38], 0x50d4c0
call fcn.00402050
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
jne 0x50bef5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
je 0x50bef5
lea ecx, [esp + 0xa8]
call fcn.00402030
lea eax, [ebx + 1]
jmp 0x50c04d
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x50d450
mov dword [esp + 0x24], 0x50d480
mov dword [esp + 0xc4], 0x50fcc0
mov dword [esp + 0xc8], 0x50fd20
mov dword [esp + 0xcc], 0x50fd30
mov dword [esp + 0xd0], 0x50fd90
mov dword [esp + 0xd4], edx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xd8], ebx
call fcn.0050fdb0
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
call fcn.0050f600
add esp, 8
mov dword [esp + 0x30], eax
cmp eax, ebx
je 0x50bfcb
lea edi, [esp + 0x18]
lea eax, [esp + 0x3c]
call fcn.0050d6b0
jmp 0x50c003
mov ecx, dword [esp + 0x58]
cmp ecx, ebx
jbe 0x50bff6
mov eax, dword [esp + 0x4c]
add eax, 8
lea ebx, [ebx]
cmp byte [eax + 0x11], bl
jne 0x50bfee
mov edx, dword [eax]
add esi, edx
mov edx, dword [eax + 4]
adc ebp, edx
add eax, 0x20
sub ecx, 1
jne 0x50bfe0
lea eax, [esp + 0x18]
push ebx
push eax
call dword [esp + 0x24]
add esp, 8
lea edi, [esp + 0x18]
lea eax, [esp + 0x3c]
call fcn.0050d6b0
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x50c034
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x50c02c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x50c034
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0xa8]
mov dword [eax], esi
mov dword [eax + 4], ebp
call fcn.00402030
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40d0]
xor ecx, esp
call fcn.00538a54
add esp, 0x40e4
ret
Function at 0x50d340
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
jne 0x50d351
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [edi], 0
mov edi, edi
mov eax, 0x400000
cmp esi, 0x400000
ja 0x50d36f
mov eax, esi
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x50d3a6
test ecx, ecx
je 0x50d39f
test esi, esi
ja 0x50d360
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x50fdb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x5cc040], ecx
inc edx
cmp edx, 0x100
jb 0x50fdb3
cmp edx, 0x800
jae 0x50fe89
lea ecx, [ecx]
mov eax, dword [edx*4 + 0x5cbc40]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x5cc040]
inc edx
mov dword [edx*4 + 0x5cc03c], eax
cmp edx, 0x800
jb 0x50fe60
mov dword [0x5ca13c], 0x510e80
call fcn.00511060
test eax, eax
jne 0x50fea6
mov dword [0x5ca13c], 0x510f30
pop ecx
ret
Function at 0x510620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb0
mov eax, dword [0x5bda40]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
push esi
push edi
xor ebx, ebx
mov edi, 1
mov esi, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
cmp dword [eax + 0x14], edi
je 0x510667
mov eax, edi
jmp 0x5107bd
mov eax, dword [eax + 0x10]
push ecx
movzx ecx, byte [eax]
push ecx
lea ecx, [esp + 0x30]
call fcn.005110f0
add esp, 8
cmp eax, ebx
jne 0x5107bd
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], edi
lea ecx, [ecx]
mov eax, 0x40000
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
cmp dword [esp + 0xcc], ebx
ja 0x5106fc
jb 0x5106f1
cmp dword [esp + 0xc8], eax
jae 0x5106fc
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
call eax
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x5107a9
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xd8]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
lea esi, [esp + 0x38]
call fcn.005112e0
mov esi, eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x24], eax
add esp, 0x10
sub dword [esp + 0xc8], eax
sbb dword [esp + 0xcc], ebx
cmp esi, ebx
jne 0x5107a9
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x51078e
cmp eax, ebx
jne 0x510778
cmp edi, dword [esp + 0x4c]
je 0x51078e
push eax
mov eax, dword [ebp + 4]
push ebp
call eax
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x5106d0
jmp 0x5107a9
cmp ecx, dword [esp + 0xd4]
jne 0x5107a4
cmp dword [esp + 0x14], ebx
jne 0x5107a4
cmp dword [esp + 0x20], 1
je 0x5107a9
mov esi, 1
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 4]
push ecx
push eax
call edx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00538a54
add esp, 0xb0
ret