joyce8/EMBER2024-capa huggingface dataset:
Function at 0x772242bf
Capabilities:
Encode data using add xor sub operations

Disassembly:
or bh, byte [ebx - 0x68]
int1
salc
push edi
add esp, 8
add esp, 8
neg edi
or edi, 0xffffffff
push esi
xor esi, esi
jne 0x77629ea7
mov esi, esp
and edi, dword [esi + 4]
mov dword [esp - 0x21], esi
mov esi, dword [esi]
push esi
and esi, 0xfe2ab961
mov esi, esp
mov dword [esi - 0x32], edi
pop esi
mov dword [esp - 0x22], ecx
add esp, 8
pop esi
pop edx
pop ebx
leave
ret 0x14
push 0x40ec7b
push esi
mov esi, esp
call 0x77224272
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x11e8fe], 0
add byte [edi - 0x54], bl
jne 0x77224285
jnp 0x77224215
int1
salc
push edi
inc esp
sub eax, 0x29b0f362
scasb al, byte es:[edi]
dec edi
add esp, 8
sub dword [esi + 0x8c4834f], ebp
and dword [esi + 4], ebp
push ebx
dec ebx
mov ebx, esp
xor dword [ebx - 0x69], eax
pop ebx
jbe 0x7722429b
xor eax, 0
or dword [esi + 4], ebp
pop esi
mov ebp, esp
sub esp, 0x104
sub esp, 0xd
xor dword [esp + 9], eax
call 0x772242bf
push 0x5b
clc
sal dword [esi], 1
aaa
movsb byte es:[edi], byte [esi]
or eax, 0x910d3c2
call 0x772242d0
push cs
das
cmp al, 0xc5
sbb cl, byte [ebx + 0x28]
inc ecx
out 0x27, al
aam 0x7d
add esp, 8
xor eax, dword [esp + 9]
push ebx
and ebx, 0
jne 0x77629f56
or ebx, 0xffffffff
push eax
or eax, edx
mov eax, esp
mov dword [eax - 0x5b], esi
pop eax
xor ecx, 0
not ebx
or ebx, 0x486abb3
jmp 0x77224305
or edi, edi
xor ebx, 0x55e6afca
xor ebx, 0x51600479
sub ecx, ebx
pop ebx
xor dword [esp + 9], eax
mov eax, dword [esp + 9]
add esp, 9
push 0xffffffffffffffff
sub ecx, 0
push edx
and edx, ecx
mov edx, esp
cmp dword [edx - 0xe], edi
pop edx
and dword [esp], ebx
sbb al, 0x24
push ecx
push edx
push edi
sub esp, 4
add ebx, 0
or dword [esp - 0x61], esi
xor dword [esp], esi
call 0x77224357
cmp eax, 0x39008332
jle 0x77224330
sub al, 0xf5
mov bh, bl
sbb byte [ecx - 0x18], dh
adc al, 0
add byte [eax], al
push esi
xlatb
les ebp, [ebp - 0x56cf8c1e]
iretd
Function at 0x772242d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
or bh, byte [ebx - 0x68]
int1
salc
push edi
add esp, 8
add esp, 8
neg edi
or edi, 0xffffffff
push esi
xor esi, esi
jne 0x77629ea7
mov esi, esp
and edi, dword [esi + 4]
mov dword [esp - 0x21], esi
mov esi, dword [esi]
push esi
and esi, 0xfe2ab961
mov esi, esp
mov dword [esi - 0x32], edi
pop esi
mov dword [esp - 0x22], ecx
add esp, 8
pop esi
pop edx
pop ebx
leave
ret 0x14
push 0x40ec7b
push esi
mov esi, esp
call 0x77224272
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x11e8fe], 0
add byte [edi - 0x54], bl
jne 0x77224285
jnp 0x77224215
int1
salc
push edi
inc esp
sub eax, 0x29b0f362
scasb al, byte es:[edi]
dec edi
add esp, 8
sub dword [esi + 0x8c4834f], ebp
and dword [esi + 4], ebp
push ebx
dec ebx
mov ebx, esp
xor dword [ebx - 0x69], eax
pop ebx
jbe 0x7722429b
xor eax, 0
or dword [esi + 4], ebp
pop esi
mov ebp, esp
sub esp, 0x104
sub esp, 0xd
xor dword [esp + 9], eax
call 0x772242bf
push 0x5b
clc
sal dword [esi], 1
aaa
movsb byte es:[edi], byte [esi]
or eax, 0x910d3c2
call 0x772242d0
push cs
das
cmp al, 0xc5
sbb cl, byte [ebx + 0x28]
inc ecx
out 0x27, al
aam 0x7d
add esp, 8
xor eax, dword [esp + 9]
push ebx
and ebx, 0
jne 0x77629f56
or ebx, 0xffffffff
push eax
or eax, edx
mov eax, esp
mov dword [eax - 0x5b], esi
pop eax
xor ecx, 0
not ebx
or ebx, 0x486abb3
jmp 0x77224305
or edi, edi
xor ebx, 0x55e6afca
xor ebx, 0x51600479
sub ecx, ebx
pop ebx
xor dword [esp + 9], eax
mov eax, dword [esp + 9]
add esp, 9
push 0xffffffffffffffff
sub ecx, 0
push edx
and edx, ecx
mov edx, esp
cmp dword [edx - 0xe], edi
pop edx
and dword [esp], ebx
sbb al, 0x24
push ecx
push edx
push edi
sub esp, 4
add ebx, 0
or dword [esp - 0x61], esi
xor dword [esp], esi
call 0x77224357
cmp eax, 0x39008332
jle 0x77224330
sub al, 0xf5
mov bh, bl
sbb byte [ecx - 0x18], dh
adc al, 0
add byte [eax], al
push esi
xlatb
les ebp, [ebp - 0x56cf8c1e]
iretd
Function at 0x772277b1
Capabilities:
Parse pe header

Disassembly:
add esp, 0xfffffffc
mov dword [esp], ebp
mov ebp, esp
push ebx
lea esp, [esp - 0x11]
mov dword [esp + 0xd], 0xdc12c045
lea esp, [esp + 0xd]
mov dword [esp], ecx
push edx
push edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x772277d3
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x772277d3
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x772277d3
mov dword [esp - 0x1d], esi
jb 0x77227809
sub edx, 0
cmp word [ebx + 4], 0x14c
jne 0x772277d3
test word [ebx + 0x16], 2
je 0x772277d3
test word [ebx + 0x16], 0x100
je 0x772277d3
jmp 0x7722783f
push ebx
call 0x77227850
sbb al, 0x25
cli
stosd dword es:[edi], eax
or byte [ecx - 0x224b783a], ah
push edx
add esp, 8
cmp word [ebx + 0x18], 0x10b
jne 0x772277d3
mov edx, dword [ebx + 0x78]
cmp dword [esp - 0x23], ecx
cmp edx, 0
je 0x772277d3
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.7720ec59
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x772277d3
lea esi, [edx + 0x316f4195]
or esi, 0xffffffff
push ecx
xor ecx, 0x723b9e9b
mov ecx, esp
and esi, dword [ecx + 4]
xor eax, 0
mov ecx, dword [ecx]
push eax
call 0x772278bf
add dl, byte [ebx]
push eax
dec ecx
dec esi
outsd dx, dword [esi]
jl 0x772278ba
pop edx
mov ebp, dword [eax - 0x7f]
adc al, 0xbd
adc al, 0xbd
mov dl, 3
add esp, 8
add esp, 8
sub edi, edi
jne 0x7722793e
or edi, 0xffffffff
not edi
or edi, dword [esp]
add esp, 4
not edx
or edx, 0xffffffff
push ebx
sub ebx, ebx
jne 0x7762d557
mov ebx, esp
mov dword [ebx - 9], edi
pop ebx
not edx
push eax
add eax, esi
mov eax, esp
xor edx, dword [eax + 4]
push edx
lea edx, [esi + edi*2 - 0x55f35438]
mov edx, esp
cmp dword [edx - 0x37], edi
pop edx
or dword [esp - 0x21], ecx
mov eax, dword [eax]
push ebx
and ebx, eax
mov ebx, esp
sub dword [ebx - 0xb], ecx
pop ebx
add esp, 8
pop ecx
xchg dword [esp], ebx
mov dword [esp], ebx
lea esp, [esp + 4]
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
ret 8
invalid
Function at 0x77227850
Capabilities:
Parse pe header

Disassembly:
add esp, 0xfffffffc
mov dword [esp], ebp
mov ebp, esp
push ebx
lea esp, [esp - 0x11]
mov dword [esp + 0xd], 0xdc12c045
lea esp, [esp + 0xd]
mov dword [esp], ecx
push edx
push edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x772277d3
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x772277d3
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x772277d3
mov dword [esp - 0x1d], esi
jb 0x77227809
sub edx, 0
cmp word [ebx + 4], 0x14c
jne 0x772277d3
test word [ebx + 0x16], 2
je 0x772277d3
test word [ebx + 0x16], 0x100
je 0x772277d3
jmp 0x7722783f
push ebx
call 0x77227850
sbb al, 0x25
cli
stosd dword es:[edi], eax
or byte [ecx - 0x224b783a], ah
push edx
add esp, 8
cmp word [ebx + 0x18], 0x10b
jne 0x772277d3
mov edx, dword [ebx + 0x78]
cmp dword [esp - 0x23], ecx
cmp edx, 0
je 0x772277d3
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.7720ec59
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x772277d3
lea esi, [edx + 0x316f4195]
or esi, 0xffffffff
push ecx
xor ecx, 0x723b9e9b
mov ecx, esp
and esi, dword [ecx + 4]
xor eax, 0
mov ecx, dword [ecx]
push eax
call 0x772278bf
add dl, byte [ebx]
push eax
dec ecx
dec esi
outsd dx, dword [esi]
jl 0x772278ba
pop edx
mov ebp, dword [eax - 0x7f]
adc al, 0xbd
adc al, 0xbd
mov dl, 3
add esp, 8
add esp, 8
sub edi, edi
jne 0x7722793e
or edi, 0xffffffff
not edi
or edi, dword [esp]
add esp, 4
not edx
or edx, 0xffffffff
push ebx
sub ebx, ebx
jne 0x7762d557
mov ebx, esp
mov dword [ebx - 9], edi
pop ebx
not edx
push eax
add eax, esi
mov eax, esp
xor edx, dword [eax + 4]
push edx
lea edx, [esi + edi*2 - 0x55f35438]
mov edx, esp
cmp dword [edx - 0x37], edi
pop edx
or dword [esp - 0x21], ecx
mov eax, dword [eax]
push ebx
and ebx, eax
mov ebx, esp
sub dword [ebx - 0xb], ecx
pop ebx
add esp, 8
pop ecx
xchg dword [esp], ebx
mov dword [esp], ebx
lea esp, [esp + 4]
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
ret 8
invalid
Function at 0x4052f0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405307
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x405309
xor eax, eax
test eax, eax
je 0x40531a
push eax
call fcn.004067b0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x405320
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b278
push 0x407668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x41040c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x410408], ecx
shl ecx, 8
add ecx, edx
mov dword [0x410404], ecx
shr eax, 0x10
mov dword [0x410400], eax
call fcn.00407530
test eax, eax
jne 0x40538a
push 0x1c
call fcn.004054c0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00407330
call fcn.00407320
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41212c], eax
call fcn.00406ef0
mov dword [0x4103d8], eax
test eax, eax
je 0x4053bd
mov eax, dword [0x41212c]
test eax, eax
jne 0x4053c7
push 0xffffffffffffffff
call fcn.00406850
add esp, 4
call fcn.00406c40
call fcn.00406b50
call fcn.00406820
mov esi, dword [0x41212c]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4054a6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40540e
test al, al
je 0x40540e
and eax, 0xff
push eax
call fcn.00406af0
add esp, 4
test eax, eax
je 0x4053e8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4053e8
cmp byte [esi], 0x22
jne 0x405417
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x405427
cmp al, 0x20
ja 0x405427
inc esi
mov dword [ebp - 0x64], esi
jmp 0x405417
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x405448
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40544d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00406850
jmp 0x40548b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x405417
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4054a6
Function at 0x406890
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x41043c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4068af
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x410438], 1
mov byte [0x410434], bl
jne 0x406909
mov ecx, dword [0x412128]
test ecx, ecx
je 0x4068f7
mov esi, dword [0x412124]
sub esi, 4
cmp esi, ecx
jb 0x4068f7
mov eax, dword [esi]
test eax, eax
je 0x4068f0
call eax
mov ecx, dword [0x412128]
sub esi, 4
cmp esi, ecx
jae 0x4068e2
push 0x40c01c
push 0x40c014
call fcn.00406940
add esp, 8
push 0x40c024
push 0x40c020
call fcn.00406940
add esp, 8
test ebx, ebx
jne 0x406930
push ebp
mov dword [0x41043c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x406ef0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x410550]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x406f32
call edi
mov esi, eax
test esi, esi
je 0x406f1c
mov eax, 1
jmp 0x406f2d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40703f
mov eax, 2
mov dword [0x410550], eax
cmp eax, 1
jne 0x406fd2
test esi, esi
jne 0x406f4b
call edi
mov esi, eax
test esi, esi
je 0x40703f
cmp word [esi], 0
mov eax, esi
je 0x406f65
add eax, 2
cmp word [eax], 0
jne 0x406f53
add eax, 2
cmp word [eax], 0
jne 0x406f53
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x406fc4
push edi
call fcn.004093e0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x406fc4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x406fb6
push ebx
call fcn.00405590
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40703f
test ebx, ebx
jne 0x406fe3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40703f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x406ffb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x406feb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x406feb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004093e0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40701d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x407780
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40db70
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4077a4
add eax, 8
inc ebp
cmp eax, 0x40dc00
jb 0x407795
cmp ecx, dword [ebp*8 + 0x40db70]
jne 0x40794b
mov eax, dword [0x4103e0]
cmp eax, 1
je 0x40790d
test eax, eax
jne 0x4077d0
cmp dword [0x40d844], 1
je 0x40790d
cmp ecx, 0xfc
je 0x40794b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40780b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x407854
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40b610
add ebx, ecx
push ebx
call fcn.00409520
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b5f0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40db74]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00409490
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x412020]
test eax, eax
je 0x40791e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x407928
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40db74]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x408ee0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x412120]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40908d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x412020]
lea edi, [ecx*4 + 0x412020]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40908d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x408f4e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x408f5f
push 2
push ebp
push eax
call fcn.00408e20
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4090be
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x409009
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x408fba
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x408fa7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x408f8a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4090af
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x409005
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x408f86
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40907e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409052
cmp eax, 5
jne 0x40903b
mov dword [0x4103f8], eax
mov dword [0x4103f4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004067b0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x409072
cmp byte [ebp], 0x1a
jne 0x409072
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4103f4], 0x1c
jmp 0x409097
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4103f4], 9
pop edi
pop esi
pop ebp
mov dword [0x4103f8], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x409005
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4090ef
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x409009
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x409009
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x403e59
pop dword [ebp - 0x1c]
mov eax, 0x69ee372d
add eax, 0x9652072c
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x2c886c51
add dword [ebp - 0x2c], 0x21c9d8fa
mov dword [ebp - 0x28], 0x89d070e8
sub dword [ebp - 0x28], 0x579d24a3
mov dword [ebp - 0x24], 0xa6160408
sub dword [ebp - 0x24], 0x59c9bfda
mov dword [ebp - 0x20], 0xd7bfeacf
add dword [ebp - 0x20], 0x28401531
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xd1d291b5
add eax, 0x2e6deed7
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x5d0a909c
add dword [ebp - 0x2c], 0x1767d8ba
mov dword [ebp - 0x28], 0xbf7549df
sub dword [ebp - 0x28], 0x7e08e86a
mov dword [ebp - 0x24], 0xc931f33d
add dword [ebp - 0x24], 0x9a3d792f
mov dword [ebp - 0x20], 0x55975aa2
add dword [ebp - 0x20], 0xaa68a55e
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x37601
push 0
call eax
mov ecx, 0xdc2412d2
sub ecx, 0xdc23c84f
mov esi, eax
mov edi, 0x5867219
add edi, 0xfaba9de7
add edi, dword [ebp - 0x1c]
mov edx, 0xf526edf3
xor dword [ebp - 0x14], edx
mov ebx, dword [edi]
sub dword [ebp - 8], esi
xor ebx, edx
mov dword [ebp - 0x10], 0x1581e096
mov dword [esi], ebx
add dword [ebp - 0x18], ecx
add esi, 0x2749409e
sub esi, 0x2749409a
add edi, 0xb697620f
sub edi, 0xb697620b
loop 0x403f70
add eax, 0x92934a81
add eax, 0x6d6dd25e
xor ebx, ebx
add ebx, eax
add eax, 0xf15072bf
sub eax, 0xf15072ba
mov ecx, 0x5d16c6d
sub ecx, 0x5916c6d
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4a0bff
Capabilities:
Encode data using xor

Disassembly:
wait
cdq
and cl, byte [esi]
stosb byte es:[edi], al
mov al, byte [0x71ce46e0]
popal
cdq
add bh, bl
mov byte [0x2026bf51], al
or byte [eax + 0x79fbaf85], dl
jns 0x4a0be7
das
jns 0x4a0be7
das
sbb cl, byte [esi + 0x62c7290f]
movsb byte es:[edi], byte [esi]
invalid

Function at 0x4b94c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c1358
cmp edx, dword [eax]
je 0x4b94eb
add eax, 8
inc ecx
cmp eax, 0x4c13e8
jl 0x4b94dc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c1358]
jne 0x4b9619
mov eax, dword [0x4c5cdc]
cmp eax, 1
je 0x4b95f3
test eax, eax
jne 0x4b951c
cmp dword [0x4c1280], 1
je 0x4b95f3
cmp edx, 0xfc
je 0x4b9619
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b9553
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004b9eb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004ba340
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b9596
lea eax, [ebp - 0x1a4]
push eax
call fcn.004ba340
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4be99c
push edi
call fcn.004bc210
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004b9eb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b9ec0
lea eax, [ebp - 0xa0]
push 0x4be97c
push eax
call fcn.004b9ec0
push dword [esi + 0x4c135c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b9ec0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bc184
add esp, 0x2c
pop edi
jmp 0x4b9619
lea eax, [ebp + 8]
lea esi, [esi + 0x4c135c]
push 0
push eax
push dword [esi]
call fcn.004ba340
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