joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101eac4
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
test edi, edi
setne al
push eax
push 0x100f280
push 0x4c
push 1
push 3
push 0x100f198
push dword [0x102256c]
push 4
call fcn.01020f34
push 0xc
call fcn.0101fb27
test eax, eax
pop ecx
je 0x101eb11
and dword [eax + 8], ebx
mov dword [eax], 0x100f180
mov dword [eax + 4], 1
jmp 0x101eb13
xor eax, eax
test eax, eax
jne 0x101eb5a
mov ecx, 0x8007000e
mov ebx, ecx
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x101eb5c
test dword [eax + 0x9c], 0x10000
je 0x101eb5c
cmp byte [eax + 0x99], 2
jb 0x101eb5c
push ecx
push 0x100e310
push 0xa
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.01013553
jmp 0x101eb5c
mov dword [edi], eax
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 4

Function at 0x101eb69
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.0101c59a
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [ebp + 8]
mov dword [edi + 0xb4], eax
call fcn.0101e735
lea edx, [ebp - 4]
push edx
mov edi, eax
mov eax, dword [esi + 8]
xor ebx, ebx
push 0x100da54
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x101ebb7
cmp dword [ebp - 4], ebx
je 0x101ebb7
mov al, 1
jmp 0x101ebb9
xor al, al
push eax
push 0x1002cd8
push ebx
push ebx
push ebx
push 0x100f2a8
push dword [0x102256c]
push 4
call fcn.01020f34
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push edi
push dword [ebp + 8]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x101ebf2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
leave
ret 4
Function at 0x101ebfb
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
setne al
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
push eax
push 0x100f6cc
push 0x2a
push 1
push 3
push 0x100f5c0
push dword [0x102256c]
push 4
call fcn.01020f34
lea eax, [ebp - 8]
push eax
call fcn.0101eac4
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x101ecd8
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x100e320
push eax
call dword [ecx]
test eax, eax
jl 0x101ec68
cmp dword [ebp - 4], ebx
je 0x101ec68
mov al, 1
jmp 0x101ec6a
xor al, al
push esi
push eax
mov esi, 0x1002cd8
push esi
push ebx
push ebx
push ebx
push 0x100f4b0
push dword [0x102256c]
push 4
call fcn.01020f34
push 1
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call fcn.0101e051
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x101ecd7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push edi
push 0x10054e0
push eax
call dword [ecx]
test eax, eax
jl 0x101ecb6
cmp dword [edi], ebx
je 0x101ecb6
mov al, 1
jmp 0x101ecb8
xor al, al
push eax
push esi
push ebx
push ebx
push ebx
push 0x100f3a0
push dword [0x102256c]
push 4
call fcn.01020f34
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
pop esi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x101ece8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x101ecf5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
pop edi
cmp eax, ebx
pop ebx
je 0x101ed04
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
leave
ret 4

Function at 0x101ed10
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x84]
push eax
call fcn.0101b940
mov ebx, eax
mov eax, dword [esi]
push esi
lea edi, [ebx + 0x4c]
call dword [eax + 0x7c]
cmp eax, 1
mov dword [ebp + 0xc], eax
je 0x101ede3
cmp eax, 2
je 0x101edc6
jle 0x101ed57
cmp eax, 5
jle 0x101ed82
cmp eax, 6
je 0x101edc6
push 0
push 0x100f7e0
push 0xc9
push 4
push 3
push 0x100f6f0
push dword [0x102256c]
push 4
call fcn.01020f34
push 0
push 0x80070001
jmp 0x101eddb
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov ecx, edi
call fcn.0101d97e
cmp eax, 0xffffffff
jne 0x101eda7
mov eax, dword [esi]
push 0
push 0xd0000128
push esi
call dword [eax + 0x10]
and dword [ebp - 4], 0
jmp 0x101edbe
push dword [ebp + 0x10]
push esi
push eax
push dword [ebp + 0xc]
call fcn.0101e6e9
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.0101d90e
mov eax, dword [ebx]
push ebx
call dword [eax + 0xc]
jmp 0x101edec
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, edi
call fcn.0101d90e
push 0
push 0
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
jmp 0x101edec
mov ecx, dword [ebp + 8]
push esi
call fcn.0101eb69
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x101edfb
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 0x78], eax
push edi
mov edi, dword [ebp + 8]
je 0x101ee16
cmp edi, eax
je 0x101ee16
xor cl, cl
jmp 0x101ee19
xor ecx, ecx
inc ecx
push ecx
push 0x100f8ec
push eax
push eax
push eax
push 0x100f818
push dword [0x102256c]
push 4
call fcn.01020f34
mov dword [esi + 0x78], edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x101ee8b
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
setne al
xor esi, esi
inc esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
push eax
push 0x100f6cc
push 0x44
push esi
push 3
push 0x100fb10
push dword [0x102256c]
push 4
call fcn.01020f34
push 0x100fb04
call fcn.01013bcc
mov edi, eax
cmp edi, ebx
mov dword [ebp - 8], edi
jge 0x101ef18
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x101ef11
test dword [eax + 0x9c], 0x20000
je 0x101ef11
cmp byte [eax + 0x99], 2
jb 0x101ef11
push edi
push 0x100f808
push 0xa
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.01013553
mov eax, edi
jmp 0x101f049
push 0xc
call fcn.0101fb27
cmp eax, ebx
pop ecx
je 0x101ef34
mov dword [eax], 0x100f908
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov edi, eax
jmp 0x101ef36
xor edi, edi
cmp edi, ebx
jne 0x101ef88
mov ecx, 0x8007000e
mov dword [ebp - 8], ecx
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x101f01f
test dword [eax + 0x9c], 0x20000
je 0x101f01f
cmp byte [eax + 0x99], 2
jb 0x101f01f
push ecx
push 0x100f808
push 0xb
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.01013553
cmp dword [ebp - 8], ebx
jl 0x101f01f
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push 0x100e320
push edi
call dword [eax]
test eax, eax
jl 0x101efac
cmp dword [ebp - 4], ebx
je 0x101efac
mov al, 1
jmp 0x101efae
xor al, al
push eax
mov esi, 0x1002cd8
push esi
push ebx
push ebx
push ebx
push 0x100fa10
push dword [0x102256c]
push 4
call fcn.01020f34
push 1
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call fcn.0101e051
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x101f01f
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push 0x10054e0
push eax
call dword [ecx]
test eax, eax
jl 0x101effe
mov eax, dword [ebp + 8]
cmp dword [eax], ebx
je 0x101effe
mov al, 1
jmp 0x101f000
xor al, al
push eax
push esi
push ebx
push ebx
push ebx
push 0x100f918
push dword [0x102256c]
push 4
call fcn.01020f34
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [edi + 8], eax
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x101f02f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x101f039
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x101f046
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x101f96d
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
test edi, edi
setne al
push eax
push 0x1011858
push 0x36
push 1
push 3
push 0x1011778
push dword [0x102256c]
push 4
call fcn.01020f34
push 0xc
call fcn.0101fb27
test eax, eax
pop ecx
je 0x101f9ba
and dword [eax + 8], ebx
mov dword [eax + 4], 1
mov dword [eax], 0x1011760
jmp 0x101f9bc
xor eax, eax
test eax, eax
jne 0x101fa03
mov ecx, 0x8007000e
mov ebx, ecx
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x101fa05
test dword [eax + 0x9c], 0x10000
je 0x101fa05
cmp byte [eax + 0x99], 2
jb 0x101fa05
push ecx
push 0x1011578
push 0xa
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.01013553
jmp 0x101fa05
mov dword [edi], eax
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 4

Function at 0x101fa12
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
setne al
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
push eax
push 0x100f6cc
push 0x13
push 1
push 3
push 0x1011a80
push dword [0x102256c]
push 4
call fcn.01020f34
lea eax, [ebp - 8]
push eax
call fcn.0101f96d
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x101faef
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x100e320
push eax
call dword [ecx]
test eax, eax
jl 0x101fa7f
cmp dword [ebp - 4], ebx
je 0x101fa7f
mov al, 1
jmp 0x101fa81
xor al, al
push esi
push eax
mov esi, 0x1002cd8
push esi
push ebx
push ebx
push ebx
push 0x1011980
push dword [0x102256c]
push 4
call fcn.01020f34
push 1
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call fcn.0101e051
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x101faee
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push edi
push 0x10054e0
push eax
call dword [ecx]
test eax, eax
jl 0x101facd
cmp dword [edi], ebx
je 0x101facd
mov al, 1
jmp 0x101facf
xor al, al
push eax
push esi
push ebx
push ebx
push ebx
push 0x1011880
push dword [0x102256c]
push 4
call fcn.01020f34
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
pop esi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x101faff
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x101fb0c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
pop edi
cmp eax, ebx
pop ebx
je 0x101fb1b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
leave
ret 4
Function at 0x102025b
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1021030
call fcn.01020310
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1022d18
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x102005a
cmp eax, esi
jne 0x102004d
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x102005d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1020034
xor esi, esi
inc esi
mov eax, dword [0x1022d14]
cmp eax, esi
jne 0x1020070
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10200ab
mov eax, dword [0x1022d14]
test eax, eax
jne 0x10200a5
mov dword [0x1022d14], esi
push 0x10011b0
push 0x10011a8
call fcn.0101ffaf
pop ecx
pop ecx
test eax, eax
je 0x10200ab
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1020182
mov dword [0x10229d4], esi
mov eax, dword [0x1022d14]
cmp eax, esi
jne 0x10200cf
push 0x10011a4
push 0x100118c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1022d14], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10200dc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1022d28], ebx
je 0x10200fd
push 0x1022d28
call fcn.010208ab
pop ecx
test eax, eax
je 0x10200fd
push ebx
push 2
push ebx
call dword [0x1022d28]
mov eax, dword [0x10229bc]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [0x10229bc]
push dword [0x10229c0]
push dword [0x10229b8]
call fcn.01012efe
add esp, 0xc
mov dword [0x10229d0], eax
cmp dword [0x10229c4], ebx
jne 0x1020168
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x10229d4], ebx
jne 0x1020176
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10229d0]
call fcn.01020355
ret
call fcn.010209f5
jmp 0x1020012

Function at 0x1020820
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1020833
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x102082f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1020860
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x102089f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1020895
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x10208a1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1020885
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x421810
Capabilities:
Parse pe header

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

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x402578
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4025a7
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00402b08
jmp 0x4025c5
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0040250c
mov edi, eax
test ebx, ebx
je 0x4025c5
cmp dword [esi], 0
je 0x4025c5
dec ebx
jmp 0x4025ae
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030c4
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403120
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x403112
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x403107
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x403102
mov eax, 0x64
jmp 0x403117
call sub.kernel32.dll_GetLastError
call fcn.00402498
xor eax, eax
jmp 0x403102
mov eax, 0x67
jmp 0x403117

Function at 0x403128
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x403183
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x403175
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40316a
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x403165
mov eax, 0x65
jmp 0x40317a
call sub.kernel32.dll_GetLastError
call fcn.00402498
xor eax, eax
jmp 0x403165
mov eax, 0x67
jmp 0x40317a

Function at 0x40320c
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x40323c
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x403232
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004024a8
or eax, 0xffffffff
jmp 0x403230
mov eax, 0x67
call fcn.00402498
or eax, 0xffffffff
jmp 0x403230

Function at 0x40351c
Capabilities:
Clear file content

Disassembly:
mov edx, dword [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403539
push dword [eax]
call sub.kernel32.dll_SetEndOfFile
dec eax
jne fcn.004024a8
ret
mov eax, 0x67
jmp fcn.00402498

Function at 0x403800
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, eax
movzx eax, byte [esi]
inc esi
xor al, dl
shr edx, 8
xor edx, dword [eax*4 + 0x40607c]
loop 0x403803
mov eax, edx
pop esi
ret
Function at 0x4039cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402ccc
xor eax, eax
push ebp
push 0x403a41
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x403a21
mov eax, dword [ebp - 4]
call fcn.00402b8c
mov esi, eax
test esi, esi
jle 0x403a21
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00402ce8
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
xor edx, ebx
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x403a07
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00402abc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a48
lea eax, [ebp - 4]
call fcn.00402a28
ret

Function at 0x403dec
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00402ccc
mov eax, dword [ebp - 8]
call fcn.00402ccc
mov eax, dword [ebp + 0x10]
call fcn.00402ccc
mov eax, dword [ebp + 0xc]
call fcn.00402ccc
lea ebx, [ebp - 0x54]
xor eax, eax
push ebp
push 0x403f15
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor ecx, ecx
mov edx, 0x4c
call fcn.00402648
mov eax, dword [0x40700c]
mov dword [ebx + 8], eax
mov dword [ebx], 0x4c
mov dword [ebx + 4], esi
mov dword [ebx + 0x34], 0x1004
mov eax, dword [ebp + 0xc]
call fcn.00402cdc
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 8]
call fcn.00403da4
mov dword [ebx + 0xc], eax
mov esi, 0x104
mov dword [ebx + 0x20], esi
mov eax, esi
add eax, 2
call fcn.004023b8
mov edi, eax
mov dword [ebx + 0x1c], edi
mov edx, dword [ebx + 0x20]
add edx, 2
mov eax, edi
xor ecx, ecx
call fcn.00402648
mov eax, dword [ebp - 4]
call fcn.00402cdc
mov edx, eax
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
call fcn.00403970
mov eax, dword [ebp + 0x10]
call fcn.00402cdc
mov dword [ebx + 0x2c], eax
push ebx
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
je 0x403ec7
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0x1c]
call fcn.00402b44
jmp 0x403ecf
mov eax, dword [ebp + 8]
call fcn.00402a28
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x403ee1
mov edx, dword [ebx + 0x20]
add edx, 2
call fcn.004023d0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x403eed
call fcn.00403960
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f1c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402a48
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00402a48
ret
Function at 0x4051f4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x407490
xor eax, eax
push ebp
push 0x4052bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4052d4
lea eax, [ebp - 4]
call fcn.00402abc
lea eax, [ebp - 4]
mov edx, dword [esi + 0x10]
call fcn.00402b94
mov eax, dword [ebp - 4]
call fcn.00402cdc
push eax
push 0x457
push ebx
call sub.user32.dll_SetDlgItemTextA
cmp dword [esi + 0x14], 0
je 0x40525f
cmp dword [esi + 0x18], 0
je 0x40525f
mov eax, dword [esi + 0x14]
call fcn.00402cdc
push eax
push 0x7d0
push ebx
call sub.user32.dll_SetDlgItemTextA
jmp 0x405272
push 0
push 0x7d0
push ebx
call sub.user32.dll_GetDlgItem
push eax
call sub.user32.dll_ShowWindow
cmp dword [esi + 0x1c], 0
je 0x405294
cmp dword [esi + 0x20], 0
je 0x405294
mov eax, dword [esi + 0x1c]
call fcn.00402cdc
push eax
push 0x7d1
push ebx
call sub.user32.dll_SetDlgItemTextA
jmp 0x4052a7
push 0
push 0x7d1
push ebx
call sub.user32.dll_GetDlgItem
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4052c4
lea eax, [ebp - 4]
call fcn.00402a28
ret

Function at 0x405310
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402ccc
xor eax, eax
push ebp
push 0x40535e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00402cdc
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405365
lea eax, [ebp - 4]
call fcn.00402a28
ret
Function at 0x4012a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], 0x40418d
mov dword [esp + 8], 0x40418f
mov dword [esp + 4], str.usage:_rlogin_____s__s__e_char_____l_username___host_n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
Function at 0x402ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], esi
mov esi, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], edx
jne 0x402ee7
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402fac
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x402f80
cmp eax, 4
je 0x402f80
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 0x30]
sub esp, 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.cygwin1.dll_memcpy
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x402eda
cmp eax, 4
je 0x402eda
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x402eda
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_memcpy
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x402eda
cmp eax, 4
lea edi, [ebp - 0x10]
jne 0x402f5a
jmp 0x402eda
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402b30
lea esi, [esi]
lea edi, [edi]