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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4221f8]
je 0x40fd8e
inc edi
cmp edi, 0x17
jb 0x40fd7f
cmp edi, 0x17
jae 0x40ff0e
push ebp
push 3
call fcn.00416ec6
cmp eax, 1
pop ecx
je 0x40feda
push 3
call fcn.00416ec6
test eax, eax
pop ecx
jne 0x40fdc2
cmp dword [0x422050], 1
je 0x40feda
cmp ebx, 0xfc
je 0x40ff0d
push 0x41b970
mov ebx, 0x314
push ebx
mov ebp, 0x423760
push ebp
call fcn.0040e665
add esp, 0xc
test eax, eax
je 0x40fdf8
push esi
push esi
push esi
push esi
push esi
call fcn.0040b819
add esp, 0x14
push 0x104
mov esi, 0x423779
push esi
push 0
mov byte [0x42387d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40fe3c
push 0x41b958
push 0x2fb
push esi
call fcn.0040e665
add esp, 0xc
test eax, eax
je 0x40fe3c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040b819
add esp, 0x14
push esi
call fcn.0040da00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40fe81
push esi
call fcn.0040da00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x423a74
push 0x41b954
sub ecx, eax
push ecx
push eax
call fcn.0040c3cd
add esp, 0x14
test eax, eax
je 0x40fe81
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040b819
add esp, 0x14
jmp 0x40fe83
xor esi, esi
push 0x41b950
push ebx
push ebp
call fcn.00416e55
add esp, 0xc
test eax, eax
je 0x40fea3
push esi
push esi
push esi
push esi
push esi
call fcn.0040b819
add esp, 0x14
push dword [edi*8 + 0x4221fc]
push ebx
push ebp
call fcn.00416e55
add esp, 0xc
test eax, eax
je 0x40fec5
push esi
push esi
push esi
push esi
push esi
call fcn.0040b819
add esp, 0x14
push 0x12010
push 0x41b928
push ebp
call fcn.00416c98
add esp, 0xc
jmp 0x40ff0d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40ff0d
cmp ebp, 0xffffffff
je 0x40ff0d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4221fc]
push dword [esi]
call fcn.0040da00
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x416c98
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040e7d8
xor ebx, ebx
cmp dword [0x423ea4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x416d6e
push 0x41c324
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x416e4e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41c318
push edi
call esi
cmp eax, ebx
je 0x416e4e
push eax
call fcn.0040e76a
mov dword [esp], 0x41c308
push edi
mov dword [0x423ea4], eax
call esi
push eax
call fcn.0040e76a
mov dword [esp], 0x41c2f4
push edi
mov dword [0x423ea8], eax
call esi
push eax
call fcn.0040e76a
mov dword [0x423eac], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040fb00
test eax, eax
pop ecx
pop ecx
je 0x416d3c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b819
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x416d6e
push 0x41c2d8
push edi
call esi
push eax
call fcn.0040e76a
cmp eax, ebx
pop ecx
mov dword [0x423eb4], eax
je 0x416d6e
push 0x41c2c0
push edi
call esi
push eax
call fcn.0040e76a
pop ecx
mov dword [0x423eb0], eax
mov eax, dword [0x423eb0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x416df3
cmp dword [0x423eb4], ecx
je 0x416df3
push eax
call fcn.0040e7e1
push dword [0x423eb4]
mov esi, eax
call fcn.0040e7e1
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x416df3
cmp edi, ebx
je 0x416df3
call esi
cmp eax, ebx
je 0x416dc0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416dc0
test byte [ebp - 0x18], 1
jne 0x416df3
lea eax, [ebp - 0x10]
push eax
call fcn.0040fb37
test eax, eax
pop ecx
je 0x416ddb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b819
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x416dea
or dword [ebp + 0x10], 0x200000
jmp 0x416e2e
or dword [ebp + 0x10], 0x40000
jmp 0x416e2e
mov eax, dword [0x423ea8]
cmp eax, dword [ebp - 8]
je 0x416e2e
push eax
call fcn.0040e7e1
cmp eax, ebx
pop ecx
je 0x416e2e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x416e2e
mov eax, dword [0x423eac]
cmp eax, dword [ebp - 8]
je 0x416e2e
push eax
call fcn.0040e7e1
cmp eax, ebx
pop ecx
je 0x416e2e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423ea4]
call fcn.0040e7e1
cmp eax, ebx
pop ecx
je 0x416e4e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416e50
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1ee2f7d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add al, 0xce
xor edx, edx
rol ah, cl
rcl ax, 8
shld ax, bx, 0xe
mov eax, edx
lea esp, [esp + 4]

Function at 0x20b135f
Capabilities:
Encode data using xor

Disassembly:
xchg dword [esp + 0x28], eax
lahf
push dword [ebp - 4]
pop dword [esp + 0x24]
bswap eax
pushfd
call fcn.01ece1d2
mov esp, 0x5d2ddc1c
xor al, 0xfc
mov eax, 0x75934113
push esp
mov cl, 0x23
mov ebx, dword [eax + 0x19]
pop ecx
rcl byte [edi + 0x3fcb8e8a], 0x42
wrmsr
or ch, 0x2d
pushal
loopne 0x20b136e
pop eax
sbb dword [ecx - 0x40], ebx
xchg edi, eax
mov cl, byte [esi + 0xf423fcb]
xor byte [eax - 0x1f9fd233], al
fldcw word [ecx - 0x229a9f30]
retf
test eax, 0xdd6560d0
out 0x3b, al
or dword [edx], esi
int1
xor dh, cl
inc ebx
jg 0x20b136e
cdq
sbb eax, 0xf129d0f3
mov byte [0x7ed09e7a], al
mov eax, 0xe2f4a77b
pop edi
les edx, [ebx]
jp 0x20b139e
mov al, byte [0x3cea6170]
in al, dx
nop
cwde
jb 0x20b138a
jne 0x20b1383
imul eax, ecx, 0x7623381b
invalid

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

Disassembly:
jmp 0x21234a7
mov edi, dword [edx + 0x24]
test di, 0xf087
clc
add edi, eax
pushfd
test ebp, 0x8279b94e
mov word [esp + 4], 0x2292
pushal
movzx ecx, word [edi + ecx*2]
pushfd
mov di, 0xbccf
test ah, 0x47
mov edi, dword [edx + 0x1c]
pushfd
clc
stc
add edi, eax
cmp bh, 0xe
cmp ax, sp
cmc
mov edi, dword [edi + ecx*4]
call fcn.02335318
add byte [eax], al
inc esi
imul ebp, dword [esi + 0x64], 0x646e6957
outsd dx, dword [esi]
ja 0x2123532
add byte [esi - 0x7b], ah
fmul qword [ecx]
shr cl, 0x41
sahf
invalid
test al, 0x4f
in eax, 0x93
invalid
Function at 0x23356c8
Capabilities:
Encode data using xor

Disassembly:
mov bl, 2
pushfd
inc ecx
pushal
mov al, 0x10
jmp 0x23355a0
push dword [esp]
lea esp, [esp + 0x30]
call fcn.02335279
call fcn.020b14a2
add byte [eax], al
inc edi
je 0x23355fb
popal
je 0x233561f
inc esi
outsd dx, dword [esi]
jb 0x233562b
popal
je 0x2335602
add byte [eax], al
add byte [edi + 0x66], cl
jae 0x233562e
je 0x233561d
outsb dx, byte [si]
add byte [eax], al
add byte [ecx + 0x6d], cl
popal
dec esp
imul esi, dword [ebx + 0x74], 0x6165525f
add byte fs:[ebp + 0xf282464], cl
lea esp, [esp + 0x28]
jne 0x1ec03a4
btr di, di
cmp dl, bh
shl edi, 0xb
clc
mov edi, dword [edx + 0x24]
cmc
add edi, eax
pushfd
mov byte [esp], 0xa4
add al, 0x24
movsb byte es:[edi], byte [esi]
lea esp, [esp + 4]
jmp 0x1ec0250
jb 0x233568e
insb byte es:[edi], dx
insb byte es:[edi], dx
push eax
outsd dx, dword [esi]
jae 0x2335625
add byte [eax], al
inc edi
imul esi, dword fs:[eax + 0x44], 0x6f707369
inc esp
imul esi, dword [ebx + 0x70], 0x4965736f
jo 0x233569f
jae 0x2335697
dec ecx
insd dword es:[edi], dx
popal
add byte gs:[bx + si], al
add byte [esi + 0x6f], al
jb 0x23356ab
popal
je 0x233568e
jae 0x23356b7
popal
inc ecx
add cl, ch
pop ecx
pop ecx
xlatb
inc dword [esi + 0x68]
inc esi
push 0xeafc8495
pushfd
push 0xd1a04b00
xor byte [edi - 0x63d7dbbc], cl
sub al, 0xc2
xor byte [eax], al
add al, 0x95
mov al, 0x2e
cmc
repne scasb al, byte es:[edi]
push 0x5dde0e0c
pushal
mov byte [esp], dh
mov word [esp + 4], cx
lea esp, [esp + 0x24]
jmp fcn.01ec083d
mov eax, 0x24648dff
add al, 0xf
test dword [ebp + edi*2 - 0x160047], edi
inc ecx
stosd dword es:[edi], eax
inc edi
add al, 0x24
invalid

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

Disassembly:
push 0x1f0f6f84
pushal
dec dl
push 0x56797986
ror dl, 3
test ah, bl
pushfd
sub dl, 0x27
clc
push word [esp + 0x3a]
popf
call fcn.01dea344
mov dl, byte [esi]
mov word [esp + 4], ax
push esi
mov byte [esp], 0xd4
not dl
jmp 0x1ee2ebf
not dl
push 0xe69d068d
pushf
pop word [esp + 0xa]
jmp 0x20b185f

Function at 0x233819c
Capabilities:
Encode data using xor

Disassembly:
bt dx, 0xf
bt di, cx
ror dl, 3
test bl, ch
mov word [esp + 4], bx
jmp 0x1ee2cb3

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

Disassembly:
call 0x1dea51f
lea esp, [esp + 0x58]
ja 0x20af008
jmp 0x1d476a9

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

Disassembly:
lea esp, [esp + 0x48]
je 0x24c31f2
bt ebx, ecx
stc
sub al, 0x30
test dh, ah
cmc
jmp 0x24c33af
cmp al, 9
jmp 0x2334f0e
Function at 0x4169a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, ebp
push edi
mov edi, dword [0x5adec0]
shl esi, 7
add esi, edi
xor eax, eax
xor edx, edx
mov ax, word [esi + 0x36]
mov dx, word [esi + 0x34]
mov ecx, dword [eax*4 + 0x55f280]
add ecx, 0xa
cmp edx, ecx
je 0x416a97
mov ax, word [eax*4 + 0x55f280]
mov dword [esi + 0x24], 0
add ax, 0xa
mov edi, 8
mov word [esi + 0x34], ax
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push 0
push 0x16
push ecx
push edx
call fcn.0042fdc0
add esp, 0x10
test eax, eax
jle 0x416a90
mov ecx, dword [0x5adec0]
shl eax, 7
add eax, ecx
mov dword [eax], 0x415a70
mov ecx, dword [0x62bdd0]
mov dl, cl
sub cl, 0x2c
add dl, 4
and ecx, 0xff
and edx, 0xff
mov ecx, dword [ecx + 0x62c040]
mov dword [0x62bdd0], edx
xor dword [edx + 0x62c040], ecx
and ecx, 3
sub ecx, 0
je 0x416a7a
dec ecx
je 0x416a66
xor ecx, ecx
mov cx, word [esi + 0x36]
mov dx, word [ecx*4 + 0x55f280]
add dx, 8
jmp 0x416a8c
xor ecx, ecx
mov cx, word [esi + 0x36]
mov dx, word [ecx*4 + 0x55f280]
add dx, 7
jmp 0x416a8c
xor ecx, ecx
mov cx, word [esi + 0x36]
mov dx, word [ecx*4 + 0x55f280]
add dx, 6
mov word [eax + 0x34], dx
dec edi
jne 0x4169ee
mov ecx, dword [esi + 0x24]
inc ecx
mov eax, ecx
mov dword [esi + 0x24], ecx
cmp eax, 3
jle 0x416aeb
mov dl, byte [esi + 0x3c]
xor ecx, ecx
mov cx, word [esi + 0x34]
inc dl
mov al, dl
mov byte [esi + 0x3c], dl
xor edx, edx
mov dword [esi + 0x24], 0
mov dx, word [ecx*8 + 0x55f460]
movsx eax, al
cmp eax, edx
jl 0x416aeb
xor ecx, ecx
mov byte [esi + 0x41], 0x1a
mov cx, word [esi + 0x36]
mov dx, word [ecx*4 + 0x55f280]
mov byte [esi + 0x3c], 0
add dx, 9
mov word [esi + 0x34], dx
movsx ecx, byte [esi + 0x3c]
xor eax, eax
push ebp
mov ax, word [esi + 0x34]
mov edx, dword [eax*8 + 0x55f464]
xor eax, eax
mov ax, word [edx + ecx*2]
mov dword [esi + 0x28], eax
call fcn.0045ed00
add esp, 4
pop edi
pop esi
pop ebp
ret
Function at 0x4413d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov ecx, 0x40
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, 0x4dfa04
push eax
rep stosd dword es:[edi], eax
call fcn.004b6028
push eax
call fcn.004b6000
mov eax, dword [0x4dfb18]
mov ebx, 1
add esp, 8
cmp eax, ebx
jle 0x441444
call fcn.004b600a
mov edi, dword [0x4dfb18]
cdq
idiv edi
test bl, 1
je 0x44141e
and edx, 0xfe
inc edx
jmp 0x441424
and edx, 0xfe
xor esi, esi
cmp esi, ebx
jge 0x441439
xor eax, eax
mov al, byte [esi + 0x4dfa04]
cmp eax, edx
je 0x441402
inc esi
jmp 0x441426
mov byte [ebx + 0x4dfa04], dl
inc ebx
cmp ebx, edi
jl 0x441402
mov edx, dword [0x4dfb1c]
mov ecx, dword [0x4dfb20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
lea ebx, [edx + 0x28]
mov esi, dword [esp + 0x14]
lea ebp, [ebx - 0x28]
mov ecx, 0x29
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4df9fc]
mov edi, dword [esp + 0x1c]
mov ecx, dword [eax*4 + 0x4dfb08]
mov dword [ebx - 4], ecx
mov edx, dword [edi*4 + 0x4dfb08]
mov dword [ebx], edx
mov eax, dword [0x62bdd0]
mov cl, al
sub al, 0x2c
add cl, 4
and eax, 0xff
and ecx, 0xff
mov eax, dword [eax + 0x62c040]
mov dword [0x62bdd0], ecx
mov edx, dword [ecx + 0x62c040]
xor edx, eax
and eax, 7
mov dword [ecx + 0x62c040], edx
mov edx, dword [esp + 0x10]
lea ecx, [eax + 0xf]
xor eax, eax
mov dword [ebx - 0x18], ecx
mov dword [ebx - 0x14], 0
mov al, byte [edx + 0x4dfa04]
mov dword [ebx - 0x10], eax
lea edx, [eax + eax*4]
lea eax, [eax + edx*8]
mov edx, dword [0x4dfb20]
lea esi, [edx + eax*4]
mov edx, dword [ebp]
mov eax, dword [esi]
sub eax, edx
cdq
idiv ecx
mov edx, dword [ebx - 0x24]
mov dword [ebx - 0x20], eax
mov eax, dword [esi + 4]
sub eax, edx
cdq
idiv ecx
mov dword [ebx - 0x1c], eax
mov eax, 0x400
cdq
idiv ecx
add esi, 0x48
mov ecx, 3
mov dword [ebx - 8], eax
lea eax, [ebx + 0x28]
mov edx, dword [esi - 4]
add esi, 0x28
mov dword [eax - 4], edx
mov edx, dword [esi - 0x28]
mov dword [eax], edx
add eax, 0x28
dec ecx
jne 0x44151b
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4dfb18]
add ebx, 0xa4
add esi, 0xa4
inc eax
cmp eax, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
jl 0x44145f
mov dword [0x4df9fc], edi
pop edi
pop esi
pop ebp
mov dword [0x4dfa00], eax
pop ebx
add esp, 8
ret
Function at 0x447d00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
call fcn.0048d7a0
and eax, 0xffff
cmp eax, 0x1b
je 0x447d60
cmp byte [0x4f343f], bl
jne 0x447d60
cmp eax, 0x125
je 0x447d47
cmp eax, 0x25
je 0x447d47
cmp eax, 0x127
je 0x447dd1
cmp eax, 0x27
je 0x447dd1
cmp eax, 0x59
jne 0x447d5b
mov ebp, 1
mov eax, dword [0x61e780]
cmp eax, ebx
jg 0x447d52
neg eax
neg eax
mov dword [0x61e780], eax
jmp 0x447d84
cmp eax, 0x4e
jne 0x447d69
xor eax, eax
mov dword [0x61e780], eax
jmp 0x447d84
cmp eax, 0x20
je 0x447d7a
cmp eax, 0xd
je 0x447d7a
cmp eax, 0x10d
jne 0x447d7f
mov ebp, 1
mov eax, dword [0x61e780]
push esi
push edi
mov dword [0x57fc50], ebx
mov dword [0x57fc4c], ebx
mov dword [0x57fc48], ebx
xor edi, edi
mov esi, 0x61b2e0
cmp dword [esi], ebx
je 0x447db1
push edi
call fcn.004477e0
mov eax, dword [0x61e780]
add esp, 4
add esi, 0x20
inc edi
cmp esi, 0x61b360
jl 0x447d9f
mov ecx, dword [0x57fc4c]
pop edi
cmp ecx, ebx
pop esi
jge 0x447de3
cmp eax, ebx
jg 0x447de9
neg eax
jmp 0x447de9
mov eax, dword [0x61e780]
cmp eax, ebx
jg 0x447d84
neg eax
mov dword [0x61e780], eax
jmp 0x447d84
jle 0x447df0
cmp eax, ebx
jg 0x447df0
neg eax
mov dword [0x61e780], eax
cmp dword [0x57fc50], ebx
jle 0x447dff
mov ebp, 1
jmp 0x447e07
cmp ebp, ebx
je 0x447ea6
cmp eax, 0xfffffffe
jne 0x447e24
mov dword [0x580284], 1
mov dword [0x61aea0], ebx
mov dword [0x5fee00], ebx
jmp 0x447e4a
cmp eax, 0xfffffffd
jne 0x447e3b
mov dword [0x5fee10], 2
mov dword [0x5fee00], ebx
jmp 0x447e4a
cmp eax, 0xffffffff
jne 0x447e4a
mov dword [0x5fee10], 3
cmp ebp, ebx
mov dword [0x61e780], ebx
je 0x447ea6
mov eax, dword [0x62bdd0]
push ebx
mov cl, al
sub al, 0x2c
add cl, 4
and eax, 0xff
and ecx, 0xff
push 0x20
mov eax, dword [eax + 0x62c040]
push 0x40
mov edx, dword [ecx + 0x62c040]
push 0xffffffffffffffff
xor edx, eax
and eax, 7
mov dword [ecx + 0x62c040], edx
mov dword [0x62bdd0], ecx
mov edx, dword [eax*4 + 0x4cc704]
mov eax, dword [edx*4 + 0x57ab60]
push eax
call fcn.004984f0
add esp, 0x14
pop ebp
pop ebx
ret
Function at 0x46e840
Capabilities:
Set current directory

Disassembly:
sub esp, 0x200
lea eax, [esp]
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp]
push 0x5c
push ecx
call fcn.004b6950
add esp, 8
test eax, eax
je 0x46e87e
lea edx, [esp]
push 0x5c
push edx
call fcn.004b6950
add esp, 8
mov byte [eax + 1], 0
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add esp, 0x200
ret

Function at 0x46ea90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x4f04b4]
cmp eax, 0x400
jge 0x46eac2
mov ecx, eax
shl eax, 5
add eax, 0x5bf954
cmp byte [eax], 0
je 0x46ead3
add eax, 0x20
inc ecx
cmp eax, 0x5c7954
jl 0x46eaa6
mov dword [0x4f04b4], 0
jmp 0x46eaef
mov ecx, 0x400
mov dword [0x4f04b4], 0
jmp 0x46eaef
cmp ecx, 0x400
jl 0x46eae7
mov dword [0x4f04b4], 0
jmp 0x46eaef
lea eax, [ecx + 1]
mov dword [0x4f04b4], eax
cmp ecx, 0x400
jge 0x46eb6d
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
shl ecx, 5
add ecx, 0x5bf940
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xc]
cmp eax, 2
mov dword [ecx], edx
mov byte [ecx + 0x16], 1
mov byte [ecx + 0x14], al
je 0x46eb6d
cmp eax, 3
jne 0x46eb27
mov byte [ecx + 0x17], 0x47
ret
cmp eax, 4
jne 0x46eb6d
mov byte [ecx + 0x17], 0x20
mov eax, dword [0x62bdd0]
mov dl, al
sub al, 0x2c
add dl, 4
and eax, 0xff
and edx, 0xff
push esi
mov eax, dword [eax + 0x62c040]
mov dword [0x62bdd0], edx
mov esi, dword [edx + 0x62c040]
xor esi, eax
and eax, 0x7fff
neg eax
mov dword [edx + 0x62c040], esi
mov dword [ecx + 0xc], eax
pop esi
ret
Function at 0x477c10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
xor esi, esi
mov eax, 0x4f04e4
cmp dword [eax], ebx
je 0x477c2d
add eax, 0x20
inc esi
cmp eax, 0x4f08e4
jl 0x477c1c
jmp 0x477c56
mov eax, esi
shl eax, 5
lea edi, [eax + 0x4f04d0]
mov eax, dword [eax + 0x4f04d0]
cmp eax, ebx
je 0x477c4d
push eax
call fcn.00498610
add esp, 4
mov dword [edi], ebx
cmp esi, 0x20
jl 0x477d00
cmp dword [0x5f37fc], ebx
je 0x477c9b
xor esi, esi
mov eax, 0x4f04e4
cmp dword [eax], 0xb
jge 0x477c77
add eax, 0x20
inc esi
cmp eax, 0x4f08e4
jl 0x477c65
jmp 0x477ca0
mov edi, esi
shl edi, 5
mov eax, dword [edi + 0x4f04d0]
cmp eax, ebx
je 0x477c95
push eax
call fcn.00498610
add esp, 4
mov dword [edi + 0x4f04d0], ebx
mov dword [edi + 0x4f04e4], ebx
cmp esi, 0x20
jl 0x477d00
mov eax, dword [0x62bdd0]
mov cl, al
sub al, 0x2c
add cl, 4
and eax, 0xff
and ecx, 0xff
mov eax, dword [eax + 0x62c040]
mov dword [0x62bdd0], ecx
mov edi, dword [ecx + 0x62c040]
xor edi, eax
and eax, 0x1f
mov dword [ecx + 0x62c040], edi
mov edi, eax
mov esi, edi
shl esi, 5
mov eax, dword [esi + 0x4f04d0]
cmp eax, ebx
je 0x477cf4
push eax
call fcn.00498610
add esp, 4
mov dword [esi + 0x4f04d0], ebx
mov eax, edi
mov dword [esi + 0x4f04e4], ebx
pop edi
pop esi
pop ebx
ret
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x48b820
Capabilities:
Terminate process

Disassembly:
mov eax, dword [str.Jazz_Jackrabbit_2_Special_Edition]
sub esp, 0x104
lea ecx, [esp]
push eax
push str.Lock__s
push ecx
call fcn.004b57c2
add esp, 0xc
lea edx, [esp]
push edx
push 0x20
push 0
push 2
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [0x4f342c], eax
je 0x48b871
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x48b871
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
add esp, 0x104
ret

Function at 0x48b9f0
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 4]
sub esp, 0x10
test al, al
push esi
je 0x48badd
cmp byte [0x4f343c], 1
jne 0x48ba4c
mov ecx, dword [0x4f33fc]
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [0x62bde0], eax
sub edx, eax
mov eax, dword [esp + 0x10]
sub eax, ecx
mov dword [0x62bde4], ecx
mov dword [0x62bde8], edx
mov dword [0x62bdec], eax
mov byte [0x62be08], 1
mov ecx, dword [0x4f33fc]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetMenu]
mov edx, dword [0x4f33fc]
mov esi, dword [sym.imp.USER32.dll_SetWindowLongA]
push bind
push 0xfffffffffffffff0
push edx
call esi
mov eax, dword [0x4f33fc]
push 8
push 0xffffffffffffffec
push eax
call esi
mov al, byte [esp + 0x1c]
mov byte [0x4f343c], 2
test al, al
je 0x48bbc3
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
push 1
call esi
push eax
push 0
call esi
mov ecx, dword [0x4f33fc]
push eax
push 0
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [0x4f33fc]
push edx
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x48bbc3
mov eax, dword [0x4f33fc]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
add esp, 0x10
ret
mov al, byte [0x4f343c]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
cmp al, 2
jne 0x48bb43
mov al, byte [0x62be08]
test al, al
je 0x48bb43
mov ecx, dword [0x4f33fc]
push 0
push ecx
call edi
mov edx, dword [0x62bdec]
mov eax, dword [0x62bde8]
mov ecx, dword [0x62bde4]
push 1
push edx
mov edx, dword [0x62bde0]
push eax
mov eax, dword [0x4f33fc]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
call fcn.0048d8f0
mov ecx, dword [0x4f33fc]
push 0x4f2c70
push ecx
call fcn.0049b680
add esp, 8
mov edx, dword [0x4f33fc]
mov esi, dword [sym.imp.USER32.dll_SetWindowLongA]
push 0xcf0000
push 0xfffffffffffffff0
push edx
call esi
mov eax, dword [0x4f33fc]
push 0x300
push 0xffffffffffffffec
push eax
call esi
call fcn.0048bbd0
mov ecx, dword [0x4f33fc]
push 3
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [0x4f33fc]
push 5
push edx
mov byte [0x4f343c], 1
call edi
mov eax, dword [0x4f33fc]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [0x4f33fc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
add esp, 0x10
ret
Function at 0x48d540
Capabilities:
Log keystrokes
Log keystrokes via application hook
Log keystrokes via polling

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x48d580
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [0x4f3020], eax
jne 0x48d56c
push str.Could_not_obtain_keyboard_hook_
call fcn.0048d820
add esp, 4
jmp fcn.0048d700

Function at 0x48d700
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov ecx, 0x80
xor eax, eax
mov edi, 0x62be20
mov esi, 2
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push esi
call edi
shr eax, 0xf
and al, 1
mov byte [esi + 0x62be20], al
inc esi
cmp esi, 0x100
jl 0x48d71e
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
and al, 1
push 0x91
mov byte [0x62c020], al
call esi
and al, 1
push 0x90
mov byte [0x62c022], al
call esi
and al, 1
pop edi
mov byte [0x62c021], al
pop esi
ret

Function at 0x48d820
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [0x4f3400]
sub esp, 0x200
test al, al
jne 0x48d8de
mov ecx, dword [esp + 0x204]
lea eax, [esp + 0x208]
push eax
lea edx, [esp + 4]
push ecx
push edx
mov byte [0x4f3400], 1
call fcn.004b588b
lea eax, [esp + 0xc]
push eax
push str.WIN:_Application_notified_error:__s
call fcn.0048edc0
mov al, byte [0x4d124c]
add esp, 0x14
cmp al, 5
jne 0x48d876
xor cl, cl
call fcn.00494810
push esi
push edi
call fcn.0049cd00
mov ecx, dword [0x4f33fc]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call esi
call fcn.0048db40
xor cl, cl
mov edi, eax
call fcn.00494810
mov edx, dword [0x4f33fc]
push 0
push edx
call esi
mov ecx, dword [0x4f33f0]
lea eax, [esp + 8]
push eax
push 0x490370
push 0
push 0x7b
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
call fcn.0048db40
mov ecx, dword [0x4f3408]
sub eax, edi
add ecx, eax
mov dword [0x4f3408], ecx
call fcn.0048dbf0
pop edi
pop esi
add esp, 0x200
ret

Function at 0x48dbd0
Capabilities:
Suspend thread

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x62bdcc]
je 0x48dbea
mov eax, dword [0x62bdd4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret