joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1b99c
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x297b8
call fcn.000242a0
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1ba04
push ebx
mov edi, dword [0x26c9c]
call edi
test al, al
je 0x1ba04
lea esi, [ebx + 0x3c]
push esi
call edi
test al, al
je 0x1ba04
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1ba04
mov esi, dword [esi]
add esi, ebx
je 0x1ba04
push esi
call edi
test al, al
je 0x1ba04
cmp dword [esi], 0x4550
jne 0x1ba04
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0x1c], 1
jmp 0x1ba0b
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.000242e5
ret 4

Function at 0x238c4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x400
xor eax, eax
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x238e5
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x238e7
shr ecx, 1
dec edx
jne 0x238d6
mov dword [ebp + eax*4 - 0x400], ecx
inc eax
cmp eax, 0x100
jb 0x238d1
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp + 0xc], ecx
jbe 0x23926
push esi
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
mov esi, eax
and esi, 0xff
xor edx, esi
shr eax, 8
xor eax, dword [ebp + edx*4 - 0x400]
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x23904
pop esi
not eax
leave
ret 8
Function at 0x10043de
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
je 0x100440a
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
mov esi, dword [esi*4 + 0x1008040]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x10043f0
pop edi
pop esi
ret 0xc
Function at 0x1006f6b
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x1006fa6
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1006f83
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1006fc2
dec esi
je 0x1006fbb
dec esi
jne 0x1006fc7
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x402afa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4093f4], 0
push esi
jne 0x402b31
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x402b0b
mov dword [ecx*4 + 0x4093f0], eax
inc ecx
cmp ecx, 0x100
jl 0x402b06
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x402b62
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4093f0]
xor eax, esi
inc ecx
dec edx
jne 0x402b44
pop edi
not eax
pop esi
ret 0xc
Function at 0x40640e
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
push edi
xor ecx, ecx
movzx eax, byte [ecx + str.80_]
mov esi, dword [ebp + 8]
mov edx, eax
sar edx, 3
and eax, 7
mov dl, byte [edx + esi]
test byte [eax*2 + 0x4184b8], dl
setne al
mov byte [ebp + ecx - 0x74], al
inc ecx
cmp ecx, 0x38
jl 0x40641c
and dword [ebp + 8], 0
mov dword [ebp - 4], 0x1e
cmp dword [ebp + 0xc], 1
jne 0x40645b
mov eax, dword [ebp - 4]
jmp 0x406460
mov eax, dword [ebp + 8]
add eax, eax
and dword [ebp + eax*4 - 0xf0], 0
and dword [ebp + eax*4 - 0xf4], 0
lea ecx, [ebp + eax*4 - 0xf0]
lea esi, [ebp + eax*4 - 0xf4]
mov eax, dword [ebp + 8]
xor edx, edx
movzx eax, byte [eax + 0x418560]
mov edi, eax
cmp edi, 0x1c
jge 0x406497
mov bl, byte [ebp + edi - 0x74]
jmp 0x40649e
mov bl, byte [ebp + edi - 0x90]
mov byte [ebp + edx - 0x3c], bl
inc edx
inc edi
cmp edx, 0x1c
jl 0x40648c
push 0x1c
pop edi
add eax, edi
cmp eax, 0x38
jge 0x4064b9
mov dl, byte [ebp + eax - 0x74]
jmp 0x4064c0
mov dl, byte [ebp + eax - 0x90]
mov byte [ebp + edi - 0x3c], dl
inc edi
inc eax
cmp edi, 0x38
jl 0x4064ae
xor edi, edi
mov edx, 0x4184c8
movzx ebx, byte [edi + 0x418570]
lea eax, [edi + 0x418588]
cmp byte [ebp + ebx - 0x3c], 0
je 0x4064ea
mov ebx, dword [edx]
or dword [esi], ebx
movzx eax, byte [eax]
cmp byte [ebp + eax - 0x3c], 0
je 0x4064f8
mov eax, dword [edx]
or dword [ecx], eax
add edx, 4
inc edi
cmp edx, str.80_
jl 0x4064d2
sub dword [ebp - 4], 2
inc dword [ebp + 8]
cmp dword [ebp - 4], 0xfffffffe
jg 0x406450
lea eax, [ebp - 0xf4]
push eax
call fcn.00406527
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406d60
Capabilities:
Set registry value

Disassembly:
sub esp, 0x208
mov edx, ecx
or ecx, 0xffffffff
xor eax, eax
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx]
push esi
push 1
push eax
mov eax, dword [esp + 0x224]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
test eax, eax
je 0x406db6
push eax
push str.setString
lea ecx, [esp + 8]
call fcn.00405a7b
lea edx, [esp]
push 0x414db0
push edx
call fcn.0040a7aa
add esp, 0x208
ret 8

Function at 0x406dc0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
sub esp, 0x208
push eax
mov eax, dword [esp + 0x210]
push edx
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x406e07
push eax
push str.setBinary
lea ecx, [esp + 8]
call fcn.00405a7b
lea edx, [esp]
push 0x414db0
push edx
call fcn.0040a7aa
add esp, 0x208
ret 0xc

Function at 0x406e10
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x208
lea eax, [esp + 0x210]
push 4
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x406e54
push eax
push str.setInt
lea ecx, [esp + 8]
call fcn.00405a7b
lea ecx, [esp]
push 0x414db0
push ecx
call fcn.0040a7aa
add esp, 0x208
ret 8
Function at 0x4071b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4131eb
push eax
mov dword fs:[0], esp
sub esp, 0x41c
lea eax, [esp]
push ebx
push ebp
push esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, ecx
push edi
mov edi, dword [esp + 0x43c]
push eax
mov edx, dword [esi]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push edi
push edx
call ebx
test eax, eax
je 0x40721a
push eax
push str.get_registry_value_length
lea ecx, [esp + 0x22c]
call fcn.00405a7b
lea eax, [esp + 0x224]
push 0x414db0
push eax
call fcn.0040a7aa
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040a373
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push ebp
push eax
push 0
push edi
push ecx
mov dword [esp + 0x44c], 0
call ebx
test eax, eax
je 0x407273
push eax
push str.get_registry_value
lea ecx, [esp + 0x22c]
call fcn.00405a7b
lea edx, [esp + 0x224]
push 0x414db0
push edx
call fcn.0040a7aa
mov eax, dword [esp + 0x14]
dec eax
je 0x407364
sub eax, 2
je 0x407345
dec eax
je 0x407318
mov eax, str.unsupported_registry_type
mov dword [esp + 0x20], 0x4141e0
test eax, eax
mov byte [esp + 0x24], 0
je 0x4072b9
push 0xff
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0040a250
add esp, 0xc
jmp 0x4072e7
mov edi, str.Exception
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0xff
lea eax, [esp + 0x128]
push str.rdr::Exception
push eax
mov byte [esp + 0x130], 0
call fcn.0040a250
add esp, 0xc
lea ecx, [esp + 0x20]
push 0x414b48
push ecx
call fcn.0040a7aa
push 0x10
call fcn.0040a373
mov edx, dword [ebp]
add esp, 4
mov esi, eax
push edx
push 0x418ea0
push esi
call fcn.0040a381
push 0
call fcn.0040a13c
push ebp
call fcn.0040a13c
add esp, 0x14
jmp 0x4073c0
mov eax, dword [esp + 0x10]
push eax
push ebp
call fcn.00406364
push 0
mov esi, eax
call fcn.0040a13c
push ebp
call fcn.0040a13c
add esp, 0x10
jmp 0x4073c0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4073ab
mov dword [esp + 0x18], eax
inc eax
push eax
call fcn.0040a373
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov edx, ecx
mov esi, ebp
mov edi, ebx
mov eax, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + eax], 0
call fcn.0040a13c
push ebp
call fcn.0040a13c
add esp, 0xc
mov eax, ebx
jmp 0x4073c2
push 0x41cac8
call fcn.00404d77
push ebp
mov esi, eax
call fcn.0040a13c
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x428
ret 4
Function at 0x407450
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x210
lea eax, [esp + 4]
push esi
push 0
push 0
push 0
push eax
push 0
push 0
mov esi, ecx
push 0
push 0
mov ecx, dword [esi]
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40749d
push eax
push str.RegQueryInfoKey
lea ecx, [esp + 0x14]
call fcn.00405a7b
lea edx, [esp + 0xc]
push 0x414db0
push edx
call fcn.0040a7aa
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0xc]
inc eax
cmp ecx, eax
jae 0x4074c4
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
push ecx
call fcn.0040a13c
mov edx, dword [esi + 0xc]
push edx
call fcn.0040a373
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
push 0
push 0
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x224]
push 0
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x407500
xor eax, eax
pop esi
add esp, 0x210
ret 4
test eax, eax
je 0x407522
push eax
push str.RegEnumValue
lea ecx, [esp + 0x14]
call fcn.00405a7b
lea edx, [esp + 0xc]
push 0x414db0
push edx
call fcn.0040a7aa
mov eax, dword [esi + 8]
pop esi
add esp, 0x210
ret 4

Function at 0x407af0
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x41325b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
mov esi, ecx
push 0x101
mov dword [esp + 0xc], esi
call fcn.0040a373
add esp, 4
mov dword [esi], eax
lea ecx, [esp + 4]
mov dword [esp + 0x21c], 0
push ecx
push eax
mov dword [esp + 0xc], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x407b68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetUserName_failed
lea ecx, [esp + 0x14]
call fcn.00405a7b
lea edx, [esp + 0xc]
push 0x414db0
push edx
call fcn.0040a7aa
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x408290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4132a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x3c]
mov cl, byte [esp + 0x30]
lea ebp, [ebx + 0xc]
xor esi, esi
mov dword [ebx + 8], eax
push 0xc
mov dword [esp + 0x24], esi
mov byte [ebp], cl
call fcn.0040a373
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp + 8], esi
mov esi, dword [esp + 0x38]
mov dword [ebp + 4], eax
mov edx, dword [eax]
mov edi, dword [esi]
add esp, 4
cmp edi, esi
mov dword [esp + 0x3c], edx
je 0x408309
mov ecx, dword [esp + 0x3c]
lea eax, [edi + 8]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebp
call fcn.00404950
mov edi, dword [edi]
cmp edi, esi
jne 0x4082ee
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov byte [esp + 0x24], 1
mov dword [ebx + 0x18], eax
call fcn.00404d77
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x24], 0
mov dword [ebx], 0x4143c4
mov edi, dword [esi]
add esp, 4
cmp edi, esi
je 0x408361
mov ebp, dword [esp + 0x38]
mov eax, edi
mov edi, dword [edi]
push eax
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
call fcn.0040a13c
add esp, 4
dec ebp
cmp edi, esi
jne 0x408340
push esi
call fcn.0040a13c
mov ecx, dword [esp + 0x1c]
add esp, 4
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x18

Function at 0x40907b
Capabilities:
Create thread

Disassembly:
mov eax, 0x4133a3
call fcn.0040aedc
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
and dword [esi + 0x14], 0
lea eax, [esi + 0x18]
push eax
call ebx
and dword [ebp - 4], 0
and byte [esi + 0x38], 0
push 0x20
mov dword [esi], 0x4143d8
call fcn.0040a373
mov edi, eax
pop ecx
test edi, edi
je 0x4090cb
lea eax, [esi + 0x18]
mov dword [edi], eax
lea eax, [edi + 4]
push eax
call ebx
and dword [edi + 0x1c], 0
jmp 0x4090cd
xor edi, edi
xor eax, eax
mov dword [esi + 0x14], edi
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
xor edi, edi
mov dword [esi + 0x30], eax
cmp dword [ebp + 8], edi
jne 0x4090ee
mov dword [ebp + 8], str.Unnamed
push dword [ebp + 8]
call fcn.00404d77
mov dword [esi + 0xc], eax
pop ecx
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x408f91
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
mov ecx, esi
mov dword [esi + 4], eax
mov dword [esi + 0x10], edi
call fcn.0040941a
push eax
push str.created
push str.__16.16s__s__lx_
push 0x41cfa0
call fcn.004030d0
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x409163
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4133bb
call fcn.0040aedc
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
and dword [esi + 0x14], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
mov dword [esi + 8], eax
lea eax, [esi + 0x18]
push eax
call ebx
and dword [ebp - 4], 0
and byte [esi + 0x38], 0
push 0x20
mov dword [esi], 0x4143d8
call fcn.0040a373
mov edi, eax
pop ecx
test edi, edi
je 0x4091bf
lea eax, [esi + 0x18]
mov dword [edi], eax
lea eax, [edi + 4]
push eax
call ebx
and dword [edi + 0x1c], 0
jmp 0x4091c1
xor edi, edi
xor eax, eax
mov dword [esi + 0x14], edi
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push str.Native
mov dword [esi + 0x30], eax
call fcn.00404d77
pop ecx
mov dword [esi + 0xc], eax
push esi
mov ecx, esi
mov dword [esi + 0x10], 3
call fcn.0040941a
push eax
push str.created
push str.__16.16s__s__lx_
push 0x41cfa0
call fcn.004030d0
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40e689
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41a130
cmp edx, dword [eax]
je 0x40e6ab
add eax, 8
inc ecx
cmp eax, 0x41a1c0
jl 0x40e69c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41a130]
jne 0x40e7d9
mov eax, dword [0x41d238]
cmp eax, 1
je 0x40e7b3
test eax, eax
jne 0x40e6dc
cmp dword [0x419b04], 1
je 0x40e7b3
cmp edx, 0xfc
je 0x40e7d9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e713
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040b620
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040af00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40e756
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040af00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x414874
push edi
call fcn.0040b2c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040b620
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b630
lea eax, [ebp - 0xa0]
push 0x414854
push eax
call fcn.0040b630
push dword [esi + 0x41a134]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b630
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004110a0
add esp, 0x2c
pop edi
jmp 0x40e7d9
lea eax, [ebp + 8]
lea esi, [esi + 0x41a134]
push 0
push eax
push dword [esi]
call fcn.0040af00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
lea edi, [ebp - 2]
xor ecx, ecx
test edi, edi
jle 0x401093
push ebx
lea esp, [esp]
movzx edx, byte [esi + ecx]
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr edx, 2
mov dl, byte [edx + ebx]
mov byte [eax], dl
movzx ebx, byte [esi + ecx + 1]
xor edx, edx
mov dl, byte [esi + ecx]
shr ebx, 4
inc eax
add ecx, 3
and edx, 3
shl edx, 4
or edx, ebx
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dl, byte [edx + ebx]
mov byte [eax], dl
movzx ebx, byte [esi + ecx - 1]
xor edx, edx
mov dl, byte [esi + ecx - 2]
shr ebx, 6
inc eax
and edx, 0xf
shl edx, 2
or edx, ebx
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dl, byte [edx + ebx]
mov byte [eax], dl
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
xor edx, edx
mov dl, byte [esi + ecx - 1]
inc eax
and edx, 0x3f
mov dl, byte [edx + ebx]
mov byte [eax], dl
inc eax
cmp ecx, edi
jl 0x401020
pop ebx
cmp ecx, ebp
jge 0x401113
movzx edx, byte [ecx + esi]
mov edi, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr edx, 2
mov dl, byte [edx + edi]
mov byte [eax], dl
inc eax
dec ebp
cmp ecx, ebp
jne 0x4010db
movzx ecx, byte [ecx + esi]
mov edx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ecx, 3
shl ecx, 4
mov cl, byte [ecx + edx]
mov edx, dword [esp + 0x10]
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
inc eax
mov byte [eax], 0x3d
inc eax
pop edi
mov byte [eax], 0
sub eax, edx
pop esi
inc eax
pop ebp
ret
lea edx, [ecx + esi + 1]
movzx ecx, byte [ecx + esi]
movzx esi, byte [edx]
and ecx, 3
shl ecx, 4
shr esi, 4
or ecx, esi
mov esi, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov cl, byte [ecx + esi]
mov byte [eax], cl
movzx edx, byte [edx]
mov ecx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and edx, 0xf
mov dl, byte [ecx + edx*4]
inc eax
mov byte [eax], dl
inc eax
mov byte [eax], 0x3d
inc eax
mov edx, dword [esp + 0x10]
pop edi
mov byte [eax], 0
sub eax, edx
pop esi
inc eax
pop ebp
ret
Function at 0x401840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43cff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004017b0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401560
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4018d2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x407a60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43d66d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
mov esi, ecx
mov dword [esi], eax
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
mov dword [esp + 0xc], esi
call fcn.00401560
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
mov dword [esp + 0x1c], 0
call fcn.00401560
add eax, 0x10
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
sub eax, 0x10
push eax
mov byte [esp + 0x20], 1
call fcn.00401560
add eax, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
mov byte [esp + 0x24], 2
call fcn.00401560
add eax, 0x10
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
sub eax, 0x10
push eax
mov byte [esp + 0x28], 3
call fcn.00401560
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
sub eax, 0x10
push eax
mov byte [esp + 0x2c], 4
call fcn.00401560
add eax, 0x10
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
sub eax, 0x10
push eax
mov byte [esp + 0x30], 5
call fcn.00401560
add eax, 0x10
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
sub eax, 0x10
push eax
mov byte [esp + 0x34], 6
call fcn.00401560
add esp, 0x20
add eax, 0x10
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 0x24]
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x421bec
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x445560
call fcn.0042295c
mov edi, 0x94
mov eax, edi
call fcn.00421290
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x43f2f8]
mov ecx, dword [esi + 0x10]
mov dword [0x455708], ecx
mov eax, dword [esi + 4]
mov dword [0x455714], eax
mov edx, dword [esi + 8]
mov dword [0x455718], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x45570c], esi
cmp ecx, 2
je 0x421c4c
or esi, 0x8000
mov dword [0x45570c], esi
shl eax, 8
add eax, edx
mov dword [0x455710], eax
xor esi, esi
push esi
mov edi, dword [0x43f22c]
call edi
cmp word [eax], 0x5a4d
jne 0x421c87
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421c87
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x421c9f
cmp eax, 0x20b
je 0x421c8c
mov dword [ebp - 0x1c], esi
jmp 0x421cb3
cmp dword [ecx + 0x84], 0xe
jbe 0x421c87
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x421cad
cmp dword [ecx + 0x74], 0xe
jbe 0x421c87
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0042468c
pop ecx
test eax, eax
jne 0x421cc7
push 0x1c
call fcn.00421bc8
pop ecx
call fcn.00425ce5
test eax, eax
jne 0x421cd8
push 0x10
call fcn.00421bc8
pop ecx
call fcn.00429e44
mov dword [ebp - 4], esi
call fcn.00429c46
test eax, eax
jge 0x421cf1
push 0x1b
call fcn.00421ba3
pop ecx
call dword [0x43f118]
mov dword [0x456ff0], eax
call fcn.00429b24
mov dword [0x4556f4], eax
call fcn.00429a82
test eax, eax
jge 0x421d17
push 8
call fcn.00421ba3
pop ecx
call fcn.0042984f
test eax, eax
jge 0x421d28
push 9
call fcn.00421ba3
pop ecx
push 1
call fcn.00422567
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x421d3e
push eax
call fcn.00421ba3
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x43f114]
call fcn.004297f2
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x421d5f
movzx eax, word [ebp - 0x40]
jmp 0x421d62
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042df24
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x421d80
push edi
call fcn.00422694
call fcn.004226b6
jmp 0x421db2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00422997
ret