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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100d44f0
mov eax, dword [0x1023bc40]
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.101325f7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1011517a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x101152d6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1014c260
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 + 0x10249a58]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10136e04
mov ecx, dword [esi*4 + 0x10249a58]
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 0x101152cf
cmp eax, dword [edi + ecx + 0x24]
jne 0x101152cf
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 0x101152cf
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10136e04
add esp, 0x14
test edx, edx
jl 0x101152cf
jg 0x10115245
test eax, eax
jb 0x101152cf
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x101152cf
jl 0x1011525f
cmp dword [ebp - 0x1008], eax
ja 0x101152cf
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1011527d
test ebx, ebx
je 0x101152b6
cmp ecx, edi
jae 0x101152b6
mov al, byte [ecx]
cmp al, 0xd
jne 0x10115297
lea eax, [edi - 1]
cmp ecx, eax
jae 0x101152a3
cmp byte [ecx + 1], 0xa
jne 0x101152a3
inc ecx
jmp 0x101152a3
movzx eax, al
movsx eax, byte [eax + 0x1023bf38]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1011527d
cmp edx, ebx
jne 0x1011527d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x101152d4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100d4887
leave
ret

Function at 0x10133c96
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101e1c54
push 0x101e1c4c
push str.FlsAlloc
push 0x1e
call fcn.10133966
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10133cca
push dword [ebp + 8]
mov ecx, esi
call dword [0x10154338]
call esi
jmp 0x10133cd0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x10133d14
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101e1c64
push 0x101e1c5c
push str.FlsGetValue
push 0x20
call fcn.10133966
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10133d4b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10154338]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10135b46
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1013572d

Function at 0x10135b51
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101358bc

Function at 0x10135f8d
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 + 0x10249a58]
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 0x10135fcd
cmp byte [ebx], 0xa
jne 0x10135fcd
or byte [eax + edi + 0x28], 4
jmp 0x10135fd2
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x101360d0
mov al, byte [edx]
cmp al, 0x1a
je 0x101360b2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10136001
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10136026
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10136030
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 0x10135fe3
jmp 0x101360d0
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 0x101360ad
cmp dword [ebp - 0xc], 0
je 0x101360ad
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10249a58]
test byte [eax + edi + 0x28], 0x48
je 0x10136087
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10136072
mov byte [esi], dl
jmp 0x10136083
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10249a58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x101360d0
cmp byte [ebp - 1], 0xa
jne 0x10136096
cmp esi, ebx
jne 0x10136096
mov byte [esi], 0xa
jmp 0x101360cf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10136e22
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x101360d0
mov byte [esi], 0xd
jmp 0x101360cf
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10249a58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x101360cc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x101360d0
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101360d9
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 + 0x10249a58]
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 0x1013611c
cmp word [esi], dx
jne 0x1013611c
or byte [edi + eax + 0x28], 4
jmp 0x10136121
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 0x10136274
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 0x10136254
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10136163
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10136199
cmp eax, edx
jae 0x101361a5
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 0x1013613b
jmp 0x10136274
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 0x10136250
cmp dword [ebp - 0x14], 0
je 0x10136250
mov eax, dword [ebx*4 + 0x10249a58]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10136228
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x101361f1
mov word [esi], cx
jmp 0x10136224
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10249a58]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10249a58]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10249a58]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10136274
pop ebx
cmp word [ebp - 4], bx
jne 0x10136239
cmp esi, dword [ebp + 0xc]
jne 0x10136239
mov word [esi], bx
jmp 0x10136271
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10136e22
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10136274
push 0xd
jmp 0x1013626d
mov ecx, dword [ebx*4 + 0x10249a58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1013626b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10136274
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 0x1013d3a1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1023bc40]
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 0x1013d3ec
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1013d745
test al, al
jne 0x1013d3e6
sub edx, 2
cmp edx, edi
jne 0x1013d3cc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1013d40e
lea eax, [edi + 2]
cmp edx, eax
je 0x1013d40e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1013d068
add esp, 0x10
jmp 0x1013d508
push esi
lea ecx, [ebp - 0x255]
call fcn.1013d745
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 0x1013d451
push dword [ebp - 0x25c]
jmp 0x1013d3fe
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 0x1013d48e
cmp word [ebp - 0x226], 0
je 0x1013d4af
cmp word [ebp - 0x226], ax
jne 0x1013d48e
cmp word [ebp - 0x224], 0
je 0x1013d4af
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1013d068
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1013d4fb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1013d468
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1013d4e3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1013d508
push 0x1013cb87
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10122470
add esp, 0x10
jmp 0x1013d4d8
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.100d4887
leave
ret
Function at 0x1013e8bf
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 0x1013e95c
push ebx
push esi
call fcn.1013e87b
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.10137359
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1013e909
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1013e95b
push edi
push eax
call fcn.10131520
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1013e929
call fcn.101314e6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1013e95a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10137359
add esp, 0x20
test eax, eax
jne 0x1013e948
push edi
call fcn.101314e6
jmp 0x1013e950
push ebx
call fcn.101314e6
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 0x1013e95f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1013e970
pop esi
ret
push ebx
push edi
push esi
call fcn.1013e87b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10131520
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1013e998
push ebx
push esi
push edi
call fcn.100e8fa0
add esp, 0xc
push 0
call fcn.101314e6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1013f270
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1013ec0b
Function at 0x1014a3e4
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.1014a204
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1014a55c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1014a55c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1014a50b
jg 0x1014a43d
test eax, eax
je 0x1014a501
push 1
push 0x1000
call fcn.10132c45
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1014a463
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1014a4f8
push 0x8000
push ebx
call fcn.1014a039
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 0x1014a48f
jg 0x1014a48a
cmp ecx, 0x1000
jb 0x1014a48f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1013552d
add esp, 0x10
cmp eax, 0xffffffff
je 0x1014a4d4
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 0x1014a48a
jl 0x1014a4bb
test ecx, ecx
jne 0x1014a47c
push dword [ebp - 0xc]
push ebx
call fcn.1014a039
push esi
call fcn.101314e6
add esp, 0xc
xor edi, edi
jmp 0x1014a56d
cmp byte [edi + 0x24], 0
je 0x1014a4eb
cmp dword [edi + 0x20], 5
jne 0x1014a4eb
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1014a4f6
mov edi, dword [edi + 0x18]
jmp 0x1014a4f8
xor edi, edi
push esi
call fcn.101314e6
pop ecx
jmp 0x1014a56d
test ecx, ecx
jg 0x1014a4cd
jl 0x1014a50b
test eax, eax
jae 0x1014a4cd
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10136e22
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1014a52e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1014a4cd
jmp 0x1014a565
push ebx
call fcn.101458b1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1014a4cd
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 0x1014a56d
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1014a56a
mov edi, dword [edi + 0x18]
jmp 0x1014a56d
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10136e22
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1014bbf8
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1014bacc

Function at 0x1014c1e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1014c20d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1014c20d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4019fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
push ebp
push 0x401ab2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4585c8
call sub.KERNEL32.DLL_WaitForSingleObject
cmp byte [0x458049], 0
je 0x401a2a
push 0x4585c8
call sub.KERNEL32.DLL_WriteFile
mov eax, 0x4585e8
call fcn.004013c0
mov eax, 0x4585f8
call fcn.004013c0
mov eax, 0x458624
call fcn.004013c0
push 0xff8
push 0
call sub.KERNEL32.DLL_SetThreadLocale
mov dword [0x458620], eax
cmp dword [0x458620], 0
je 0x401a91
mov eax, 3
mov edx, dword [0x458620]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x401a67
mov eax, 0x458608
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [0x458614], eax
mov byte [0x4585c0], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401ab9
cmp byte [0x458049], 0
je 0x401ab1
push 0x4585c8
call sub.KERNEL32.DLL_lstrcpyA
ret

Function at 0x401ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x4585c0], 0
je 0x401b9d
xor edx, edx
push ebp
push 0x401b96
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x458049], 0
je 0x401af2
push 0x4585c8
call sub.KERNEL32.DLL_WriteFile
mov byte [0x4585c0], 0
mov eax, dword [0x458620]
push eax
call sub.KERNEL32.DLL_SizeofResource
xor eax, eax
mov dword [0x458620], eax
mov ebx, dword [0x4585e8]
jmp 0x401b25
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_VirtualQuery
mov ebx, dword [ebx]
cmp ebx, 0x4585e8
jne 0x401b13
mov eax, 0x4585e8
call fcn.004013c0
mov eax, 0x4585f8
call fcn.004013c0
mov eax, 0x458624
call fcn.004013c0
mov eax, dword [0x4585e0]
test eax, eax
je 0x401b6b
mov edx, dword [eax]
mov dword [0x4585e0], edx
push eax
call sub.KERNEL32.DLL_SizeofResource
mov eax, dword [0x4585e0]
test eax, eax
jne 0x401b54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401b9d
cmp byte [0x458049], 0
je 0x401b8b
push 0x4585c8
call sub.KERNEL32.DLL_lstrcpyA
push 0x4585c8
call sub.KERNEL32.DLL_Sleep
ret
pop ebx
pop ebp
ret
Function at 0x4020e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x4585c0], 0
jne 0x402105
call fcn.004019fc
test al, al
je 0x40210d
cmp ebx, 0x7ffffff8
jle 0x402117
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40226b
xor ecx, ecx
push ebp
push 0x402264
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x458049], 0
je 0x402138
push 0x4585c8
call sub.KERNEL32.DLL_WriteFile
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x402148
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x4021e7
mov eax, ebx
test eax, eax
jns 0x40215d
add eax, 3
sar eax, 2
mov edx, dword [0x458620]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x4021e7
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x402198
mov eax, ebx
test eax, eax
jns 0x402187
add eax, 3
sar eax, 2
mov ecx, dword [0x458620]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x4021be
mov ecx, ebx
test ecx, ecx
jns 0x4021a1
add ecx, 3
sar ecx, 2
mov edi, dword [0x458620]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4585b0]
sub ebx, 4
add dword [0x4585b4], ebx
call fcn.00403ae4
jmp 0x40226b
cmp ebx, dword [0x458618]
jg 0x402239
sub dword [0x458618], ebx
cmp dword [0x458618], 0xc
jge 0x40220b
add ebx, dword [0x458618]
xor eax, eax
mov dword [0x458618], eax
mov eax, dword [0x45861c]
add dword [0x45861c], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4585b0]
sub ebx, 4
add dword [0x4585b4], ebx
call fcn.00403ae4
jmp 0x40226b
mov eax, ebx
call fcn.00401ff4
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40226b
cmp byte [0x458049], 0
je 0x402263
push 0x4585c8
call sub.KERNEL32.DLL_lstrcpyA
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x402278
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [0x4585c4], eax
cmp byte [0x4585c0], 0
jne 0x4022b0
call fcn.004019fc
test al, al
jne 0x4022b0
mov dword [0x4585c4], 8
mov dword [ebp - 4], 8
jmp 0x402411
xor ecx, ecx
push ebp
push 0x40240a
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x458049], 0
je 0x4022d1
push 0x4585c8
call sub.KERNEL32.DLL_WriteFile
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x4022ec
mov dword [0x4585c4], 9
jmp 0x4023e1
dec dword [0x4585b0]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x4585b4], eax
test bl, 1
je 0x40234c
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x40231c
test edx, 0x80000003
je 0x40232b
mov dword [0x4585c4], 0xa
jmp 0x4023e1
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x402343
mov dword [0x4585c4], 0xa
jmp 0x4023e1
add ebx, edx
mov esi, eax
call fcn.00401ba0
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x45861c]
jne 0x40238c
sub dword [0x45861c], ebx
add dword [0x458618], ebx
cmp dword [0x458618], 0x3c00
jle 0x40237d
call fcn.00401e90
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00403ae4
jmp 0x402411
mov edx, dword [eax]
test dl, 2
je 0x4023af
and edx, 0x7ffffffc
cmp edx, 4
jge 0x4023aa
mov dword [0x4585c4], 0xb
jmp 0x4023e1
or dword [eax], 1
jmp 0x4023d8
mov eax, edi
cmp dword [eax + 4], 0
je 0x4023c2
cmp dword [eax], 0
je 0x4023c2
cmp dword [eax + 8], 0xc
jge 0x4023ce
mov dword [0x4585c4], 0xb
jmp 0x4023e1
mov edx, dword [eax + 8]
add ebx, edx
call fcn.00401ba0
mov edx, ebx
mov eax, esi
call fcn.00401e08
mov eax, dword [0x4585c4]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402411
cmp byte [0x458049], 0
je 0x402409
push 0x4585c8
call sub.KERNEL32.DLL_lstrcpyA
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40313c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x454020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031d4
push 0x80000002
call sub.user32.dll_UpdateWindow
test eax, eax
jne 0x4031b4
xor eax, eax
push ebp
push 0x4031ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4031f0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_VkKeyScanA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4031b4
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_UnregisterClassA
ret
mov ax, word [0x454020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x454020], ax
mov esp, ebp
pop ebp
ret