joyce8/EMBER2024-capa huggingface dataset:
Function at 0x162a000
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get ntdll base address
Get number of processors
Get process filename
Packed with generic packer
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
push ebp
xor edx, edx
push esi
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
push esi
xor eax, eax
mov eax, dword fs:[eax + 0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
pop esi
mov al, 0x6c
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], al
mov al, 0x4c
mov bl, 0x64
mov byte [esp + 0x2c], al
mov cl, 0x61
mov byte [esp + 0x30], al
mov al, 0x72
mov byte [esp + 0x24], 0x66
mov byte [esp + 0x25], 0x75
mov byte [esp + 0x26], 0x6e
mov byte [esp + 0x27], 0x2e
mov byte [esp + 0x28], bl
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2d], 0x6f
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], bl
mov byte [esp + 0x31], 0x69
mov byte [esp + 0x32], 0x62
mov byte [esp + 0x33], al
mov byte [esp + 0x34], cl
mov byte [esp + 0x35], al
mov byte [esp + 0x36], 0x79
mov byte [esp + 0x37], 0x45
mov byte [esp + 0x38], 0x78
mov byte [esp + 0x39], 0x41
mov byte [esp + 0x3a], dl
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x3c]
add ebx, eax
add ebx, 0x78
mov ebx, dword [ebx]
add ebx, eax
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [eax + 0x24]
mov edi, dword [eax + 0x20]
add ecx, esi
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
add ecx, esi
add edi, esi
xor ebp, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
cmp eax, edx
jbe 0x162a119
jmp 0x162a0e0
mov ecx, dword [edi + ebp*4]
add ecx, esi
lea ebx, [esp + 0x2c]
xor eax, eax
sub ecx, ebx
lea ecx, [ecx]
lea ebx, [ecx + eax]
mov bl, byte [esp + ebx + 0x2c]
cmp bl, dl
je 0x162a108
cmp byte [esp + eax + 0x2c], bl
jne 0x162a108
inc eax
cmp byte [esp + eax + 0x2c], dl
jne 0x162a0f0
cmp eax, edx
je 0x162a112
cmp byte [esp + eax + 0x2c], dl
je 0x162a137
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x162a0e0
mov eax, dword [esp + 0x20]
cmp eax, edx
je 0x162a12a
push edx
push edx
lea ecx, [esp + 0x2c]
push ecx
call eax
jmp 0x81afd3
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + ebp*2]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + ecx*4]
add eax, esi
jmp 0x162a11d
Function at 0x4020f3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x40210f
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x402131
mov eax, 0
jmp 0x40216d
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc4
call fcn.00405e00
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x40216d
mov esp, ebp
pop ebp
ret 4

Function at 0x40347b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x4034c2
cmp ebx, 0x20
je 0x4034c2
cmp ebx, 0xffffffe0
je 0x4034c2
jne 0x4034cb
add eax, 1
cmp esi, eax
je 0x4034d8
jne 0x4034a7
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x4034dc
jne 0x4034a3
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x4034f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x4035b1
test ecx, ecx
je 0x4035b1
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x4035b1
test ebx, ebx
je 0x4035b1
mov ebx, eax
add ebx, edx
je 0x4035b1
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x4035b1
cmp dword [edx + eax + 0x14], 0
je 0x4035b1
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x4035b1
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4035a1
test dl, dl
je 0x40359d
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4035a1
add edi, 2
add esi, 2
test dl, dl
jne 0x403581
xor eax, eax
jmp 0x4035a6
sbb eax, eax
or eax, 1
test eax, eax
je 0x4035bd
inc ebp
cmp ebp, dword [esp + 4]
jb 0x40356e
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x4044b3
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x4044e1
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4044d8
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4044d0
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x404502
mov esp, ebp
pop ebp
ret

Function at 0x404506
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x404572
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x40459f
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x40458e
xor ecx, eax
xor edx, ebx
dec edi
jne 0x40457f
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x4045c5
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x404566
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4045f1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x405e80
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x405e9e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x405e93
pop esi
ret
Function at 0x414adf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x414b0d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x414b2b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00414a45
jmp 0x414b2b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x414b2b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00414a45
test edi, edi
mov eax, edi
jne 0x414b15
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1022c1de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1023b9e0]
jne 0x1022c1e8
repz ret
jmp fcn.1022d0fc

Function at 0x1022e2fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1022b594
and dword [ebp - 4], 0
cmp dword [0x1023cf1c], 0
mov ebx, eax
jne 0x1022e3ac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1022e45d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1022e45d
push eax
call fcn.1022b522
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1023cf1c], eax
call esi
push eax
call fcn.1022b522
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1023cf20], eax
call esi
push eax
call fcn.1022b522
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1023cf24], eax
call esi
push eax
call fcn.1022b522
pop ecx
mov dword [0x1023cf2c], eax
test eax, eax
je 0x1022e3ac
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1022b522
pop ecx
mov dword [0x1023cf28], eax
mov eax, dword [0x1023cf28]
cmp eax, ebx
je 0x1022e404
cmp dword [0x1023cf2c], ebx
je 0x1022e404
push eax
call fcn.1022b59d
push dword [0x1023cf2c]
mov esi, eax
call fcn.1022b59d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1022e404
test edi, edi
je 0x1022e404
call esi
test eax, eax
je 0x1022e3fb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1022e3fb
test byte [ebp - 0xc], 1
jne 0x1022e404
or dword [ebp + 0x10], 0x200000
jmp 0x1022e43d
mov eax, dword [0x1023cf20]
cmp eax, ebx
je 0x1022e43d
push eax
call fcn.1022b59d
pop ecx
test eax, eax
je 0x1022e43d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1022e43d
mov eax, dword [0x1023cf24]
cmp eax, ebx
je 0x1022e43d
push eax
call fcn.1022b59d
pop ecx
test eax, eax
je 0x1022e43d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1023cf1c]
call fcn.1022b59d
pop ecx
test eax, eax
je 0x1022e45d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1022e45f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1022f94d
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [0x1023b224], 0x24f2
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, 0x13da
xor edx, edx
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [0x1023b224], 0x13da
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x1022f9ed
mov dword [0x1023b224], 0x5bf
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1022fa4a
jmp 0x1022faa3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1022faa3
mov dword [0x1023b224], 0xfffffa1e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1022fa69
jmp 0x1022faa3
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], esi
je 0x1022fa32
mov eax, dword [ebp - 0x24]
add eax, 0xfffffe00
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [0x1023b224], eax
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
jl 0x1022f9ed
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
je 0x1022f996
jmp 0x1022faa3
mov dword [0x1023b228], 0x47
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1022f9b8
jmp 0x1022faa3
mov dword [0x1023b228], 0x519
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1022faa3
mov eax, 1
mov dword [0x1023b224], 0x24bd
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], eax
je 0x1022fab2
xor eax, eax
mov dword [0x1023b224], 0x1321
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x1022fd49
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, 0x11f9
mov dword [0x1023b230], 0
mov byte [0x1023b234], 0
mov dword [0x1023b224], 0x1887
mov dword [0x1023b22c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x41f
mov dword [0x1023b228], eax
mov eax, ecx
mov bl, al
mov eax, dword [ebp - 0x18]
mov byte [eax + ecx], bl
mov dword [0x1023b224], 0xaad
mov ecx, dword [0x1023b22c]
add ecx, 1
mov dword [0x1023b22c], ecx
cmp ecx, 0x100
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
jl 0x1022fd96
xor eax, eax
mov dword [0x1023b224], 0xfffff035
mov dword [0x1023b22c], 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, 0x100
mov dword [0x1023b238], 0
mov dword [ebp - 0x28], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x1023b228]
mov ebx, edi
add ebx, 0x1f68
mov dword [0x1023b224], ebx
mov ebx, dword [0x1023b230]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x28]
movzx ecx, byte [esi + ecx]
add ecx, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add ecx, edx
mov dword [0x1023b238], ecx
add edi, 0xfffffb7b
mov dword [0x1023b228], edi
mov eax, ecx
cdq
mov ecx, dword [ebp - 0x2c]
idiv ecx
mov dword [0x1023b230], edx
mov dword [0x1023b224], 0xb5f
mov edi, dword [ebp - 0x28]
mov cl, byte [esi + edi]
mov byte [0x1023b234], cl
mov dword [0x1023b228], 0x148d
mov cl, byte [esi + edx]
mov byte [esi + edi], cl
mov edx, dword [0x1023b224]
add edx, 0xfffffb13
mov dword [0x1023b228], edx
mov cl, byte [0x1023b234]
mov edx, dword [0x1023b230]
mov byte [esi + edx], cl
mov dword [0x1023b224], 0x106c
mov edx, dword [0x1023b22c]
add edx, 1
mov dword [0x1023b22c], edx
cmp edx, 0x100
mov dword [ebp - 0x24], edx
jl 0x1022fdf3
mov dword [0x1023b224], 0x3b1
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10230138
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 1
lea esi, [ebp - 0x24]
mov dword [0x1023b224], 0x15fa
mov dword [0x1023b228], 0xfffffb3e
mov byte [ebp - 0x24], 0x56
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edx
jmp 0x1023022c
mov eax, dword [ebp - 0x38]
add eax, 0x19b0
mov dword [0x1023b228], 0xb20
mov dword [ebp - 0x3c], eax
jmp 0x10230291
mov dword [0x1023b228], 0x6ae
mov eax, dword [ebp - 0x40]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x1023b224], 0x1d1e
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.1022f4f2
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x5c], ecx
mov dword [0x1023b228], 0x1af1
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x28], ecx
mov dword [0x1023b224], 0x1860
cmp ecx, 0
mov dword [ebp - 0x3c], eax
je 0x10230291
jmp 0x10230176
mov eax, dword [ebp - 0x34]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x102321ec]
mov dh, byte [eax + 0x102321bd]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x34], ecx
jne 0x1023022c
mov dword [0x1023b228], 0x10bc
mov dword [0x1023b224], 0x1c28
call fcn.1022ff88
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.1022f316
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
jne 0x10230190
mov eax, dword [ebp - 0x3c]
add esp, 0x4c
pop esi
pop ebp
ret
Function at 0x10230460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [0x1023b228], 0x968
mov dword [ebp - 0x10], eax
call fcn.1023070c
xor ecx, ecx
mov edx, eax
mov dword [0x1023b228], 0x15f9
mov esi, dword [eax + 0x3c]
mov dword [0x1023b224], 0xfffff591
mov dword [0x1023b228], 0x58
mov esi, dword [eax + esi + 0x78]
mov dword [0x1023b228], 0xfffffbf7
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x1023b224], 0x38ca
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x102305cb
jmp 0x1023053c
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
mov dword [0x1023b224], 0x2457
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x1023b228], 0x163f
mov dword [ebp - 0x24], edi
jmp 0x102305cb
xor eax, eax
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov edx, dword [ebp - 0x28]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x24], eax
jb 0x1023054e
jmp 0x102305cb
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edx
jmp 0x10230577
mov al, byte [ebp - 0x3d]
test al, 1
jne 0x102304e1
jmp 0x10230513
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x45], bh
mov byte [ebp - 0x3d], cl
je 0x1023056a
mov al, byte [ebp - 0x45]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x44]
add edx, 1
mov ah, byte [ebp - 0x3d]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x3c], edx
jne 0x10230577
jmp 0x1023056a
mov eax, dword [ebp - 0x24]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102308b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x93e
xor ebx, ebx
mov dword [0x1023b22c], 0
mov dword [0x1023b230], 0
mov dword [0x1023b23c], 0
mov dword [0x1023b224], 0x1b7a
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x10230a3e
jmp 0x10230934
mov eax, dword [0x1023b22c]
mov ecx, dword [0x1023b230]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x109d
mov edi, 0x100
mov dword [0x1023b224], 0xcd7
add ecx, 1
mov ebx, edx
add ebx, 1
mov dword [ebp - 0x34], eax
mov eax, ecx
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x1023b22c], edx
mov ecx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x34]
add ecx, edx
mov eax, ecx
cdq
idiv edi
mov dword [0x1023b230], edx
mov dword [0x1023b224], 0x1a1e
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x3c]
mov cl, byte [ecx + edi]
mov byte [0x1023b234], cl
mov dword [0x1023b228], 0xfffff974
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x24]
mov byte [edx + edi], cl
mov cl, byte [0x1023b234]
mov edx, dword [0x1023b230]
mov edi, dword [ebp - 0x24]
mov byte [edi + edx], cl
mov dword [0x1023b224], 0x6cf
mov edx, dword [0x1023b22c]
movzx edx, byte [edi + edx]
mov ecx, dword [0x1023b230]
movzx ecx, byte [edi + ecx]
add ecx, edx
mov dword [0x1023b224], 0x257e
and ecx, 0xff
mov dword [0x1023b23c], ecx
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x38]
xor cl, byte [edx + edi]
mov byte [0x1023b240], cl
mov dword [0x1023b228], 0x16d0
mov edx, dword [ebp - 0x20]
mov byte [edx + edi], cl
mov dword [0x1023b224], 0x22d9
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
jne 0x1023091d
mov eax, dword [ebp - 0x2c]
mov dword [0x1023b224], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10230a4e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x1023b224], 0x1742
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1022f62f
lea ecx, [0x1023029a]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x50], edx
mov dword [esp + 0x24], 0x146800
mov edx, dword [0x1023b210]
mov dword [esp + 0x5c], edx
mov edx, dword [0x1023b214]
mov dword [esp + 0x6c], edx
mov dword [0x1023b228], 0x848
mov edx, dword [0x1023b218]
mov dword [esp + 0x74], edx
mov edx, dword [0x1023b21c]
mov dword [esp + 0x20], edx
mov edx, dword [0x1023b220]
mov dword [esp + 0x38], edx
mov dword [0x1023b224], 0x96b
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x10230b7a
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], eax
mov dword [0x1023b228], 0x58
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x3c], edx
mov dword [0x1023b224], 0xc36
call fcn.1022f94d
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x10230bb5
lea eax, [esp + 0x20]
mov dword [0x1023b224], 0x996
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10230138
mov dword [0x1023b224], 0x26f7
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov ecx, dword [0x1023b228]
add ecx, 0xfffff46a
mov dword [0x1023b224], ecx
mov dword [esp + 8], eax
jmp 0x10230bb5
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10230ba1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x10230ae7
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x10230b7a
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret