joyce8/EMBER2024-capa huggingface dataset:
Function at 0x501e20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x501e2f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x501f17
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x5e22c8]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5e22c8]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x5e22c8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5e22c8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5e22c8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5e22c8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5e22c8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5e22c8]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x501e40
pop ebp
test edi, edi
je 0x501f3c
jmp 0x501f20
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x5e22c8]
add ecx, 1
sub edi, 1
jne 0x501f20
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x501f50
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5e22c8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5e22c8]
mov dword [edx + 8], ecx
ret

Function at 0x501fa0
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x5e22c8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x5e22c8]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x502790
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x5027c2
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5027b8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x5027d5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.0057b7b0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x5029a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x5029e5
cmp byte [esi + 1], 0
je 0x5029ed
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x502a02
cmp byte [esi + 1], 0
je 0x5029f4
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x502a0b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x5029be
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x502a0b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x502a1f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.005798ba
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x502a3d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0xffffffff
jbe 0x502b53
jmp 0x502a60
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x502a71
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x502a8a
mov ebp, 0x404
cmp byte [esi], 0
je 0x502aaf
cmp byte [esi + 1], 0
je 0x502b53
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x502ab2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x502ada
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x502ad4
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x502b00
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x502aeb
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0057b7b0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x502b53
lea eax, [ebp - 3]
test eax, eax
jl 0x502b3e
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x502b2e
cmp byte [eax + ebx + 1], 0x4b
jne 0x502b2e
cmp byte [eax + ebx + 2], 5
jne 0x502b2e
cmp byte [eax + ebx + 3], 6
je 0x502b34
test eax, eax
jge 0x502b10
jmp 0x502b3e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x502b53
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x502a54
push ebx
call fcn.005797dd
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x503270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x503288
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x50327d
cmp dword [edi + 0x7c], ebx
je 0x503297
call fcn.00503660
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00503090
add esp, 0xc
test eax, eax
je 0x5032bd
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.005798ba
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x5032ff
push 0x4000
call fcn.005798ba
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
jne 0x50330b
push ebp
call fcn.005797dd
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
cmp eax, ebx
mov dword [ebp + 0x18], ebx
jne 0x503354
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.00502210
test eax, eax
jne 0x503354
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x50337e
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x503387
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
mov al, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg al
lea edx, [ebp + 0x70]
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
sbb eax, eax
and eax, 0xc
cmp esi, ebx
mov dword [ebp + 0x7c], eax
je 0x5033c3
mov cl, byte [esi]
cmp cl, bl
je 0x5033c3
call fcn.00501f50
add esi, 1
jne 0x5033b3
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x503750
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push ebp
mov ebp, dword [esp + 0x10]
push edi
jne 0x503821
cmp dword [esi + 4], 0xffffffff
jne 0x503821
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x503781
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x5037c3
cmp ax, 0x2f
je 0x5037c3
add edi, 0xfffffffe
jmp 0x5037b0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x5037b0
mov eax, dword [0x5d616c]
mov dword [edi], eax
cmp ebp, 1
jne 0x5037e4
push ebp
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x5037e4
mov eax, 0x2000000
pop edi
pop ebp
pop ecx
ret 8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edx
push ebx
call fcn.00502670
add esp, 0x10
test eax, eax
jne 0x503806
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ecx
ret 8
call fcn.00502b70
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
pop ecx
ret 8
pop edi
mov eax, 0x1000000
pop ebp
pop ecx
ret 8
Function at 0x506a80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x506a8f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x506b77
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x5e0a90]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5e0a90]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x5e0a90]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5e0a90]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5e0a90]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5e0a90]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5e0a90]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5e0a90]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x506aa0
pop ebp
test edi, edi
je 0x506b9c
jmp 0x506b80
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x5e0a90]
add ecx, 1
sub edi, 1
jne 0x506b80
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x506bb0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5e0a90]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5e0a90]
mov dword [edx + 8], ecx
ret
Function at 0x506e10
Capabilities:
Encode data using xor
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x506ef0
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x506e44
cmp dword [esi + 0x40], edi
jae 0x506e44
push eax
call fcn.0055517b
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x506e5b
lea eax, [edi + edi]
push eax
call fcn.00555176
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.0057b7b0
add esp, 0xc
cmp edi, ebp
jbe 0x506eec
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movzx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5e0a90]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
add ecx, 1
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5e0a90]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
add ebp, 1
cmp ebp, dword [esp + 0x18]
jb 0x506e71
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x506f29
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x506f11
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.0057b7b0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x506f4a
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x507110
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esi + 0x84]
test ecx, ecx
push edi
je 0x50715e
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x50719b
sub edi, eax
cmp edi, edx
jbe 0x507134
mov edi, edx
push edi
add eax, ecx
push eax
push ebx
call fcn.0057b7b0
mov edx, dword [esi + 0x78]
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
add esp, 0xc
mov eax, edi
mov ecx, ebx
call fcn.00506a80
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop ecx
ret
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x507194
push 0
lea ecx, [esp + 8]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x50719b
mov edi, dword [esp + 4]
mov edx, dword [esi + 0x78]
add dword [esi + 0x74], edi
mov eax, edi
mov ecx, ebx
call fcn.00506a80
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop ecx
ret
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop ecx
ret
Function at 0x5092f0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5a20c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov eax, dword [esi + 4]
mov eax, dword [eax - 0xc]
add esi, 4
test eax, eax
jne 0x50936b
push 0x5fffa0
lea ecx, [esp + 0x10]
push 0x63c664
push ecx
call fcn.00401ba0
add esp, 0xc
push eax
mov ecx, edi
mov dword [esp + 0x24], 0
call fcn.00402330
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x5093e7
push 0x5d616c
lea ecx, [esp + 0x18]
push 0x63c664
push ecx
call fcn.00401ba0
add esp, 0xc
push esi
push eax
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x2c], 1
call fcn.00401ae0
add esp, 0xc
push eax
mov ecx, edi
mov byte [esp + 0x24], 2
call fcn.00402330
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5093cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5093f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi]
push edi
call fcn.0044adc0
add esp, 4
test eax, eax
jne 0x50940a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x50db10
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0xffffffff
push edi
je 0x50db3f
mov eax, dword [esi + 4]
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0xc]
sub ecx, eax
jns 0x50db33
xor ecx, ecx
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x50db43
mov ecx, eax
jmp 0x50db43
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov edx, dword [esi + 4]
push 0
push edi
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [edi], 0
pop edi
pop esi
jne 0x50db63
xor eax, eax
ret 0xc

Function at 0x50db90
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
je 0x50dbac
mov eax, dword [esi + 0xc]
sub eax, ecx
pop esi
ret
Function at 0x50de60
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 0
mov esi, ecx
push 0
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esi + 4]
push ecx
push 0
push esi
push 0x50ea20
push 0
push 0
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov ecx, dword [0x63c470]
mov dword [esi + 0x68], ecx
call fcn.0050e610
mov ecx, esi
mov dword [esi + 0x64], eax
call fcn.0050dfe0
mov eax, 1
pop esi
ret
Function at 0x51fbe0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x274]
test eax, eax
je 0x51f95c
mov ecx, dword [esi + 0x278]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x51f961
call fcn.0057803b
mov ecx, dword [esi + 0x274]
lea eax, [edi*8]
sub eax, edi
mov edx, dword [ecx + eax*4 + 0x18]
cmp dword [edx - 0xc], 0
lea eax, [ecx + eax*4]
je 0x51f9a5
mov eax, dword [eax + 0x10]
sub eax, 1
je 0x51f9a7
sub eax, 1
jne 0x51f9a5
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x51f9a5
mov eax, dword [esi + 0x30]
test eax, eax
je 0x51f9a5
mov esi, dword [esi + 0x38]
push esi
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
mov ecx, esi
pop esi
jmp 0x51fbe0
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x6336a0]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x130]
test eax, eax
push edi
mov edi, edx
mov dword [ebp - 0x7c], edi
je 0x51fc20
push eax
call dword [sym.imp.USER32.dll_DestroyCursor]
mov dword [esi + 0x130], 0
push esi
call fcn.005251b0
push 5
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ebx, eax
cmp ebx, 0x20
mov dword [ebp - 0x80], ebx
ja 0x51fd59
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x78]
push eax
push 1
push 0
push str..htm
push closesocket
call esi
test eax, eax
jne 0x51fd59
lea ecx, [ebp - 0x78]
push ecx
lea edi, [ebp - 0x74]
call fcn.0051fd80
test eax, eax
jne 0x51fd59
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str._shellopencommand
mov edx, edi
push edx
call ebx
lea eax, [ebp - 0x78]
push eax
push 1
push 0
mov ecx, edi
push ecx
push closesocket
call esi
test eax, eax
jne 0x51fd54
lea edx, [ebp - 0x78]
push edx
call fcn.0051fd80
test eax, eax
jne 0x51fd54
mov eax, edi
push str.__1_
push eax
call fcn.0057781d
mov esi, eax
add esp, 8
test esi, esi
jne 0x51fcf4
mov ecx, edi
push 0x604218
push ecx
call fcn.0057781d
mov esi, eax
add esp, 8
test esi, esi
jne 0x51fcf4
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp + eax*2 - 0x76]
jmp 0x51fcf9
mov word [esi], 0
push 0x5d8484
push esi
call ebx
mov eax, dword [ebp - 0x7c]
push eax
push esi
call ebx
call dword [0x634aa0]
lea ecx, [ebp - 0x74]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x51fd31
xor eax, eax
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x51fd5b
lea esi, [eax + eax]
mov eax, esi
call fcn.0057e1e0
mov eax, esp
push edi
push esi
lea edx, [ebp - 0x74]
push edx
push eax
call fcn.0052f260
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x51fd5b
mov eax, dword [ebp - 0x80]
jmp 0x51fd5b
mov eax, ebx
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
call fcn.00577139
add ebp, 0x3a0
mov esp, ebp
pop ebp
ret
Function at 0x51fd80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x6336a0]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
push esi
mov esi, dword [eax]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
mov dword [esp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00577139
add esp, 0x210
ret 4
Function at 0x524ab0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x59cdfe
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x1c]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00402110
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x18], 0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x1c]
sub eax, 0x10
push eax
call fcn.00402110
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [esp + 0x1c], 1
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 0x24]
mov dword [esi + 0x24], ecx
mov edx, dword [edi + 0x28]
mov dword [esi + 0x28], edx
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x34], edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov eax, dword [edi + 0x40]
sub eax, 0x10
push eax
call fcn.00402110
add eax, 0x10
mov dword [esi + 0x40], eax
mov byte [esp + 0x20], 2
mov edx, dword [edi + 0x44]
mov dword [esi + 0x44], edx
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov ecx, dword [edi + 0x4c]
mov dword [esi + 0x4c], ecx
mov edx, dword [edi + 0x50]
mov dword [esi + 0x50], edx
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov ecx, dword [edi + 0x58]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x5c]
mov dword [esi + 0x5c], edx
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov ecx, dword [edi + 0x64]
mov dword [esi + 0x64], ecx
mov edx, dword [edi + 0x68]
mov dword [esi + 0x68], edx
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x6c], eax
mov ecx, dword [edi + 0x70]
mov dword [esi + 0x70], ecx
mov edi, dword [edi + 0x74]
sub edi, 0x10
push edi
call fcn.00402110
add esp, 0x10
add eax, 0x10
mov dword [esi + 0x74], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4