joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100025a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1068
call fcn.1000b940
mov byte [ebp - 0x218], 0
mov byte [ebp - 0x110], 0
mov byte [ebp - 0x10e], 0
mov byte [ebp - 0x658], 0
mov byte [ebp - 0x7a0], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x684], 0
mov dword [ebp - 0x680], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x698], 0
mov dword [ebp - 0x690], 0
mov dword [ebp - 0x694], 0
mov dword [ebp - 0x68c], 0
mov dword [ebp - 0x67c], 0
mov dword [ebp - 8], 0x1000d1ac
mov dword [ebp - 4], 0x1000d1a8
mov dword [ebp - 0x54c], str.Take
mov dword [ebp - 0x21c], 0x1000d19c
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push str._n70_4_0_3
lea ecx, [ebp - 0x548]
call fcn.10002a50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x244], eax
push 0x16
push 0x3f5
push str._d__d
lea eax, [ebp - 0x678]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 0x688], 0
push 0
lea ecx, [ebp - 0x688]
push ecx
lea edx, [ebp - 0x678]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x678]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10002060
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100072c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1198
call fcn.1000b940
mov dword [ebp - 0x1198], ecx
push str._bb2r5_dt
mov ecx, dword [ebp - 0x1198]
add ecx, 0x128
call fcn.10002a50
push str._bb2r5_dt
mov ecx, dword [ebp - 0x1198]
add ecx, 0x128
call fcn.10002a50
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp - 0x1198]
mov dword [ecx + 0x19ec], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xb7
je 0x1000732e
cmp dword [ebp - 4], 5
jne 0x10007332
mov al, 1
jmp 0x10007334
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x100077d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x100]
push eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0
sete al
mov esp, ebp
pop ebp
ret 8

Function at 0x10007830
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp + 0xc]
push ecx
push 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x100]
push edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10007876
xor al, al
jmp 0x10007878
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x1000a6b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20d4
call fcn.1000b940
mov dword [ebp - 0x20cc], ecx
push 0x10
lea eax, [ebp - 0x18]
push eax
call fcn.1000ac30
add esp, 8
push 0x44
lea ecx, [ebp - 0x360]
push ecx
call fcn.1000ac30
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x360], 0x44
mov dword [ebp - 8], 0
push 0
push 0x1000e01c
lea ecx, [ebp - 0x318]
call fcn.10002a50
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x364], eax
cmp dword [ebp - 0x364], 0
je 0x1000a833
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x364]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 4]
push ecx
push 1
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x36c], eax
lea edx, [ebp - 0x368]
push edx
push 0x2000000
mov eax, dword [ebp - 0x36c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000a7ca
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x360]
push edx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
push str.___2gh:u7_13l_7__:_65hk5_6_._
lea ecx, [ebp - 0x670]
call fcn.10002a50
push eax
push 0
mov eax, dword [ebp - 0x368]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 8], 0
je 0x1000a7c0
mov dword [ebp - 0x20d0], str.succeed
jmp 0x1000a7ca
mov dword [ebp - 0x20d0], str.failed
cmp dword [ebp - 8], 0
jne 0x1000a806
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x360]
push edx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
push str.___2gh:u7_13l_7__:_65hk5_6_._
lea ecx, [ebp - 0x670]
call fcn.10002a50
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 8], 0
je 0x1000a81e
mov dword [ebp - 0x20d4], str.succeed
jmp 0x1000a828
mov dword [ebp - 0x20d4], str.failed
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x20cc]
call fcn.10009f90
mov esp, ebp
pop ebp
ret
Function at 0x1000b420
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1520
call fcn.1000b940
push 0x44
lea eax, [ebp - 0x60]
push eax
call fcn.1000ac30
add esp, 8
push 0x10
lea ecx, [ebp - 0x18]
push ecx
call fcn.1000ac30
add esp, 8
mov dword [ebp - 0x60], 0x44
cmp dword [ebp + 0x24], 0
je 0x1000b482
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
mov edx, dword [ebp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov dword [ebp - 0x1520], eax
jmp 0x1000b4a8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x1520], eax
mov eax, dword [ebp - 0x1520]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000b599
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x10007
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push str._f_4___5fvv_
lea ecx, [ebp - 0x388]
call fcn.10002a50
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x38c], eax
push 0x1000e1e0
lea ecx, [ebp - 0x388]
call fcn.10002a50
push eax
mov edx, dword [ebp - 0x38c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 4]
push eax
push 4
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xa4]
add eax, 8
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [ebp - 0x84]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x80], ecx
push 0x1c
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x1000b58c
mov dword [ebp - 0x6c], 0x10000
cmp dword [ebp - 0x6c], 0
je 0x1000b581
jmp 0x1000b58c
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
jmp 0x1000b558
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x80]
sub edx, dword [ecx]
mov eax, dword [ebp + 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x1000c15d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000e5e0]
jne 0x1000c167
repz ret
jmp fcn.1000c2fc

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x45c1b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x437015
lea edi, [esi - 0x36015]
push edi
or ebp, 0xffffffff
jmp 0x45c1d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45c1d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45c1c8
mov eax, 1
add ebx, ebx
jne 0x45c1eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45c1e0
jne 0x45c1fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45c1e0
xor ecx, ecx
sub eax, 3
jb 0x45c210
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45c282
mov ebp, eax
add ebx, ebx
jne 0x45c21b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45c228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45c24c
inc ecx
add ebx, ebx
jne 0x45c238
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45c22d
jne 0x45c249
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45c22d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45c26c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45c25d
jmp 0x45c1ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45c26c
add edi, ecx
jmp 0x45c1ce
pop esi
mov edi, esi
mov ecx, 0x458
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45c28a
cmp byte [edi], 5
jne 0x45c28a
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 0x45c28f
lea edi, [esi + 0x5a000]
mov eax, dword [edi]
or eax, eax
je 0x45c2fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5c000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5c03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45c2bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5c044]
or eax, eax
je 0x45c2f8
mov dword [ebx], eax
add ebx, 4
jmp 0x45c2d9
call dword [esi + 0x5c040]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x45c32f
cmp al, 0xef
ja 0x45c322
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x45c304
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x45c311
mov ebp, dword [esi + 0x5c048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x5c38a]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45c37b
sub esp, 0xffffff80
jmp 0x4013f0
Function at 0x4014f5
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi], 0x1505
test eax, eax
je 0x401522
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x401521
imul ecx, dword [esi], 0x21
movzx edx, byte [edi + eax]
xor edx, ecx
inc edi
mov dword [esi], edx
cmp edi, dword [ebp + 0xc]
jb 0x401510
pop edi
mov eax, dword [esi]
pop esi
pop ebp
ret 8

Function at 0x401a3c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, 0x40896c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401a49
sub ecx, edx
jne 0x401abd
mov eax, dword [0x408970]
xor edx, edx
push ebx
push edi
xor edi, edi
mov dword [ebp - 4], edx
movzx ebx, al
test ah, ah
je 0x401aad
push esi
mov eax, dword [edx*4 + 0x408974]
xor esi, esi
mov dword [ebp - 8], eax
mov edx, eax
push 3
pop ecx
sub ecx, esi
mov eax, edx
shl ecx, 3
shr eax, cl
xor al, bl
mov byte [edi + 0x40896c], al
inc edi
inc ebx
and ebx, 0xff
inc esi
cmp esi, 4
jb 0x401a78
mov edx, dword [ebp - 4]
movzx eax, byte [0x408971]
inc edx
mov dword [ebp - 4], edx
cmp edx, eax
jb 0x401a6a
pop esi
movzx eax, byte [0x408972]
pop edi
pop ebx
mov byte [eax + 0x40896c], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0x40896c
mov esp, ebp
pop ebp
ret 8

Function at 0x401af7
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, dword [0x405030]
cmp esi, 0x270
jl 0x401bd7
cmp esi, 0x271
jne 0x401b20
rdtsc
and eax, 0xffff
mov ecx, eax
call fcn.00401acc
xor esi, esi
mov edx, esi
mov ecx, dword [edx*4 + 0x405634]
xor ecx, dword [edx*4 + 0x405630]
and ecx, 0x7fffffff
xor ecx, dword [edx*4 + 0x405630]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x40503c]
xor ecx, dword [edx*4 + 0x405c64]
mov dword [edx*4 + 0x405630], ecx
inc edx
cmp edx, 0xe3
jl 0x401b24
cmp edx, 0x26f
jge 0x401ba5
push edi
lea edi, [edx*4 + 0x405630]
mov ecx, dword [edi]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x40503c]
xor eax, dword [edi - 0x38c]
xor eax, ecx
mov dword [edi], eax
add edi, 4
cmp edi, 0x405fec
jl 0x401b74
pop edi
mov ecx, dword [0x405630]
xor ecx, dword [0x405fec]
and ecx, 0x7fffffff
xor ecx, dword [0x405fec]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x40503c]
xor ecx, dword [0x405c60]
mov dword [0x405fec], ecx
mov ecx, dword [esi*4 + 0x405630]
mov eax, ecx
shr eax, 0xb
inc esi
xor ecx, eax
mov dword [0x405030], esi
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
ret
Function at 0x4024b5
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, ecx
push esi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4024c1
sub ecx, esi
jne 0x402534
and dword [ebp - 4], ecx
xor esi, esi
push ebx
movzx ebx, byte [edx + 0xc]
mov dword [ebp - 8], esi
cmp byte [edx + 0xd], cl
jbe 0x40252b
push edi
lea edi, [edx + 0x10]
mov dword [ebp - 0xc], edi
mov eax, dword [edi]
xor esi, esi
mov edi, dword [ebp - 4]
mov dword [ebp - 0x10], eax
push 3
pop ecx
sub ecx, esi
shl ecx, 3
shr eax, cl
xor al, bl
mov byte [edi + edx], al
inc edi
mov eax, dword [ebp - 0x10]
inc ebx
and ebx, 0xff
inc esi
cmp esi, 4
jb 0x4024ef
mov esi, dword [ebp - 8]
movzx eax, byte [edx + 0xd]
inc esi
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0xc]
add edi, 4
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
cmp esi, eax
jb 0x4024e5
pop edi
movzx eax, byte [edx + 0xe]
pop ebx
mov byte [eax + edx], 0
mov eax, dword [ebp + 8]
pop esi
mov dword [eax], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x4025f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x402655
movzx eax, word [edi + 0x14]
lea ecx, [edi + 0x18]
add ecx, eax
movzx eax, word [edi + 6]
imul eax, eax, 0x28
mov esi, ecx
mov dword [ebp - 8], ecx
add eax, ecx
cmp ecx, eax
jae 0x402655
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402621
sub ecx, edx
push ecx
push ecx
mov eax, esp
lea ecx, [ebp - 4]
mov dword [eax], esi
call fcn.004014f5
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
cmp dword [ebp + 8], eax
je 0x402657
movzx eax, word [edi + 6]
add esi, 0x28
imul eax, eax, 0x28
add eax, dword [ebp - 8]
cmp esi, eax
jb 0x40261c
xor esi, esi
lea eax, [ebp + 8]
lea ecx, [ebx + 4]
push eax
call fcn.004018a9
test esi, esi
je 0x40267d
mov ecx, dword [esi + 0xc]
add ecx, dword [eax]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x40268a
mov ecx, dword [esi + 0x10]
jmp 0x40268a
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40270b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x40272d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40272d
movzx ecx, word [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
je 0x40272f
xor ecx, ecx
mov eax, ecx
pop ebp
ret
Function at 0x402782
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
push edi
test esi, esi
je 0x4027dc
movzx eax, word [esi + 0x14]
lea edx, [esi + 0x18]
add edx, eax
movzx eax, word [esi + 6]
imul edi, eax, 0x28
add edi, edx
jmp 0x4027d8
mov esi, dword [edx + 8]
test esi, esi
jne 0x4027b1
mov esi, dword [edx + 0x10]
mov eax, dword [edx + 0xc]
cmp dword [ebp + 8], eax
jb 0x4027c7
add eax, esi
or ecx, 1
cmp dword [ebp + 8], eax
jae 0x4027c7
mov al, 1
jmp 0x4027c9
xor al, al
test cl, 1
je 0x4027d1
and ecx, 0xfffffffe
test al, al
jne 0x4027de
add edx, 0x28
cmp edx, edi
jb 0x4027a7
xor edx, edx
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4027e6
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
xor al, al
mov dword [esp + 0x14], edx
mov ebx, ecx
lea edi, [esp + 0x18]
push 0x40
pop ecx
rep stosb byte es:[edi], al
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov esi, dword [edi]
jmp 0x402865
movzx eax, word [esi + 0x2c]
lea ecx, [esp + 0x18]
mov edx, dword [esi + 0x30]
shr eax, 1
push eax
call fcn.00401ca1
add esp, 4
call fcn.00401c84
mov edx, eax
lea ecx, [edx + 1]
mov dword [esp + 0x10], ecx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x40283a
sub edx, dword [esp + 0x10]
push edx
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [esp + 0x14]
call fcn.004014f5
mov eax, dword [esp + 0xc]
and dword [esp + 0xc], 0
cmp dword [esp + 0x14], eax
je 0x402880
mov esi, dword [esi]
cmp esi, edi
jne 0x402816
and dword [ebx], 0
push 0x40
pop ecx
xor al, al
lea edi, [esp + 0x18]
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
je 0x402895
lea edx, [esp + 0x18]
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
test cl, cl
jne 0x40288b
mov eax, dword [esi + 0x18]
mov dword [ebx], eax
jmp 0x40286c
Function at 0x40289c
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
xor al, al
mov ecx, 0x104
push edi
lea edi, [ebp - 0x108]
xor ebx, ebx
rep stosb byte es:[edi], al
mov eax, dword fs:[0x18]
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
add ecx, 0xc
test eax, eax
je 0x40295d
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40295c
mov edx, dword [ecx]
jmp 0x4028e8
cmp dword [edx + 0x18], eax
je 0x4028ee
mov edx, dword [edx]
cmp edx, ecx
jne 0x4028e1
jmp 0x40295c
movzx eax, word [edx + 0x2c]
lea ecx, [ebp - 0x108]
mov edx, dword [edx + 0x30]
shr eax, 1
push eax
call fcn.00401ca1
add esp, 4
call fcn.00401c84
lea edx, [ebp - 0x310]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402913
mov al, byte [ebp + ebx - 0x310]
mov byte [ebp + ebx - 0x20c], al
inc ebx
test al, al
jne 0x40291d
lea ecx, [ebp - 0x20c]
mov al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
test al, al
jne 0x402936
lea edi, [ebp - 0x20c]
mov ecx, 0x104
rep stosb byte es:[edi], al
lea edi, [ebp - 0x310]
mov ecx, 0x104
rep stosb byte es:[edi], al
mov bl, 1
pop esi
xor al, al
lea edi, [ebp - 0x108]
mov ecx, 0x104
rep stosb byte es:[edi], al
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402d91
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push ecx
push 0x40
push ecx
mov eax, esp
mov edi, ecx
lea ecx, [ebp - 0x40]
mov esi, edx
mov dword [eax], ecx
mov ecx, edi
push dword [ebp + 8]
call fcn.00403182
test al, al
je 0x402deb
mov eax, 0x5a4d
cmp word [ebp - 0x40], ax
jne 0x402deb
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push ecx
push 0xf8
push ecx
add eax, ecx
mov ecx, esp
push eax
mov dword [ecx], esi
mov ecx, edi
call fcn.00403182
test al, al
je 0x402deb
cmp dword [esi], 0x4550
sete al
jmp 0x402ded
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret