joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001419
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x1000145d
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
call eax
mov ecx, esp
mov dword [ecx + 4], 0xc7e
mov dword [ecx], 0xe22d90
mov ecx, dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
mov word [esp + 0x12], ax
call ecx
sub esp, 8
mov ecx, 0x4e
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [ecx], edx
mov ecx, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov dword [esp + 8], eax
call ecx
sub esp, 4
mov eax, dword [esp + 8]
cmp eax, 0x4d
je 0x1000142a
mov eax, dword [esp + 8]
add eax, 1
cmp eax, 0xb0
mov dword [esp + 0x14], eax
jne 0x1000145d
mov esp, ebp
pop ebp
ret

Function at 0x10334bb6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 1
lea esi, [ebp - 0x24]
mov dword [0x103922c0], 0xffffeb5d
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 0x10334c44
mov dword [0x103922c0], 0xfffe5182
mov dword [0x103922c4], 0x15f9
call fcn.10334922
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.10334d19
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
je 0x10334d10
jmp 0x10334c74
mov eax, dword [ebp - 0x40]
add eax, 0x1ff3
mov dword [ebp - 0x44], eax
mov dword [0x103922c0], 0x258c
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
jmp 0x10334d10
mov eax, dword [ebp - 0x34]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x103383bf]
mov dh, byte [eax + 0x10338390]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x34], ecx
je 0x10334be7
jmp 0x10334c44
mov eax, dword [ebp - 0x38]
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 [0x103922c0], 0x1eb
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.10334a4e
mov eax, dword [ebp - 0x40]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xc0
mov dword [eax + 0xc0], 0x4550
add eax, 0xffc00000
mov dword [0x103922c4], 0xb52
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ecx + 0x48], eax
mov dword [0x103922c0], 0x25e3
cmp eax, 0
sete dl
mov byte [ebp - 0x45], dl
xor eax, eax
mov cl, byte [ebp - 0x45]
test cl, 1
mov dword [ebp - 0x3c], eax
jne 0x10334d10
jmp 0x10334c24
mov eax, dword [ebp - 0x3c]
add esp, 0x54
pop esi
pop ebp
ret
Function at 0x10334ed1
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 dword [0x103922c8], 0
mov dword [0x103922cc], 0
mov dword [0x103922d8], 0
mov dword [0x103922c0], 0x145d
cmp eax, 0
sete bl
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x1d], bl
xor eax, eax
mov ecx, 0x145d
mov dl, byte [ebp - 0x1d]
test dl, 1
mov esi, eax
mov edi, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], eax
jne 0x1033501f
jmp 0x10334f4a
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov edi, 0x100
mov ebx, ecx
add ebx, 0x21fe
mov dword [0x103922c0], ebx
add edx, 1
mov dword [ebp - 0x34], eax
mov eax, edx
cdq
idiv edi
mov dword [0x103922c8], edx
add ecx, 0x3191
mov dword [0x103922c4], ecx
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [ecx + edx]
add ebx, esi
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x103922cc], edx
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x103922d0], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x103922c4], 0x2b4
mov cl, byte [0x103922d0]
mov edx, dword [0x103922cc]
mov byte [edi + edx], cl
mov edx, dword [0x103922c8]
movzx edx, byte [edi + edx]
mov ebx, dword [0x103922cc]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x103922c4], 0xdf3
and ebx, 0xff
mov dword [0x103922d8], ebx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x34]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x3c], edx
jne 0x10335031
mov dword [0x103922c4], 0x2692
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x103922c0]
mov ecx, dword [0x103922c8]
mov edx, dword [0x103922cc]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], esi
jmp 0x10334f4a
Function at 0x10335126
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 8]
mov dword [0x103922c0], 0x242
mov dword [ebp - 0x10], eax
call fcn.1033563b
mov ecx, dword [0x103922c0]
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x3c]
mov esi, dword [ebp - 0x1c]
add esi, edx
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + edx]
cmp edx, 0x4550
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esi
je 0x1033517c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x18]
add ecx, 0xffffc697
mov dword [0x103922c4], ecx
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ecx + eax + 0x20]
mov edx, dword [ebp - 0x18]
add edx, 0xffffd5ad
mov dword [0x103922c0], edx
mov edx, dword [ebp - 0x1c]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
je 0x103352b6
jmp 0x1033523c
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x2c]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
jmp 0x10335211
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x52]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x4c], eax
jne 0x10335211
jmp 0x10335259
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
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 - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x10335259
jmp 0x103351e7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add eax, dword [eax + ecx + 0x24]
mov dword [ebp - 0x58], eax
xor eax, eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
jmp 0x103351cb
mov al, byte [ebp - 0x52]
test al, 1
jne 0x10335291
jmp 0x10335262
mov eax, dword [ebp - 0x44]
add eax, 2
mov dword [ebp - 0x5c], eax
xor eax, eax
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov edx, dword [ebp - 0x30]
cmp ecx, edx
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], eax
jb 0x103351cb
jmp 0x103352b6
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x103922c0], 0x238b
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1033535e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x103922c0]
add edi, 0xffffe7eb
mov dword [0x103922c0], edi
mov dword [0x103922cc], 0
mov byte [0x103922d0], 0
mov dword [0x103922c4], 0x4dd
mov dword [0x103922c8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1033546d
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x103922d4], 0
mov dword [0x103922c0], 0x959
mov edx, dword [0x103922cc]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x103922d4], edi
mov dword [0x103922c0], 0x1b47
mov eax, edi
cdq
idiv ecx
mov dword [0x103922cc], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x103922d0], cl
mov dword [0x103922c4], 0x5e8
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x103922d0]
mov edx, dword [0x103922cc]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x103922c8]
add edx, 1
mov dword [0x103922c8], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x103353ba
jmp 0x103354c0
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x103922c0]
add eax, 0xfffffe61
mov dword [0x103922c0], eax
mov eax, dword [0x103922c8]
add eax, 1
mov dword [0x103922c8], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1033546d
xor eax, eax
mov dword [0x103922c0], 0x208
mov dword [0x103922c8], 0
mov dword [ebp - 0x20], eax
jmp 0x103353ba
mov dword [0x103922c0], 0x2088
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10335789
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [0x103922c0], 0x1c6a
mov dword [ebp - 4], 0
mov dword [0x103922c4], 0x2f2
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x103922c0], 0xb29
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10335816
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff6
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp word [eax], 0x64
jne 0x103358b0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff7
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0x64
je 0x10335880
jmp 0x103358b0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
je 0x1033584a
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, 0x104
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], ecx
jl 0x10335816
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x103358b0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x103358b0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x103357d3
jmp 0x103358b0
mov dword [0x103922c4], 0xa81
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x103358b0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], eax
je 0x103358cc
mov eax, dword [0x103922c4]
mov dword [ebp - 0x30], eax
xor eax, eax
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffff6b5
mov dword [0x103922c4], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add esp, 0x30
pop ebp
ret
Function at 0x1033660f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
call fcn.10001077
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x34], ecx
je 0x103366ee
mov eax, dword [esp + 0x34]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.10336318
mov ecx, 0x2e
lea edx, [0x103358d4]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x54], esi
mov dword [0x103922c4], 0x508
mov dword [esp + 0x84], 0x238800
mov esi, dword [0x103922ac]
mov dword [esp + 0x64], esi
mov esi, dword [0x103922b0]
mov dword [esp + 0x68], esi
mov esi, dword [0x103922b4]
mov dword [esp + 0x8c], esi
mov esi, dword [0x103922b8]
mov dword [esp + 0x7c], esi
mov esi, dword [0x103922bc]
mov dword [esp + 0x98], esi
mov dword [0x103922c0], 0x3ae
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
jmp 0x10336722
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
jmp 0x10336633
mov eax, 0xfffffc34
mov ecx, dword [esp + 0x20]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
jmp 0x10336722
lea eax, [esp + 0x48]
mov dword [0x103922c4], 0x1500
mov dword [0x103922c0], 0x45c
mov dword [esp + 0x1c], eax
call fcn.10335789
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x1033663e
jmp 0x103366c2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
jne 0x103366cf
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
sete dl
mov dword [esp + 0x14], ecx
mov byte [esp + 0x13], dl
mov al, byte [esp + 0x13]
test al, 1
jne 0x1033675f
jmp 0x103366cf
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x18]
mov dword [0x103922c0], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x80], edx
mov esi, dword [esp + 0x14]
mov edi, dword [edx + esi + 0x50]
add eax, 0x18
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
lea eax, [esp + 0x48]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
mov dword [0x103922c4], 0xfffff448
mov esi, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.10334bb6
mov ecx, esp
lea edx, [esp + 0x48]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x24], eax
jmp 0x103366c2
Function at 0x50c030
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbc000]
push edi
jmp 0x50c04a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50c051
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50c040
mov eax, 1
add ebx, ebx
jne 0x50c063
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50c074
jne 0x50c093
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50c093
dec eax
add ebx, ebx
jne 0x50c080
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x50c058
add ebx, ebx
jne 0x50c08f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50c0e5
xor ecx, ecx
sub eax, 3
jb 0x50c0ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50c11a
sar eax, 1
mov ebp, eax
jmp 0x50c0b6
add ebx, ebx
jne 0x50c0b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50c084
inc ecx
add ebx, ebx
jne 0x50c0c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50c084
add ebx, ebx
jne 0x50c0d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50c0c6
jne 0x50c0e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50c0c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50c104
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50c0f6
jmp 0x50c046
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50c104
add edi, ecx
jmp 0x50c046
pop esi
mov edi, esi
mov ecx, 0x15e4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50c122
cmp byte [edi], 0x11
jne 0x50c122
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 0x50c127
lea edi, [esi + 0x108000]
mov eax, dword [edi]
or eax, eax
je 0x50c196
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10c1b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10c1e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50c154
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10c1e4]
or eax, eax
je 0x50c190
mov dword [ebx], eax
add ebx, 4
jmp 0x50c171
call dword [esi + 0x10c1f4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x50c1c7
cmp al, 0xef
ja 0x50c1ba
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x50c19c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x50c1a9
mov ebp, dword [esi + 0x10c1e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x50c1fb
sub esp, 0xffffff80
jmp 0x43ffd1
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x9a7008], 0x8088405
inc edx
mov dword [ebx + 0x9a7008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d330
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d361
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d349
add dl, dl
jne 0x41d36c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d3bd
xor eax, eax
add dl, dl
jne 0x41d379
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d45a
add dl, dl
jne 0x41d388
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d393
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d39e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3a9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d3b3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d358
mov eax, 1
add dl, dl
jne 0x41d3cb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3d6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3c2
sub eax, ebx
mov ebx, 1
jne 0x41d409
mov ecx, 1
add dl, dl
jne 0x41d3ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3e6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d358
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d420
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d42b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d417
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d358
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d47b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d358
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x98aa8e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f5ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f60e
mov ecx, edx
add ecx, ebx
jmp 0x41f60e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f60e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f680
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f669
test esi, esi
jbe 0x41f680
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f65b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f680
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f638
jmp 0x41f680
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f680
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x98aa95
ret