joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51fad0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.00525f50
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push 0x7b0580
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x51fbc9
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.0051fbe0
test eax, eax
jne 0x51fbc9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.0051fbe0
test eax, eax
jne 0x51fbc9
lea edx, [esp + 0x10]
push 0x7b055c
push edx
call fcn.005574e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x51fb9a
lea eax, [esp + 0x10]
push 0x7b0558
push eax
call fcn.005574e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x51fb9a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x51fb9d
mov byte [esi], 0
push 0x7afd20
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x51fbe0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x51fc42
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x525e90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x57e618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x525f40
mov eax, dword [0x7be38c]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00568d3b
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00568d8a
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00568ce7
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x525f27
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x525f27
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00568957
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x529040
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57eaa0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5291e7
mov ecx, dword [0x7be38c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x52913c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00527d60
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.00568a44
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00568957
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x7afd20
call fcn.005689c5
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00528120
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.00568a44
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00568957
lea ecx, [esp + 0xc]
call fcn.00568e46
mov ecx, dword [esp + 0xc]
push 0x7b075c
push ecx
call fcn.00556384
add esp, 8
test eax, eax
je 0x529164
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x52909d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00568957
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00568957
jmp 0x5291eb
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00528de0
test eax, eax
push 0
je 0x5291cf
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00527480
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x5291b5
cmp eax, 0x64
jg 0x5291a3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x529140
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x529140
cmp eax, 0x64
jge 0x52913c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x529140
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00527480
mov esi, eax
jmp 0x529140
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x5291f5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x539770
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x5397bc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x5397bc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x5397a6
push eax
call ebp
test ax, ax
jl 0x5397b4
inc esi
add edi, 4
cmp esi, 6
jb 0x539798
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00539470
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x53bdf0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x53be50
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x53be50
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x53be50
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x53be50
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x53be60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x53f590
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x53f5f6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x53f5f6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x53f5d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x53f980
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x53f9b8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x5405f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x540639
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x540ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57f1e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00540660
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.005406e0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.005406e0
lea ecx, [esi + 0xc]
call fcn.005688e2
lea ecx, [esi + 0x10]
call fcn.005688e2
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00541af0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00541af0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00541af0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00568957
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00568957
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x543a50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
cmp di, 0x76d
jb 0x543ba5
cmp di, 0x801
ja 0x543ba5
mov ebx, dword [esp + 0x28]
cmp bx, 1
jb 0x543ba5
cmp bx, 0xc
ja 0x543ba5
mov al, byte [esp + 0x30]
test al, al
je 0x543aa4
push edi
call fcn.00543fe0
add esp, 4
cmp ax, bx
je 0x543aa4
mov byte [esp + 0x30], 0
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x14]
mov word [esi], di
mov edi, dword [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
mov word [edi], bx
mov ebx, dword [esp + 0x30]
push ecx
lea eax, [esp + 0x24]
mov word [ebp], bx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ebx
push ecx
push edx
call fcn.00543bb0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
call fcn.005439d0
add esp, 0x34
mov ebx, eax
xor eax, eax
inc eax
cmp eax, 0x64
mov dword [esp + 0x34], eax
jg 0x543ba5
test ebx, ebx
jne 0x543b39
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x30]
cmp al, cl
je 0x543b9b
test al, al
je 0x543b2c
push 0xffffffffffffffe1
jmp 0x543b2e
push 0x1f
push ebp
push edi
push esi
call fcn.00543980
add esp, 0x10
neg ebx
push ebx
push ebp
push edi
push esi
call fcn.00543980
lea edx, [esp + 0x23]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push eax
mov ax, word [ebp]
lea edx, [esp + 0x34]
push ecx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ecx
push edx
call fcn.00543bb0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
call fcn.005439d0
mov ebx, eax
mov eax, dword [esp + 0x78]
add esp, 0x44
jmp 0x543b06
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
Function at 0x545230
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x57f6a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push 0x81b2e4
lea ecx, [esp + 4]
call fcn.005689c5
push 0x7bd7e8
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0
call fcn.005689c5
push 0x7bd7e4
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.005689c5
push 0x7bd7e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.005689c5
push 0x7bd7dc
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.005689c5
push 0x7bd7d8
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
call fcn.005689c5
push 0x7bd7d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 5
call fcn.005689c5
push 0x7bd7d0
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.005689c5
push 0x7bd7cc
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 7
call fcn.005689c5
push 0x7bd7c8
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 8
call fcn.005689c5
push 0x7bd7c4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 9
call fcn.005689c5
push 0x7bd7c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 0xa
call fcn.005689c5
push 0x7bd7bc
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 0xb
call fcn.005689c5
mov eax, dword [esp + 0x44]
mov byte [esp + 0x3c], 0xc
cmp eax, 1
jge 0x545360
cmp eax, 0xc
jle 0x545360
mov ecx, dword [esp + 0x48]
push 0x81b2e4
call fcn.00568a94
jmp 0x54536e
mov ecx, dword [esp + 0x48]
lea eax, [esp + eax*4]
push eax
call fcn.00568a44
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 0xb
call fcn.00568957
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0xa
call fcn.00568957
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 9
call fcn.00568957
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 8
call fcn.00568957
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 7
call fcn.00568957
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 6
call fcn.00568957
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 5
call fcn.00568957
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 4
call fcn.00568957
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.00568957
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 2
call fcn.00568957
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 1
call fcn.00568957
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 0
call fcn.00568957
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00568957
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x5477b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x57f9b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebp
mov dword [esp + 8], ecx
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00547e30
lea ecx, [esp + 0x34]
mov dword [esp + 0x18c], 0
call fcn.00547e30
lea ecx, [esp + 0x14]
mov byte [esp + 0x18c], 1
call fcn.00547e30
mov eax, dword [esp + 0x1a0]
mov edi, dword [esp + 0x19c]
mov ebp, dword [esp + 0x198]
cmp eax, 1
mov byte [esp + 0x18c], 2
jne 0x54782f
mov dword [edi], 0
mov dword [ebp], 0
mov eax, dword [esp + 0x194]
lea ecx, [esp + 0x24]
push eax
call fcn.00547ea0
lea ecx, [esp + 0x24]
push ecx
call fcn.00548480
add esp, 4
lea ecx, [esp + 0x24]
push 0x7bd9d0
call fcn.00547f20
lea edx, [esp + 0x44]
lea ecx, [esp + 0x24]
push edx
call fcn.004ae480
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x5479b4
mov esi, 0x7bd9c4
lea eax, [esp + 0x70]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x5478aa
test cl, cl
je 0x5478a6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x5478aa
add eax, 2
add esi, 2
test cl, cl
jne 0x547886
xor eax, eax
jmp 0x5478af
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x547998
mov esi, 0x7bd9c0
lea eax, [esp + 0x70]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x5478e4
test cl, cl
je 0x5478e0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x5478e4
add eax, 2
add esi, 2
test cl, cl
jne 0x5478c0
xor eax, eax
jmp 0x5478e9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x547998
test byte [esp + 0x44], 0x10
mov eax, dword [esp + 0x194]
push eax
jne 0x547941
lea ecx, [esp + 0x38]
call fcn.00547ea0
lea ecx, [esp + 0x34]
push ecx
call fcn.00548480
add esp, 4
lea edx, [esp + 0x70]
lea ecx, [esp + 0x34]
push edx
call fcn.00547f20
push 0
lea ecx, [esp + 0x38]
call fcn.004ae480
push eax
call fcn.00558ddf
add esp, 8
test eax, eax
jne 0x547998
inc dword [ebp]
jmp 0x547998
lea ecx, [esp + 0x18]
call fcn.00547ea0
lea ecx, [esp + 0x14]
push ecx
call fcn.00548480
add esp, 4
lea edx, [esp + 0x70]
lea ecx, [esp + 0x14]
push edx
call fcn.00547f20
push 0
lea ecx, [esp + 0x18]
call fcn.004ae480
push eax
call fcn.00558ddf
add esp, 8
test eax, eax
jne 0x547998
mov ecx, dword [edi]
push eax
inc ecx
push edi
mov dword [edi], ecx
push ebp
lea ecx, [esp + 0x20]
call fcn.004bbb00
mov ecx, dword [esp + 0x1c]
push eax
call fcn.005477b0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x54787d
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp]
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add esi, eax
mov byte [esp + 0x18c], 1
call fcn.00547e50
lea ecx, [esp + 0x34]
mov byte [esp + 0x18c], 0
call fcn.00547e50
lea ecx, [esp + 0x24]
mov dword [esp + 0x18c], 0xffffffff
call fcn.00547e50
mov ecx, dword [esp + 0x184]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x184
ret 0x10
Function at 0x548270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57fa18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00547e30
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.00547ea0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.005481a0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.00547e50
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x548540
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x57fa90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00547e30
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.00547e30
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x38], 1
call fcn.00547ea0
cmp dword [esp + 0x40], ebx
jne 0x5485c8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x34], bl
call fcn.00547e50
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00547e50
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
call fcn.00548480
add esp, 4
lea ecx, [esp + 0xc]
mov esi, 1
call fcn.004ac8b0
cmp eax, esi
jb 0x54864b
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
push esi
push 0x7bd9d4
lea ecx, [esp + 0x1c]
call fcn.00548270
cmp eax, 1
jne 0x54863d
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00548010
push ebx
lea ecx, [esp + 0x20]
call fcn.004bbb00
push eax
call fcn.00558ddf
add esp, 8
test eax, eax
jge 0x54863d
push ebx
lea ecx, [esp + 0x20]
call fcn.004ae480
push eax
call edi
test eax, eax
je 0x548680
lea ecx, [esp + 0xc]
inc esi
call fcn.004ac8b0
cmp esi, eax
jbe 0x5485ed
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.00547e50
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00547e50
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.00547e50
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00547e50
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x54a2d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
cmp ebx, 1
push edi
jl 0x54a2eb
cmp ebx, 8
jg 0x54a2eb
mov eax, 1
jmp 0x54a2ed
xor eax, eax
mov esi, dword [esp + 0x14]
push str.bad_pack_level
push eax
push esi
call fcn.00548b50
mov eax, dword [esi + 0x6af70]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af78], ebp
jne 0x54a324
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
mov ecx, 0x7fff
xor eax, eax
lea edi, [esi + 0x4af70]
mov dword [esi + 0x6af6c], ebp
rep stosd dword es:[edi], eax
mov ax, word [ebx*8 + 0x784ff2]
xor ecx, ecx
mov dword [esi + 0x6af98], eax
mov cx, word [ebx*8 + 0x784ff0]
xor edx, edx
mov dword [esi + 0x6af9c], ecx
mov dx, word [ebx*8 + 0x784ff4]
xor eax, eax
mov dword [esi + 0x6afa0], edx
mov ax, word [ebx*8 + 0x784ff6]
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x54a385
mov eax, dword [esp + 0x1c]
or byte [eax], 4
jmp 0x54a391
cmp ebx, 8
jl 0x54a391
mov eax, dword [esp + 0x1c]
or byte [eax], 2
lea edi, [esi + 0x1af70]
push 0x10000
push edi
push esi
mov dword [esi + 0x6af84], ebp
mov dword [esi + 0x6af74], ebp
call dword [esi + 0xc]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af90], eax
je 0x54a40a
cmp eax, 0xffffffff
je 0x54a40a
cmp eax, 0x106
mov dword [esi + 0x6af8c], ebp
jae 0x54a3d5
push esi
call fcn.0054a620
add esp, 4
mov dword [esi + 0x6af7c], ebp
xor eax, eax
mov edx, dword [esi + 0x6af7c]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x3ff
and ecx, 0x7fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0x6af7c], ecx
jb 0x54a3dd
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x54b6a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x54b6ab
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x54b7ae
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x785040]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x785040]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x785040]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x785040]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x785040]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x785040]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x785040]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x785040]
xor eax, edx
inc ecx
dec edi
jne 0x54b6c6
pop edi
test esi, esi
je 0x54b7d0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x785040]
xor eax, edx
inc ecx
dec esi
jne 0x54b7b2
pop esi
pop ebx
not eax
ret