joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6035
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4c60a3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x53d5ac
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c609a
cmp dword [ebp - 0xc], 4
jne 0x4c609a
cmp dword [ebp - 0x10], edi
je 0x4c609a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x56f978], edi
xor eax, eax
jmp 0x4c60e2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x56f978], edi
jge 0x4c60dd
lea eax, [ebp - 0x34]
push eax
mov dword [0x56f978], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x4c60dd
cmp word [ebp - 0x14], 5
jb 0x4c60dd
call fcn.004c6010
test eax, eax
je 0x4c60dd
emms
mov dword [0x56f978], 1
mov eax, dword [0x56f978]
pop edi
leave
ret

Function at 0x4d8bc4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d8bfc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d6c4e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d6c26
jmp 0x4d8c08
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4da2b2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4da2f4
call fcn.004dfefb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4da2f4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4da2eb
xor eax, eax
jmp 0x4da2fc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004da302
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e042b
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 0x4e0459
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4e0477
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e0391
jmp 0x4e0477
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e0477
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e0391
test edi, edi
mov eax, edi
jne 0x4e0461
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4010c6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
xor eax, eax
xor byte [eax + 0x4158c0], cl
inc eax
cmp eax, 0xbe7
jb 0x4010ce
pop ebp
ret

Function at 0x4010de
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x18
mov eax, 0x40d985
call fcn.0040d785
push 4
mov dword [ebp - 0x10], 0x2010900
lea edi, [ebp - 0xc]
call fcn.00401250
mov ebx, eax
lea ecx, [ebp - 0x10]
push ebx
mov edx, edi
mov dword [ebp - 0x24], ebx
lea esi, [ebx + 4]
mov dword [ebp - 0x1c], esi
call fcn.0040120c
pop ecx
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
movzx eax, byte [ebx + ecx]
sub eax, 0
je 0x40116f
sub eax, 1
jne 0x40118d
push 0x40
push 0x3000
push 0xbe7
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40117e
mov edi, eax
mov ecx, 0x2f9
mov esi, 0x4158c0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call eax
push 0x8000
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov esi, dword [ebp - 0x1c]
jmp 0x40117e
inc ecx
mov dword [ebp - 0x14], ecx
movzx eax, byte [ebx + ecx]
push eax
call fcn.004010c6
pop ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
inc ecx
sub eax, ebx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jb 0x40111f
test ebx, ebx
je 0x4011b6
sub esi, ebx
mov eax, ebx
cmp esi, 0x1000
jb 0x4011ad
mov ebx, dword [eax - 4]
add esi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4011be
push esi
push ebx
call fcn.00401280
pop ecx
pop ecx
xor eax, eax
call fcn.0040d771
ret
call fcn.0040454c
int3

Function at 0x401ae8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b27
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b27
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b27
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b27
cmp dword [ecx + 0x74], 0xe
jbe 0x401b27
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40666e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4066b9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040688b
test al, al
jne 0x4066b3
sub edx, 2
cmp edx, edi
jne 0x406699
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4066db
lea eax, [edi + 2]
cmp edx, eax
je 0x4066db
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004065ba
add esp, 0x10
jmp 0x4067d5
push esi
lea ecx, [ebp - 0x255]
call fcn.0040688b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40671e
push dword [ebp - 0x25c]
jmp 0x4066cb
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40675b
cmp word [ebp - 0x226], 0
je 0x40677c
cmp word [ebp - 0x226], ax
jne 0x40675b
cmp word [ebp - 0x224], 0
je 0x40677c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004065ba
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4067c8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406735
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4067b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4067d5
push 0x4063ea
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00409890
add esp, 0x10
jmp 0x4067a5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401242
leave
ret

Function at 0x407393
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4073a4
pop esi
ret
push ebx
push edi
push esi
call fcn.0040735c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040613b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4073cc
push ebx
push esi
push edi
call fcn.00403c70
add esp, 0xc
push 0
call fcn.004063b0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40779c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004073e1
Function at 0x4087ee
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fff4
push 0x40ffec
push str.FlsAlloc
push 0x1f
call fcn.004086cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408822
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e114]
call esi
jmp 0x408828
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40886c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410004
push 0x40fffc
push str.FlsGetValue
push 0x21
call fcn.004086cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4088a3
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e114]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4088ab
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41000c
push 0x410004
push str.FlsSetValue
push 0x22
call fcn.004086cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4088e5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e114]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40d740
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d76d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d76d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x381241
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x8142f80
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x417e10
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x4c3049]
invalid
invalid
inc esp
invalid
dec esp

Function at 0x417e42
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [0x4c3038], edx
mov edx, dword [0x4c3034]
xor al, 0x30
dec esp
add byte [ebx], dh
test byte [ebx - 0x50f0f71e], 0xd1

Function at 0x417e4a
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [0x4c3038], edx
mov edx, dword [0x4c3034]
xor al, 0x30
dec esp
add byte [ebx], dh
test byte [ebx - 0x50f0f71e], 0xd1

Function at 0x417e7a
Capabilities:
Query or enumerate registry value

Disassembly:
je 0x417e85
xor eax, eax
pop esi
add esp, 8
ret 4
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 4]
mov dword [0x4c6abc], eax
lea eax, [esp + 8]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x20], 0x104
invalid
invalid
dec eax
invalid
dec esp

Function at 0x42f0d2
Capabilities:
Encode data using xor

Disassembly:
lahf
out dx, eax
and eax, dword [0x14a305af]
adc al, 0xad
inc edx
mov ebx, 0x708de25f
and ecx, edx
inc esi
movsb byte es:[edi], byte [esi]
sar byte [eax], 1
invalid
scasb al, byte es:[edi]

Function at 0x43b742
Capabilities:
Encode data using xor

Disassembly:
mov dword [0xb997580], eax
fsub st(2), st(0)
push edx
adc eax, 0xbe98ab4e
fcom qword [ebx]
sub eax, 0x94e30552
test eax, 0xecd70255
shl ecx, 0x4b
xchg ecx, eax
scasd eax, dword es:[edi]
inc edi
scasb al, byte es:[edi]
rcl byte [esi], cl
add dword [esi - 0x64], ebx
in eax, dx
or ah, byte [edi - 0xcaf8b01]
mov word [esp + edx*4 - 0x52], gs
push eax
xor eax, 0x83437690
pop edi
out dx, al
fst st(0)
mov cl, 0x13
invalid
Function at 0x4525f2
Capabilities:
Encode data using xor

Disassembly:
dec ebp
insd dword es:[edi], dx
daa
xor eax, 0xcda745e1
xchg edi, eax
add eax, 0xd5ac95df
dec edx
mov dword [eax - 0x1284c0a9], eax
inc ebp
xor dl, bh
into
fbstp tbyte [eax]
xchg esp, eax
xor byte [0x5418e8b5], 0xb0
push ebp
adc byte [esi + ebp*4 - 0x73], 0xed
mov ebx, 0xc54085f5
enter 0xffffffffffffd9cb, 0xffffffffffffffa9
clc
push eax
xchg ebp, eax
or eax, 0x38140e1b
popfd
test dword [edi], esp
mov ebp, 0xd4674a0e
sar byte [edx + 0x77], 1
rcr dword [ecx - 0x697a30cb], 1
xchg ebp, eax
pushal
jne 0x4525ea
lea esp, [ebp - 0x4273f684]
sub dh, ch
push es
sub eax, 0xd4ba408
dec ebx
mov dl, 0x41
outsb dx, byte [esi]
adc eax, 0xd2c7406c
jge 0x452621
xor eax, 0xba651605
outsd dx, dword [esi]
add eax, 0x6fba6516
test al, 0x72
cli
popal
dec edx
pushal
xchg ecx, eax
pushal
aam 0x4b
lds esi, [esi]
and eax, 0x5669441d
cmpsd dword [esi], dword es:[edi]
jne 0x4525eb
mov edx, dword [eax - 0x5a98b272]
rcl byte [ebp + esi*4 + 0xe]
mov edi, dword [ebp - 0x42426208]
inc ebx
mov byte [ebx + 0x10], bl
mov ebp, 0x105b8843
jle 0x452614
sub cl, bh
xchg edi, eax
jne 0x45269f
lodsd eax, dword [esi]
mov ebx, 0xa89210fd
popal
sbb byte [eax], al
sbb byte [0x91eb66d7], ah
and dword [ecx - 0x7f67b358], esi
invalid
movsd dword es:[edi], dword fs:[esi]
jnp 0x45270f
pushal
sub dl, byte [eax - 0x7d]
mov eax, 0x601fc9ed
cmp dword [ecx - 0x5065f54f], ebp
sal byte [eax], 0x9a
or byte [ecx - 0x5236817c], al
mov cl, 0xa
lcall 0x8108, 0x9a30c0af
test byte [esi - 0x37], bh
lodsd eax, dword [esi]
cmp dword [ebx - 5], 0x576d8970
dec esp
cmp dword [ebp + ebx*4 + 0x18de6f23], esi
sbb dl, dl
push esp
mov ah, 0x21
and al, 0xcb
push 0x9dad007
je 0x4526ae
inc esp
lodsd eax, dword [esi]
push dword [ebx + 0x787be547]
daa
cld
fld qword [eax - 0x50]
sub byte [esi - 0x4c], ah
dec esp
invalid
inc edi
or al, 0x26
or eax, 0x9409071c
dec eax
push edi
clc
mov edi, 0xe25db89c
or ebx, dword [ebx - 0x30]
jo 0x45276d
push cs
hlt
mov ah, 0x57
iretd

Function at 0x467ac2
Capabilities:
Encode data using xor

Disassembly:
adc ch, byte [esi + 0xe]
and byte [esi + 0x2e], dl
and eax, 0x4a668222
sbb dword [esi + 0x54], 0x41
scasd eax, dword es:[edi]
mov ah, 0xd8
daa
sub al, 0x8e
dec edi
sbb eax, 0xac029604
add ah, byte [0x2583abe0]
push ebx
sub eax, 0xe40362bf
xor bl, byte [ebx + ecx*4 + 0x22d3bf30]
cmp edx, dword [edx + 0x46818c0e]
in al, 0x59
movsd dword es:[edi], dword [esi]
adc byte [0xc5f4dc27], cl
bound esi, qword [esi]
cmp dl, byte [ecx]
cmpsb byte [esi], byte es:[edi]
xchg byte [eax], dl
sub bl, byte [edx]
adc eax, dword [edx]
cmp edx, dword [edx + 0x73]
or dl, cl
insb byte es:[edi], dx
inc eax
sal byte [eax - 0x59], cl
jp 0x467add
jg fcn.00467b76
or esp, dword [eax + 0x50]
fldenv [edx]
hlt
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf00
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 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
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 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
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 0x41cf28
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 0x41f05c
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 0x83b54a
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 0x41f0ab
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 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
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 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
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 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
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 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
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 0x83b551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x83c8af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x85954c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x85954c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x858378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x83c8b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x403bc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov cl, byte [eax + 0x100]
mov byte [ebp - 2], cl
mov edx, dword [ebp + 0x10]
mov al, byte [edx + 0x101]
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
jmp 0x403bf6
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jge 0x403ca6
movzx ecx, byte [ebp - 2]
add ecx, 1
and ecx, 0x800000ff
jns 0x403c19
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 2], cl
movzx edx, byte [ebp - 2]
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + edx]
movzx edx, byte [ebp - 1]
add ecx, edx
and ecx, 0x800000ff
jns 0x403c3d
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 1], cl
movzx eax, byte [ebp - 1]
add eax, dword [ebp - 0x10]
push eax
movzx ecx, byte [ebp - 2]
add ecx, dword [ebp - 0x10]
push ecx
call fcn.00403cd0
add esp, 8
movzx edx, byte [ebp - 2]
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + edx]
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 0x10]
movzx edx, byte [eax + edx]
add ecx, edx
and ecx, 0x800000ff
jns 0x403c80
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 9], cl
movzx eax, byte [ebp - 9]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + eax]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov byte [edx], cl
jmp 0x403bed
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 2]
mov byte [eax + 0x100], cl
mov edx, dword [ebp + 0x10]
mov al, byte [ebp - 1]
mov byte [edx + 0x101], al
mov esp, ebp
pop ebp
ret