joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405dae
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4310c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push eax
lea eax, [ebp + 8]
mov dword [ebp - 0x210], ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], ebx
push eax
push str.WTSQueryUserToken
push str.Wtsapi32.dll
call fcn.004059d9
add esp, 0x14
cmp dword [ebp - 0x214], ebx
je 0x405ee8
test esi, esi
je 0x405ee8
mov ecx, str.Zoom
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405e3d
test dx, dx
je 0x405e39
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405e3d
add eax, 4
add ecx, 4
test dx, dx
jne 0x405e17
mov eax, ebx
jmp 0x405e42
sbb eax, eax
or eax, 1
test eax, eax
je 0x405e7c
mov ecx, str.ZoomRooms
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405e73
test dx, dx
je 0x405e6f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405e73
add eax, 4
add ecx, 4
test dx, dx
jne 0x405e4d
mov eax, ebx
jmp 0x405e78
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405ee8
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040db40
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x210]
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x405ee8
test edi, edi
je 0x405ee8
push 0x425e88
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00413fd9
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00413fd9
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
call fcn.0041404e
add esp, 0x24
mov bl, 1
cmp dword [ebp - 0x210], 0
je 0x405efd
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bd28
leave
ret 0xc
Function at 0x4060cb
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4310c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 0x41c], eax
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040db40
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040db40
lea eax, [esi + 0x48]
add esp, 0x18
mov ecx, eax
mov dword [ebp - 0x418], eax
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40612d
sub ecx, edx
sar ecx, 1
je 0x4061cc
test ebx, ebx
je 0x4061cc
cmp dword [ebp - 0x41c], esi
je 0x4061cc
lea eax, [ebp - 0x20c]
push eax
call fcn.004021fa
pop ecx
test eax, eax
je 0x4061cc
test edi, edi
je 0x406183
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str.__s___s
push eax
call fcn.00403643
add esp, 0x10
push 2
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4061cc
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x414]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push dword [ebp - 0x41c]
push dword [ebp - 0x418]
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x4061df
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bd28
leave
ret 0xc
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x418], ebx
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x4061ce

Function at 0x4062ab
Capabilities:
Start service

Disassembly:
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4062c3
xor al, al
jmp 0x4062e6
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.00405d76
inc esi
cmp eax, 4
je 0x4062e3
cmp esi, 0x64
jl 0x4062c3
cmp eax, 4
sete al
pop edi
pop esi
ret

Function at 0x406398
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea esi, [ecx + 0x48]
mov edx, esi
push edi
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4063a7
sub edx, edi
sar edx, 1
jne 0x4063bc
xor al, al
jmp 0x4063fb
call fcn.00405ffd
test al, al
jne 0x4063c9
inc al
jmp 0x4063fb
push ebx
push 0xf01ff
push 2
xorps xmm0, xmm0
lea ecx, [ebp - 8]
push esi
movlpd qword [ebp - 8], xmm0
call fcn.00405a72
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
lea ecx, [ebp - 8]
setne bl
call fcn.00405ab5
mov al, bl
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4080cc
Capabilities:
Read file via mapping

Disassembly:
push 0x10
push 0x42ecd0
call fcn.0040c5a0
mov esi, ecx
mov dword [ebp - 0x20], esi
lea eax, [esi + 0x28]
xor ebx, ebx
cmp dword [eax + 0x18], ebx
je 0x4080ee
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
jne 0x408153
mov edi, ebx
cmp dword [esi], edi
je 0x408113
push dword [ebp + 8]
push ebx
push ebx
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esi + 4], edi
test edi, edi
je 0x408153
mov edx, dword [ebp + 8]
mov ecx, edx
shr ecx, 1
mov al, byte [ecx + edi]
mov byte [ecx + edi], al
mov al, byte [edi + edx - 1]
mov byte [edi + edx - 1], al
mov dword [esi + 0xc], edx
mov byte [ebp - 0x19], 1
jmp 0x408153
mov dword [ebp - 4], 0xfffffffe
add esi, 0x28
cmp dword [esi + 0x18], ebx
je 0x408169
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408a4f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x408a5d
mov ecx, dword [ecx]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop ebp
ret 0x14
Function at 0x408dd1
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x408ef1
xor eax, eax
cmp ax, word [edi]
je 0x408ef1
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x408dfc
call fcn.00408d0c
push ebx
push 0x80
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x408ef1
test eax, eax
je 0x408ef1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x40
jb 0x408ef1
push ebx
push edi
push ebx
push 2
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x408ef1
test eax, eax
je 0x408ef1
push edi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x408ef1
lea edx, [ecx + edi]
mov dword [esi + 8], edx
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 4], edx
cmp eax, 0x40
jb 0x408ef1
lea edi, [eax + ecx]
lea eax, [edi + 0xf8]
mov dword [esi + 0x10], edi
cmp edx, eax
jb 0x408ef1
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x408ef1
cmp dword [edi], 0x4550
jne 0x408ef1
movzx eax, word [edi + 4]
mov edx, 0x14c
mov ecx, eax
cmp cx, dx
je 0x408ed1
mov edx, 0x8664
cmp cx, dx
je 0x408ec8
mov ecx, 0xaa64
cmp ax, cx
jne 0x408ef1
mov bl, 1
mov eax, pe_nt_image_headers32
jmp 0x408ed6
mov eax, 0xf8
lea edx, [edi + eax]
mov byte [esi + 0x18], bl
mov dword [esi + 0x14], edx
movzx ecx, word [edi + 6]
imul ecx, ecx, 0x28
add ecx, edx
cmp dword [ebp - 4], ecx
jb 0x408ef1
mov al, 1
jmp 0x408efa
mov ecx, esi
call fcn.00408d0c
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4310c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0
je 0x40b74a
cmp byte [edi + 0x60], 0
push esi
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x20], esi
je 0x40b727
mov edx, dword [edi + 0x68]
mov ecx, dword [edi + 0x58]
lea eax, [edx + esi]
cmp eax, ecx
jle 0x40b727
mov esi, dword [edi + 0x5c]
cmp esi, 1
jne 0x40b6cb
sub ecx, edx
push ecx
mov dword [ebp - 0x24], ecx
call fcn.0040bfcd
push dword [ebp - 0x24]
mov esi, eax
push 0x20
push esi
call fcn.0040db40
push dword [edi + 0xc]
push dword [ebp - 0x24]
push 1
push esi
call fcn.00414a58
push esi
call fcn.0040bd39
xor esi, esi
push esi
push esi
push dword [edi + 0xc]
call fcn.00415509
add esp, 0x30
mov dword [edi + 0x68], esi
jmp 0x40b724
jle 0x40b724
mov ecx, edi
call fcn.0040b0c8
mov ecx, edi
call fcn.0040b2c0
test al, al
je 0x40b724
cmp dword [edi + 0x6c], esi
jle 0x40b724
mov eax, dword [edi + 0x70]
mov esi, dword [eax]
cmp esi, eax
je 0x40b724
and dword [ebp - 0xc], 0
lea eax, [esi + 0x14]
and dword [ebp - 8], 0
lea ecx, [ebp - 0x1c]
push eax
call fcn.00404a12
push esi
lea ecx, [edi + 0x70]
call fcn.0040ad46
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x40b724
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1c]
call fcn.00401d7a
pop ecx
pop ecx
mov esi, dword [ebp - 0x20]
cmp dword [ebx + 0x14], 0x10
jb 0x40b72f
mov ebx, dword [ebx]
push dword [edi + 0xc]
push esi
push 1
push ebx
call fcn.00414a58
push dword [edi + 0xc]
call fcn.004151f8
add esp, 0x14
add dword [edi + 0x68], esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040bd28
leave
ret 8

Function at 0x40b97e
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4310c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
mov esi, ecx
movlpd qword [ebp - 0x10], xmm0
call fcn.0040b961
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x40b9f3
cmp dword [edi + 4], 0
je 0x40b9f3
push 0x1d4c0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40b9dc
mov eax, dword [edi + 8]
xor esi, esi
inc esi
mov dword [0x432700], eax
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x40b9f6
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.0040ba12
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, dword [ebp - 8]
jmp 0x40b9f6
xor esi, esi
inc esi
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40ba02
call fcn.0040aca1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040bd28
leave
ret
Function at 0x40bab4
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 8]
push eax
push 4
push edx
push 0x40bb20
push 0
push 0
call fcn.00415cec
mov ecx, eax
add esp, 0x18
test ecx, ecx
jne 0x40bade
xor al, al
jmp 0x40bb0f
mov eax, dword [esi]
push dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esi]
add ecx, 0xc
call fcn.004037a5
mov eax, dword [esi]
mov ecx, 0x4325f0
push dword [eax + 8]
push dword [ebp + 8]
call fcn.0040b927
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x1000716e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000717d
pop dword [ebp - 0x20]
mov eax, 0x1000717d
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x41100
push 0
mov eax, 0x58db38a6
add eax, 0xb727b8b6
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x4b48
xor ebx, ebx
add ebx, eax
mov esi, 0x1004ac00
add esi, dword [ebp - 0x20]
mov edi, 0x4b89b912
add dword [ebp - 8], 0xc7dd3197
mov edx, dword [esi]
sub dword [ebp - 0xc], edi
xor edx, edi
xor dword [ebp - 8], ecx
mov dword [ebx], edx
xor dword [ebp - 0x10], 0xabbf6e71
add ebx, 0x2820c2cb
add ebx, 0xd7df3d39
add esi, 0x7040e2fa
add esi, 0x8fbf1d0a
loop 0x100071c7
add eax, 0x1fe499f9
add eax, 0xe01c85fa
mov ebx, eax
add eax, 0x42f12f0f
sub eax, 0x42f12f0a
mov ecx, 0x5236c3a1
add ecx, 0xbdc93c5f
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1000716e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret
Function at 0x1f73bc8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1f73bd2
pushal
call 0x1f73bd8
pop ebp
sub ebp, 0x10
sub ebp, 0x1b73bc8
jmp 0x1f73bee
mov eax, 0x1b73bc8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c2
mov edx, 0x2829fab1
xor byte [eax], dl
inc eax
dec ecx
jne 0x1f73c05
jmp 0x1f73c18
cmp bh, byte [edx + edi + 0x38]
cmp bh, byte [eax]
lea esi, [ecx + 0x7030b1b1]
dec ecx
xor byte [eax + 0x49], dh
mov cl, 0xb1
mov cl, 0xb2
jl 0x1f73c32
mov ch, 0xb1
mov cl, 0xb1
or ebx, dword [ecx + 0x46b1b1b1]
inc esi
push ebx
mov dl, 0x79
cmp dh, byte [eax]
mov ebp, 0xb2b1b1b1
je 0x1f73c20
loope 0x1f73c1a
push ebp
or ebp, ecx
mov cl, 0xd9
push ebx
xor edi, ebp
mov al, 0xb0
popfd
xchg ebp, eax
fstp dword [ebx + 0x6c]
sar dword [ecx + 0x59], 0xb4
mov cl, 0xb1
mov cl, 0x58
lahf
mov cl, 0xb1
mov cl, 0x3c
aad 0x95
dec ebp
cmp byte [ebp + 0x3a5d3a95], bl
xor al, 0xb9
mov cl, 0xb1
mov cl, 0x3a
and al, 0xbd
mov cl, 0xb1
mov cl, 0x3a
cmp al, 0xa1
mov cl, 0xb1
mov cl, 0x70
pop eax
mov bl, pe_nt_image_headers32
mov bl, 0x32
jae 0x1f73c34
clc
mov esi, 0x4e4e4534
dec esi
in al, dx
jae 0x1f73c46
mov cl, 0x3a
cmp eax, 0xb1b1b595
mov cl, 0xd9
push ebp
or ebp, ecx
mov cl, 0xd9
push ebx
xor edi, ebp
mov al, 0xb0
popfd
xchg ebp, eax
cmp al, 0xd5
xchg ebp, eax
dec ebp
cmp byte [ebp - 0x4e4ba66b], bh
mov cl, 0xb1
pop eax
invalid
Function at 0x40152c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
and eax, 1
cmp eax, 1
je 0x401549
or eax, 0xffffffff
pop esi
leave
ret 4
cmp dword [esi + 0xc], 0
jbe 0x40156a
push 0
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
lea eax, [esi + 0x14]
push eax
push dword [esi]
call sub.kernel32.dll_WriteFile
mov dword [esi + 0xc], 0
pop esi
leave
ret 4

Function at 0x405440
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push esi
push edi
push ebx
mov dword [ebp - 4], 0
lea edi, [0x4a0338]
push edi
call fcn.004012f8
or eax, eax
jne 0x4055b7
cmp dword [ebp - 4], 0
jne 0x40548f
lea eax, [ebp - 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push 0x6448b0
call sub.kernel32.dll_SetCurrentDirectoryA
mov dword [ebp - 4], 1
mov esi, dword [edi]
mov eax, dword [esi + 0xc]
or eax, eax
jne 0x4054be
cmp dword [esi + 0x18], 0
jbe 0x4055a6
mov eax, dword [0x4fb6dc]
add eax, dword [esi + 0x18]
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], 9
jmp 0x4055b7
cmp eax, 9
jne 0x4054d6
mov eax, dword [0x4fb6dc]
cmp eax, dword [esi + 0x10]
jbe 0x4055b7
jmp 0x4055a6
cmp eax, 1
jne 0x4054f6
cmp dword [esi + 0x18], 0
jbe 0x4055a6
mov dword [esi + 0xc], 0xa
jmp 0x4055b7
cmp eax, 0xa
jne 0x405509
dec dword [esi + 0x18]
jne 0x4055b7
jmp 0x4055a6
cmp eax, 2
jne 0x405528
mov byte [0x475d6f], 1
push 0
push 0
push 0x10
push dword [0x49ff24]
call sub.user32.dll_PostMessageA
jmp 0x4055a6
cmp eax, 3
jne 0x405535
push esi
call fcn.004055d0
jmp 0x4055a6
cmp eax, 4
jne 0x405553
push 0x42524b
push 0x1b
push 0x100
push dword [0x49ff24]
call sub.user32.dll_PostMessageA
jmp 0x4055a6
cmp eax, 5
jne 0x405563
lea eax, [esi + 0x1c]
push eax
call fcn.0043a29b
jmp 0x4055a6
cmp eax, 6
jne 0x405573
lea eax, [esi + 0x1c]
push eax
call fcn.0042fd30
jmp 0x4055a6
cmp eax, 7
jne 0x40557f
call fcn.0042fe20
jmp 0x4055a6
cmp eax, 8
jne 0x4055a6
lea eax, [esi + 0x1c]
push eax
call fcn.00433689
cmp eax, 0xffffffff
jne 0x405594
jmp 0x4055a6
or eax, eax
jne 0x40559a
jmp 0x4055a6
mov dword [0x4a011c], eax
push 0xb
call fcn.0041f863
push esi
call fcn.0040133d
push esi
call sub.kernel32.dll_GlobalFree
jmp 0x405459
cmp dword [ebp - 4], 1
jne 0x4055c9
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4063c6
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push 3
call sub.kernel32.dll_IsProcessorFeaturePresent
mov dword [0x4fa9b8], eax
push 0x6448b0
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push 0x6449b4
call fcn.0043df90
push 0
push 0x114
push 0x49fe00
call fcn.0043edd0
mov dword [0x49fe00], 0x114
push 0x49fe00
call sub.ntdll.dll_RtlGetVersion
or eax, eax
je 0x406425
push 0
push 0x114
push 0x49fe00
call fcn.0043edd0
mov byte [0x5b7660], 0
push str.pasmo.exe
push 0x6449b4
push 0x5b7660
push 2
call fcn.0043deb0
add esp, 0x10
push 0x5b7660
call fcn.0043e010
mov dword [0x4fa9b0], eax
mov byte [0x5b7660], 0
push 0x44d4ec
push 0x6449b4
push 0x5b7660
push 2
call fcn.0043deb0
add esp, 0x10
push 0x5b7660
call fcn.0043e010
mov dword [0x4fa9b4], eax
push 0x4a0005
call fcn.00433180
call fcn.004331b0
mov dword [0x4a0c88], 0x42ff
mov dword [0x4a0c84], 8
push 0x4a0c84
call sub.comctl32.dll_InitCommonControlsEx
call fcn.004058c3
push str.SciLexer.dll
call sub.kernel32.dll_LoadLibraryA
mov dword [0x49ff5c], eax
cmp dword [0x49ff5c], 0
jne 0x4064f7
push 0x44d537
push 0
call fcn.0043dc44
push 0x30
push 0x442440
push str.Scintilla.dll_could_not_be_loaded_r_n_r_nError_Code:_0x
push dword [0x49ff24]
call sub.user32.dll_MessageBoxA
push 0
call sub.kernel32.dll_ExitProcess
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x49ff28], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x49ff20], eax
push 0x4e20
push dword [0x49ff28]
call sub.user32.dll_LoadIconA
mov dword [0x49ff2c], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x4a0c30], eax
push 0
call main
mov dword [0x4a0be4], eax
push 1
call main
mov dword [0x4a0be8], eax
call sub.kernel32.dll_GetCurrentProcessId
mov dword [0x49ff34], eax
push 0x49ffd8
push dword [0x49ff34]
call fcn.0043dc44
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_GetWindowDC
or eax, eax
je 0x406596
push ebx
mov ebx, eax
push 0x44d058
push 0x100
push 0
push ebx
call sub.gdi32.dll_GetSystemPaletteEntries
call sub.user32.dll_GetDesktopWindow
push ebx
push eax
call sub.user32.dll_ReleaseDC
pop ebx
push 0x10
push 0x44d098
push 0x44d458
call fcn.0043efd0
push 0xa
push dword [0x49ff20]
push 0
push dword [0x49ff28]
call fcn.00436808
push eax
call sub.kernel32.dll_ExitProcess
Function at 0x4077e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov dword [0x44d024], 0
mov dword [0x4a0b90], 0
push 0
push 0x4426a4
push 0x643870
lea eax, [ebp - 0x4c]
push eax
push str.WAV_files
push str.Save_WAV_File
push dword [0x49ff24]
call fcn.0043a154
or eax, eax
je 0x407876
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x643870
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x407876
mov dword [0x44d024], eax
mov eax, 0xac44
mov dword [0x475714], eax
shl eax, 2
mov dword [0x475718], eax
push 0
lea eax, [ebp - 0x50]
push eax
push 0x2c
push str.RIFF
push dword [0x44d024]
call sub.kernel32.dll_WriteFile
leave
ret

Function at 0x407964
Capabilities:
Capture microphone audio

Disassembly:
push esi
push edi
push ebx
lea esi, [0x4a0f10]
mov word [esi], 1
mov word [esi + 2], 2
mov dword [esi + 4], 0xac44
mov dword [esi + 8], 0xac44
mov word [esi + 0xc], 2
mov word [esi + 0xe], 8
mov word [esi + 0x10], 0
push 0x10000
push 0
push dword [0x49ff24]
push 0x4a0f10
push 0xffffffffffffffff
push 0x4acf8d
call sub.winmm.dll_waveInOpen
or eax, eax
jne 0x407a21
lea edi, [0x4acf91]
lea esi, [0x4ad351]
xor ebx, ebx
jmp 0x4079d7
mov dword [edi], esi
mov dword [edi + 4], 0xdc8
mov dword [edi + 8], 0
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push 0x20
push edi
push dword [0x4acf8d]
call sub.winmm.dll_waveInPrepareHeader
or eax, eax
jne 0x4079dc
push 0x20
push edi
push dword [0x4acf8d]
call sub.winmm.dll_waveInAddBuffer
or eax, eax
jne 0x4079dc
add esi, 0xdc8
add edi, 0x20
inc ebx
cmp ebx, 0x1e
jb 0x407988
cmp ebx, 0x1e
je 0x4079eb
push eax
call fcn.00407a2b
pop ebx
pop edi
pop esi
ret
push dword [0x4acf8d]
call sub.winmm.dll_waveInStart
or eax, eax
je 0x407a04
push eax
call fcn.00407a2b
pop ebx
pop edi
pop esi
ret
mov dword [0x4c70c1], 0
mov dword [0x4c70c5], 0xceb8
mov byte [0x4fb709], 1
jmp 0x407a27
push eax
call fcn.00407a2b
pop ebx
pop edi
pop esi
ret

Function at 0x409ce5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 8]
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA
push dword [ebp + 0x10]
call fcn.0043dd10
inc eax
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.advapi32.dll_RegSetValueExA
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
leave
ret 0xc

Function at 0x40a16a
Capabilities:
Hide graphical window

Disassembly:
cmp byte [0x4c7230], 5
jbe 0x40a17a
mov byte [0x4c7233], 0
cmp byte [0x4c7233], 0
je 0x40a18a
mov byte [0x4c7232], 0
cmp byte [0x4c7232], 0
je 0x40a1b1
cmp byte [0x4c7230], 3
ja 0x40a1a3
mov eax, 5
jmp 0x40a1b6
mov byte [0x4c7232], 0
mov eax, 0
jmp 0x40a1b6
mov eax, 0
push eax
push dword [0x49ff38]
call sub.user32.dll_ShowWindow
cmp byte [0x4c7233], 0
jne 0x40a1dd
cmp byte [0x4c7232], 0
jne 0x40a1dd
mov byte [0x4c7231], 1
jmp 0x40a1e4
mov byte [0x4c7231], 0
ret

Function at 0x40a219
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [0x49ff3c]
call sub.user32.dll_ShowWindow
mov byte [0x476000], 0
ret