joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58b9a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd8
push ebx
mov ebx, dword [esp + 0xe0]
push esi
mov esi, dword [ebx + 0x2c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
push edi
mov edi, ecx
je 0x58bb25
cmp byte [edi], 0
jne 0x58ba00
mov eax, dword [ebx + 0x1c]
test eax, eax
js 0x58bb25
push ebp
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 0x28]
call fcn.005914c0
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x10], ecx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x14], edx
fld dword [esi + 0x18]
fld dword [esp + 0x10]
lea eax, [esp + 0x10]
fmul dword [0x6bdaf8]
push eax
lea ecx, [esp + 0x2c]
push ecx
fstp dword [esp + 0x18]
lea edx, [esp + 0x24]
fld dword [esp + 0x1c]
push edx
fmul dword [0x6bdaf8]
fstp dword [esp + 0x20]
fmul dword [0x6bdaf8]
fstp dword [esp + 0x24]
call fcn.00591840
fld dword [esp + 0x28]
mov eax, dword [esp + 0xfc]
fadd dword [esi + 0x1c]
push eax
lea ecx, [esp + 0x38]
push ecx
fadd dword [esi + 0x10]
lea edx, [esp + 0x7c]
push edx
fstp dword [esp + 0x70]
fld dword [esi + 0x20]
fadd dword [esi + 0x14]
fadd dword [esp + 0x38]
fstp dword [esp + 0x74]
fld dword [esi + 0x24]
fadd dword [esi + 0x18]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x78]
call fcn.00591600
mov eax, dword [esp + 0x10c]
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0xc8]
push edx
call fcn.00591600
mov ax, word [esp + 0x11c]
add esp, 0x24
inc word [edi + 0xd8]
xor ebp, ebp
mov bp, word [edi + 0xd8]
mov word [ebx + 0x20], ax
mov ecx, dword [edi + 0x10c]
mov edx, dword [ecx]
push ebx
push ebp
call dword [edx + 0x28]
mov esi, dword [ebx + 0x60]
test esi, esi
je 0x58bb24
mov ebx, 5
nop
cmp dword [esi + 0x18], ebx
push ebp
jne 0x58bb0d
mov eax, dword [esp + 0xf8]
push eax
lea ecx, [esp + 0x70]
push ecx
push esi
mov ecx, edi
call fcn.0058b9a0
jmp 0x58bb1d
lea edx, [esp + 0xac]
push edx
push esi
mov ecx, edi
call fcn.0058b000
mov esi, dword [esi + 4]
test esi, esi
jne 0x58baf0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xd8
ret 0x10

Function at 0x5901d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x67820f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, 0xabadcafe
mov dword [esp + 0x10], edi
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push fcn.005900c0
push 0x5900a0
push 0x100
push 0x20
xor ebp, ebp
lea ebx, [edi + 0xc]
push ebx
mov dword [esp + 0x30], ebp
mov dword [edi], 0x688780
call fcn.00665c1a
lea esi, [edi + 0x200c]
mov dword [esi], 0x688744
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 4], ebp
mov dword [edi + 0x201c], ebp
mov byte [esp + 0x1c], 2
mov ebp, 0x100
mov eax, dword [esi + 0xc]
push ebx
push eax
mov ecx, esi
call fcn.00590600
add ebx, 0x20
dec ebp
jne 0x590246
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x591cc0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x67832c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, 0xabadcafe
mov dword [esp + 0x10], edi
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push fcn.00591c40
push 0x5918b0
push 0x40
push 0x18
xor ebp, ebp
lea ebx, [edi + 0xc]
push ebx
mov dword [esp + 0x30], ebp
mov dword [edi], 0x6887d4
call fcn.00665c1a
lea esi, [edi + 0x60c]
mov dword [esi], 0x688744
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 4], ebp
mov dword [edi + 0x61c], ebp
mov byte [esp + 0x1c], 2
mov ebp, 0x40
mov eax, dword [esi + 0xc]
push ebx
push eax
mov ecx, esi
call fcn.00590600
add ebx, 0x18
dec ebp
jne 0x591d33
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x596190
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x678673
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, 0xabadcafe
mov dword [esp + 0x10], edi
mov dword [edi + 4], eax
mov dword [edi + 8], eax
xor ebx, ebx
mov dword [edi], 0x688808
mov dword [esp + 0x1c], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov ebp, dword [esp + 0x24]
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov eax, dword [ebp + 0x2c]
push eax
mov byte [esp + 0x20], 1
call fcn.00595ed0
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0xc], ecx
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x10], edx
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x14], eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov ecx, edi
call fcn.00596050
cmp byte [esp + 0x28], bl
mov eax, dword [edi + 0x1c]
je 0x5962f6
cmp eax, ebx
jbe 0x59631b
xor esi, esi
jmp 0x596230
mov edx, dword [ebp + 0x20]
mov cl, byte [esi + edx]
mov eax, dword [edi + 0x20]
mov byte [esi + eax], cl
mov edx, dword [ebp + 0x20]
mov cl, byte [esi + edx + 1]
mov eax, dword [edi + 0x20]
mov byte [esi + eax + 1], cl
mov edx, dword [ebp + 0x20]
mov cl, byte [esi + edx + 2]
mov eax, dword [edi + 0x20]
mov byte [esi + eax + 2], cl
mov edx, dword [ebp + 0x20]
mov cl, byte [esi + edx + 3]
mov eax, dword [edi + 0x20]
mov byte [esi + eax + 3], cl
mov edx, dword [edi + 0x20]
mov ecx, dword [ebp + 0x20]
lea eax, [esi + edx + 4]
mov edx, dword [esi + ecx + 4]
mov ecx, dword [eax]
shl edx, 8
sar edx, 8
xor edx, ecx
and edx, 0xffffff
xor ecx, edx
mov dword [eax], ecx
mov eax, dword [ebp + 0x20]
mov dl, byte [esi + eax + 7]
mov ecx, dword [edi + 0x20]
mov byte [esi + ecx + 7], dl
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi + 0x20]
mov edx, dword [esi + eax + 0xc]
mov dword [esi + ecx + 0xc], edx
mov edx, dword [esi + eax + 0x10]
lea eax, [esi + eax + 8]
lea ecx, [esi + ecx + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x10], edx
mov edx, dword [eax + 0x14]
mov dword [ecx + 0x14], edx
mov edx, dword [eax + 0x18]
mov dword [ecx + 0x18], edx
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [edi + 0x20]
lea edx, [esi + ecx + 0x28]
push edx
lea ecx, [esi + eax + 0x28]
call fcn.00597470
mov eax, dword [edi + 0x1c]
inc ebx
add esi, 0x38
cmp ebx, eax
jb 0x596230
jmp 0x59631b
cmp eax, ebx
jbe 0x59631b
xor esi, esi
lea esp, [esp]
mov ecx, dword [ebp + 0x20]
add ecx, esi
push ecx
mov ecx, dword [edi + 0x20]
add ecx, esi
call fcn.00590420
mov eax, dword [edi + 0x1c]
inc ebx
add esi, 0x38
cmp ebx, eax
jb 0x596300
add ebp, 0x24
push ebp
lea ecx, [edi + 0x24]
call fcn.0058ef50
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x596340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6786ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, 0xabadcafe
mov dword [esp + 0x10], edi
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push fcn.005960f0
push fcn.00593d50
push 0x20
push 0x34
xor ebp, ebp
lea ebx, [edi + 0xc]
push ebx
mov dword [esp + 0x30], ebp
mov dword [edi], 0x688868
call fcn.00665c1a
lea esi, [edi + 0x68c]
mov dword [esi], 0x688744
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 4], ebp
mov dword [edi + 0x69c], ebp
mov byte [esp + 0x1c], 2
mov ebp, 0x20
mov eax, dword [esi + 0xc]
push ebx
push eax
mov ecx, esi
call fcn.00590600
add ebx, 0x34
dec ebp
jne 0x5963b3
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x596990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x67872b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
push edi
push 0x28
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0x3f800000
call fcn.0059e170
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x5c], edi
je 0x596a33
mov ecx, esi
call fcn.00590580
mov dword [esi], 0x6888b8
mov dword [esi + 0x14], 0x688744
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
jmp 0x596a35
xor esi, esi
mov eax, dword [esp + 0x64]
push eax
mov ecx, esi
mov dword [esp + 0x60], 0xffffffff
call fcn.00590730
push 6
push str.Color
mov ecx, esi
call fcn.00596fe0
push 4
push str.Pivot
mov ecx, esi
call fcn.00596fe0
push 4
push str.Position
mov ecx, esi
call fcn.00596fe0
push 5
push str.Rotation
mov ecx, esi
call fcn.00596fe0
push 4
push str.Size
mov ecx, esi
call fcn.00596fe0
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0x3f800000
mov dword [esp + 0x24], 0x3f800000
mov dword [esp + 0x20], 0x3f800000
mov dword [esp + 0x1c], 0x3f800000
call fcn.005970a0
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x48]
call fcn.00597160
mov edi, dword [esi + 0x1c]
lea edx, [esp + 0x44]
push edx
mov ecx, edi
call fcn.00596f70
mov edi, dword [edi + 4]
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call fcn.00596f70
mov edi, dword [edi + 4]
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.00596f70
mov edi, dword [edi + 4]
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.00596f70
mov ecx, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
call fcn.00596f70
mov ecx, dword [esp + 0x54]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x58
ret 4
Function at 0x598090
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
jle 0x5980f0
push ebx
push esi
push edi
mov edi, ecx
movzx esi, byte [edx]
mov ebx, eax
shr ebx, 0x18
xor ebx, esi
and ebx, 0xff
mov esi, dword [ebx*4 + 0x688bd8]
shl eax, 8
inc edx
xor eax, esi
dec edi
jne 0x5980a5
test ecx, ecx
pop edi
pop esi
pop ebx
jle 0x5980f0
lea esp, [esp]
mov edx, eax
shr edx, 0x18
xor edx, ecx
and edx, 0xff
mov edx, dword [edx*4 + 0x688bd8]
shl eax, 8
sar ecx, 8
xor eax, edx
test ecx, ecx
jg 0x5980d0
not eax
ret

Function at 0x59d410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x678928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
fld dword [esp + 0x14]
push esi
fmul dword [esp + 0x1c]
mov esi, ecx
push edi
mov dword [esp + 8], esi
fadd dword [0x6bda38]
call fcn.00666390
push eax
mov ecx, esi
call fcn.0059d1e0
movzx ecx, byte [esi + 5]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x1c]
shl ecx, 2
push ecx
mov dword [esi], 0x689adc
mov dword [esi + 0x28], eax
call fcn.0059e170
movzx ecx, byte [esi + 5]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [esi + 0x30], edi
xor eax, eax
rep stosd dword es:[edi], eax
add esp, 4
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x59eaa0
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
test ecx, ecx
jne 0x59eab1
xor eax, eax
add esp, 8
ret
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
xor esi, esi
xor edi, edi
test ebx, ebx
jbe 0x59eba8
mov eax, 3
sub eax, ebp
cmp esi, ebx
mov dword [esp + 0x14], eax
jae 0x59eae1
mov al, byte [ecx + esi]
mov byte [esp + 0x12], al
jmp 0x59eae6
mov byte [esp + 0x12], 0
lea eax, [esi + 1]
cmp eax, ebx
jae 0x59eaf7
mov dl, byte [esi + ecx + 1]
mov byte [esp + 0x13], dl
jmp 0x59eafc
mov byte [esp + 0x13], 0
inc eax
cmp eax, ebx
jae 0x59eb0b
mov al, byte [esi + ecx + 2]
mov byte [esp + 0x11], al
jmp 0x59eb10
mov byte [esp + 0x11], 0
add esi, 3
test ebp, ebp
je 0x59eb9d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
lea edx, [edi + ebp]
add ecx, edx
cmp eax, ecx
jb 0x59eb99
movzx ecx, byte [esp + 0x12]
mov eax, ecx
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
movzx edx, byte [esp + 0x13]
and ecx, 3
shl ecx, 4
mov eax, edx
shr eax, 4
or eax, ecx
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
lea eax, [ebx + 2]
cmp esi, eax
mov byte [edi + ebp + 1], cl
mov cl, byte [esp + 0x11]
jne 0x59eb69
mov al, 0x3d
jmp 0x59eb7d
movzx eax, cl
and edx, 0xf
shr eax, 6
shl edx, 2
or eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
lea edx, [ebx + 1]
cmp esi, edx
mov byte [edi + ebp + 2], al
jb 0x59eb8c
mov al, 0x3d
jmp 0x59eb95
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp + 3], al
mov ecx, dword [esp + 0x1c]
add edi, 4
cmp esi, ebx
jb 0x59ead8
cmp byte [esp + 0x2c], 1
jne 0x59ebbe
test ebp, ebp
je 0x59ebbd
cmp dword [esp + 0x28], edi
jbe 0x59ebbd
mov byte [edi + ebp], 0
inc edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x5a3aa4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x68bf64
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x5a3afb
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x5a3afb
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x5a3afb
xor eax, eax
inc eax
jmp 0x5a3afd
xor eax, eax
leave
ret 0x10
Function at 0x5a3b26
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x68bf64
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x5a3b94
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5a3b8b
cmp dword [ebp - 0xc], 4
jne 0x5a3b8b
cmp dword [ebp - 0x10], edi
je 0x5a3b8b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x6c7564], edi
xor eax, eax
jmp 0x5a3bd3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x6c7564], edi
jge 0x5a3bce
lea eax, [ebp - 0x34]
push eax
mov dword [0x6c7564], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x5a3bce
cmp word [ebp - 0x14], 5
jb 0x5a3bce
call fcn.005a3b01
test eax, eax
je 0x5a3bce
emms
mov dword [0x6c7564], 1
mov eax, dword [0x6c7564]
pop edi
leave
ret
Function at 0x5bb554
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x5bb575
mov eax, 0x8876086c
jmp 0x5bb668
cmp dword [ebp + 0x7c], esi
je 0x5bb5f7
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x5bb5d7
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.00666410
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x5bb5f7
push esi
push 0x10000000
push 3
push esi
push 1
push bind
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x5bb610
push esi
push 0x10000000
push 3
push esi
push 1
push bind
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x5bb656
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x5bb656
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x5bb656
cmp eax, esi
je 0x5bb663
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x5bb666
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x5bb668
mov dword [edi + 8], esi
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x611550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x611585
push esi
lea esp, [esp]
movsx ecx, cl
shl eax, 4
add eax, ecx
mov ecx, eax
inc edx
and ecx, 0xf0000000
je 0x61157a
mov esi, ecx
shr esi, 0x18
xor eax, esi
not ecx
and eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x611560
pop esi
and eax, 0xff
ret

Function at 0x612780
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov dl, byte [esi]
xor eax, eax
test dl, dl
je 0x6127a5
push edi
mov edi, edi
mov edi, eax
movsx edx, dl
shl edi, 5
xor edi, edx
mov dl, byte [esi + 1]
xor eax, edi
inc esi
test dl, dl
jne 0x612790
pop edi
xor edx, edx
div dword [ecx + 4]
pop esi
mov eax, edx
ret 4

Function at 0x6127b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
push edi
jne 0x612802
mov eax, dword [0x6d2348]
mov ecx, eax
shl ecx, 2
push 0x69a210
push ecx
mov dword [esi + 4], eax
call dword [fcn.006d231c]
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
add esp, 8
xor eax, eax
test ecx, ecx
jbe 0x612802
jmp 0x6127f0
mov edx, dword [esi + 8]
mov dword [edx + eax*4], 0
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
jb 0x6127f0
mov edx, dword [esp + 0x10]
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x612824
mov edi, edi
mov edi, eax
movsx ecx, cl
shl edi, 5
xor edi, ecx
mov cl, byte [edx + 1]
xor eax, edi
inc edx
test cl, cl
jne 0x612810
mov ecx, dword [esi + 4]
xor edx, edx
div ecx
mov eax, dword [esi + 8]
cmp dword [eax + edx*4], 0
je 0x612843
mov edi, eax
inc edx
cmp edx, ecx
jb 0x61283d
xor edx, edx
cmp dword [edi + edx*4], 0
jne 0x612836
mov ecx, dword [esp + 0x14]
mov dword [eax + edx*4], ecx
mov edx, dword [esi]
mov ebx, dword [esi + 4]
inc edx
mov eax, edx
cmp eax, ebx
mov dword [esi], edx
jb 0x6128d5
push ebp
mov ebp, dword [esi + 8]
lea eax, [ebx + ebx]
lea edx, [eax*4]
push 0x69a210
push edx
mov dword [esi + 4], eax
call dword [fcn.006d231c]
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
add esp, 8
xor eax, eax
test ecx, ecx
jbe 0x6128a2
jmp 0x612890
mov ecx, dword [esi + 8]
mov dword [ecx + eax*4], 0
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
jb 0x612890
xor edi, edi
test ebx, ebx
mov dword [esi], 0
jle 0x6128c5
mov edi, edi
mov eax, dword [ebp + edi*4]
push eax
add eax, 4
push eax
mov ecx, esi
call fcn.006127b0
inc edi
cmp edi, ebx
jl 0x6128b0
test ebp, ebp
je 0x6128d4
push ebx
push ebp
call dword [fcn.006d2320]
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret 8
Function at 0x6238c0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
push esi
mov esi, ecx
cmp eax, dword [esi + 0x28]
je 0x6239ec
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x1c]
mov cl, byte [ebx + 0x10]
sar eax, cl
mov ecx, dword [esi + 0x18]
push ebp
push edi
mov edi, dword [esi + 0x14]
imul ecx, eax
add ecx, edi
cmp eax, edx
je 0x62393c
mov dl, byte [ebx + 6]
xor eax, eax
cmp dl, al
mov dword [esp + 0x24], eax
jbe 0x6239e2
xor edi, edi
mov ebp, ecx
mov eax, dword [esi + 0x30]
add eax, edi
push eax
mov ecx, ebp
call fcn.00623540
mov eax, dword [esp + 0x24]
movzx ecx, byte [ebx + 6]
inc eax
add edi, 0x10
add ebp, 6
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x623907
mov edx, dword [esp + 0x28]
pop edi
pop ebp
pop ebx
mov dword [esi + 0x28], edx
pop esi
add esp, 0x10
ret 0x10
movzx edx, byte [ebx + 6]
mov eax, dword [esp + 0x30]
add eax, 2
imul eax, edx
lea ecx, [ecx + eax*2]
add eax, ecx
mov ebp, eax
xor eax, eax
cmp edx, eax
mov dword [esp + 0x2c], eax
jle 0x6239e2
xor edi, edi
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x10]
push edx
add eax, dword [esp + 0x28]
push eax
mov ecx, ebp
call fcn.006235f0
fld dword [esp + 0x10]
mov ecx, dword [esi + 0x24]
fadd dword [ecx + edi]
mov edx, dword [esi + 0x30]
add ebp, 3
add edi, 0x10
fstp dword [edi + edx - 0x10]
mov eax, dword [esi + 0x24]
fld dword [esp + 0x14]
mov ecx, dword [esi + 0x30]
fadd dword [eax + edi - 0xc]
fstp dword [edi + ecx - 0xc]
mov edx, dword [esi + 0x24]
fld dword [esp + 0x18]
mov eax, dword [esi + 0x30]
fadd dword [edx + edi - 8]
fstp dword [edi + eax - 8]
mov ecx, dword [esi + 0x24]
fld dword [esp + 0x1c]
mov edx, dword [esi + 0x30]
fadd dword [ecx + edi - 4]
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
fstp dword [edi + edx - 4]
mov edx, dword [esp + 0x24]
movzx ecx, byte [ebx + 6]
add edx, 0x20
cmp eax, ecx
mov dword [esp + 0x24], edx
jl 0x623965
mov edx, dword [esp + 0x28]
pop edi
pop ebp
mov dword [esi + 0x28], edx
pop ebx
pop esi
add esp, 0x10
ret 0x10
Function at 0x6238c7
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
push esi
mov esi, ecx
cmp eax, dword [esi + 0x28]
je 0x6239ec
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x1c]
mov cl, byte [ebx + 0x10]
sar eax, cl
mov ecx, dword [esi + 0x18]
push ebp
push edi
mov edi, dword [esi + 0x14]
imul ecx, eax
add ecx, edi
cmp eax, edx
je 0x62393c
mov dl, byte [ebx + 6]
xor eax, eax
cmp dl, al
mov dword [esp + 0x24], eax
jbe 0x6239e2
xor edi, edi
mov ebp, ecx
mov eax, dword [esi + 0x30]
add eax, edi
push eax
mov ecx, ebp
call fcn.00623540
mov eax, dword [esp + 0x24]
movzx ecx, byte [ebx + 6]
inc eax
add edi, 0x10
add ebp, 6
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x623907
mov edx, dword [esp + 0x28]
pop edi
pop ebp
pop ebx
mov dword [esi + 0x28], edx
pop esi
add esp, 0x10
ret 0x10
movzx edx, byte [ebx + 6]
mov eax, dword [esp + 0x30]
add eax, 2
imul eax, edx
lea ecx, [ecx + eax*2]
add eax, ecx
mov ebp, eax
xor eax, eax
cmp edx, eax
mov dword [esp + 0x2c], eax
jle 0x6239e2
xor edi, edi
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x10]
push edx
add eax, dword [esp + 0x28]
push eax
mov ecx, ebp
call fcn.006235f0
fld dword [esp + 0x10]
mov ecx, dword [esi + 0x24]
fadd dword [ecx + edi]
mov edx, dword [esi + 0x30]
add ebp, 3
add edi, 0x10
fstp dword [edi + edx - 0x10]
mov eax, dword [esi + 0x24]
fld dword [esp + 0x14]
mov ecx, dword [esi + 0x30]
fadd dword [eax + edi - 0xc]
fstp dword [edi + ecx - 0xc]
mov edx, dword [esi + 0x24]
fld dword [esp + 0x18]
mov eax, dword [esi + 0x30]
fadd dword [edx + edi - 8]
fstp dword [edi + eax - 8]
mov ecx, dword [esi + 0x24]
fld dword [esp + 0x1c]
mov edx, dword [esi + 0x30]
fadd dword [ecx + edi - 4]
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
fstp dword [edi + edx - 4]
mov edx, dword [esp + 0x24]
movzx ecx, byte [ebx + 6]
add edx, 0x20
cmp eax, ecx
mov dword [esp + 0x24], edx
jl 0x623965
mov edx, dword [esp + 0x28]
pop edi
pop ebp
mov dword [esi + 0x28], edx
pop ebx
pop esi
add esp, 0x10
ret 0x10