joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d43d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x458018]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42d483
cmp word [ebx], dx
jne 0x42d483
or byte [eax + edi + 0x28], 4
jmp 0x42d488
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x42d5eb
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42d5cb
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42d4c9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42d4ff
cmp eax, edx
jae 0x42d50d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42d4a4
jmp 0x42d5eb
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d5c6
cmp dword [ebp - 0x18], 0
je 0x42d5c6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x458018]
test byte [eax + edi + 0x28], 0x48
je 0x42d59c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x42d560
mov word [esi], cx
jmp 0x42d597
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x458018]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x458018]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x458018]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42d5eb
pop eax
cmp word [ebp - 4], ax
jne 0x42d5ac
cmp esi, ebx
jne 0x42d5ac
mov word [esi], ax
jmp 0x42d5e8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043769c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42d5eb
push 0xd
pop eax
jmp 0x42d5a7
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x458018]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42d5e5
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42d5eb
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4318b6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x431953
push ebx
push esi
call fcn.0043187f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042fe22
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x431900
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431952
push edi
push eax
call fcn.0042a475
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x431920
call fcn.0042a43b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431951
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042fe22
add esp, 0x20
test eax, eax
jne 0x43193f
push edi
call fcn.0042a43b
jmp 0x431947
push ebx
call fcn.0042a43b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x431956
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x431967
pop esi
ret
push ebx
push edi
push esi
call fcn.0043187f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042a475
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43198f
push ebx
push esi
push edi
call fcn.00419920
add esp, 0xc
push 0
call fcn.0042a43b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x431d5f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004319a4

Function at 0x433f4b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042a150
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x433fba
cmp esi, dword [ebp - 4]
je 0x433fb5
cmp dword [ebp + 0xc], 0
je 0x433fb5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x433f92
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00433a9d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x433fbc
xor eax, eax
inc eax
jmp 0x433fbc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x434021
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042a150
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042a150
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x434098
cmp word [ecx], dx
je 0x434098
mov eax, dword [0x442954]
push edi
dec eax
push eax
push 0x442840
call fcn.00433fc0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x43410b
cmp word [eax], dx
je 0x43410b
mov eax, dword [edi]
test eax, eax
je 0x4340bc
cmp word [eax], dx
je 0x4340bc
lea eax, [ebp - 0x10]
push eax
call fcn.004339a3
jmp 0x4340c5
lea eax, [ebp - 0x10]
push eax
call fcn.00433a3e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x434135
mov eax, dword [0x44283c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x442530
call fcn.00433fc0
add esp, 0xc
test al, al
je 0x434135
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x434100
cmp word [eax], di
je 0x434100
lea eax, [ebp - 0x10]
push eax
call fcn.004339a3
pop ecx
jmp 0x434137
lea eax, [ebp - 0x10]
push eax
call fcn.00433a3e
jmp 0x4340fd
mov eax, dword [edi]
test eax, eax
je 0x434122
cmp word [eax], dx
je 0x434122
lea eax, [ebp - 0x10]
push eax
call fcn.00433958
pop ecx
jmp 0x434135
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x434200
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00433e45
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x434200
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x434200
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x434200
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43418d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042bef4
test ebx, ebx
je 0x4341fb
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042bef4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x434200
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x434200
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00438f61
add esp, 0x10
xor eax, eax
inc eax
jmp 0x434202
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004181b8
leave
ret
Function at 0x436a08
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x436a4b
call fcn.0042436b
mov dword [eax], 0xf
call fcn.0042437e
mov dword [eax], 0xd
call fcn.0041cfbf
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004181b8
leave
ret
test eax, eax
jne 0x436a52
inc eax
jmp 0x436a3f
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x436a3d
xor eax, eax
cmp ecx, 1
setne al
jmp 0x436a3f
Function at 0x439595
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00439511
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x439704
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x439704
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4396b9
jg 0x4395f1
test eax, eax
je 0x4396af
push 1
push 0x1000
call fcn.0042b820
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x439614
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4396a6
push 0x8000
push ebx
call fcn.00428436
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43963d
jg 0x439638
cmp ecx, 0x1000
jb 0x43963d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043815f
add esp, 0x10
cmp eax, 0xffffffff
je 0x439682
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x439638
jl 0x439669
test ecx, ecx
jne 0x43962a
push dword [ebp - 0xc]
push ebx
call fcn.00428436
push esi
call fcn.0042a43b
add esp, 0xc
xor ebx, ebx
jmp 0x439712
cmp byte [edi + 0x24], 0
je 0x439699
cmp dword [edi + 0x20], 5
jne 0x439699
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4396a4
mov ebx, dword [edi + 0x18]
jmp 0x4396a6
xor ebx, ebx
push esi
call fcn.0042a43b
pop ecx
jmp 0x439712
test ecx, ecx
jg 0x43967b
jl 0x4396b9
test eax, eax
jae 0x43967b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043769c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4396d9
cmp byte [edi + 0x1c], 0
je 0x43967b
jmp 0x43970a
push ebx
call fcn.0042cab9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43967b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x439712
cmp byte [edi + 0x1c], 0
je 0x43970f
mov ebx, dword [edi + 0x18]
jmp 0x439712
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043769c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43a930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43a95d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43a95d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x586154
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov word [edx], cx
ja 0x5fe39b
mov edx, 0x9801b1b2
jmp 0x7c8f16
lea esp, [esp + 0xc]
jp fcn.006f561c
mov ecx, dword [esi]
movzx dx, byte [ecx]
push 0x82226ea6
push 0x9ab0c019
add esi, 2
push 0x4a1f67a4
mov word [esi], dx
lea esp, [esp + 0xc]
jmp fcn.007c7e49
Function at 0x5907a7
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
inc edx
sbb dl, 8
mov edx, dword [ebp + 8]
jmp 0x79bf01
je 0x701475
mov eax, dword [ecx + edx + 0x20]
dec edi
add eax, edx
cmp esp, ebp
cmp ecx, 0x979277a7
test al, 0x21
sub ebx, ebx
cmp sp, 0xb120
mov dword [ebp - 0xc], eax
test edi, edi
jmp 0x74b062
ret
ret
call fcn.007692c1
add esp, 4
stc
test eax, eax
jmp 0x74b054
mov edi, dword [ecx + edx + 0x18]
test di, 0x87bb
stc
jmp 0x70922c
jmp 0x701471
jne 0x79c46f
mov ecx, dword [eax + 0x78]
mov dword [ebp - 4], ecx
cmp di, 0x2427
test ecx, ecx
jmp 0x758043
add eax, edx
cmp bx, si
cmp dword [eax], 0x4550
jmp 0x5f901b
jae 0x7cc6cb
mov esi, dword [ecx + edx + 0x1c]
cmp ah, 0x1f
lea eax, [esi + eax*4]
stc
clc
cmp ebx, esi
mov eax, dword [eax + edx]
stc
test eax, eax
jmp 0x7606ed
mov eax, dword [ebp - 0xc]
sar si, 0x9b
xchg esi, ecx
mov ecx, dword [ebp + 0x10]
mov si, 0xce20
lea esi, [edi + ebx]
clc
sar esi, 1
cmp sp, 0x1a00
cmp bp, si
mov eax, dword [eax + esi*4]
push ecx
xor cx, bp
mov ecx, dword [ebp + 0xc]
cmp ecx, ebp
add eax, edx
jmp 0x5d72c9
pop edi
xor ebx, ebp
pop ebx
add eax, edx
movzx esi, sp
pop esi
mov esp, ebp
movzx ebp, di
movsx ebp, cx
pop ebp
jmp 0x59f606
jb 0x6f7ccc
mov esi, dword [ebp - 0x10]
lea esi, [esi + ecx]
cmp ebp, 0x6ba6698b
cmp eax, esi
jmp 0x7ae614
mov edx, dword [ebp - 4]
cmp ax, 0x9abc
movzx eax, sp
sub ah, bh
mov eax, dword [ebp + 8]
and cl, 0x99
shl ch, cl
mov ecx, dword [edx + eax + 0x24]
lea edx, [ecx + esi*2]
or ecx, ebx
movzx eax, word [edx + eax]
xchg dl, dl
setp ch
bsr edx, eax
mov ecx, dword [ebp - 4]
cdq
inc dx
rcl edx, 0x2b
mov edx, dword [ebp + 8]
clc
mov dword [ebp - 8], eax
clc
mov eax, dword [ebp - 8]
test bp, 0xb311
cmp cl, 0x3d
cmp eax, dword [ecx + edx + 0x14]
jmp 0x60abe4
test edi, edi
jmp 0x5991b1
mov eax, dword [edx + 0x3c]
cmp eax, 0x302a5ebb
jmp 0x60792a
jge 0x7a9a2e
lea edi, [esi - 1]
jmp 0x7bef2e
jl 0x701475
jmp 0x6f61b8
je 0x79c46f
mov eax, dword [eax + 0x7c]
test eax, 0xaa21f70e
jmp 0x79c1ed
je 0x79c46f
mov esi, dword [ebp + 0xc]
clc
test esi, esi
jmp 0x79c45a
je 0x7cc6cb
cmp eax, ecx
jmp 0x6ff340
test edx, edx
jmp 0x75980c
jmp 0x701475
lea esp, [esp - 0x114]
push esi
cmp edx, ecx
jmp 0x7642e6
push ebx
cmc
stc
push edi
test ah, dh
mov dword [ebp - 0x10], eax
cmp di, 0x104
mov dword [ebp - 8], 0xffffffff
cmp ebp, ecx
clc
cmp esi, 0xffff
jmp 0x7aa904
je 0x79c46f
mov eax, 0x5a4d
cmc
cmp word [edx], ax
je 0x745a86
sub eax, eax
pop esi
jmp 0x79fcab
mov esp, ebp
bswap ebp
pop ebp
jmp 0x5cfcdb
jle 0x70143a
lea ebx, [esi + 1]
cmp ebx, edi
not dh
cdq
mov edx, dword [ebp + 8]
jmp 0x7c6e49
ja 0x5d7b3d
mov eax, esi
cmp bp, ax
clc
sub eax, dword [ecx + edx + 0x10]
jmp 0x5df143
jae 0x6f7ccc
mov cl, byte [eax + edx]
lea eax, [eax + edx]
mov esi, eax
cmp ebp, 0xe0925282
jmp 0x5e228c
jmp 0x7a9a37
jle 0x6f61af
mov ecx, dword [ebp - 4]
jmp 0x79a8bd
Function at 0x6016c3
Capabilities:
Encode data using xor

Disassembly:
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ebx
mov ebx, 0xc8a2cabd
pop ebp
or byte [ebx - 0x375d3543], bh
call fcn.00705f67
inc eax
adc ch, ch
inc esp
xor ah, bh
inc ecx
xor ah, 0x10
ror ebp, 0x33
inc ecx
dec ah
dec eax
xor ebp, ebp
dec eax
add dword [esp + ebp], 0xf620c211
inc ecx
neg ah
inc ecx
dec ah
inc eax
ror ch, 0xa2
call fcn.00594f80
pushal
arpl word [esi + esi], bx
sahf
inc dh
stosb byte es:[edi], al
imul ecx, esi, 0xffffffaf
inc ebx
mov ebp, 0xb0210dba
mov dl, 0x8c
out dx, al
call 0xb7538a35
pop ds
jne 0x6016c7
invalid

Function at 0x7bd893
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp al, 0xa
jmp 0x74ee8b
jmp fcn.0060b098
ret
cmp al, 2
jmp 0x76c5ad
jbe 0x5df37b
push ebx
movsx ebx, dx
lea ebx, [ecx + eax]
push edi
inc eax
xor eax, ebx
rol ax, cl
mov eax, dword [ebx + esi + 4]
cmp eax, 8
jb 0x5df374
add eax, 0xfffffff8
cmp edx, esi
clc
cmc
shr eax, 1
je 0x709ac4
lea edi, [ebx + esi + 8]
jmp 0x6fb75d
jb 0x5c005b
pop edi
movzx esi, sp
pop ebx
bswap esi
pop esi
jmp 0x7d2b4d
adc dword [ecx + 4], edx
jmp 0x6f5574
jmp 0x76c5bd
jmp 0x76c5bd
jmp 0x79a793
mov dword [ebp - 4], eax
jmp 0x6fa1c8
jne 0x79a793
lea eax, [ebx + esi + 4]
jmp 0x7819b9
jne 0x7c3e99
mov eax, dword [ebp + 8]
cdq
cmc
add dword [ecx], eax
jmp 0x5e810f
jne 0x76c5bd
mov dx, word [ebp + 8]
add word [ecx], dx
cmp edi, ebp
stc
lea edi, [edi + 2]
cmp edi, 0xbb98e009
sub dword [ebp - 4], 1
jmp 0x709abe
add esi, dword [eax]
stc
cmp bp, 0xa596
cmp di, dx
cmp esi, dword [ebp + 0xc]
jmp 0x5df36e
movzx eax, word [edi]
movzx ecx, ax
shr ecx, 4
cmp dl, 0x97
test edx, ecx
clc
add ecx, dword [ebx + esi]
stc
and al, 0xf
clc
test di, si
add ecx, dword [ebp + 0x10]
test esp, 0x13341001
cmp al, 3
jne 0x57d0e3
mov edx, dword [ebp + 8]
test edi, 0x69988835
add dword [ecx], edx
jmp 0x76c5bd
lea edx, [esp + edx + 8]
jb 0x58e94a
call fcn.00586154
cmp edi, edx
push ecx
stc
test bh, 0x82
push esi
cmc
test ebp, edi
stc
xor esi, esi
cmc
cmp dword [ebp + 0xc], esi
jmp 0x5c0047
cmp al, 1
jne 0x5a275f
mov eax, dword [ebp + 8]
cmc
test sp, si
sar eax, 0x10
add word [ecx], ax
jmp 0x5f905a
mov esp, ebp
pop ebp
jmp 0x59f607
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4843ab]
shl eax, 2
mov dword [0x4843af], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004639ac
pop edx
call fcn.00463910
call fcn.004639ec
push 0
call fcn.00464c80
pop ecx
push 0x484354
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4843b3], eax
push 0
jmp fcn.0046ac58
Function at 0x40695c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x330], 0
jle 0x406a79
cmp dword [ebp + 0x10], 0x2800
jle 0x406a79
mov edx, 4
mov eax, dword [ebp + 0xc]
call fcn.00452270
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x30]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 4]
mov edx, dword [ebp + 0x10]
sar edx, 1
jns 0x4069a8
adc edx, 0
mov eax, dword [ebp + 0xc]
call fcn.00452270
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x48]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x330], 1
jne 0x406a1a
push 0x15
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.00463d00
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [ebp - 0x18]
mov eax, dword [ecx + 0x334]
push eax
push 0x484a8c
push edx
call fcn.00466644
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x48]
mov ebx, 0x14
sub ebx, eax
inc eax
mov bl, byte [ebp + ebx - 0x18]
xor bl, byte [edx]
xor bl, byte [ecx]
inc ecx
mov byte [edx], bl
inc edx
cmp eax, 0x14
jl 0x4069ff
jmp 0x406a4d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x330], 2
jne 0x406a4d
xor eax, eax
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x48]
mov ebx, 0x14
mov esi, dword [ebp + 8]
sub ebx, eax
inc eax
mov bl, byte [esi + ebx + 0x338]
xor bl, byte [edx]
xor bl, byte [ecx]
inc ecx
mov byte [edx], bl
inc edx
cmp eax, 0x14
jl 0x406a2e
mov edx, dword [ebp + 0x10]
sar edx, 1
jns 0x406a57
adc edx, 0
mov eax, dword [ebp + 0xc]
call fcn.00452270
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x48]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 8]
xor edx, edx
mov eax, dword [ebp + 0xc]
call fcn.00452270
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407358
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
lea ebx, [ebp + 8]
mov eax, 0x485f88
call fcn.00464054
mov word [ebp - 0x14], 8
mov edx, dword [ebx]
mov ecx, dword [ebp + 0xc]
mov dword [edx + 0x2c], ecx
mov eax, dword [ebx]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x30], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x34], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0x38], ecx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x3c], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x40], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0x44], ecx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x48], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x4c], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0x50], ecx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x54], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x5c], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0x58], ecx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0xc], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 4], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 8], ecx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0x14], ecx
push 0x12
push 0
mov eax, dword [ebx]
add eax, 0x18
push eax
call fcn.00463d00
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ab24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov edx, dword [ebp + 0xc]
mov ecx, eax
inc eax
shl ecx, 2
push ecx
mov cl, 0x64
pop ebx
sub cl, bl
xor byte [edx], cl
inc edx
cmp eax, 0x28
jl 0x40ab2d
pop ebx
pop ebp
ret

Function at 0x418c8c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00461728
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x418cdb
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00461958
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41ee98
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41ee9e
ret

Function at 0x421388
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4213d9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4213c0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4213b0
jmp 0x4213d9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4213c1
pop ebx
mov esp, ebp
pop ebp
ret