joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50ff9e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x6b3b98], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x51009f
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0041c790
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movsx eax, byte [esi + str._EWID]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
movzx eax, word [ebp - 0x806]
push eax
movzx eax, word [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x80a]
push eax
movzx eax, word [ebp - 0x80c]
push eax
movzx eax, word [ebp - 0x80e]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
lea eax, [ebp - 0x804]
push str._04u__02u__02u__02u:_02u:_02u._03u_T_u___c____s_
push eax
call fcn.0050f8eb
mov esi, eax
mov edi, 0x800
lea eax, [ebp + 0x14]
mov ecx, edi
push eax
push 0
push dword [ebp + 0x10]
sub ecx, esi
push ecx
lea ecx, [ebp - 0x804]
add ecx, esi
push ecx
call fcn.00417cc1
add esi, eax
lea ecx, [edi - 2]
add esp, 0x44
mov eax, esi
cmp esi, ecx
cmova eax, ecx
inc esi
mov byte [ebp + eax - 0x804], 0xa
lea eax, [edi - 1]
cmp esi, eax
ja 0x51008a
mov eax, esi
cmp esi, edi
jae 0x5100ad
mov byte [ebp + eax - 0x804], 0
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041af05
leave
ret
call fcn.0041b55c
int3

Function at 0x5126d8
Capabilities:
Get common file path

Disassembly:
push 0x248
mov eax, 0x61788d
call fcn.004f0658
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x254], esi
mov ecx, esi
push 0x6609c8
mov dword [ebp - 4], edi
mov dword [ebp - 0x250], edi
call fcn.004182e0
push 0x20a
xor ebx, ebx
mov dword [ebp - 4], edi
lea eax, [ebp - 0x21c]
inc ebx
push edi
push eax
mov dword [ebp - 0x250], ebx
call fcn.0041c790
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x512786
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040c8f2
lea eax, [ebp - 0x234]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.005247d0
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.0041462c
lea ecx, [ebp - 0x24c]
call fcn.0050b5ef
lea ecx, [ebp - 0x234]
call fcn.0051278e
mov eax, esi
call fcn.004f0607
ret
Function at 0x5217cc
Capabilities:
Get file version info

Disassembly:
push 0x10c
mov eax, 0x619cbd
call fcn.004f0658
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
call fcn.0052156b
pop ecx
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x114]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x521838
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
jmp 0x5219bf
lea eax, [ebp - 0x110]
push eax
push edi
mov ecx, eax
call fcn.00520c8f
push dword [ebp - 0x110]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x521827
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x66099c
push dword [ebp - 0x110]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x521827
mov eax, dword [ebp - 0x104]
movzx eax, word [eax + 0x14]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0050f852
mov eax, dword [ebp - 0x104]
mov byte [ebp - 4], 2
movzx eax, word [eax + 0x16]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0050f852
mov eax, dword [ebp - 0x104]
mov byte [ebp - 4], 3
movzx eax, word [eax + 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0050f852
mov eax, dword [ebp - 0x104]
mov byte [ebp - 4], 4
movzx eax, word [eax + 0x12]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0050f852
mov edi, 0x661bbc
mov byte [ebp - 4], 5
push edi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00514778
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0051472d
push edi
push eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 7
push eax
call fcn.00514778
add esp, 0x44
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0051472d
push edi
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 9
push eax
call fcn.00514778
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xa
push ecx
push eax
push esi
call fcn.0051472d
add esp, 0x24
lea ecx, [ebp - 0xa0]
call fcn.0050b5ef
lea ecx, [ebp - 0xb8]
call fcn.0050b5ef
lea ecx, [ebp - 0xd0]
call fcn.0050b5ef
lea ecx, [ebp - 0xe8]
call fcn.0050b5ef
lea ecx, [ebp - 0x100]
call fcn.0050b5ef
lea ecx, [ebp - 0x40]
call fcn.0050b5ef
lea ecx, [ebp - 0x58]
call fcn.0050b5ef
lea ecx, [ebp - 0x70]
call fcn.0050b5ef
lea ecx, [ebp - 0x88]
call fcn.0050b5ef
lea ecx, [ebp - 0x28]
call fcn.0051278e
lea ecx, [ebp - 0x110]
call fcn.00457876
mov eax, esi
call fcn.004f0607
ret
Function at 0x5219da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov edi, 0x104
mov dword [ebp - 0x10c], esi
push edi
push 0
push eax
call fcn.0041c790
add esp, 0xc
mov dword [ebp - 0x10c], edi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 2
push str.CommercialId
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesDataCollection
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.004182e0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041af05
leave
ret

Function at 0x521a5a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov edi, 0x104
mov dword [ebp - 0x10c], esi
push edi
push 0
push eax
call fcn.0041c790
add esp, 0xc
mov dword [ebp - 0x10c], edi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0x10002
push str.BuildLabEx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.004182e0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041af05
leave
ret
Function at 0x52241a
Capabilities:
Query or enumerate registry value

Disassembly:
push pe_nt_image_headers32
mov eax, 0x619f7d
call fcn.004f0658
mov edi, ecx
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x134], edi
xor eax, eax
mov dword [edi], vtable.Microsoft::Applications::Events::PlatformAbstraction::DeviceInformationImpl.0
push 0xf
pop ebx
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ebx
mov dword [ebp - 4], eax
mov byte [edi + 4], al
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 1
call fcn.0053f70a
lea esi, [edi + 0x68]
xor ecx, ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ebx
mov byte [esi], cl
lea ebx, [edi + 0x80]
push 0xf
pop eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
mov byte [ebx], cl
add edi, 0x98
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov byte [edi], cl
mov eax, dword [ebp - 0x130]
mov byte [ebp - 4], 5
mov dword [eax + 0xb0], ecx
call fcn.005227d7
mov ecx, dword [ebp - 0x130]
mov dword [ecx + 0x1c], eax
lea eax, [ebp - 0x128]
push eax
call fcn.00522878
pop ecx
push eax
mov ecx, esi
call fcn.0041462c
lea ecx, [ebp - 0x128]
call fcn.0050b5ef
mov esi, 0x100
lea eax, [ebp - 0x110]
push esi
push 0
push eax
call fcn.0041c790
mov dword [ebp - 0x12c], esi
mov esi, dword [str.Unknown_Manufacturer]
push esi
call fcn.00601a40
add esp, 0x10
mov ecx, ebx
push eax
push esi
call fcn.00418271
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 2
push str.SystemManufacturer
push str.SYSTEMCurrentControlSetControlSystemInformation
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x52255a
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.004182e0
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.00477501
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 5
call fcn.0050b5ef
cmp dword [0x69b64c], 4
jl 0x522586
cmp dword [ebx + 0x14], 0x10
jb 0x52256b
mov ebx, dword [ebx]
call fcn.0050fb20
push ebx
push str.Device_Manufacturer_s
call fcn.0050fd3c
push eax
push 4
call fcn.0050ff9e
add esp, 0x10
mov esi, dword [str.Unknown_Model]
push esi
mov dword [ebp - 0x12c], 0x100
call fcn.00601a40
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00418271
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 2
push str.SystemProductName
push str.SYSTEMCurrentControlSetControlSystemInformation
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x522604
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.004182e0
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.00477501
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 5
call fcn.0050b5ef
cmp dword [0x69b64c], 4
jl 0x522630
cmp dword [edi + 0x14], 0x10
jb 0x522615
mov edi, dword [edi]
call fcn.0050fb20
push edi
push str.Device_Model_s
call fcn.0050fd3c
push eax
push 4
call fcn.0050ff9e
add esp, 0x10
call fcn.0052273c
mov ecx, dword [ebp - 0x130]
mov dword [ecx + 0x20], eax
mov eax, ecx
call fcn.004f0607
ret 4
Function at 0x5227d7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x24]
pop edi
sub eax, 0
je 0x522818
sub eax, 5
je 0x522814
sub eax, 1
je 0x52280f
sub eax, 3
je 0x52280f
xor eax, eax
leave
ret
push 2
pop eax
leave
ret
push 3
jmp 0x522811
xor eax, eax
inc eax
leave
ret

Function at 0x5230ca
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x616cf5
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x699008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi], vtable.Microsoft::Applications::Events::PlatformAbstraction::WorkerThread.0
call fcn.005233a0
lea ecx, [edi + 0xa8]
call fcn.00523076
lea esi, [edi + 0xa0]
mov ecx, esi
call fcn.005237f3
push 0xc
push dword [esi]
call fcn.00490bf8
pop ecx
pop ecx
lea esi, [edi + 0x98]
mov ecx, esi
call fcn.005237f3
push 0xc
push dword [esi]
call fcn.00490bf8
lea esi, [edi + 0x3c]
lea eax, [esi + 0x30]
push eax
call fcn.004e148b
push esi
call fcn.004dede5
lea eax, [edi + 0xc]
push eax
call fcn.004dede5
add esp, 0x14
cmp dword [edi + 8], 0
jne 0x523167
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
call fcn.004275c1
int3
Function at 0x524240
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
mov dword [edi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x524391
mov eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
inc ebx
mov esi, 0x3ff
mov ecx, eax
cmp dword [edi], edx
je 0x524391
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x5242bf
lea eax, [ecx + 0x2400]
cmp ax, si
ja 0x5243a0
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp - 1]
cmp ebx, 0x80
jae 0x5242dc
mov dl, bl
xor eax, eax
jmp 0x52430c
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, si
ja 0x5242ae
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp - 1], cl
jmp 0x5242b1
mov edx, ebx
cmp ebx, 0x800
jae 0x5242f1
shr edx, 6
xor eax, eax
or dl, 0xc0
inc eax
jmp 0x52430c
cmp ebx, 0x10000
jae 0x524303
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x52430b
shr edx, 0x12
or dl, 0xf0
push 3
pop eax
movzx esi, cl
mov ecx, dword [ebp - 0xc]
xor esi, 1
add esi, esi
mov dword [ebp - 8], eax
cmp eax, 3
cmovb esi, eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [edi]
inc esi
cmp eax, esi
jl 0x524391
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
jne 0x524342
cmp ecx, 3
jae 0x524349
mov eax, dword [edi]
mov byte [eax], dl
inc dword [edi]
dec esi
test esi, esi
jle 0x524368
imul ecx, ecx, 6
mov eax, dword [edi]
sub ecx, 6
mov edx, ebx
dec esi
shr edx, cl
and dl, 0x3f
or dl, 0x80
mov byte [eax], dl
inc dword [edi]
test esi, esi
jg 0x524350
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [ebp - 1], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [ebp + 0x10]
jne 0x524269
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x524399
Function at 0x53c145
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0xc]
push edi
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp dword [ebx + 0x10], eax
je 0x53c2b5
cmp dword [ebx + 0x10], 0x20
jne 0x53c2b5
xorps xmm0, xmm0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov edi, ecx
mov dword [ebp - 0x20], ecx
movlpd qword [ebp - 0xc], xmm0
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x53c1a3
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.0053cba6
pop ecx
cmp al, 0xff
je 0x53c2b5
mov ecx, dword [ebp - 0x18]
shl ecx, 4
movzx eax, al
add ecx, eax
inc edi
mov dword [ebp - 0x18], ecx
cmp edi, 8
jl 0x53c199
jmp 0x53c1fc
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x53c1d6
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.0053cba6
pop ecx
cmp al, 0xff
je 0x53c2b5
mov ecx, dword [ebp - 0x1c]
shl ecx, 4
movzx eax, al
add cx, ax
inc edi
movzx ecx, cx
mov dword [ebp - 0x1c], ecx
cmp edi, 0xc
jl 0x53c1cc
jmp 0x53c233
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x53c20d
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.0053cba6
pop ecx
cmp al, 0xff
je 0x53c2b5
mov ecx, dword [ebp - 0x20]
shl ecx, 4
movzx eax, al
add cx, ax
inc edi
movzx ecx, cx
mov dword [ebp - 0x20], ecx
cmp edi, 0x10
jl 0x53c203
xor al, al
mov cl, 1
mov byte [ebp - 0xd], al
mov byte [ebp - 0xe], cl
cmp edi, 0x20
jge 0x53c294
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov al, cl
xor al, 1
cmp dword [ebx + 0x14], 0x10
mov byte [ebp - 0xf], al
mov eax, ebx
jb 0x53c25e
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.0053cba6
pop ecx
mov cl, byte [ebp - 0xd]
shl cl, 4
add cl, al
cmp byte [ebp - 0xe], 1
mov byte [ebp - 0xd], cl
je 0x53c288
mov edx, dword [ebp - 0x14]
xor al, al
mov byte [ebp - 0xd], al
mov byte [edx], cl
inc edx
mov dword [ebp - 0x14], edx
mov cl, byte [ebp - 0xf]
inc edi
mov byte [ebp - 0xe], cl
cmp edi, 0x20
jl 0x53c24d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
mov word [esi + 4], ax
mov eax, dword [ebp - 0x20]
mov word [esi + 6], ax
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 0xc], ecx
jmp 0x53c2bb
mov eax, dword [ebp - 0x14]
mov byte [eax], 1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041af05
leave
ret
Function at 0x5411b9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x34
mov eax, 0x61d288
call fcn.004f0658
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push eax
call fcn.004182e0
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
call fcn.00524795
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.0050b5ef
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x54120a
test al, 0x10
jne 0x54120a
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.0051278e
mov al, bl
call fcn.004f0607
ret
Function at 0x558ed3
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x558ee5
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x558f2a
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret

Function at 0x558f9e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x558fa7
pop esi
ret

Function at 0x559561
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x559578
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8
Function at 0x58ade0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x88], 0
je 0x58ae37
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x88]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x88], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x58aeca
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x8c]
add ecx, 0x28
xor edx, edx
push edx
push ecx
call fcn.005b4ce0
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
jne 0x58ae98
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
sub ecx, 1
xor esi, esi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x98]
cdq
push edx
push eax
push esi
push ecx
call fcn.004f07a0
push edx
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.005b69d0
add esp, 0x10
mov eax, 7
jmp 0x58aeed
mov edx, 0x28
shl edx, 0
add edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov ecx, 0x20
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], cx
mov eax, 1
mov ecx, dword [ebp - 4]
mov word [ecx + 0x1e], ax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], eax
xor eax, eax
pop esi
add esp, 4
cmp ebp, esp
call fcn.00600dea
mov esp, ebp
pop ebp
ret
Function at 0x5c5ab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
mov dword [eax], 0
push 0
push 0x14
call fcn.005b49b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5c5aee
mov eax, 7
jmp 0x5c5bc6
cmp dword [0x69c30c], 0
je 0x5c5b08
push 0xc8
call fcn.005ab500
add esp, 4
test eax, eax
je 0x5c5b1d
xor ecx, ecx
mov edx, dword [ebp - 4]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
jmp 0x5c5b6d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x5c5c90
push 0
push 0
call fcn.004f7a6c
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x5c5b6d
xor eax, eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
jne 0x5c5bbc
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.00600dea
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov esi, esp
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov edi, esp
mov ecx, dword [ebp - 8]
call dword [0x62275c]
cmp edi, esp
call fcn.00600dea
call dword [ebp - 8]
add esp, 4
cmp esi, esp
call fcn.00600dea
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
pop edi
pop esi
add esp, 8
cmp ebp, esp
call fcn.00600dea
mov esp, ebp
pop ebp
ret
Function at 0x5ff5b0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.005ff5c0