joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8249
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004e9ac3
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4a8288
sub eax, 1
je 0x4a8283
sub eax, 1
je 0x4a827f
xor eax, eax
leave
ret
push 3
jmp 0x4a828a
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x4f36ea
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x568d30]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f372a
cmp byte [ebx], 0xa
jne 0x4f372a
or byte [eax + edi + 0x28], 4
jmp 0x4f372f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4f382d
mov al, byte [edx]
cmp al, 0x1a
je 0x4f380f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4f375e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4f3783
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4f378d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4f3740
jmp 0x4f382d
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f380a
cmp dword [ebp - 0xc], 0
je 0x4f380a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x568d30]
test byte [eax + edi + 0x28], 0x48
je 0x4f37e4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4f37cf
mov byte [esi], dl
jmp 0x4f37e0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x568d30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4f382d
cmp byte [ebp - 1], 0xa
jne 0x4f37f3
cmp esi, ebx
jne 0x4f37f3
mov byte [esi], 0xa
jmp 0x4f382c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004f49cb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f382d
mov byte [esi], 0xd
jmp 0x4f382c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x568d30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f3829
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f382d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f3836
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x568d30]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f3879
cmp word [esi], dx
jne 0x4f3879
or byte [edi + eax + 0x28], 4
jmp 0x4f387e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4f39d1
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4f39b1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4f38c0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4f38f6
cmp eax, edx
jae 0x4f3902
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4f3898
jmp 0x4f39d1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f39ad
cmp dword [ebp - 0x14], 0
je 0x4f39ad
mov eax, dword [ebx*4 + 0x568d30]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4f3985
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4f394e
mov word [esi], cx
jmp 0x4f3981
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x568d30]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x568d30]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x568d30]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4f39d1
pop ebx
cmp word [ebp - 4], bx
jne 0x4f3996
cmp esi, dword [ebp + 0xc]
jne 0x4f3996
mov word [esi], bx
jmp 0x4f39ce
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004f49cb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4f39d1
push 0xd
jmp 0x4f39ca
mov ecx, dword [ebx*4 + 0x568d30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f39c8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f39d1
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f44fb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f40d6

Function at 0x4f4506
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f4265

Function at 0x4f4f41
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00486640
mov eax, dword [0x561584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004f1e9f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4f4f83
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f50df
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00486c70
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x568d30]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004f49ad
mov ecx, dword [esi*4 + 0x568d30]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4f50d8
cmp eax, dword [edi + ecx + 0x24]
jne 0x4f50d8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f50d8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004f49ad
add esp, 0x14
test edx, edx
jl 0x4f50d8
jg 0x4f504e
test eax, eax
jb 0x4f50d8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4f50d8
jl 0x4f5068
cmp dword [ebp - 0x1008], eax
ja 0x4f50d8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4f5086
test ebx, ebx
je 0x4f50bf
cmp ecx, edi
jae 0x4f50bf
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f50a0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f50ac
cmp byte [ecx + 1], 0xa
jne 0x4f50ac
inc ecx
jmp 0x4f50ac
movzx eax, al
movsx eax, byte [eax + 0x561828]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f5086
cmp edx, ebx
jne 0x4f5086
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4f50dd
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00485cf8
leave
ret

Function at 0x4f851f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x53df94
push 0x53df8c
push str.FlsAlloc
push 0x1e
call fcn.004f81ef
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f8553
push dword [ebp + 8]
mov ecx, esi
call dword [0x519a74]
call esi
jmp 0x4f8559
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4f859d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x53dfa4
push 0x53df9c
push str.FlsGetValue
push 0x20
call fcn.004f81ef
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f85d4
push dword [ebp + 8]
mov ecx, esi
call dword [0x519a74]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4fa766
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fa63a
Function at 0x4fafa3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x561584]
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 0x4fafee
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004fb347
test al, al
jne 0x4fafe8
sub edx, 2
cmp edx, edi
jne 0x4fafce
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4fb010
lea eax, [edi + 2]
cmp edx, eax
je 0x4fb010
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004fac6a
add esp, 0x10
jmp 0x4fb10a
push esi
lea ecx, [ebp - 0x255]
call fcn.004fb347
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 0x4fb053
push dword [ebp - 0x25c]
jmp 0x4fb000
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 0x4fb090
cmp word [ebp - 0x226], 0
je 0x4fb0b1
cmp word [ebp - 0x226], ax
jne 0x4fb090
cmp word [ebp - 0x224], 0
je 0x4fb0b1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004fac6a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4fb0fd
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4fb06a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4fb0e5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4fb10a
push 0x4fa789
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00509ac0
add esp, 0x10
jmp 0x4fb0da
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.00485cf8
leave
ret
Function at 0x4fc31e
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 0x4fc3bb
push ebx
push esi
call fcn.004fc2da
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.004fc1cc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4fc368
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4fc3ba
push edi
push eax
call fcn.004f0dc8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4fc388
call fcn.004f0d8e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4fc3b9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004fc1cc
add esp, 0x20
test eax, eax
jne 0x4fc3a7
push edi
call fcn.004f0d8e
jmp 0x4fc3af
push ebx
call fcn.004f0d8e
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 0x4fc3be
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4fc3cf
pop esi
ret
push ebx
push edi
push esi
call fcn.004fc2da
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004f0dc8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4fc3f7
push ebx
push esi
push edi
call fcn.004a8ad0
add esp, 0xc
push 0
call fcn.004f0d8e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4fccc3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fc66a
Function at 0x50b156
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]
push dword [ebp + 0xc]
push ebx
call fcn.0050af76
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x50b2ce
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x50b2ce
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x50b27d
jg 0x50b1af
test eax, eax
je 0x50b273
push 1
push 0x1000
call fcn.004f28c8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x50b1d5
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x50b26a
push 0x8000
push ebx
call fcn.004e68dc
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x50b201
jg 0x50b1fc
cmp ecx, 0x1000
jb 0x50b201
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0050791e
add esp, 0x10
cmp eax, 0xffffffff
je 0x50b246
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 0x50b1fc
jl 0x50b22d
test ecx, ecx
jne 0x50b1ee
push dword [ebp - 0xc]
push ebx
call fcn.004e68dc
push esi
call fcn.004f0d8e
add esp, 0xc
xor edi, edi
jmp 0x50b2df
cmp byte [edi + 0x24], 0
je 0x50b25d
cmp dword [edi + 0x20], 5
jne 0x50b25d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x50b268
mov edi, dword [edi + 0x18]
jmp 0x50b26a
xor edi, edi
push esi
call fcn.004f0d8e
pop ecx
jmp 0x50b2df
test ecx, ecx
jg 0x50b23f
jl 0x50b27d
test eax, eax
jae 0x50b23f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004f49cb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x50b2a0
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x50b23f
jmp 0x50b2d7
push ebx
call fcn.004fd0f5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x50b23f
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x50b2df
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x50b2dc
mov edi, dword [edi + 0x18]
jmp 0x50b2df
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004f49cb
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x50bd20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x50bd4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x50bd4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4014d9
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x401460
mov dword [esp], 0xd
call sub.USER32.dll_SetWindowsHookExW
sub esp, 0x10
mov dword [0x40c020], eax
mov eax, dword [0x40c020]
test eax, eax
sete al
test al, al
je 0x401540
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Failed_to_install_hook_
mov dword [esp], 0
call sub.USER32.dll_MessageBoxW
sub esp, 0x10
nop
leave
ret
Function at 0x401890
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 4], 0
mov dword [esp], str.ConsoleWindowClass
call sub.USER32.dll_FindWindowA
sub esp, 8
mov dword [esp + 4], 5
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
nop
leave
ret
Function at 0x402720
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40c284
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40c27c]
sub esp, 4
test ebx, ebx
je 0x40276b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x402764
test esi, esi
je 0x402764
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402740
mov dword [esp], 0x40c284
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402950
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x4081fc
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4029a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402a78
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4029de
cmp eax, 4
jne 0x402a00
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4029ee
cmp edx, 4
je 0x4029ee
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402950
Function at 0x4056d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x408170]
cmp ax, 0xcb
je 0x4057cc
cmp ax, 0xcc
je 0x4057cc
mov edx, dword [0x481590]
test edx, edx
je 0x405702
mov eax, dword [0x481430]
call edx
mov ebx, eax
jmp 0x405707
mov ebx, 0x481434
cmp word [0x481420], 0
jle 0x40572a
mov eax, 0x481400
call fcn.00405940
mov eax, ebx
call fcn.004052b0
mov eax, ebx
call fcn.00405320
mov edi, dword [ebx]
jmp 0x40574a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x405745
mov edx, edi
mov eax, ebx
call fcn.00404780
jmp 0x405748
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x405730
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x481420], 0
jle 0x4057cc
mov edx, 0x481340
mov eax, ebx
call fcn.004048b0
mov edi, eax
test edi, edi
je 0x40579f
mov eax, dword [0x4813d4]
mov dword [edi + 0xc], eax
cmp dword [0x4813d4], 0
je 0x405794
mov eax, dword [0x4813d4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x4813d4], eax
sub word [0x481420], 1
cmp word [0x481420], 0
sete bl
mov eax, 0x481400
call fcn.00405950
test bl, bl
je 0x4057cc
mov eax, 0x481400
call fcn.00405930
pop edi
pop esi
pop ebx
ret
Function at 0x4058bd
Capabilities:
Encode data using xor

Disassembly:
iretd
and dword [edx], 0x39
xor eax, eax
repne scasb al, byte es:[edi]
imul dword [ecx]
mov ecx, 0x7d78fb59
add eax, 0xdc9d4c89
inc ebx
mov edi, dword [esi + 4]
add al, 0x41
add al, 0x41
mov byte [ebx + eax], 0xd1
test edi, edi
jne 0x4058a7
mov eax, dword [ebp + 8]
inc edx
mov ecx, 0xf18e1550
xchg ebx, eax
dec dword [ebx - 0x36ccf30f]
test esi, esi
mov dword [ebp - 0xc], eax
xor al, 0xd0
mov dword [ebp - 4], ecx
je 0x405931
mov eax, ss
or al, 0x89
adc al, bh
jmp 0x4058ee
jl 0x405876
cld
cmp ecx, 0x61
mov cx, 0x838b
invalid
loope 0x405923
add eax, 4
sbb al, 0x8b
xor byte [ecx - 0x9960775], cl
jne 0x4058eb
bound eax, qword [ebp - 0xc]
pop edi
in eax, 0xc6
add al, byte [eax]
pop ebx
js 0x40591e
pop ebp
ret

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

Disassembly:
mov esi, dword [edx + 0x28]
xor edi, edi
movzx ecx, word [edx + 0x26]
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x40b5c2
sub al, 0x20
ror edi, 0xd
add edi, eax
dec ecx
jne 0x40b5b9
push edx
push edi
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
add eax, edx
mov eax, dword [eax + 0x78]
test eax, eax
je 0x40b627
add eax, edx
mov ebx, dword [eax + 0x20]
add ebx, edx
mov ecx, dword [eax + 0x18]
push eax
test ecx, ecx
je 0x40b626
dec ecx
xor edi, edi
mov esi, dword [ebx + ecx*4]
add esi, edx
xor eax, eax
lodsb al, byte [esi]
ror edi, 0xd
add edi, eax
cmp al, ah
jne 0x40b5f2
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
jne 0x40b5e6
pop eax
mov ebx, dword [eax + 0x24]
add ebx, edx
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
add ebx, edx
mov eax, dword [ebx + ecx*4]
add eax, edx
mov dword [esp + 0x24], eax
pop ebx
pop ebx
popal
pop ecx
pop edx
push ecx
jmp eax
pop eax
pop edi
pop edx
mov edx, dword [edx]
jmp 0x40b5b0