joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a38b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, 0x85
xor edx, edx
mov al, byte [edi + edx + 0x6ced70fc]
xor al, bl
inc ebx
and ebx, 0x800000ff
mov byte [edx + esi], al
jns 0x5a38df
dec ebx
or ebx, 0xffffff00
inc ebx
inc edx
cmp edx, 0xc
jl 0x5a38c2
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x5a3ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, 8
xor edx, edx
mov al, byte [edi + edx + 0x24fef6e1]
xor al, bl
inc ebx
and ebx, 0x800000ff
mov byte [edx + esi], al
jns 0x5a3f1f
dec ebx
or ebx, 0xffffff00
inc ebx
inc edx
cmp edx, 0xc
jl 0x5a3f02
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x5a41d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, 0x16
xor edx, edx
mov al, byte [edi + edx - 0x520bad8b]
xor al, bl
inc ebx
and ebx, 0x800000ff
mov byte [edx + esi], al
jns 0x5a41ff
dec ebx
or ebx, 0xffffff00
inc ebx
inc edx
cmp edx, 0xc
jl 0x5a41e2
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x5a8b80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
push esi
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov cl, 0x25
mov dl, 0x32
mov al, 0x64
mov byte [ebp - 0x20], cl
mov byte [ebp - 0x1b], cl
mov byte [ebp - 0x16], cl
mov byte [ebp - 0xf], cl
mov byte [ebp - 0xa], cl
mov byte [ebp - 5], cl
movzx ecx, word [ebp - 0x30]
push ecx
movzx ecx, word [ebp - 0x24]
mov byte [ebp - 0x1e], dl
mov byte [ebp - 0x19], dl
mov byte [ebp - 0x14], dl
mov byte [ebp - 0xd], dl
mov byte [ebp - 8], dl
movzx edx, word [ebp - 0x2e]
push edx
movzx edx, word [ebp - 0x26]
mov byte [ebp - 0x1d], al
mov byte [ebp - 0x18], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0xc], al
mov byte [ebp - 7], al
mov byte [ebp - 4], al
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x28]
push ecx
push edx
push eax
lea ecx, [ebp - 0x20]
push ecx
mov bl, 0x30
lea edx, [ebp - 0x434]
push 0x2000
push edx
mov byte [ebp - 0x1f], bl
mov byte [ebp - 0x1c], 0x3a
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x17], 0x3a
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x12], 0x20
mov byte [ebp - 0x11], 0x2d
mov byte [ebp - 0x10], 0x20
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xb], 0x2f
mov byte [ebp - 9], bl
mov byte [ebp - 6], 0x2f
mov byte [ebp - 3], 0x20
mov byte [ebp - 2], 0x20
mov byte [ebp - 1], 0
call fcn.005c6ac0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x434]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
add esp, 0x24
mov byte [esi + 4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5a8c62
sub eax, edx
push eax
lea eax, [ebp - 0x434]
push eax
mov ecx, esi
call fcn.00406de0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5a8c90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d8db8
push eax
mov eax, 0x3f5c
mov dword fs:[0], esp
call fcn.005c52a0
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push ecx
lea edx, [ebp - 0x1f68]
push 0x2000
push edx
call fcn.005c6af0
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
call fcn.005a8b80
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], 0
jb 0x5a8cec
mov eax, dword [eax + 4]
jmp 0x5a8cef
add eax, 4
lea ecx, [ebp - 0x1f68]
push ecx
push eax
push str._Time__s_n_s
lea edx, [ebp - 0x3f68]
push 0x2000
push edx
call fcn.005c6ac0
add esp, 0x14
cmp dword [ebp - 0x10], 0x10
jb 0x5a8d22
mov eax, dword [ebp - 0x24]
push eax
call fcn.00570810
add esp, 4
lea ecx, [ebp - 0x3f68]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5a9100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8e19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x20]
mov eax, 1
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], esi
mov dword [ebp - 4], eax
mov byte [edi + 4], 0
cmp ebx, esi
mov dword [ebp - 0x14], eax
jle 0x5a91f8
lea ebx, [ebx]
mov ecx, 0x70
xor eax, eax
mov dl, byte [eax + str.UA_e]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x1b], dl
jns 0x5a9174
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 6
jl 0x5a9157
mov byte [ebp - 0x15], 0
mov byte [ebp - 4], 2
cmp dword [ebp + 0x20], esi
ja 0x5a918c
call fcn.0059455f
cmp dword [ebp + 0x24], 0x10
mov eax, dword [ebp + 0x10]
jae 0x5a9198
lea eax, [ebp + 0x10]
movsx eax, byte [eax + esi]
push eax
lea ecx, [ebp - 0x1b]
push ecx
lea edx, [ebp - 0x10]
push 0x2000
push edx
call fcn.005c6ac0
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5a91c8
sub eax, edx
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00412cb0
cmp esi, ebx
je 0x5a91ef
push 1
push 0x67a100
mov ecx, edi
call fcn.00412cb0
inc esi
cmp esi, ebx
jl 0x5a9150
cmp dword [ebp + 0x24], 0x10
jb 0x5a920a
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00570810
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5ab1b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8f58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x32c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov ebx, 0xf
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov byte [ebp - 0x130], 0
cmp eax, edi
je 0x5ab344
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5ab200
sub eax, edx
je 0x5ab344
mov ecx, dword [0x7a29f0]
mov edx, dword [ecx + 0x170]
lea eax, [ebp - 0x130]
push eax
push 0x103
call edx
test eax, eax
je 0x5ab344
mov ax, word [0x66d64c]
mov cl, byte [0x66d64e]
mov word [ebp - 0x10], ax
mov byte [ebp - 0xe], cl
lea ebx, [ebp - 0x130]
lea ebx, [ebx]
mov dl, byte [ebx]
push 0x104
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 0x10], dl
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x5ab300
lea eax, [ebp - 0x234]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5ab280
sub eax, edx
mov esi, eax
cmp esi, 0x104
jae 0x5ab300
mov eax, dword [ebp + 0xc]
push esi
lea edx, [ebp - 0x234]
push edx
push eax
call sub.MSVCR90.dll_strncmp
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
add edi, 1
je 0x5ab300
mov ecx, dword [ebp + 0xc]
add esi, ecx
push esi
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x338]
push str._s_s
push eax
call fcn.005aab60
lea eax, [ebp - 0x338]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5ab2e0
sub eax, edx
push eax
lea ecx, [ebp - 0x338]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00406de0
lea esp, [esp]
mov dl, byte [ebx]
inc ebx
test dl, dl
jne 0x5ab300
test edi, edi
jne 0x5ab314
cmp byte [ebx], 0
jne 0x5ab250
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
push eax
mov ecx, esi
mov byte [esi + 4], 0
call fcn.00406ad0
cmp dword [ebp - 0x14], 0x10
jb 0x5ab371
mov ecx, dword [ebp - 0x28]
push ecx
jmp 0x5ab369
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push edi
lea edx, [ebp - 0x2c]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], edi
push edx
mov ecx, esi
mov byte [esi + 4], 0
call fcn.00406ad0
cmp dword [ebp - 0x14], 0x10
jb 0x5ab371
mov eax, dword [ebp - 0x28]
push eax
call fcn.00570810
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x5ab4d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov eax, 0xffff
test esi, esi
jle 0x5ab50a
push ebx
push edi
mov edi, dword [ebp + 8]
movzx edx, byte [ecx + edi]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
shl eax, 8
xor edx, ebx
xor ax, word [edx*2 + 0x7a2d70]
inc ecx
cmp ecx, esi
movzx eax, ax
jl 0x5ab4e7
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x5ac9c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x69
mov dword [ebp - 8], 0
jmp 0x5ac9e2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x11
jge 0x5aca21
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 0x49f10360]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x5aca1c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x5ac9d9
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x11], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x5acaa0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68f3d0
push 0x5c58ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push 0x28
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x7a29f0]
mov eax, dword [edx + 0x11c]
call eax
test eax, eax
jl 0x5acb18
lea ecx, [ebp - 0x24]
push ecx
push str.SeDebugPrivilege
push 0
mov edx, dword [0x7a29f0]
mov eax, dword [edx + 0x1dc]
call eax
test eax, eax
jne 0x5acb32
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [0x7a29f0]
mov eax, dword [edx + 0xbc]
call eax
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 0x24]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005aca40
add esp, 0x10
mov ecx, dword [0x7a29f0]
mov edx, dword [ecx + 0xbc]
test al, al
mov eax, dword [ebp - 0x1c]
push eax
call edx
jmp 0x5acb65
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5adba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, 0xb3
xor edx, edx
mov al, byte [edi + edx - 0xbf9d944]
xor al, bl
inc ebx
and ebx, 0x800000ff
mov byte [edx + esi], al
jns 0x5adbcf
dec ebx
or ebx, 0xffffff00
inc ebx
inc edx
cmp edx, 0xc
jl 0x5adbb2
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x5ade00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, 0x6b
xor edx, edx
mov al, byte [edi + edx - 0x10d95682]
xor al, bl
inc ebx
and ebx, 0x800000ff
mov byte [edx + esi], al
jns 0x5ade2f
dec ebx
or ebx, 0xffffff00
inc ebx
inc edx
cmp edx, 0xc
jl 0x5ade12
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x5ae010
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, 0xd8
xor edx, edx
mov al, byte [edi + edx + 0x1f88ca19]
xor al, bl
inc ebx
and ebx, 0x800000ff
mov byte [edx + esi], al
jns 0x5ae03f
dec ebx
or ebx, 0xffffff00
inc ebx
inc edx
cmp edx, 0xc
jl 0x5ae022
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x5aeb30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, 0x7a
xor edx, edx
mov al, byte [edi + edx + 0x57b768b6]
xor al, bl
inc ebx
and ebx, 0x800000ff
mov byte [edx + esi], al
jns 0x5aeb5f
dec ebx
or ebx, 0xffffff00
inc ebx
inc edx
cmp edx, 0xc
jl 0x5aeb42
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x5aef50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, 0xdd
xor edx, edx
mov al, byte [edi + edx + 0x74d09112]
xor al, bl
inc ebx
and ebx, 0x800000ff
mov byte [edx + esi], al
jns 0x5aef7f
dec ebx
or ebx, 0xffffff00
inc ebx
inc edx
cmp edx, 0xc
jl 0x5aef62
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x5af2d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, 0xc4
xor edx, edx
mov al, byte [edi + edx - 0x76c30]
xor al, bl
inc ebx
and ebx, 0x800000ff
mov byte [edx + esi], al
jns 0x5af2ff
dec ebx
or ebx, 0xffffff00
inc ebx
inc edx
cmp edx, 0xc
jl 0x5af2e2
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x5c3fc0
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x5c403b
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call sub.MSVCR90.dll_wcslen
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x5c3ff7
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x5c400e
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call sub.MSVCR90.dll_wcslen
add esp, 4
test eax, eax
jbe 0x5c403b
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call sub.MSVCR90.dll_wcslen
add esp, 4
cmp esi, eax
jb 0x5c4020
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x5c4d04
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6e8794]
jne 0x5c4d0e
repz ret
jmp fcn.005c58f6

Function at 0x5c7d30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x5c7e38
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x5c7e38
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x5c7e38
push 2
push ebx
lea eax, [ebp + 8]
push eax
push esi
call fcn.005c6a60
add esp, 0x10
cmp eax, 2
je 0x5c7d79
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [ebp + 8], ax
jne 0x5c7d6d
push 4
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.005c6a60
add esp, 0x10
cmp eax, 4
jne 0x5c7d6d
add ebx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x5c7da8
mov dword [eax], ebx
push 2
lea eax, [ebx + 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.005c6a60
add esp, 0x10
cmp eax, 2
jne 0x5c7d6d
movzx eax, word [ebp + 8]
cmp eax, 0x14c
je 0x5c7e03
cmp eax, 0x8664
jne 0x5c7d6d
push 0x108
push ebx
push edi
push esi
call fcn.005c6a60
add esp, 0x10
cmp eax, 0x108
jne 0x5c7d6d
cmp dword [edi], 0x4550
mov eax, 0x40
pop edi
mov ecx, 0x80004005
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf8
push ebx
push edi
push esi
call fcn.005c6a60
add esp, 0x10
cmp eax, 0xf8
jne 0x5c7d6d
cmp dword [edi], 0x4550
mov eax, 0x20
pop edi
mov ecx, 0x80004005
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x682370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x68238e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x6ab074
push ecx
mov edi, eax
call fcn.00696198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6823cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0069602e
push esi
call fcn.00695fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x685850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x6858ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x6b0720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6858ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.006961e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x6858ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x6b0720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x68592a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00697082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x685957
mov word [eax], si
add eax, 2
push eax
call fcn.00697030
add esp, 4
jmp 0x685959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x6858ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6858b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x685ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x686080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6860c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x6ab458
push ecx
call fcn.006961e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006961e1
add esp, 0x10
jmp 0x6860d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0069620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00695dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00686050
mov eax, dword [0x6b0728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x68613b
push esi
call fcn.00685fb0
add esp, 4
mov dword [0x6b0728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x68614c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00685ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x689440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6894b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x68948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x689471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x68947e
add edx, ecx
cmp ebx, edx
jb 0x68948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x689467
xor ecx, ecx
jmp 0x6894a2
test eax, eax
jne 0x689492
xor ecx, ecx
jmp 0x6894a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.006893c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6898f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x689921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x689946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x68996e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x689993
push ecx
push esi
call fcn.006894c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret