joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4847c8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x4847e5
add esp, 0xfffffff0
call fcn.00403760
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x484981
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0047afd4
test al, al
jne 0x484822
mov ecx, 0x4849b4
mov dl, 1
mov eax, dword [0x46f6d0]
call fcn.0040c5b4
call fcn.00403c8c
xor eax, eax
push ebp
push 0x48484e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00479a80
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0047996c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48486e
mov eax, dword [ebp - 0x10]
mov edx, 0x4849f0
call fcn.00404c20
je 0x48488b
mov eax, esi
mov edx, 0x4849f0
call fcn.00404c20
jne 0x4848af
mov eax, edi
mov edx, 0x484a00
call fcn.00404c20
je 0x4848af
mov ecx, 0x4849d8
mov dl, 1
mov eax, dword [0x46f978]
call fcn.0040c5b4
call fcn.00403c8c
mov eax, edi
xor edx, edx
call fcn.00404c20
jne 0x4848dc
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404c20
je 0x4848dc
mov ecx, 0x4849d8
mov dl, 1
mov eax, dword [0x46f978]
call fcn.0040c5b4
call fcn.00403c8c
mov eax, dword [ebp - 0x10]
mov edx, 0x484a40
call fcn.00404c20
jne 0x48490f
mov eax, edi
mov edx, 0x484a4c
call fcn.00404c20
je 0x48490f
mov ecx, 0x4849d8
mov dl, 1
mov eax, dword [0x46f978]
call fcn.0040c5b4
call fcn.00403c8c
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.004828b8
lea eax, [ebx + 4]
mov edx, esi
call fcn.004049b4
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.004049b4
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.004049b4
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.004049b4
lea eax, [ebx + 8]
call fcn.00404978
mov byte [ebx + 0xc], 2
xor eax, eax
mov dword [ebx + 0x30], eax
mov al, byte [ebp + 8]
mov byte [ebx + 0x34], al
mov ax, word [0x484a98]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484988
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404990
ret
Function at 0x48627c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x486299
add esp, 0xfffffff0
call fcn.00403760
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x486434
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0047afd4
test al, al
jne 0x4862d6
mov ecx, 0x486468
mov dl, 1
mov eax, dword [0x46f6d0]
call fcn.0040c5b4
call fcn.00403c8c
xor eax, eax
push ebp
push 0x486302
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00479a80
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0047996c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x486322
mov eax, edi
xor edx, edx
call fcn.00404c20
jne 0x48634f
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404c20
je 0x48634f
mov ecx, 0x48648c
mov dl, 1
mov eax, dword [0x46f978]
call fcn.0040c5b4
call fcn.00403c8c
mov eax, dword [ebp - 0x10]
mov edx, 0x4864a4
call fcn.00404c20
jne 0x486382
mov eax, edi
mov edx, 0x4864b0
call fcn.00404c20
je 0x486382
mov ecx, 0x48648c
mov dl, 1
mov eax, dword [0x46f978]
call fcn.0040c5b4
call fcn.00403c8c
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.004828b8
lea eax, [ebx + 4]
mov edx, esi
call fcn.004049b4
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.004049b4
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.004049b4
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.004049b4
lea eax, [ebx + 8]
call fcn.00404978
mov byte [ebx + 0xc], 1
mov dl, 1
mov eax, dword [0x41a6f0]
call fcn.004033dc
mov dword [ebx + 0x38], eax
mov dl, 1
mov eax, dword [0x41a6f0]
call fcn.004033dc
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x41a6f0]
call fcn.004033dc
mov dword [ebx + 0x34], eax
push ebx
mov eax, dword [ebx + 0x38]
push eax
mov ax, word [0x4864fc]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4726f4]
call fcn.00481b10
mov dword [ebx + 0x3c], eax
mov ax, word [0x486500]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48643b
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404990
ret
Function at 0x488e90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x488eb2
add esp, 0xfffffff0
call fcn.00403760
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x48901d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0047afd4
test al, al
jne 0x488eef
mov ecx, 0x489050
mov dl, 1
mov eax, dword [0x46f6d0]
call fcn.0040c5b4
call fcn.00403c8c
push dword [0x4f1c24]
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xbc]
push dword [ebp - 0x10]
push dword [0x4f1c24]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404bd8
mov eax, dword [ebp - 0xc]
call fcn.0047baac
test al, al
jne 0x488fc1
push dword [0x4f1c20]
push dword [ebp + 8]
push dword [0x4f1c20]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404bd8
mov eax, dword [ebp - 0x14]
call fcn.0047baac
test al, al
jne 0x488fc1
push dword [0x4f1c24]
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push dword [ebp - 0x1c]
push dword [0x4f1c24]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404bd8
mov eax, dword [ebp - 0x18]
call fcn.0047bbc4
test al, al
jne 0x488fc1
push dword [0x4f1c20]
push edi
push dword [0x4f1c20]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404bd8
mov eax, dword [ebp - 0x20]
call fcn.0047bbc4
test al, al
jne 0x488fc1
mov ecx, 0x489050
mov dl, 1
mov eax, dword [0x46f6d0]
call fcn.0040c5b4
call fcn.00403c8c
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.004828b8
lea eax, [ebx + 4]
mov edx, esi
call fcn.004049b4
lea eax, [ebx + 8]
call fcn.00404978
lea eax, [ebx + 0x30]
mov edx, edi
call fcn.004049b4
lea eax, [ebx + 0x34]
mov edx, dword [ebp + 8]
call fcn.004049b4
mov byte [ebx + 0xc], 0xc
mov ax, word [0x48906c]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489024
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00404990
ret

Function at 0x4bdb20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bdb9b
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push 0x59
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4bdb82
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004044dc
mov eax, dword [ebp - 0x104]
mov edx, ebx
call fcn.0040880c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdba2
lea eax, [ebp - 0x104]
call fcn.0040426c
ret
Function at 0x4ccb2c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4ccbe6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x10]
add dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x20]
mov dl, byte [ebx + 0x30]
mov byte [eax], dl
mov esi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x1c]
sub esi, eax
test esi, esi
je 0x4ccb6b
mov edx, dword [ebx + 0x10]
mov ecx, esi
call fcn.00402b04
add esi, dword [ebx + 0x10]
mov dword [ebx + 0x14], esi
mov ecx, dword [ebx + 0x18]
sub ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 4]
mov esi, dword [eax]
call dword [esi + 0xc]
add dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x1c], eax
mov esi, dword [ebx + 0x14]
mov dword [ebx + 0x20], esi
cmp esi, dword [ebx + 0x18]
jne 0x4ccbc2
mov edx, esi
dec edx
mov eax, dword [ebx + 0x10]
call fcn.0041cf44
mov edi, eax
mov dword [ebx + 0x20], edi
cmp edi, dword [ebx + 0x10]
jne 0x4ccbc2
lea edx, [ebp - 4]
mov eax, dword [0x4f29d0]
call fcn.004064fc
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004cca2c
mov eax, dword [ebx + 0x20]
mov al, byte [eax]
mov byte [ebx + 0x30], al
mov eax, dword [ebx + 0x20]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ccbed
lea eax, [ebp - 4]
call fcn.0040426c
ret
Function at 0x6a89fb
Capabilities:
Encode data using xor

Disassembly:
dec eax
invalid
in al, 0xe9
jae 0x6a89ab
push ebx
call 0x37ed7589
jne 0x6a8a83
add al, 0x36
add byte [edx - 0x124b171c], ch
invalid
adc al, 0xa
mov ebx, 0x1090f22a
sbb eax, 0x89f702a3
xor edx, dword [eax + 0x3511820]
sub bh, dl
cmp eax, 0xe1154090
add ecx, dword [ecx]
cmp eax, 0x90f70a24
push eax
or dword [ebx], eax
nop
pushal
mov dword [edx], ecx
ja 0x6a8a84
or al, bh
ret
or eax, 0x904c2bc4
jo 0x6a8abd
xor ebp, dword [ebx]
call 0xa9fd5f8e
mov ebx, esi
mov word [eax - 0xa3faac8], gs
dec ebp
pushal
sbb byte [esi], 0xc2
xor bl, byte [edi]
rcl byte [ecx + edx*2], cl
inc edi
hlt
Function at 0x80d090
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x5cc00d
lea edi, [esi - 0x1cb00d]
push edi
or ebp, 0xffffffff
jmp 0x80d0b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x80d0b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x80d0a8
mov eax, 1
add ebx, ebx
jne 0x80d0cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x80d0c0
jne 0x80d0dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80d0c0
xor ecx, ecx
sub eax, 3
jb 0x80d0f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x80d162
mov ebp, eax
add ebx, ebx
jne 0x80d0fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x80d108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x80d12c
inc ecx
add ebx, ebx
jne 0x80d118
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x80d10d
jne 0x80d129
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80d10d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x80d14c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x80d13d
jmp 0x80d0ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x80d14c
add edi, ecx
jmp 0x80d0ae
pop esi
mov edi, esi
mov ecx, 0x149e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x80d16a
cmp byte [edi], 0x11
jne 0x80d16a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x80d16f
lea edi, [esi + 0x409000]
mov eax, dword [edi]
or eax, eax
je 0x80d1de
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x41515c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4151b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x80d19c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4151bc]
or eax, eax
je 0x80d1d8
mov dword [ebx], eax
add ebx, 4
jmp 0x80d1b9
call dword [esi + 0x4151b8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x80d20f
cmp al, 0xef
ja 0x80d202
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x80d1e4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x80d1f1
mov ebp, dword [esi + 0x4151c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x80d243
sub esp, 0xffffff80
jmp 0x41a69f
Function at 0x403c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x408460]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
push ecx
push 0
mov byte [ebp - 0x13d], 0
mov dword [ebp - 0x144], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x403d00
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x13c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x403cc7
push ebx
lea ecx, [ebp - 0x13c]
push ecx
push 1
push esi
call edi
add esp, 0x10
mov byte [ebp - 0x13d], 1
lea edx, [ebp - 0x148]
push edx
mov dword [ebp - 0x148], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x403cf7
mov eax, dword [ebp - 0x148]
mov edx, dword [ebp - 0x144]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp byte [ebp - 0x13d], 0
jne 0x403d0b
push ebx
push 0
push 1
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040423b
mov esp, ebp
pop ebp
ret

Function at 0x403ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x408460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x144]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403f6e
mov ecx, dword [ebp - 0x144]
lea edx, [ebp - 0x148]
push edx
lea eax, [ebp - 0x13c]
push eax
push 0
push ecx
mov dword [ebp - 0x148], 0x136
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x403f41
mov byte [ebp - 0x13d], 0
jmp 0x403f58
push ebx
lea edx, [ebp - 0x13c]
push edx
push 0
push esi
mov byte [ebp - 0x13d], 1
call edi
add esp, 0x10
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x13d], 0
jne 0x403f79
push ebx
push 0
push 0
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040423b
mov esp, ebp
pop ebp
ret

Function at 0x40423b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408460]
jne 0x404245
repz ret
jmp fcn.004046da

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401e20
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp sym._mark_section_writable

Function at 0x401e80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4493e0]
test esi, esi
jle 0x401f6d
mov edi, dword [0x4493e4]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401eb4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401f66
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401ea0
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401faa
lea ebx, [esi + esi*2]
mov esi, dword [0x4493e4]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4493e4]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401f8a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401f5f
sub eax, 0x40
and eax, 0xffffffbf
je 0x401f5f
mov eax, dword [esp + 0x20]
add ebx, dword [0x4493e4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401f74
add dword [0x4493e0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401ebe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
mov eax, dword [0x4493e4]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
Function at 0x402420
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4493f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4493f0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402475
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40246e
test esi, esi
je 0x40246e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402450
mov dword [esp], 0x4493f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402690
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4026c8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x4026be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4026ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4026b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18

Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x217a5e50
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x47c5595c
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x409764
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409818
jmp 0x40980d
cmp dword [esi + 0x10], 0x1000
jne 0x4097f9
test byte [esi + 0x15], 1
jne 0x4097f9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4097b8
cmp eax, 2
je 0x4097b8
cmp eax, 0x10
je 0x4097b8
cmp eax, 0x20
jne 0x4097cd
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4097cd
mov bl, 1
xor ebp, ebp
jmp 0x4097de
mov eax, dword [esi]
add eax, ebp
call fcn.0040975c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4097d1
test bl, bl
je 0x4097f9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409818
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409790
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0xee8638
Capabilities:
Encode data using xor

Disassembly:
jmp 0xee8642
or eax, dword [eax]
add byte [eax], al
add byte [eax], al
pushal
call 0xee8648
pop ebp
sub ebp, 0x10
sub ebp, 0xae8638
jmp 0xee865e
mov eax, 0xae8638
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c8
mov edx, 0x36a75e94
xor byte [eax], dl
inc eax
dec ecx
jne 0xee8675
jmp 0xee8688
pop ds
pop ecx
pop ds
sbb eax, 0x949494a8
adc eax, 0x94946c55
xchg esp, eax
xchg edi, eax
pop ecx
sub al, 0x91
xchg esp, eax
xchg esp, eax
xchg esp, eax
mov esp, 0x63949494
jbe 0xee863c
pop esp
pop ds
adc eax, 0x94949498
xchg edi, eax
push ecx
les ebx, [ecx]
invalid