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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x1013a1b0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100ac8b4
cmp byte [ebx], 0xa
jne 0x100ac8b4
or byte [edi + eax + 0x28], 4
jmp 0x100ac8b9
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100ac9b8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100ac99b
inc eax
cmp dl, 0xd
je 0x100ac8e5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100ac90b
cmp eax, ecx
jae 0x100ac919
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100ac8cd
jmp 0x100ac9b8
push 0
lea eax, [ebp - 0x10]
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 0x100ac996
cmp dword [ebp - 0x10], 0
je 0x100ac996
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1013a1b0]
test byte [eax + edi + 0x28], 0x48
je 0x100ac970
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100ac95b
mov byte [esi], dl
jmp 0x100ac96c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1013a1b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100ac9b8
cmp byte [ebp - 1], 0xa
jne 0x100ac97f
cmp esi, ebx
jne 0x100ac97f
mov byte [esi], 0xa
jmp 0x100ac9b7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100ad594
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100ac9b8
mov byte [esi], 0xd
jmp 0x100ac9b7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1013a1b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100ac9b5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100ac9b8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100ac9c1
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 + 0x1013a1b0]
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 0x100aca07
cmp word [ebx], dx
jne 0x100aca07
or byte [eax + edi + 0x28], 4
jmp 0x100aca0c
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 0x100acb6f
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 0x100acb4f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100aca4d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100aca83
cmp eax, edx
jae 0x100aca91
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 0x100aca28
jmp 0x100acb6f
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 0x100acb4a
cmp dword [ebp - 0x18], 0
je 0x100acb4a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1013a1b0]
test byte [eax + edi + 0x28], 0x48
je 0x100acb20
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 0x100acae4
mov word [esi], cx
jmp 0x100acb1b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1013a1b0]
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 + 0x1013a1b0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1013a1b0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100acb6f
pop eax
cmp word [ebp - 4], ax
jne 0x100acb30
cmp esi, ebx
jne 0x100acb30
mov word [esi], ax
jmp 0x100acb6c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100ad594
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100acb6f
push 0xd
pop eax
jmp 0x100acb2b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1013a1b0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100acb69
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100acb6f
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 0x100aff50
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100afed2
Function at 0x100b1aef
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 0x100b1b8c
push ebx
push esi
call fcn.100b1ab8
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.100b1a4c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100b1b39
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100b1b8b
push edi
push eax
call fcn.100adb4a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100b1b59
call fcn.100aa070
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100b1b8a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100b1a4c
add esp, 0x20
test eax, eax
jne 0x100b1b78
push edi
call fcn.100aa070
jmp 0x100b1b80
push ebx
call fcn.100aa070
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 0x100b6351
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.100b62cd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100b64c0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100b64c0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100b6475
jg 0x100b63ad
test eax, eax
je 0x100b646b
push 1
push 0x1000
call fcn.100aa013
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100b63d0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100b6462
push 0x8000
push ebx
call fcn.100b61fe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100b63f9
jg 0x100b63f4
cmp ecx, 0x1000
jb 0x100b63f9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100ac658
add esp, 0x10
cmp eax, 0xffffffff
je 0x100b643e
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 0x100b63f4
jl 0x100b6425
test ecx, ecx
jne 0x100b63e6
push dword [ebp - 0xc]
push ebx
call fcn.100b61fe
push esi
call fcn.100aa070
add esp, 0xc
xor ebx, ebx
jmp 0x100b64ce
cmp byte [edi + 0x24], 0
je 0x100b6455
cmp dword [edi + 0x20], 5
jne 0x100b6455
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100b6460
mov ebx, dword [edi + 0x18]
jmp 0x100b6462
xor ebx, ebx
push esi
call fcn.100aa070
pop ecx
jmp 0x100b64ce
test ecx, ecx
jg 0x100b6437
jl 0x100b6475
test eax, eax
jae 0x100b6437
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100ad594
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100b6495
cmp byte [edi + 0x1c], 0
je 0x100b6437
jmp 0x100b64c6
push ebx
call fcn.100b2655
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100b6437
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 0x100b64ce
cmp byte [edi + 0x1c], 0
je 0x100b64cb
mov ebx, dword [edi + 0x18]
jmp 0x100b64ce
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100ad594
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100b7710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100b773d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100b773d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40558d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408374
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x408364
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4055de
xor eax, eax
jmp 0x405605
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405605
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x4055da
call esi
pop esi
leave
ret 4

Function at 0x40563f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42c078], 0x44
push eax
xor eax, eax
push 0x42c078
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40567e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405682
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x405720
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405b14
mov edi, eax
cmp edi, 0xffffffff
je 0x405761
test byte [esp + 0x10], 1
push esi
je 0x405743
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405749
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405752
xor eax, eax
inc eax
jmp 0x405763
test byte [esp + 0x10], 4
jne 0x405761
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x415750
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, edi
shl eax, 5
lea ebp, [eax + 0x443fe0]
jmp 0x415770
mov edi, dword [esp + 0x14]
lea esp, [esp]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
push ecx
push edx
push edi
or esi, 0xffffffff
call fcn.0041e1c4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4157b3
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ebx
push eax
push edi
call fcn.00424fe3
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x4157b3
xor edi, edi
jmp 0x4157b8
mov edi, 1
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
mov ebx, dword [esp + 0x28]
je 0x415859
call fcn.0041c8ca
mov edi, eax
call fcn.00414730
test esi, esi
mov ecx, dword [edi]
mov dword [eax], ecx
jne 0x4157ed
call fcn.0041c8ca
cmp dword [eax], 4
je 0x415765
test bl, 0x1a
je 0x415847
cmp esi, 0xffffffff
jne 0x415820
call fcn.00414730
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.00418d00
add esp, 4
push eax
push 0x24
push 2
call fcn.004178f0
add esp, 0x10
pop edi
or eax, esi
pop esi
pop ebp
pop ebx
ret
test bl, 6
je 0x415847
call fcn.00414730
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00418d00
add esp, 4
push eax
push 0x24
push 9
call fcn.004178f0
add esp, 0x10
cmp esi, 0xffffffff
je 0x415851
test bl, 6
je 0x415859
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
and bl, 6
neg bl
pop edi
sbb ebx, ebx
not ebx
and ebx, esi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x415c60
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x415c6f
mov edi, 1
push edi
call fcn.0041e59b
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x415cc3
push esi
call fcn.0041c8ca
mov esi, eax
call fcn.00414730
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov esi, eax
and esi, 8
je 0x415ca6
mov edx, dword [fcn.00418130]
mov dword [fcn.00418130], edx
test al, 0x18
je 0x415cb7
push edi
push 0x24
push 5
call fcn.004178f0
add esp, 0xc
test esi, esi
pop esi
je 0x415cde
push 1
call fcn.0041c165
test byte [esp + 0x10], 0x20
je 0x415cde
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov eax, ebx
pop ebx
ret
Function at 0x4163f0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0041c8ca
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.00424fe3
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4164c3
call fcn.0041c8ca
cmp dword [eax], 0
je 0x416437
call fcn.0041c8ca
mov ebp, dword [eax]
jmp 0x41643a
or ebp, 0xffffffff
call fcn.00414730
test esi, esi
mov dword [eax], ebp
jne 0x41644f
call fcn.0041c8ca
cmp dword [eax], 4
je 0x41649f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x416482
cmp esi, 0xffffffff
je 0x4164d4
test al, 6
je 0x416482
call fcn.00414730
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00418d00
add esp, 4
push eax
push 0x24
push 9
call fcn.004178f0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x4164f2
test al, 6
je 0x416490
test ah, 2
je 0x4164f2
test esi, esi
jbe 0x4164c7
test ah, 2
je 0x4164c7
add dword [esp + 0x18], esi
sub edi, esi
call fcn.0041c8ca
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.00424fe3
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x416424
mov eax, dword [esp + 0x20]
test al, 6
je 0x4164fa
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
call fcn.00414730
mov eax, dword [eax]
push eax
push ebx
call fcn.00418d00
add esp, 4
push eax
push 0x24
push 2
call fcn.004178f0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
test ah, 2
je 0x416503
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x41f027
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41f047
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041c857
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41f06a
test byte [esp + 8], 2
je 0x41f06a
call fcn.0041c8ca
mov dword [eax], 0xd
call fcn.0041c8d3
mov dword [eax], 5
jmp 0x41f043
xor eax, eax
ret
Function at 0x422968
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4428f8
cmp edx, dword [eax]
je 0x42298a
add eax, 8
inc ecx
cmp eax, 0x442988
jl 0x42297b
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4428f8]
jne 0x422ab8
mov eax, dword [0x454648]
cmp eax, 1
je 0x422a92
test eax, eax
jne 0x4229bb
cmp dword [0x4404a4], 1
je 0x422a92
cmp edx, 0xfc
je 0x422ab8
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4229f2
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004230c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00420400
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x422a35
lea eax, [ebp - 0x1a4]
push eax
call fcn.00420400
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42a664
push edi
call fcn.00422fc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004230c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004230d0
lea eax, [ebp - 0xa0]
push 0x42a644
push eax
call fcn.004230d0
push dword [esi + 0x4428fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004230d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00426969
add esp, 0x2c
pop edi
jmp 0x422ab8
lea eax, [ebp + 8]
lea esi, [esi + 0x4428fc]
push 0
push eax
push dword [esi]
call fcn.00420400
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4114f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x10
pop ecx
xor eax, eax
push 0x100
push eax
mov byte [ebp - 0x44], 0
lea edi, [ebp - 0x43]
push ebx
rep stosd dword es:[edi], eax
call fcn.00421950
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.0041a47a
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.004170db
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.00421610
add esp, 0x28
push 0x40
lea edi, [ebx + 0x60]
lea esi, [ebx + 0x5a]
pop ecx
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [eax + ebx + 0x9f]
xor cl, byte [eax + ebx]
inc eax
cmp eax, 0x20
mov byte [eax + ebx + 0x9f], cl
jl 0x41154b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x411589
mov al, byte [ecx + ebx + 0xbd]
xor al, byte [ecx + ebx]
inc ecx
cmp ecx, esi
mov byte [ecx + ebx + 0xbf], al
jl 0x411573
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x41350c
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push 0x458d98
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx eax, al
xor ecx, ecx
test eax, eax
jbe 0x41353b
push edi
movzx edx, byte [ecx + 0x458d98]
mov edi, edx
imul edi, esi
xor edi, edx
inc ecx
cmp ecx, eax
mov esi, edi
jb 0x413525
pop edi
mov eax, esi
pop esi
ret

Function at 0x419e22
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, 0x10000
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + edx*4]
mov edx, ecx
and ecx, 0xffff
shr edx, 0x10
mov esi, ecx
mov dword [ebp - 8], ecx
mov ecx, edx
imul ecx, edx
mov dword [eax + 4], ecx
mov ecx, esi
imul ecx, esi
mov dword [eax], ecx
mov ebx, edx
sub ebx, esi
sub esi, edx
mov ecx, esi
imul ecx, ebx
xor esi, ebx
mov ebx, dword [eax + 4]
and esi, edi
neg esi
mov dword [ebp - 4], edx
mov edx, ecx
neg edx
sbb edx, edx
and edx, esi
add ecx, ebx
cmp ecx, ebx
sbb esi, esi
and esi, edi
add edx, esi
mov esi, dword [eax]
add ecx, esi
cmp ecx, esi
sbb esi, esi
and esi, edi
add edx, esi
mov esi, ecx
shl esi, 0x10
add dword [eax], esi
cmp dword [eax], esi
sbb esi, esi
neg esi
shr ecx, 0x10
add esi, ebx
add ecx, esi
add ecx, edx
mov dword [eax + 4], ecx
add eax, 8
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x10]
jl 0x419e36
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419ec3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
shr dword [ebp + 0x14], 0x10
and eax, 0xffff
push esi
mov dword [ebp + 0xc], eax
push edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + edx*4]
mov ecx, dword [ebp + 0x14]
mov esi, edi
and edi, 0xffff
shr esi, 0x10
mov edx, edi
imul edx, dword [ebp + 0xc]
mov dword [ebp - 8], esi
imul esi, ecx
sub edi, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
mov eax, edi
imul eax, ecx
mov dword [ebp - 0xc], ecx
xor edi, dword [ebp - 0xc]
mov ecx, eax
and edi, 0x10000
neg edi
neg ecx
sbb ecx, ecx
and ecx, edi
add eax, esi
cmp eax, esi
sbb edi, edi
add eax, edx
and edi, 0x10000
add ecx, edi
cmp eax, edx
sbb edi, edi
and edi, 0x10000
add ecx, edi
mov edi, eax
shl edi, 0x10
add edx, edi
cmp edx, edi
sbb edi, edi
shr eax, 0x10
neg edi
add edi, ecx
add eax, edi
add esi, eax
mov eax, dword [ebx]
lea ecx, [edx + edx]
add eax, ecx
cmp eax, ecx
sbb edi, edi
neg edi
cmp ecx, edx
sbb ecx, ecx
neg ecx
add ecx, dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
mov eax, dword [ebx]
lea edx, [ecx + edi]
lea edi, [esi + esi]
add eax, edi
cmp eax, edi
sbb ecx, ecx
neg ecx
cmp edi, esi
sbb esi, esi
add edx, eax
neg esi
add ecx, esi
cmp edx, eax
sbb eax, eax
neg eax
add eax, ecx
inc dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x18]
mov dword [ebx], edx
jl 0x419eeb
add ebx, 4
cmp dword [ebp - 4], 0
pop edi
pop esi
je 0x419fe3
mov edx, dword [ebp + 0x18]
add edx, edx
cmp dword [ebp + 8], edx
jge 0x419fe3
mov eax, dword [ebx]
mov ecx, dword [ebp - 4]
add ecx, eax
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [ebx], ecx
add ebx, 4
inc dword [ebp + 8]
test eax, eax
mov dword [ebp - 4], eax
jne 0x419fc2
pop ebx
leave
ret
Function at 0x41b1dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x14]
xor edx, edx
cmp edi, edx
je 0x41b2f6
mov eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, 7
push ebx
push esi
mov dword [ebp - 4], edx
je 0x41b21a
mov ebx, dword [ebp + 8]
mov edx, ecx
mov esi, eax
shr esi, 3
mov bl, byte [esi + ebx]
mov cl, 8
sub cl, dl
shr bl, cl
movzx cx, bl
mov word [ebp - 4], cx
add edi, 7
shr eax, 3
shr edi, 3
xor esi, esi
test edi, edi
mov dword [ebp - 0xc], eax
jle 0x41b2f4
lea eax, [edi - 1]
cmp esi, eax
je 0x41b24b
mov eax, dword [ebp + 0x10]
movzx ax, byte [esi + eax]
xor ecx, ecx
mov ch, byte [ebp - 4]
xor eax, ecx
add edx, 8
jmp 0x41b27b
mov eax, dword [ebp + 0x14]
and eax, 7
mov dword [ebp - 8], 8
je 0x41b25d
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
movzx eax, byte [esi + eax]
mov ebx, dword [ebp - 4]
mov cl, 8
sub cl, byte [ebp - 8]
shr al, cl
mov ecx, dword [ebp - 8]
shl ebx, cl
movzx ax, al
or eax, ebx
add edx, ecx
mov dword [ebp - 4], eax
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
setne cl
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp edx, 8
setge al
test ecx, eax
jne 0x41b2af
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
sete cl
xor ebx, ebx
test edx, edx
setg bl
test ebx, ecx
je 0x41b2eb
push 8
pop eax
cmp edx, eax
mov dword [ebp - 8], eax
jg 0x41b2bc
mov dword [ebp - 8], edx
mov ebx, dword [ebp - 4]
mov cl, dl
sub cl, byte [ebp - 8]
shr bx, cl
mov ecx, eax
sub ecx, dword [ebp - 8]
mov eax, 0xff00
shl bl, cl
mov ecx, dword [ebp - 8]
sar eax, cl
mov ecx, dword [ebp - 0xc]
and bl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov byte [ecx + eax], bl
jmp 0x41b28b
inc esi
cmp esi, edi
jl 0x41b233
pop esi
pop ebx
pop edi
leave
ret